Repository navigation
fix(ci): tolerate Pi diagnostic file locks - #545
Merged
Merged
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A Windows Pi RPC vendor run reported all 85 tests passed but exited 1 because the diagnostic reporter threw
EPERMwhile replacingactive-tests.json(retained run). The reporter now retries a busy rename three times with 20 ms between attempts. Exhaustion recordsdiagnostic_write_failedwith the operation, error code and attempt count. Directory, log, snapshot and fallback-output errors are contained so diagnostic I/O does not become an unhandled test-run error; subsequent events can recover.The regressions cover temporary and persistent replacement failures, other diagnostic writes and a closed output pipe. On Windows, a real file handle prevents replacement while a nested Vitest run executes: both a passing case and an intentional assertion failure must keep their original exit codes and recorded results.
Validation:
CI=1 pnpm run checkpassed (2,516 tests and 18 mock behavior checks). All 85 native Pi RPC vendor tests passed with diagnostics enabled after removing this managed runner's inheritedPI_PACKAGE_DIRoverride. The initial run is retained separately: 14 cases read the host's 1.0.56 package metadata instead of bundled Pi 1.4.0. Windows file-lock regressions await CI.Task #97. The five investigation runs did not reproduce the earlier 25-minute cancellation; this fixes the observed reporter failure, without attributing the file lock to a particular process.
The first Windows CI run confirmed the real file lock and successful child test, but the outer regression incorrectly expected exitCode 0. The existing runExecutable contract returns ok=true and exitCode=null on success. The revision checks ok, the documented exitCode, and absence of failure diagnostics; it retains the file-lock, case outcome, and EPERM assertions. Full local check passed again. Windows validation of this revision is pending.