Protect validation probes with the session lock
Some checks failed
ci/woodpecker/push/verify Pipeline was canceled

This commit is contained in:
2026-11-30 14:40:34 +00:00
parent fec29b541f
commit 826369c81a
7 changed files with 225 additions and 7 deletions

View File

@@ -51,6 +51,9 @@ operating-system lock held on `.lock` (`ErrLockConflict` on contention). The
file retains owner metadata after release or process death; its existence is
not evidence that a lock is active. Command and restore flows wait for this
lock only while their context remains active, and report a release failure.
Standalone validation uses the same lock for its prepared-state reads and
session-local readiness probes, keeping active probe files outside concurrent
cleanup. Validation leaves stage progress unchanged.
The runner assigns every invocation a run-workspace identity but creates the
physical run directory and its `runs/` parent only when an executing stage