Skip to content

test: split apply promotion tests - #364

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

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

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • split stale PR promotion coverage into test/apply-pr-promotion.test.ts
  • split supersession safety coverage into test/apply-pr-supersession-safety.test.ts
  • split duplicate PR coverage-proof gate tests into test/apply-pr-duplicate-proof.test.ts
  • move shared stale PR report helpers into test/helpers.ts

LOC

  • test/apply-pr-promotion.test.ts: 674
  • test/apply-pr-supersession-safety.test.ts: 845
  • test/apply-pr-duplicate-proof.test.ts: 733
  • test/helpers.ts: 766
  • test/clawsweeper.test.ts: 9726

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, 3:53 PM ET / 19:53 UTC.

Summary
This draft PR splits apply PR promotion, supersession-safety, and duplicate-proof tests out of test/clawsweeper.test.ts into focused test files and exports shared stale-PR report helpers from test/helpers.ts.

Reproducibility: not applicable. This is a test refactor PR rather than a bug report; source inspection checked the moved apply-decision coverage and helper exports.

Review metrics: 2 noteworthy metrics.

  • Files touched: 5 files: 3 added tests, 1 modified suite, 1 helper. The review surface is a test reorganization rather than runtime apply-lane behavior.
  • Diff balance: 2,287 additions, 2,241 deletions. The near-balanced size supports that this is mostly moving existing coverage into narrower files.

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] pnpm check was still pending during review, so merge should wait for that normal validation to finish.

Maintainer options:

  1. Decide the mitigation before merge
    Land the mechanical test split once the draft is ready and pnpm check passes, keeping production apply behavior unchanged.
  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 lane is needed; this member-authored draft PR is awaiting normal CI and maintainer handling.

Security
Cleared: Cleared: the diff only reorganizes tests and shared test helpers, with no workflows, dependencies, secrets handling, package metadata, or runtime code changed.

Review details

Best possible solution:

Land the mechanical test split once the draft is ready and pnpm check passes, keeping production apply behavior unchanged.

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

Not applicable. This is a test refactor PR rather than a bug report; source inspection checked the moved apply-decision coverage and helper exports.

Is this the best way to solve the issue?

Yes. Splitting clustered apply-promotion and supersession tests into focused files is the narrowest maintainable direction and matches the repository’s test organization guidance.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add P3: This is a low-risk test organization cleanup with no production behavior change.
  • 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: Real behavior proof is not required for this repository-member test-only refactor; the PR body reports pnpm run check as validation.

Label justifications:

  • P3: This is a low-risk test organization cleanup with no production behavior change.
  • 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: Real behavior proof is not required for this repository-member test-only refactor; the PR body reports pnpm run check as validation.
Evidence reviewed

What I checked:

Likely related people:

  • RomneyDa: The same author has several recent merged test-suite split commits on current main touching test/clawsweeper.test.ts and test/helpers.ts, so the routing signal is based on prior main history as well as this PR. (role: recent adjacent owner; confidence: high; commits: e73fecd30a70, 929e605da559, a811372b8fd0; files: test/clawsweeper.test.ts, test/helpers.ts)
  • Peter Steinberger: Blame and git log -S tie the sampled existing apply-decision tests and stale-PR helper history in current main to this author’s commits. (role: feature-history contributor; confidence: medium; commits: dc824915bb6c, be44378572ac; files: test/clawsweeper.test.ts, test/helpers.ts)
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 marked this pull request as ready for review June 24, 2026 19:58
@RomneyDa
RomneyDa merged commit 8d8565b into main Jun 24, 2026
10 checks passed
@RomneyDa
RomneyDa deleted the dallin/split-apply-promotion-tests branch June 24, 2026 19:59
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