Skip to content

fix(ci): restore rustfmt on master - #1739

Merged
1jehuang merged 1 commit into
1jehuang:masterfrom
mg-mg-mg:fix/master-rustfmt-ci
Oct 8, 2026
Merged

1jehuang merged 1 commit into
1jehuang:masterfrom
mg-mg-mg:fix/master-rustfmt-ci

Conversation

@mg-mg-mg

@mg-mg-mg mg-mg-mg commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Problem

A clean upstream master at a0c41dc2f fails cargo fmt --all -- --check in src/cli/commands_tests.rs at the provider-label test macro. Both Format and the first step of Quality Guardrails fail for unrelated PRs, including #1727.

Change

Apply only the layout required by rustfmt. No test behavior or size-budget baseline changes. The existing code-size drift is tracked in #692 and being addressed independently in #1701.

Validation

  • Reproduced the rustfmt failure on pristine master before the change.
  • cargo fmt --all -- --check passes after the change.
  • git diff --check passes.
  • The code-size and test-size checks still fail independently on pristine master.

Refs #692.

The provider-label test macro was merged without rustfmt layout, so Format and the early Quality Guardrails step fail even on a clean master. Match rustfmt without changing test behavior or the separate size-budget policy.

Tested: cargo fmt --all -- --check (pass), git diff --check (pass)
@greptile-apps

greptile-apps Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Low risk] Reformats a test file for code style.

Safe to merge: the workspace formatting check passes, and the test-helper expression retains its existing behavior.

What we checked:

  • T-Rex ran the provider-label-validation.py script from the repository and recorded its invocation details and exit status. T-Rex
  • T-Rex collected the full observed output, exit statuses, and base/head comparison logs to document the validation result. T-Rex
  • T-Rex verified that the whitespace-stripped source SHA256 is identical between base and head, confirming content parity. T-Rex
  • T-Rex noted an initial stdin-mode attempt produced the expected base diff but rustfmt exit 0 causing a harness assertion, then re-ran with temporary Git-blob copies and established the expected base exit 1 and head exit 0 without modifying tracked sources. T-Rex

Summary

This PR wraps the existing anyhow::anyhow! call in src/cli/commands_tests.rs across multiple lines to match rustfmt.

  • The base file fails its formatting check at the changed expression; the head file passes. The full head workspace also passes cargo fmt --all -- --check.
  • The source differs only by the intended whitespace insertion. The error-message string and test behavior are unchanged.
  • Both the working-tree and base-to-head git diff --check checks pass.
  • No actionable issues were found. This formatting-only change is safe to merge.
  • mg-mg-mg acknowledged the existing code-size and test-size check failures as independent of this change. The PR description defers code-size drift to CI red on master: code-size ratchet exceeded by desktop2/transcript.rs (2364 -> 2799 LOC) #692 and its separate remediation in ci: sync code-size budget with master #1701; no size-budget baseline changes are included here.

Reviews (1) · Last reviewed commit: "fix(ci): restore master rustfmt check"

@1jehuang
1jehuang merged commit ff7eb9a into 1jehuang:master Oct 8, 2026
11 of 12 checks passed
1jehuang added a commit that referenced this pull request Oct 8, 2026
…#1740)

#1736 and #1739 covered the mcp.rs lint and commands_tests.rs format.
This handles the rest:
- google login: use is_multiple_of (manual_is_multiple_of)
- tui: gate a test-only copy helper and import, drop a needless mut
- rustfmt the openai-runtime drift reported by hosted CI
@1jehuang

1jehuang commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Merged, thank you! The rest of #1740 is going in via #1764.

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

1jehuang added a commit that referenced this pull request Oct 8, 2026
…#1740)

#1736 and #1739 covered the mcp.rs lint and commands_tests.rs format.
This handles the rest:
- google login: use is_multiple_of (manual_is_multiple_of)
- tui: gate a test-only copy helper and import, drop a needless mut
- rustfmt the openai-runtime drift reported by hosted CI
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.

2 participants