Repository navigation
fix(ci): re-probe zccache before disabling recovery caching - #3972
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
November 8, 2026 03:06
validate.sh now bounds zccache status with timeout(1), which execs a program and cannot call the shell-function stub (exit 127). The script's contract is right; the stub was not. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 transient zccache daemon failure currently disables caching for the entire recovery build based on the pre-restart status. Probe again after stopping the daemon and clearing cooldown markers; keep caching enabled only when the fresh daemon answers successfully. Failed probes retain the uncached retry and
cache-healthy=falseoutput. Each recovery prints exactly one== zccache re-probe: okor== zccache re-probe: unavailable (exit N)line. The workflow save guard is unchanged.Both status probes use
timeout --kill-after=2s 5s: five seconds allows a local daemon to start without adding a long stall, with a two-second forced-kill grace. Only exit zero permits caching; timeout, missing command, unsupported subcommand and unknown failures disable it.Validation:
ba16ef56b:uv run --no-project python -m unittest ci.test_zccache.RecoveryTestfailed all three new tests (six failing assertions/subtests), including recovered daemon still exporting disable.1c3fb036b:uv run --no-project python -m unittest ci.test_zccachepasses 25 tests. New tests:test_recovery_reprobe_succeeds,test_recovery_reprobe_fails,test_recovery_reprobe_errors_fail_closed(four error subcases).bash -n rust/tools/linux-validate/validate.sh,uvx ruff check ci/test_zccache.py, andgit diff --checkexit 0.uvx --from shellcheck-py shellcheckreports only the same baseline SC2086 (lines 84/202) and SC2054 (line 187) findings on master;--exclude SC2086,SC2054exits 0. No recovery-block findings.Handoff: leave this PR unmerged as requested. After merge, daemon recovery is stochastic: search merge-group Tier 2 logs with
gh run view RUN_ID -R obs-rust/obs-studio --log | rg 'launcher failures:|zccache re-probe:'; look for a launcher failure followed byre-probe: ok, then confirm the retry succeeds. Live Tier 2 performance and hosted checks are not yet verified. Roll back by reverting this PR through the normal queue.