Repository navigation
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a2140248-0a6d-4c90-82bd-db163885d135
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a2140248-0a6d-4c90-82bd-db163885d135
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a2140248-0a6d-4c90-82bd-db163885d135
paldepind
marked this pull request as ready for review
December 2, 2026 14:01
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Removing the unit-test step leaves the CI helper’s selection and formatting/test-command tests without any CI invocation.
1 open issue
What changed in this PR
Extends selective Rust CI checks to run formatting checks and tests alongside Clippy, consolidating overlapping workflows.
Changes:
- Adds formatting and test commands for affected workspace packages.
- Skips tests requiring unavailable Swift tooling or upstream repository layouts.
- Expands helper tests and removes redundant CI jobs.
| File | Description |
|---|---|
misc/scripts/rust-checks/test_rust_checks.py |
Adds selection, formatting, and test-command coverage. |
misc/scripts/rust-checks/rust_checks.py |
Adds formatting checks and filtered test execution. |
misc/scripts/cargo-clippy/test_cargo_clippy.py |
Removes the superseded test suite. |
.github/workflows/yeast-test.yml |
Removes the dedicated Yeast test workflow. |
.github/workflows/tree-sitter-extractor-test.yml |
Removes dedicated formatting and test jobs. |
.github/workflows/rust.yml |
Removes redundant formatting and compilation jobs. |
.github/workflows/rust-checks.yml |
Runs centralized formatting, Clippy, and tests. |
.github/workflows/ql-for-ql-tests.yml |
Removes the separate formatting step. |
.github/workflows/cpp-bmn.yml |
Removes the redundant Cargo job. |
Review effort: Balanced (adaptive)
| fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }} | ||
| - name: Test package selection | ||
| run: python3 -m unittest discover -s misc/scripts/cargo-clippy | ||
| - name: Select affected packages |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This expands on #23257 to systematically run
rustfmtandcargo test(in addition to Clippy) for changed Rustcode. This partially or entirely subsumes some of the existing workflows for Rust code.
Tests for the unified extractor,
swift-syntax-rsandast-generatorare skipped. A comment in the Python script explains why.I suggest a cursory review of the Python script.
Here's a PR based on this PR that shows this failing for malformatted Rust code: #23329