Repository navigation
test: keep one shard claim for codex run-attempt-tools - #126236
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 19, 2026 07:22
Three PRs fixed the same orphaned test within minutes of each other -- #126222, #126225 and #126190 -- so the full-suite ownership audit flipped from "missing" to "duplicated" and main went red at 554dfbe. Keeps the claim from #126225, whose entire purpose was routing this test, and drops the two incidental ones added while landing unrelated UI work. The audit passes 18/18 and the test still runs, once, in the attempt-light shard. Root cause is the shard layout: the support shard globs app-server/**/*.test.ts but excludes the whole run-attempt* pattern while the attempt shards enumerate by filename, so every new run-attempt-* file is unowned until someone hand-adds it, and concurrent fixers then collide.
steipete
force-pushed
the
steipete/dedupe-run-attempt-tools-shard
branch
from
August 19, 2026 07:38
319013b to
49f4283
Compare
Member
|
@clawsweeper re-review Exact head is now |
Contributor
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Contributor
Author
|
Merged via squash.
|
This was referenced Aug 19, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 20, 2026
Three PRs fixed the same orphaned test within minutes of each other -- openclaw#126222, openclaw#126225 and openclaw#126190 -- so the full-suite ownership audit flipped from "missing" to "duplicated" and main went red at 0d090ac. Keeps the claim from openclaw#126225, whose entire purpose was routing this test, and drops the two incidental ones added while landing unrelated UI work. The audit passes 18/18 and the test still runs, once, in the attempt-light shard. Root cause is the shard layout: the support shard globs app-server/**/*.test.ts but excludes the whole run-attempt* pattern while the attempt shards enumerate by filename, so every new run-attempt-* file is unowned until someone hand-adds it, and concurrent fixers then collide.
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.
What Problem This Solves
mainis red at554dfbe0a2c.checks-node-compact-large-22fails the full-suite ownership audit intest/vitest-projects-config.test.ts:extensions/codex/src/app-server/run-attempt-tools.test.tsis claimed by three Vitest shard configs at once.Why This Change Was Made
That test arrived in #126189 with no shard claim at all, which turned the audit red in the other direction. Three PRs then fixed it independently within minutes of each other:
test(codex): route run attempt tools test→attempt-lightfix(ui): restore sidebar session hovercards→toolsimprove(ui): fix sidebar session row hierarchy…→attempt-extraEach was individually correct; together they flipped the audit from
missingtoduplicated. I own one of the three (#126190), so I am fixing the collision rather than leaving it.This keeps the claim from #126225 — the purpose-built fix, whose entire reason for existing was routing this test — and drops the two that were added incidentally while landing unrelated UI work.
The underlying trap is the shard layout, and it will keep firing: the support shard globs
app-server/**/*.test.tsbut excludes the wholerun-attempt*pattern, while the attempt shards enumerate by filename. So every newrun-attempt-*.test.tsis owned by nobody until a human adds it by hand, the audit only catches it on some later unrelated PR, and concurrent fixers then collide exactly as they did here. A follow-up making one shard claim the residue of that glob would remove the whole class; that is a test-infrastructure design decision rather than part of this repair.User Impact
None user-visible. Restores a green
mainand keepsrun-attempt-tools.test.tsexecuting exactly once.Evidence
Both halves matter: dropping a duplicate claim is only correct if the test still has exactly one owner and still executes.