You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: capture bounded native cache miss diagnostics in full Ubuntu builds - #1386
Refs #1286. Existing completed Ubuntu logs prove compatible cache reuse, but cannot attribute the remaining 137 OFF cold calls. Add structured journal evidence to the existing full-build Ubuntu job so the next natural nightly/manual run can identify source candidates and known miss categories.
Provision the same checksum-pinned native tool before the build; the existing setup helper detects that installed version instead of downloading it twice.
Start a session with a cache and explicit IPC endpoint inside the job workspace. The existing build summary stops and flushes the same daemon.
Move existing uv setup earlier and use it in both modes for the diagnostics helper.
Upload only a bounded, sanitized JSON summary for two days. No raw arguments, environment values, raw journals, or diff values. Unknown/malformed/truncated evidence is explicit; no invented complete-build counts.
Diagnostic setup/summary/upload are non-blocking. Native compilation, tests, cache save guards, public headers and required gate behavior are unchanged. This job already stays outside PR/merge-group admission. No new workflow file or full dispatch.
RED → GREEN
RED e1a32418c: five tests fail against the new helper's unimplemented behavior.
Wiring RED 6f253bbb7: two additional cases fail against the existing workflow's missing diagnostic stages.
GREEN focused checks pass (helper/wiring, Ubuntu cache contracts, cache families, standalone tests, tool guard and uv policy).
Full uv run -m unittest discover -s ci -p 'test_*.py': 672 tests pass in 42.299 s.
git diff --check passes.
Actual pinned-binary qualification
In a fresh in-repo fixture and isolated endpoint/cache, the helper started released zccache 1.15.5, two native GCC calls produced one miss/one hit, and the journal remained readable after stopping only that daemon. The raw journal contained a synthetic compiler argument value; the sanitized summary did not. A new session/daemon over the same cache then produced two hits, proving this attribution mechanism preserves reuse in that control. Raw proof stays under build_ci_audit/journal-helper-01/.
No new GitHub full run was dispatched. First actual Ubuntu artifact capture remains to verify on the next natural full run. This does not fix upstream freshness #1935, resolve the existing recording-race blocker, deploy queue-only writers, or complete the representative-day comparison.
Additional compatibility qualification completed: the new scoped endpoint reuses objects written through the ordinary preexisting native-cache route.
Fresh in-repo cache, ordinary zccache <native GCC> -c ... invocations with only ZCCACHE_CACHE_DIR set: status reports 2 calls, 1 miss / 1 hit.
Stop only that cache's daemon, then start the proposed helper's session with the explicit job-local endpoint over the same cache root, unchanged source and compiler arguments.
Both subsequent calls hit. The sanitized journal reports {"hit": 2}.
Raw result and baseline status: build_ci_audit/jc1/result.json and default-status.txt. This rules out endpoint-induced key partitioning in the tested control, in addition to the earlier cross-session reuse check.
The first attempted baseline used session-start --cache-dir while the compiler client resolved a different default endpoint; it failed with launcher status 125 and is not counted as a cache-regression result. Its owned daemon was stopped explicitly. The corrected control uses ordinary compiler auto-start, matching the pre-change native route. No shared daemon, production cache or full workflow was restarted.
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
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.
Summary
Refs #1286. Existing completed Ubuntu logs prove compatible cache reuse, but cannot attribute the remaining 137 OFF cold calls. Add structured journal evidence to the existing full-build Ubuntu job so the next natural nightly/manual run can identify source candidates and known miss categories.
RED → GREEN
e1a32418c: five tests fail against the new helper's unimplemented behavior.6f253bbb7: two additional cases fail against the existing workflow's missing diagnostic stages.uv run -m unittest discover -s ci -p 'test_*.py': 672 tests pass in 42.299 s.git diff --checkpasses.Actual pinned-binary qualification
In a fresh in-repo fixture and isolated endpoint/cache, the helper started released zccache 1.15.5, two native GCC calls produced one miss/one hit, and the journal remained readable after stopping only that daemon. The raw journal contained a synthetic compiler argument value; the sanitized summary did not. A new session/daemon over the same cache then produced two hits, proving this attribution mechanism preserves reuse in that control. Raw proof stays under
build_ci_audit/journal-helper-01/.No new GitHub full run was dispatched. First actual Ubuntu artifact capture remains to verify on the next natural full run. This does not fix upstream freshness #1935, resolve the existing recording-race blocker, deploy queue-only writers, or complete the representative-day comparison.