Repository navigation
ci: fix skipped Rust check names and Copilot change paths - #342134
Merged
Merged
Conversation
When GitHub skips a job, it does not evaluate expressions in the job's name. The Rust jobs skipped inside the shared reusable workflow, whose job name is ${{ inputs.job_name }}, so they reported as 'Linux / inputs.job_name'. The required Linux / CLI check then never reported, which blocks every pull request that does not change the CLI.
Run both Rust checks as jobs with fixed names in pr.yml, and move their shared steps from the reusable workflow into a composite action.
Also run the Copilot checks when build/npm/dirs.ts or build/azure-pipelines/win32/exec.ps1 change. The node_modules cache setup in those jobs uses both files (review feedback on #342091).
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused refactor preserves Rust check behavior while correcting required check names, with no unresolved findings.
0 open findings
What changed in this PR
Fixes skipped Rust checks reporting under incorrect names, which blocked merges after #342091.
Changes:
- Uses fixed-name Rust jobs with shared steps in a composite action.
- Adds missing Copilot cache dependencies to change detection.
- Transfers Rust workflow ownership to the new action.
| File | Description |
|---|---|
.github/workflows/pr.yml |
Defines fixed-name Rust jobs and clarifies skipping requirements. |
.github/workflows/pr-linux-cli-test.yml |
Removes the replaced reusable workflow. |
.github/CODEOWNERS |
Assigns existing owners to the new action. |
.github/actions/detect-changes/detect.ts |
Updates Rust paths and Copilot cache dependencies. |
.github/actions/check-rust-crate/action.yml |
Preserves shared Rust setup, linting, formatting, and tests. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…ction
Revert the composite action and fix the skipped check name with a one-line change: the reusable workflow's job is named CLI instead of ${{ inputs.job_name }}. The required Linux / CLI check is unchanged; the Copilot Shim check (not required) reports as Linux Copilot Shim / CLI.
Co-authored-by: Copilot <[email protected]>
Raymond Zhao (rzhao271)
approved these changes
Oct 16, 2026
Contributor
Screenshot ChangesBase: The screenshot report exceeds GitHub's comment size limit. View the full report in the workflow summary. |
Bryan Chen (bryanchen-d)
approved these changes
Oct 16, 2026
Logan Ramos (lramos15)
enabled auto-merge (squash)
October 16, 2026 18:21
This was referenced Oct 25, 2026
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.
Follow-up to #342091.
Problem
Since #342091, pull requests that don't change the CLI are blocked: the required
Linux / CLIcheck never reports.The Rust jobs skip inside
pr-linux-cli-test.yml, whose job was named${{ inputs.job_name }}. When GitHub skips a job, it doesn't evaluate expressions in the job's name, so the checks reported asLinux / inputs.job_nameandLinux Copilot Shim / inputs.job_name. For example, #342120, #342126, #342127 and #342128 are allBLOCKED, withLinux / CLImissing from their reported required checks.Changes
pr-linux-cli-test.ymlis now namedCLIinstead of${{ inputs.job_name }}, and the unusedjob_nameinput is removed.Linux / CLI.Linux Copilot Shim / CLIinstead ofLinux Copilot Shim / Copilot-Shim.build/npm/dirs.tsorbuild/azure-pipelines/win32/exec.ps1changes. The node_modules cache setup in those jobs uses both: the cache-key script importsdirs.ts, and Windows cache extraction dot-sourcesexec.ps1.How to test
actionlinton both workflows: no new findings compared withmain.npm run eslint -- .github/actions/detect-changes/detect.ts: passed.Linux / CLIas skipped and be mergeable.pull_requestevent, such as a push, Update branch, or close and reopen. Re-running a failed run reuses the old workflow file.