Skip to content

fix(tooling): reject misformatted added files in changed checks - #104605

Merged
steipete merged 1 commit into
mainfrom
codex/fix-check-changed-new-files
Jul 11, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-check-changed-new-files

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where developers running pnpm check:changed could pass remote Testbox validation with a newly added misformatted file, then fail CI's full-repo oxfmt shard. This affected the added test files seen in #104478, #104582, and #104438.

Why This Change Was Made

The changed gate now runs oxfmt against the same committed, staged, unstaged, and untracked path set used for lane selection. Unmatched paths remain harmless for deleted or unsupported files, and an explicit option boundary protects dash-prefixed repository paths.

User Impact

Developers now get the CI formatting failure during pnpm check:changed, before pushing or waiting for the full CI format shard. No runtime product behavior changes.

Evidence

  • Before: a raw-sync Testbox run detected a newly added misformatted *.test.ts path but exited 0 because no formatting command was planned.
  • After: the same raw-sync scenario exited 1 in format changed files and named the added probe; after formatting, the full changed gate exited 0.
  • corepack pnpm test test/scripts/changed-lanes.test.ts — 92/92 tests passed on Blacksmith Testbox tbx_01kx94hs7tn98e72er7g77bwpa.
  • OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 corepack pnpm check:changed — passed on the same Testbox, with oxfmt checking all four changed files.
  • .agents/skills/autoreview/scripts/autoreview --mode local --stream-engine-output — clean after addressing the dash-prefixed path finding.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S maintainer Maintainer-authored PR labels Jul 11, 2026
@steipete steipete self-assigned this Jul 11, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready.

  • Root cause: the canonical changed-path resolver already included committed, staged, unstaged, and untracked additions; check:changed simply never scheduled oxfmt.
  • Before/after: a raw-sync Testbox run detected a misformatted untracked *.test.ts and exited 0 before the patch; the patched gate failed at format changed files and named the probe, then passed after formatting.
  • Focused proof: corepack pnpm test test/scripts/changed-lanes.test.ts — 92/92 passed on Blacksmith Testbox tbx_01kx94hs7tn98e72er7g77bwpa.
  • Changed gate: OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 corepack pnpm check:changed — passed on the same Testbox with all four changed files checked by oxfmt.
  • Exact-head CI: run https://github.com/openclaw/openclaw/actions/runs/29162616443 passed for cc83bc2b2c8e24938e87affc7bfaf4ee52b4cd65.
  • Repo-native prepare: OPENCLAW_TESTBOX=1 scripts/pr prepare-run 104605 completed with hosted_exact_or_recent_rebase gates.
  • Autoreview: clean after adding the explicit option boundary and dash-prefixed path coverage.

Known proof gaps: none.

@steipete
steipete merged commit 986304e into main Jul 11, 2026
78 of 83 checks passed
@steipete
steipete deleted the codex/fix-check-changed-new-files branch July 11, 2026 18:02
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant