Repository navigation
Conversation
The Format job fails at a6ba784: `cargo fmt --all -- --check` exits 1 with exactly three hunks in two files after checking the whole tree (1360 .rs files) plus scripts/check_module_files.py (OK): crates/jcode-provider-openai-runtime/src/lib.rs:966 crates/jcode-tui/src/tui/app/onboarding_flow_control.rs:633 crates/jcode-tui/src/tui/app/onboarding_flow_control.rs:874 Bisected each hunk with `rustfmt --check` over candidate trees: lib.rs:966 is clean at f5d963a and dirty at bda5f3d (2026-10-06, the hunk reported in #1740); both onboarding hunks are clean at 7df55c3 and dirty at 72faaf1 (2026-10-08T23:08:28-07:00). That commit postdates PR #1764's head (13375d1), so #1764 no longer restores the gate on its own. The change is rustfmt's own output applied verbatim against a clean archive of a6ba784: exit 1 before, exit 0 after, module check still OK. No hand-written formatting judgement. Fixes the formatting half of #1740.
|
|
Superseded by #1354. Closing to avoid a second review round on the same two files; nothing here is unique. #1354 is open against the current master tip (
Those two files are a strict subset of #1354's 20 changed files, so the fix is not being dropped, it just has a newer home. This PR's base is Re-verified at |
Restore the
Formatjob on master (three rustfmt hunks, two files)Formatfails on master ata6ba7844f:Exactly three hunks in two files, nothing else in the tree (1360
.rsfiles).The patch is rustfmt's own output, not hand-written formatting judgement: after
applying it,
cargo fmt --all -- --checkexits 0 and the module check stillpasses.
Which commit introduced each, by bisecting with
rustfmt --checkover thecandidate trees:
lib.rs:966is clean atf5d963a4eand dirty atbda5f3d9c(2026-10-06),the hunk reported in master: clippy (-D warnings) and rustfmt gates are red on a0c41dc2f (stable 1.99.0) #1740.
onboarding_flow_control.rshunks are clean at7df55c30fand dirty at72faaf145(2026-10-08T23:08:28-07:00).That second date is after PR #1764's head (
13375d186, 21:28:14-07:00), andgit diff 21eb960a2 13375d186 -- crates/jcode-tui/src/tui/app/onboarding_flow_control.rsis empty. #1764 therefore no longer restores the gate on its own: its own run
already fails
Quality Guardrailsat the oversized-file ratchet step while itsCheck formattingstep passes. This change is independent of #1764 and can landbefore or after it.
Reproduce:
(The
commandprefix matters only if you have the repo'sdev_cargoshellshim installed; it
cds to the checkout when the caller is inside it.)Fixes the formatting half of #1740. Happy for this to be squashed into whatever
PR lands first; it is a pure
cargo fmt --allapplication againsta6ba7844f.