Skip to content

test(code-index): fence the busy follow-up expired-proof read - #1868

Merged
ScriptedAlchemy merged 1 commit into
masterfrom
fix/reconcile-flakes-g
Sep 19, 2026
Merged

ScriptedAlchemy merged 1 commit into
masterfrom
fix/reconcile-flakes-g

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

graph_read_during_reconcile_records_a_busy_follow_up has the same unfenced arrangement #1867 fixed in its sibling. It holds the admission permit and the owner pass guard, ages the source proof, and reads it back expecting the read to abstain. The graph tail's renewing steps run after both of those signals read idle, so under load the read can see a renewed proof and the abstain assertion fails at reconcile.rs:2593.

The test now holds the scheduler mutex across the aging and the read through hold_scheduler_for_root, which #1867 added. Production code is unchanged.

A review lane reproduced the failure once in eight whole-module runs under CPU contention on unmodified master (two spinners and the module pinned to the same two cores). The same recipe on this box gave 0 failures in 12 pre-fix module runs and 0 in 8 post-fix runs, so the local rate is too low to show a before-versus-after delta. The fix rests on the mechanism, which #1867 traced with backtraces at the freshness mutators, and on the lane's captured failure at this exact assertion.

The two tests the lane was asked about, reopened_current_text_generation_resolves_publication_identity_without_graph_seat and resident_memory_graph_refusal_seats_text_serving_without_graph, did not reproduce in 40 attempts each under four contention shapes and are not changed.

🤖 Generated with Claude Code

The test held the admission permit and the owner pass guard while it
aged the source proof, but the graph tail renews the proof after both
read idle, so the read could observe a fresh proof and the abstain
assertion failed. Hold the scheduler mutex across the aging and the
read, the fence #1867 introduced for the same window.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Sep 19, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 2a0ef12

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-19T21:45:55.452328Z 2a0ef12 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ScriptedAlchemy
ScriptedAlchemy merged commit 540b59b into master Sep 19, 2026
47 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant