Repository navigation
test(checks): pin changed-format lane coverage for added files - #104771
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 11, 2026, 7:17 PM ET / 23:17 UTC. Summary PR surface: Tests +94. Total +94 across 1 file. Reproducibility: not applicable. This PR adds regression coverage for an already-merged tooling fix rather than reporting a new current-main product bug. The PR body nevertheless provides a concrete historical before/after Testbox path for the original formatting gap. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the focused regression tests after the normal current-head merge/check refresh, preserving coverage for staged path planning and actual added/deleted-file formatter verdicts. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds regression coverage for an already-merged tooling fix rather than reporting a new current-main product bug. The PR body nevertheless provides a concrete historical before/after Testbox path for the original formatting gap. Is this the best way to solve the issue? Yes. Testing both staged-path planning and the actual repository-pinned formatter verdict at the centralized changed-check seam is the narrowest maintainable regression fix and avoids a duplicate verification path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 453c049ac89d. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests +94. Total +94 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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
|
|
Merged via squash.
|
Related: #104318
What Problem This Solves
Three program PRs passed remote
pnpm check:changedand then failed CI's full-repo format shard on newly added files. Root cause (confirmed): the changed-check plan emitted no oxfmt command at all — no lane owned formatting. #104605 added theformat changed fileslane yesterday, but nothing pins the behavior, which is how the gap existed silently in the first place.Why This Change Was Made
Adds the missing regression net (test-only): plan coverage for staged added/modified/deleted paths, plus runtime-verdict tests that execute the exact planned argv with the repo-pinned oxfmt — a misformatted added file fails the lane, a formatted one passes, and deleted paths don't false-positive (the deleted-lines scanner class). The upstream lane fix was verified sound en route (ignore-pattern handling on explicit args,
--handling, missing-path tolerance).User Impact
Maintainer-facing: the pre-push gate now provably matches CI's format verdict for added files, and can't silently lose its format lane again.
Evidence
check:changedfails on a temp-committed misformatted file (tbx_01kx9n4f5k8tcgwnm1685g0qm0) and passes after formatting (tbx_01kx9nfdx7eq83kanhr6605v9v).pnpm test test/scriptsgreen (changed-lanes 97/97) +check:changedall lanes (tbx_01kx9pe0gs1hrb0cryfdeqhstt); repo-wide format green up front.lint:docker-e2efails on pristine main —scripts/e2e/sqlite-sessions-transcripts-flip-proof.tsimports../../src/*(refactor: flip sessions and transcripts to sqlite storage #98236 fallout).