Skip to content

fix(ci): restore fmt and clippy gates under current stable - #9

Merged
hsusul merged 1 commit into
mainfrom
fix/ci-unbreak-main
Aug 22, 2026
Merged

fix(ci): restore fmt and clippy gates under current stable#9
hsusul merged 1 commit into
mainfrom
fix/ci-unbreak-main

Conversation

@hsusul

@hsusul hsusul commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Problem

main is red on two CI gates under rustc 1.97.1:

  • cargo fmt --all -- --check — 18 sites
  • cargo clippy -p lore-core -p lore-ipc --all-targets --all-features -- -D warnings — 3 errors

No source change caused this. clippy::useless_concat and clippy::unneeded_struct_pattern are recent lint additions, and CI uses unpinned dtolnay/rust-toolchain@stable with -D warnings, so a toolchain bump breaks the build on its own.

Changes

Three clippy fixes, all in test code, all semantics-preserving:

File Fix Lint
crates/lore-core/src/adapters/codex.rs two single-argument concat!(..) → plain string literal useless_concat
crates/lore-core/tests/ingest_file.rs IngestOutcome::Skipped { .. }IngestOutcome::Skipped (unit variant) unneeded_struct_pattern

Then cargo fmt --all — 18 over-width assertion lines rewrapped at the 100-column limit across both adapters, adapters/common.rs, and four integration tests. Mechanical only; I reviewed the diff before applying.

No production code is touched. Assertion semantics are identical in all three fixes.

Verification

All run locally, exactly as CI invokes them:

Gate Result
cargo fmt --all -- --check pass
cargo clippy -p lore-core -p lore-ipc --all-targets --all-features -- -D warnings pass
cargo clippy -p lore-app --all-targets -- -D warnings pass
cargo test --locked -p lore-core -p lore-ipc --all-targets 346 pass, 0 fail, 4 ignored
cargo test -p lore-core --test no_network_in_archive pass
cargo test -p lore-app --test no_egress pass
./scripts/egress-check.sh pass (205 tests, network denied)
IPC bindings in sync pass
npm run lint / typecheck / test pass, 148 tests

Follow-up

This will recur on the next rustc release. A rust-toolchain.toml pin is the next PR in this series.

`cargo fmt --all -- --check` and `cargo clippy -D warnings` both failed on
main under rustc 1.97.1. No source change caused this: `useless_concat` and
`unneeded_struct_pattern` are recent clippy lints, and CI pins nothing.

Three clippy fixes, all in test code and all semantics-preserving:
  - codex.rs: two single-argument `concat!(..)` calls collapsed to plain
    string literals (clippy::useless_concat).
  - ingest_file.rs: `IngestOutcome::Skipped { .. }` -> `IngestOutcome::Skipped`;
    it is a unit variant (clippy::unneeded_struct_pattern).

Then `cargo fmt --all`, which rewrapped 18 over-width assertion lines across
the two adapters, adapters/common.rs, and four integration tests. Mechanical
line-wrapping at the 100-column limit only.

No production code touched. Verified green: fmt, clippy (lore-core/lore-ipc
and lore-app), cargo test --locked --all-targets (346 pass / 4 ignored),
no_network_in_archive, no_egress, egress-check.sh, IPC bindings in sync,
npm lint/typecheck/test (148 pass).

Follow-up: pinning the toolchain so this cannot recur.
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