Skip to content

chore(ci): unblock red CI on master (fmt, clippy, ratchet baselines) - #581

Merged
1jehuang merged 3 commits into
masterfrom
chore/fix-master-fmt
Jul 24, 2026
Merged

1jehuang merged 3 commits into
masterfrom
chore/fix-master-fmt

Conversation

@1jehuang

@1jehuang 1jehuang commented Jul 24, 2026 •

Copy link
Copy Markdown
Owner

master currently fails the Format and Quality Guardrails jobs, which turns CI red on every open PR. Three independent causes, fixed here:

  1. Formatting drift - cargo fmt --all --check reported 27 diffs on master (jcode-desktop2, jcode-fuzzy, jcode-harness-api*, some jcode-tui files). Fixed with a plain cargo fmt --all; no logic changes.
  2. Clippy error - jcode-fuzzy tripped clippy::trim_split_whitespace (-D warnings), failing the whole guardrails job. Removed the redundant .trim(); split_whitespace already ignores leading and trailing whitespace, so behavior is unchanged.
  3. Ratchet baselines stale - code-size, test-size, panic, and swallowed-error baselines had drifted behind merged work. Re-synced with --update, matching the approach in chore(ci): sync ratchet baselines after merged growth (refs #547) #550. The wildcard re-export ratchet was fixed properly instead of re-baselined: jcode-base/src/output_style.rs now re-exports the five output_style items explicitly rather than with a glob, so the cross-crate total drops back to 16.

Verification, all against a clean worktree of this branch's committed tree:

  • cargo fmt --all --check clean
  • cargo clippy --all-targets --all-features -- -D warnings clean
  • all six ratchets pass (code size, test size, panic, swallowed error, wildcard re-export, dependency boundaries)
  • scripts/check_warning_budget.sh passes
  • cargo check --workspace --all-targets clean

Refs #547.


— Jcode agent (automated triage), on behalf of @1jehuang

@1jehuang

Copy link
Copy Markdown
Owner Author

Added a second commit fixing the one clippy error that was blocking Quality Guardrails after the formatting step passed: jcode-fuzzy had a redundant .trim() before .split_whitespace() (clippy::trim_split_whitespace, denied by -D warnings). split_whitespace already ignores leading and trailing whitespace, so this is behavior-preserving; cargo test -p jcode-fuzzy passes.

cargo clippy --all-targets --all-features -- -D warnings is now clean on this branch.

The remaining ratchet baselines (code size, test size, panic, swallowed error) are still stale on master per #547 and are being handled separately, so they are intentionally not touched here.


— Jcode agent (automated triage), on behalf of @1jehuang

…synced ratchet baselines (refs #547)

- Replace the cross-crate glob re-export in jcode-base/src/output_style.rs
  with explicit items so the wildcard ratchet passes without a baseline bump.
- Re-sync the code-size, test-size, panic, and swallowed-error baselines to
  current master, matching the approach in #550.
@1jehuang
1jehuang force-pushed the chore/fix-master-fmt branch from 31f7803 to 7ed0dce Compare July 24, 2026 20:26
@1jehuang 1jehuang changed the title style: cargo fmt --all to unblock red CI on master chore(ci): unblock red CI on master (fmt, clippy, ratchet baselines) Jul 24, 2026
@1jehuang

Copy link
Copy Markdown
Owner Author

CI confirms the unblock works: Format and Quality Guardrails both pass here, where they fail on every other open PR against current master. Build & Test (ubuntu-latest) also passes.

Suggested merge order: this PR first, then rebase #580 (the triage fix batch) so its Format/Guardrails jobs go green too.


— Jcode agent (automated triage), on behalf of @1jehuang

@1jehuang
1jehuang merged commit e354460 into master Jul 24, 2026
11 checks passed
@1jehuang
1jehuang deleted the chore/fix-master-fmt branch July 24, 2026 20:44
vpelikh pushed a commit to vpelikh/jcode that referenced this pull request Aug 30, 2026
…jehuang#581)

* style: cargo fmt --all to unblock CI on master

* fix(fuzzy): drop redundant trim before split_whitespace to satisfy clippy

* chore(ci): unblock guardrails - explicit output_style re-exports and synced ratchet baselines (refs 1jehuang#547)

- Replace the cross-crate glob re-export in jcode-base/src/output_style.rs
  with explicit items so the wildcard ratchet passes without a baseline bump.
- Re-sync the code-size, test-size, panic, and swallowed-error baselines to
  current master, matching the approach in 1jehuang#550.
vpelikh added a commit to vpelikh/jcode that referenced this pull request Sep 3, 2026
…jehuang#581)

* style: cargo fmt --all to unblock CI on master

* fix(fuzzy): drop redundant trim before split_whitespace to satisfy clippy

* chore(ci): unblock guardrails - explicit output_style re-exports and synced ratchet baselines (refs 1jehuang#547)

- Replace the cross-crate glob re-export in jcode-base/src/output_style.rs
  with explicit items so the wildcard ratchet passes without a baseline bump.
- Re-sync the code-size, test-size, panic, and swallowed-error baselines to
  current master, matching the approach in 1jehuang#550.
akvarel pushed a commit to akvarel/jcode that referenced this pull request Sep 18, 2026
…jehuang#581)

* style: cargo fmt --all to unblock CI on master

* fix(fuzzy): drop redundant trim before split_whitespace to satisfy clippy

* chore(ci): unblock guardrails - explicit output_style re-exports and synced ratchet baselines (refs 1jehuang#547)

- Replace the cross-crate glob re-export in jcode-base/src/output_style.rs
  with explicit items so the wildcard ratchet passes without a baseline bump.
- Re-sync the code-size, test-size, panic, and swallowed-error baselines to
  current master, matching the approach in 1jehuang#550.
KooshaPari pushed a commit to KooshaPari/KCode that referenced this pull request Oct 9, 2026
…jehuang#581)

* style: cargo fmt --all to unblock CI on master

* fix(fuzzy): drop redundant trim before split_whitespace to satisfy clippy

* chore(ci): unblock guardrails - explicit output_style re-exports and synced ratchet baselines (refs 1jehuang#547)

- Replace the cross-crate glob re-export in jcode-base/src/output_style.rs
  with explicit items so the wildcard ratchet passes without a baseline bump.
- Re-sync the code-size, test-size, panic, and swallowed-error baselines to
  current master, matching the approach in 1jehuang#550.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant