Use a stable workspace lock for coordination
This commit is contained in:
@@ -33,8 +33,8 @@ type releaseErrorArtifactStore struct {
|
||||
err error
|
||||
}
|
||||
|
||||
func (s *releaseErrorArtifactStore) ReleaseSessionLock(lock *artifacts.LockHandle) error {
|
||||
return errors.Join(s.Store.ReleaseSessionLock(lock), s.err)
|
||||
func (s *releaseErrorArtifactStore) ReleaseWorkspaceLock(lock *artifacts.LockHandle) error {
|
||||
return errors.Join(s.Store.ReleaseWorkspaceLock(lock), s.err)
|
||||
}
|
||||
|
||||
func (s failingStage) Name() string { return s.name }
|
||||
@@ -1095,8 +1095,7 @@ func TestExecuteStagesRejectsPersistedManifestIdentityMismatch(t *testing.T) {
|
||||
if string(after) != string(before) {
|
||||
t.Fatal("persisted manifest changed after identity rejection")
|
||||
}
|
||||
paths := artifacts.NewLocalStore(cfg.Pipeline.Workspace.Root).SessionPathsFor(cfg.Session.Campaign, cfg.Session.SessionID)
|
||||
if _, err := os.Stat(paths.LockPath); err != nil {
|
||||
if _, err := os.Stat(artifacts.WorkspaceLockPath(cfg.Pipeline.Workspace.Root)); err != nil {
|
||||
t.Fatalf("lock path stat error = %v, want transition lock", err)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user