Synchronize deadline regression with source inspection

This commit is contained in:
2026-11-01 21:56:13 +00:00
parent 66f5884ab4
commit fcd2e57887
3 changed files with 41 additions and 11 deletions

View File

@@ -340,8 +340,11 @@ or a companion root test file.
smoke-checked. Verify `errors.Is(err, context.Canceled)` and retention of
completed artifact paths/digests for the latter case.
4. Add one focused deadline-expiration variant with synchronized readiness and
a bounded wait. Verify `context.DeadlineExceeded`, rather than asserting an
exact killed-process error string. Join test goroutines and reap children.
a bounded wait. Trigger a test-controlled expiration context after Git signals
readiness, so repository/module setup cannot consume the inspection deadline.
Verify `context.DeadlineExceeded`, rather than asserting an exact killed-process
error string. Join test goroutines and reap children. Check the deadline case
with delayed unrelated setup as well as normal and race-enabled execution.
**Verification:** ordinary source-inspection Git errors retain their causes;
`SourceVerified` is not reported true after an interrupted build. Retain