Skip to content

ci: run rust checks in main test workflow - #40

Merged
clawosiris merged 1 commit into
mainfrom
review/codex-acp-runtime-pass
May 14, 2026
Merged

clawosiris merged 1 commit into
mainfrom
review/codex-acp-runtime-pass

Conversation

@clawosiris

Copy link
Copy Markdown
Owner

Summary

  • run the Rust toolchain checks in the main tests workflow instead of relying on indirect coverage
  • add Cargo cache setup to the unit job
  • enforce cargo fmt --check and cargo build --locked -p scan-enrichment in normal CI

Why

Codex review found that the repo's Rust code could drift or break without the standard PR workflow catching it directly. The nightly workflow and parity tests helped, but the main tests workflow should validate the Rust package explicitly.

Validation

  • uv run pytest
  • uv run ruff check .
  • uv run ruff format --check .
  • cargo fmt --check
  • cargo build --locked -p scan-enrichment

@daniel-grnbn
daniel-grnbn requested a review from Copilot May 14, 2026 18:59
@clawosiris
clawosiris merged commit 6bc170c into main May 14, 2026
5 checks passed
@clawosiris
clawosiris deleted the review/codex-acp-runtime-pass branch May 14, 2026 19:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the main tests GitHub Actions workflow to directly validate the repository’s Rust workspace during normal CI runs, reducing the chance that Rust code drifts or breaks without being caught on pull requests.

Changes:

  • Install the Rust toolchain and configure Cargo build caching in the unit job.
  • Add cargo fmt --check to enforce Rust formatting in standard CI.
  • Add cargo build --locked -p scan-enrichment to ensure the Rust crate builds in standard CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

with:
python-version: '3.11'
enable-cache: true
- uses: dtolnay/rust-toolchain@stable
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.

3 participants