Skip to content

ci: rustfmt drift + run only criterion benches — main red since June - #2

Merged
Chartres merged 3 commits into
mainfrom
claude/ci-fmt-bench
Sep 8, 2026
Merged

Chartres merged 3 commits into
mainfrom
claude/ci-fmt-bench

Conversation

@Chartres

@Chartres Chartres commented Sep 8, 2026

Copy link
Copy Markdown
Owner

What

cargo fmt --all applied (menu.rs, lib.rs had drifted), and the bench job runs cargo bench --workspace --benches -- --quick so only the criterion targets (harness = false) run; the old invocation also ran markdusk-app's lib unit tests under the libtest harness, which rejects --quick ("Unrecognized option").

Why

Every CI run on main has been red since the first commit (runs 1 and 2, June/July) on exactly these two jobs, and #1 (the landing page + discoverability kit) inherits the red. This is the fix #1 depends on; nothing else changes.

Proof

cargo fmt --all -- --check clean locally. The rust and bench jobs on this PR are the runnable check.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RicgHjbdeNb3ZGA6DMYMfS


Generated by Claude Code

…nce June

Two unrelated failures made every CI run red since the first commit:
`cargo fmt --check` (menu.rs / lib.rs drifted from rustfmt) and the bench
job, where `cargo bench --workspace -- --quick` also runs markdusk-app's
lib unit tests under the libtest harness, which rejects `--quick`
("Unrecognized option"). `--benches` limits the job to the criterion
targets (harness = false), which accept the flag. cargo fmt applied.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RicgHjbdeNb3ZGA6DMYMfS
Chartres and others added 2 commits September 8, 2026 10:30
Same red run, third cause: clippy 1.90 flags the nested if in the launch-arg
capture; edition 2024 let-chains make it one condition, no behaviour change.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RicgHjbdeNb3ZGA6DMYMfS
--benches still includes every lib target with the default bench = true, so
markdusk-app's unit tests ran under libtest and rejected --quick again.
Scope the job to the crate that owns the criterion benches.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RicgHjbdeNb3ZGA6DMYMfS
@Chartres
Chartres merged commit b671365 into main Sep 8, 2026
3 checks passed
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