Repository navigation
Conversation
The Windows nightly fails all three quantized refinement cache snapshot-lifecycle cases at 3c570b9 with "assertion failed: after.hits > before.hits", but the shared assertion at dataset_scanner_knn.rs:3138 does not identify which lifecycle phase misses. This adds a pull-request-scoped diagnostic that builds the exact red head in a separate checkout, applies the reviewed phase-instrumentation patch to the runner checkout only, and runs only the three lifecycle cases with RUST_BACKTRACE=1. Diagnostic only. Not a fix, not a merge candidate.
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
A Windows checkout can leave CRLF bytes in the worktree, and `git checkout -- <path>` may skip a path whose index stat data still looks clean. Read the committed blob with `git cat-file` instead so the reproduction tree is byte-identical to HEAD before the patch applies.
Carry the exact production hunk of the published-e_tag repair as a patch product and apply it to the pinned red checkout after the identity probe. The workflow checks the patch sha256, the production file blob before and after, that the patch touches only the commit handler, and that the final tree is red plus probe plus repair with no unrelated change. This makes the next Windows run exercise the original lifecycle path with the production repair instead of a test-side substitute.
Xuanwo
added a commit
that referenced
this pull request
Nov 15, 2026
`RenameCommitHandler` publishes the staging manifest with `rename_if_not_exists` and then returned `e_tag: None`. When a store implements rename as copy plus delete, the published object carries a different generation token, so the writer's `ManifestLocation` did not describe what a reader resolves by HEAD for the same version. Consumers that key caches on that token (manifest and index metadata caches, refinement cache identity, `already_checked_out`) could then disagree about one published snapshot. This observes the final path after a successful rename and returns the token reported there, matching the existing external-manifest publication path. It costs one metadata read per commit on this handler and adds a regression test that writes through an explicit `RenameCommitHandler` and resolves the version as a reader does. The Windows diagnostic in #11110 applies this hunk to the pinned red head; this PR does not claim a Windows result.
The Windows runner image sets core.autocrlf=true globally, so the red checkout carried CRLF bytes. The verify step flips core.autocrlf to false after checkout, and the whole-tree `git diff --name-only` guard then re-reads those files against LF blobs and reports every converted file as an unrelated change before any build runs. Disable CRLF conversion on the ephemeral runner before the second checkout so the reproduction tree is LF from the start. The whole-tree guard and its byte-exact patch/blob checks are unchanged.
Contributor
There was a problem hiding this comment.
The CRLF preparation issue is fixed, and the pinned probe plus the repair from #11111 preserves the lifecycle assertions. Windows behavior remains unverified, so the expected cache-hit improvement is still a hypothesis. Retain the diagnostic-only, do-not-merge scope.
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.
Diagnostic only — do not merge.
The Windows nightly fails all three
dataset_scanner_knn::test_quantized_refinement_cache_snapshot_lifecyclecases at3c570b969c88fa2ad29f18199a3886ec4de3f8be(run 43657826113 / job 132640223080). The phase run (43706516887 / job 132788681378) localized all three failures tocheckout_original_hit:hits 8→8,misses/loads_started/loads_succeeded14→16, with the 10 preceding phases passing. The identity probe showed the writer reporting no manifest e_tag while the checkout resolved one, so caches keyed on that token split one published snapshot.This PR carries a pull-request-scoped diagnostic workflow and two saved patch products: the reviewed identity-probe patch and the exact production hunk of the published-e_tag repair from #11111 (source commit
da8d069191ab8e08b948019079ee947a84be27ea, blob518f98579269→4c8e3710ad24). The job builds the exact red head in a second checkout, applies the probe first and the repair second to the runner checkout only, and hash-guards both patches and the resulting blobs. It runs the three lifecycle cases onwindows-latestwithRUST_BACKTRACE=1. The probe prints every hashed identity component, the 16-byte base identity, the post-controls per-partition entry identity, a non-counting residency peek, and type-scoped cache occupancy. No repository Rust source, manifest, or lockfile changes, and no assertion, fixture, capacity, feature, or retry is modified.The expected measurement, if the repair addresses this path, is
checkout_original_hitathits 8→10withmisses/loads_startedstaying at 14 and the cached-vs-uncached-vs-original assertions actually running. That expectation is not a result; the Windows run remains pending. The production fix is #11111; this PR is never merged.