Skip to content

ci: capture bounded native cache miss diagnostics in full Ubuntu builds - #1386

Merged
zackees merged 3 commits into
masterfrom
infra/1286-native-cache-journals
Oct 18, 2026
Merged

zackees merged 3 commits into
masterfrom
infra/1286-native-cache-journals

Conversation

@zackees

@zackees zackees commented Oct 18, 2026

Copy link
Copy Markdown
Member

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.

  • 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.

@zackees
zackees enabled auto-merge October 18, 2026 03:16
@zackees
zackees added this pull request to the merge queue Oct 18, 2026
@zackees

zackees commented Oct 18, 2026

Copy link
Copy Markdown
Member Author

Additional compatibility qualification completed: the new scoped endpoint reuses objects written through the ordinary preexisting native-cache route.

  1. Fresh in-repo cache, ordinary zccache <native GCC> -c ... invocations with only ZCCACHE_CACHE_DIR set: status reports 2 calls, 1 miss / 1 hit.
  2. 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.
  3. 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.

Merged via the queue into master with commit e8fa0d4 Oct 18, 2026
22 checks passed
@zackees
zackees deleted the infra/1286-native-cache-journals branch October 26, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant