Add GitHub Actions CI, pin Rust toolchain, and enable workspace lints; fix clippy issues#6
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughAdds GitHub Actions CI and pins Rust toolchain to 1.92.0; introduces workspace-level Clippy lints denying Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
db9528d to
5ac47f8
Compare
Motivation
rustfmt/clippybehavior is consistent across environments.cargo clippy --workspace --all-targets --all-features -- -D warningscan run under a single policy.Description
.github/workflows/ci.ymlwith three jobs:formatting(runscargo fmt --all --check),clippy(runscargo clippy --workspace --all-targets --all-features -- -D warnings), andtest(runscargo test --workspace --all-targets --all-features).rust-toolchain.tomlpinned to1.92.0and requestclippy/rustfmtcomponents so local and CI toolchains match.Cargo.toml([workspace.lints.clippy]) and opt each crate into the shared lint policy by adding[lints] workspace = trueto crateCargo.tomls.ifincrates/garuda-segment/src/lib.rs, add#![allow(dead_code)]to test helpers incrates/garuda-engine/tests/common.rs, add an#[expect(...)]justification on a test that must callset_readonly(false), replace aOptimizeOptions::default()call withOptimizeOptionsin a test, and apply repository-widecargo fmtnormalization (minor formatting changes incrates/garuda-engine/src/query.rs,crates/garuda-engine/src/validation.rs,garuda/src/main.rs, and test files).Testing
cargo fmt --all --checklocally and it passed after runningcargo fmt --allto normalize formatting.cargo clippy --workspace --all-targets --all-features -- -D warningslocally and resolved lints so Clippy now completes under the workspace policy.cargo test --workspace --all-targets --all-featureslocally and observed the existing test failures remain: three failing tests incrates/garuda-engine/tests/test_collection_exception.rs(add_column_rolls_back_state_when_persist_fails,failed_checkpoint_restores_rewritten_segment_files, andfailed_persist_does_not_publish_new_manifest_on_reopen), so the CItestjob reflects the repository's current behavior rather than masking those failures.Codex Task
Summary by CodeRabbit
New Features
Chores
Refactor