Skip to content

ci: reproduce native fingerprint helper coverage and freshness limits - #1376

Merged
zackees merged 1 commit into
masterfrom
infra/1286-native-fingerprint-audit
Oct 18, 2026
Merged

zackees merged 1 commit into
masterfrom
infra/1286-native-fingerprint-audit

Conversation

@zackees

@zackees zackees commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Summary

Refs #1286. Extend the existing manual target-cache experiment to evaluate native zccache snapshot-fingerprint helpers before considering production adoption. No workflow, production cache policy or test execution is changed.

Confirmed with soldr 0.9.35, Rust-wrapper bypass and checksum-verified standalone zccache 1.15.5:

  • Hyphenated root package: recorder covers zero crates/sources. Cargo emits underscore-normalized target .d filenames, while the recorder constructs the fingerprint-directory basename. Filed zccache#1959; same construction is present in inspected upstream main.
  • Underscore root control: recorder covers the two root sources and validation reports 0 clean / 1 dirty, but the old unit-test binary still succeeds when changed source preserves size and nanosecond mtime. The hyphenated dependency is still uncovered.
  • Native validation selectively future-stamps clean units; it does not force dirty Cargo fingerprints invalid. The naming fix alone would not make this a complete freshness guard.
  • Existing known-package quarantine rejects the edit and preserves the dependency; automatic production mapping/generated-input coverage remain unimplemented.

The probe adds explicit package-name control, optional standalone helper path and a separate --verify-native-guard mode. The native verification requires fixture source coverage, rejection of changed source and dependency preservation; it returns 1 for both current cases. It does not convert missing coverage into safety. Existing --verify-guard semantics remain the known-package control.

Validation

  • Tracked CLI hyphen fixture: expected native-guard exit 1, zero coverage, stale success after native validation; source content, size and nanosecond mtime asserted after hydration.
  • Tracked CLI underscore fixture: expected native-guard exit 1, one recorded crate/two sources, one dirty crate, stale success remains.
  • Original CLI --verify-guard without native helper: exit 0, unchanged reuse, ordinary edit rejected, guarded preserved-stamp edit rejected and dependency retained.
  • uv run --no-project -m unittest ci.test_tool_guard ci.test_uv_run: 20 passed.
  • git diff --check and evidence JSON parsing pass. This is measurement/reproduction tooling, not a production behavioral fix requiring an artificial RED/GREEN test.

All scratch stays in new ignored build_ci_audit directories in this checkout. No worktree, existing C-test/public-header edit, new workflow or submodule pointer update. Standalone and embedded Rust cache bugs remain separate.

Draft sequencing

Hold merge until #1375's docs-only Qt consumer is measured: this new diagnostic source is conservatively included in Qt publication identity and would create a new generation. Draft CI/review can proceed independently. The probe does not fix the upstream helper or claim safe deeper-test reuse.

Sequencing completed

The docs-only Qt consumer in run 39086280608 / job 117554246917 passed, restored the exact producer key, retained 298/300 compiler hits, and skipped the Qt snapshot save. The draft hold was released after that measurement; this PR merged at 01:34:12 UTC. Its diagnostic source may create a new conservative Qt input generation, which is distinct from the already verified docs-only reuse pair.

@zackees
zackees marked this pull request as ready for review October 18, 2026 01:31
@zackees
zackees added this pull request to the merge queue Oct 18, 2026
Merged via the queue into master with commit 050908d Oct 18, 2026
22 checks passed
@zackees
zackees deleted the infra/1286-native-fingerprint-audit 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