Skip to content

test: split Codex and workflow tests - #366

Merged
RomneyDa merged 1 commit into
mainfrom
dallin/split-next-apply-tests
Jun 24, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
dallin/split-next-apply-tests

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jun 24, 2026 •

Copy link
Copy Markdown
Member

part of a series on not having 10k+ line test files

Summary

  • split Codex runner and Codex failure tests into test/codex-review-runner.test.ts
  • split decision parser and root-cause parser tests into test/decision-parser.test.ts
  • move workflow-shape and read-only checkout mode tests into test/sweep-workflow.test.ts

LOC

  • test/codex-review-runner.test.ts: 808
  • test/decision-parser.test.ts: 581
  • test/sweep-workflow.test.ts: 782
  • test/helpers.ts: 766
  • test/clawsweeper.test.ts: 5549

Validation

  • pnpm run check

@clawsweeper

clawsweeper Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 24, 2026, 5:56 PM ET / 21:56 UTC.

Summary
The branch moves Codex runner/failure tests, decision/root-cause parser tests, workflow-shape tests, and read-only checkout mode tests out of the monolithic test file into focused test files.

Reproducibility: not applicable. this is a test-suite cleanup PR rather than a bug report. Source review checked that the new top-level test files remain inside the existing test/*.test.ts runner glob.

Review metrics: 2 noteworthy metrics.

  • Test files changed: 2 added, 2 modified, 0 removed. The quantified scope confirms this is a focused test-suite restructuring rather than a runtime behavior change.
  • Net line movement: 2,166 added, 2,145 deleted. The near-even churn is consistent with moving existing tests into focused files, which is the main review concern for this PR.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Risk before merge

  • [P1] The inspected status rollup still had pnpm check and one CodeQL job in progress, so merge should wait for normal branch-protection results.

Maintainer options:

  1. Decide the mitigation before merge
    Land the focused test split after CI passes, keeping the monolithic test file smaller while preserving the existing coverage surface.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • No automated repair is needed; this maintainer-authored cleanup PR has no concrete patch defect from review.

Security
Cleared: The diff only reorganizes test files and does not change dependencies, workflows, secrets, install scripts, or runtime execution paths.

Review details

Best possible solution:

Land the focused test split after CI passes, keeping the monolithic test file smaller while preserving the existing coverage surface.

Do we have a high-confidence way to reproduce the issue?

Not applicable; this is a test-suite cleanup PR rather than a bug report. Source review checked that the new top-level test files remain inside the existing test/*.test.ts runner glob.

Is this the best way to solve the issue?

Yes; moving these focused groups out of test/clawsweeper.test.ts is a narrow maintainable cleanup that matches repository test-organization guidance. The remaining validation need is ordinary CI completion.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against ee4f5c180b47.

Label changes

Label changes:

  • add P3: This is a low-risk test organization cleanup with no runtime code changes or user-facing behavior impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external contributor proof gate does not apply to this member-authored PR; the PR body reports pnpm run check as validation.

Label justifications:

  • P3: This is a low-risk test organization cleanup with no runtime code changes or user-facing behavior impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external contributor proof gate does not apply to this member-authored PR; the PR body reports pnpm run check as validation.
Evidence reviewed

What I checked:

  • Repository policy read: AGENTS.md was read fully; its test guidance favors focused files under test/*.test.ts instead of growing test/clawsweeper.test.ts, which matches this split. (AGENTS.md:11, ee4f5c180b47)
  • PR diff scope: PR metadata shows two added test files and two modified test files, with 2,166 additions and 2,145 deletions and no runtime source, dependency, or workflow file changes. (9a086f0ae771)
  • Test discovery check: The existing package scripts run node --test over test/*.test.ts, so the new focused top-level test files remain included in unit and full test runs. (package.json:75, ee4f5c180b47)
  • Current main status: Current main is ee4f5c1 and does not include this exact split; the PR head is a separate test split commit 9a086f0. (ee4f5c180b47)
  • Related PR search: GitHub search found adjacent merged test-splitting PRs in the same series, but none supersedes this unmerged Codex/workflow split.
  • Checkout cleanliness: The local target checkout remained byte-for-byte clean after read-only inspection. (ee4f5c180b47)

Likely related people:

  • RomneyDa: Recent main history shows Dallin Romney landing the adjacent test-splitting series and repeatedly touching test/clawsweeper.test.ts, so this path is strongly associated with their current cleanup work. (role: recent test-suite split owner; confidence: high; commits: 929e605da559, e73fecd30a70, 8d8565bdea3b; files: test/clawsweeper.test.ts, test/codex-review-runner.test.ts, test/decision-parser.test.ts)
  • vincentkoc: Git history shows Vincent Koc introduced the existing sweep workflow test file and has recent CI/workflow changes adjacent to this PR's workflow-test coverage. (role: adjacent workflow/test automation contributor; confidence: medium; commits: a6ee02e323c1, 68a0ffc770f1, f69d9debf487; files: test/sweep-workflow.test.ts, .github/workflows/sweep.yml)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. labels Jun 24, 2026
@RomneyDa
RomneyDa merged commit f337079 into main Jun 24, 2026
10 of 11 checks passed
@RomneyDa
RomneyDa deleted the dallin/split-next-apply-tests branch June 24, 2026 22:04
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant