Skip to content

test: keep one shard claim for codex run-attempt-tools - #126236

Merged
steipete merged 1 commit into
mainfrom
steipete/dedupe-run-attempt-tools-shard
Aug 19, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/dedupe-run-attempt-tools-shard

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

main is red at 554dfbe0a2c. checks-node-compact-large-22 fails the full-suite ownership audit in test/vitest-projects-config.test.ts: extensions/codex/src/app-server/run-attempt-tools.test.ts is 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:

Each was individually correct; together they flipped the audit from missing to duplicated. 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.ts but excludes the whole run-attempt* pattern, while the attempt shards enumerate by filename. So every new run-attempt-*.test.ts is 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 main and keeps run-attempt-tools.test.ts executing exactly once.

Evidence

node scripts/run-vitest.mjs test/vitest-projects-config.test.ts
# 18 passed — audit reports neither missing nor duplicated

node scripts/run-vitest.mjs extensions/codex/src/app-server/run-attempt-tools.test.ts
# 3 passed — still runs, in the attempt-light shard

Both halves matter: dropping a duplicate claim is only correct if the test still has exactly one owner and still executes.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
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
steipete force-pushed the steipete/dedupe-run-attempt-tools-shard branch from 319013b to 49f4283 Compare August 19, 2026 07:38
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 19, 2026
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

Exact head is now 49f4283528fda4fbd7883c190f8e8898a064f83a after a patch-identical rebase. Please review this head before landing.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete
steipete merged commit e8fbaf2 into main Aug 19, 2026
135 checks passed
@steipete
steipete deleted the steipete/dedupe-run-attempt-tools-shard branch August 19, 2026 07:48
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants