Skip to content

ci: fix skipped Rust check names and Copilot change paths - #342134

Merged
Logan Ramos (lramos15) merged 2 commits into
mainfrom
lramos15/pr-ci-skipped-check-names
Oct 16, 2026
Merged

Logan Ramos (lramos15) merged 2 commits into
mainfrom
lramos15/pr-ci-skipped-check-names

Conversation

@lramos15

@lramos15 Logan Ramos (lramos15) commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #342091.

Problem

Since #342091, pull requests that don't change the CLI are blocked: the required Linux / CLI check 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 as Linux / inputs.job_name and Linux Copilot Shim / inputs.job_name. For example, #342120, #342126, #342127 and #342128 are all BLOCKED, with Linux / CLI missing from their reported required checks.

Changes

  • Fixed job name: the job in pr-linux-cli-test.yml is now named CLI instead of ${{ inputs.job_name }}, and the unused job_name input is removed.
    • The required check still reports as Linux / CLI.
    • The Copilot Shim check (not required) now reports as Linux Copilot Shim / CLI instead of Linux Copilot Shim / Copilot-Shim.
  • Review feedback on ci: skip PR checks that the changes cannot affect #342091: the Copilot checks now also run when build/npm/dirs.ts or build/azure-pipelines/win32/exec.ps1 changes. The node_modules cache setup in those jobs uses both: the cache-key script imports dirs.ts, and Windows cache extraction dot-sources exec.ps1.

How to test

  • This PR changes the workflows, so both Rust jobs run.
  • Already run locally:
    • actionlint on both workflows: no new findings compared with main.
    • npm run eslint -- .github/actions/detect-changes/detect.ts: passed.
  • After merge:
    • The next PR that doesn't touch the CLI should show Linux / CLI as skipped and be mergeable.
    • PRs that are already blocked need a new pull_request event, such as a push, Update branch, or close and reopen. Re-running a failed run reuses the old workflow file.

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]>

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.

🟢 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]>
@lramos15 Logan Ramos (lramos15) changed the title ci: report skipped Rust checks under their required names ci: fix skipped Rust check names and Copilot change paths Oct 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: c35fcfc1 Current: 9f3acb93

The screenshot report exceeds GitHub's comment size limit. View the full report in the workflow summary.

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.

4 participants