Skip to content

fix(ci): clear repo-wide rustfmt + clippy drift in 8 crates (re-land of #129 minus 2 hunks) - #156

Closed
KooshaPari wants to merge 1 commit into
masterfrom
fix/ci-rustfmt-clippy-drift-clean
Closed

KooshaPari wants to merge 1 commit into
masterfrom
fix/ci-rustfmt-clippy-drift-clean

Conversation

@KooshaPari

@KooshaPari KooshaPari commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

User description

Re-land the rustfmt + clippy drift cleanup from #129 as a clean fix-forward directly on master, dropping the two defective hunks:

Files touched (8):

  • crates/jcode-app-core/examples/print_build_info.rs (rustfmt)
  • crates/jcode-base/tests/mcp_xj07_failure_modes.rs (rustfmt)
  • crates/jcode-core/examples/smoke.rs (rustfmt)
  • crates/jcode-core/src/stdin_detect_tests.rs (rustfmt: collapse to one line)
  • crates/jcode-harness-api-server/src/translate_tests.rs (rustfmt: drops trailing assert!() indentation and bracket form)
  • crates/jcode-harness-api/src/sockets.rs (clippy collapsible_if -> let chains)
  • crates/jcode-herdr/examples/round_trip_state.rs (rustfmt: use sort order)
  • crates/jcode-tui-mermaid/src/lib.rs (clippy empty_line_after_doc_comment)

No behavioural change; rustfmt + clippy lints only.

cargo fmt --all -- --check against this branch shows drift ONLY in crates/jcode-tui/src/tui/mod.rs, which is intentionally excluded (this branch does not touch that file). The remaining drift on master is what #150 closes.

Closes #153.


CodeAnt-AI Description

Resolve Rust formatting and lint check failures

What Changed

  • Aligns formatting and lint cleanup across eight crates so the repository’s formatting and quality checks pass.
  • No application behavior changes.

Impact

✅ Passing CI formatting checks
✅ Passing CI lint checks

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Re-land the rustfmt and clippy drift cleanup from PR #129, dropping the
two defective hunks for files owned by separate PRs:
- crates/jcode-tui/src/tui/mod.rs (kv_cache_problem re-export reorder):
  owned by PR #150 fix/tui-cache-expected-warm-unused-import.
- tests/cli_exit_status.rs (CARGO_BIN_EXE env! swap): owned by PR #152
  fix/cli-exit-status-kcode-bin, which uses CARGO_BIN_EXE_kcode and
  asserts the KCode-specific env/path semantics.

Files touched (8):
- crates/jcode-app-core/examples/print_build_info.rs (rustfmt)
- crates/jcode-base/tests/mcp_xj07_failure_modes.rs (rustfmt)
- crates/jcode-core/examples/smoke.rs (rustfmt)
- crates/jcode-core/src/stdin_detect_tests.rs (rustfmt: collapse to one line)
- crates/jcode-harness-api-server/src/translate_tests.rs (rustfmt: drops
  trailing assert!() indentation and bracket form)
- crates/jcode-harness-api/src/sockets.rs (clippy collapsible_if -> let chains)
- crates/jcode-herdr/examples/round_trip_state.rs (rustfmt: use sort order)
- crates/jcode-tui-mermaid/src/lib.rs (clippy empty_line_after_doc_comment)

No behavioural change; rustfmt + clippy lints only.

tx-agent: jcode
tx-validated: lint
tx-task: ci-stabilization-2026-10-19
tx-scope: jcode-app-core,jcode-base,jcode-core,jcode-harness-api-server,jcode-harness-api,jcode-herdr,jcode-tui-mermaid
tx-intent: close repo-wide rustfmt + clippy drift surfaced by CI Format and Quality Guardrails gates
Closes #NEW_FOR_PR_A
Copilot AI balanced review requested due to automatic review settings October 20, 2026 01:44
@codeant-ai

codeant-ai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR b4ddfd5 Oct 20, 2026 · 01:44 01:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codeant-ai

codeant-ai Bot commented Oct 20, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 43 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 5216e68b-e5b0-47b2-b351-2f21b5318f61
📥 Commits

Reviewing files that changed from the base of the PR and between b988614 and b4ddfd5.

📒 Files selected for processing: 8
  • crates/jcode-app-core/examples/print_build_info.rs
  • crates/jcode-base/tests/mcp_xj07_failure_modes.rs
  • crates/jcode-core/examples/smoke.rs
  • crates/jcode-core/src/stdin_detect_tests.rs
  • crates/jcode-harness-api-server/src/translate_tests.rs
  • crates/jcode-harness-api/src/sockets.rs
  • crates/jcode-herdr/examples/round_trip_state.rs
  • crates/jcode-tui-mermaid/src/lib.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codeant-ai

codeant-ai Bot commented Oct 20, 2026

Copy link
Copy Markdown

CodeAnt Nitpicks

2 code suggestions

1. code == code is always true, so this test accepts any error code and misses regressions from the expected UnknownSession or UnknownRequest values.

Api mismatch · crates/jcode-harness-api-server/src/translate_tests.rs:3523


2. code == code is always true, so this test accepts the wrong error code for the session mismatch and invalid-session cases.

Api mismatch · crates/jcode-harness-api-server/src/translate_tests.rs:3600

@codeant-ai

codeant-ai Bot commented Oct 20, 2026

Copy link
Copy Markdown

CodeAnt PR Risk: Low Risk

  • The PR appears safe to merge; the visible changes are formatting and import ordering, and the runtime path checks preserve their prior behavior.

Assessed commit: b4ddfd53f3a4

@kilo-code-bot

kilo-code-bot Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Overview

PR #156 is a clean, mechanical rustfmt + clippy drift cleanup across 8 crates (re-land of #129 minus the two hunks owned by #150 and #152). No behavioral change; formatting and import ordering only.

Files Reviewed (8 files)

  • crates/jcode-app-core/examples/print_build_info.rs — rustfmt: wraps println! calls
  • crates/jcode-base/tests/mcp_xj07_failure_modes.rs — rustfmt: wraps assert_eq!/assert!
  • crates/jcode-core/examples/smoke.rs — rustfmt: wraps println!
  • crates/jcode-core/src/stdin_detect_tests.rs — rustfmt: collapses assert_eq! to one line
  • crates/jcode-harness-api-server/src/translate_tests.rs — rustfmt: assert! bracket/indentation form (two spots)
  • crates/jcode-harness-api/src/sockets.rs — clippy: collapsible_if → let-chains (four spots; semantics unchanged)
  • crates/jcode-herdr/examples/round_trip_state.rs — rustfmt: use sort order
  • crates/jcode-tui-mermaid/src/lib.rs — clippy: removes blank line after doc comment

No compilation, clippy, test, or security issues introduced by the changed lines. Note: CodeAnt previously flagged a pre-existing code == code (always-true guard) in translate_tests.rs; that logic is unchanged by this PR (only re-indented) and is out of scope for a formatting-only change.


Reviewed by free · Input: 36.4K · Output: 8.2K · Cached: 69.4K

@KooshaPari

Copy link
Copy Markdown
Owner Author

Closing as already landed.

Evidence: git merge-tree --write-tree origin/master origin/pr156 produces tree c1912771b742, byte-identical to master's tree, and all 8 changed file blobs match master exactly. Merging this PR would change nothing.

The repo-wide rustfmt/clippy drift this addressed has since been cleared by the merged CI-fix wave (#190, #194 f2500f36c, #203). Format now passes on master.

Reopen if any of the 8 files regress.

@KooshaPari KooshaPari closed this Oct 28, 2026
@KooshaPari
KooshaPari deleted the fix/ci-rustfmt-clippy-drift-clean branch November 26, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): clear repo-wide rustfmt + clippy drift in 8 crates (re-land of #129 minus 2 hunks)

2 participants