Repository navigation
Description
Problem
test-pr.yaml runs no test when a pull request changes only test/_global (for example the sid_usable scenario of #7). Its detect-changes step keeps only the ids that have src/<id>/devcontainer-feature.json, and its comment says that test/_global gives no test. So a pull request that breaks a global scenario passes its checks, and the failure shows only on the push to main or in the weekly test-all.yaml run. The proof of PR #11 needed a test-all.yaml run started by hand on the branch.
Expected
- When a pull request changes
test/_global/**,test-pr.yamlrunsnpm run test:global(the same step as the test-global job oftest-all.yaml), with a job timeout and the same pinned actions. - A pull request that changes only a Feature does not run the global scenarios (they take about 5 minutes).
- Proof: a pull request that changes only
test/_globalshows a passing test-global check.
Alternatives check of 2026-11-20: not-applicable.
Class: ci, no search.
Tool: none found.
Proposed design
Problem statement
test-pr.yaml starts no test when a pull request changes only test/_global. The detect-changes job keeps only the Feature ids that have src/<id>/devcontainer-feature.json, so a test/_global change gives an empty list. A broken global scenario then passes the pull request checks and fails only on main or in the weekly test-all.yaml run. The change adds a test-global job to test-pr.yaml that runs npm run test:global when test/_global/** changes.
Acceptance criteria
Requirement: Detect a change under test/_global
The detect-changes job of test-pr.yaml SHALL set its global output to true when a pull request changes a path under test/_global/.
Scenario: Pull request that changes only a global scenario
- WHEN a maintainer opens a pull request that changes only
test/_global/sid_usable/test.shand the live run oftest-pr.yamlon that pull request completes - THEN the run shows the
test-globaljob as run and successful, and not as skipped
Requirement: Run the global scenarios with the test-all timeouts
The test-global job of test-pr.yaml SHALL run npm run test:global with timeout-minutes: 30 on the job and timeout-minutes: 25 on the step.
Scenario: Global job runs the npm script
- WHEN the
test-globaljob oftest-pr.yamlruns on a pull request that changestest/_global/ - THEN the job log shows the step
npm run test:globaland the job result is success
Requirement: Skip the global scenarios for a Feature-only change
test-pr.yaml MUST NOT start the test-global job when a pull request changes only files under src/.
Scenario: Pull request that changes only a Feature
- WHEN a maintainer opens a pull request that changes only
src/<id>/devcontainer-feature.jsonand the live run oftest-pr.yamlon that pull request completes - THEN the run shows the
test-globaljob as skipped
Requirement: Keep the Feature jobs for a Feature change
The detect-changes job of test-pr.yaml SHALL keep the features output for a pull request that changes a Feature under src/.
Scenario: Feature-only pull request keeps the Feature jobs
- WHEN a maintainer opens a pull request that changes only
src/<id>/devcontainer-feature.jsonand the live run oftest-pr.yamlon that pull request completes - THEN the run shows the
test,test-scenariosandpodman-hostjobs as run
Requirement: Pass actionlint and zizmor with pinned actions
test-pr.yaml MUST pass actionlint and zizmor with every action pinned to a full commit SHA.
Scenario: Workflow validators pass
- WHEN a maintainer runs
uv run devops ci --check --only actionlint,zizmor - THEN actionlint and zizmor report no error and no
unpinned-usesfinding for.github/workflows/test-pr.yaml
Existing Tool Considered
The alternatives check in the issue body records not-applicable for class ci with no search, and it names no tool. dorny/paths-filter v4.0.3, already pinned at .github/workflows/test-pr.yaml:32, is the open and maintained tool that covers a per-job path gate. It lacks a Feature-id computation; the existing ids shell step does that, and it stays as it is. GitHub Actions' own on.pull_request.paths covers the whole workflow only, not one job. The change adds no dependency and writes no new tool code.
Key questions
- Which step of
test-pr.yamldecides which jobs run, and what does it output?: Thedetect-changesjob runsdorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3with the filterfeatures: src/**, test/**. It publishes one output,features. The stepGet the ids of the changed Featureskeeps only the ids that havesrc/<id>/devcontainer-feature.json, so atest/_globalchange givesfeatures=[]. [sources: .github/workflows/test-pr.yaml:26, .github/workflows/test-pr.yaml:32] - How does
test-pr.yamldetect a change undertest/_global?: Addglobal: test/_global/**to thefiltersblock of the existingdorny/paths-filterstep. Addglobal: ${{ steps.filter.outputs.global }}to the outputs ofdetect-changes, and gate the new job withif: needs.detect-changes.outputs.global == 'true'. Keep the workflow-level triggeron: pull_requestas it is. (best practice) [sources: .github/workflows/test-pr.yaml:32]- Chosen: Extend the existing dorny/paths-filter step. It reuses the action already pinned in the workflow, so each job keeps its own
ifand the Feature jobs do not change. - Rejected: Add
on.pull_request.pathsat workflow level. A workflow-level filter gates the whole workflow, so a pull request that changes a Feature and a global scenario cannot run both sets of jobs. - Rejected: Run the global job on every pull request. The issue requires that a Feature-only pull request skips it, and the scenarios take about 5 minutes.
- Rejected: Compute the flag in a new shell step from the changed files. It repeats the change detection that the pinned action already does and needs the pull request API.
- Chosen: Extend the existing dorny/paths-filter step. It reuses the action already pinned in the workflow, so each job keeps its own
- Does a change under
test/_globalalso set the existingfeaturesfilter, and what happens to the Feature jobs?: Yes. The filterfeaturesmatchestest/**, sotest/_global/sid_usable/test.shsets it totrue. The ids step then finds nosrc/_global/devcontainer-feature.jsonand writesfeatures=[], so thetest,test-scenariosandpodman-hostjobs skip. Keep that behavior and the filter as it is. [sources: .github/workflows/test-pr.yaml] - Which command runs the global scenarios in
test-pr.yaml?:npm run test:global, the same command as the test-global job oftest-all.yaml. (best practice) [sources: .github/workflows/test-all.yaml]- Chosen: Reuse
npm run test:global. It is the script thattest-all.yamlalready runs, so the two workflows cannot drift. - Rejected: Call
npx devcontainer features testdirectly. It repeats the arguments of the npm script and drifts when the script changes.
- Chosen: Reuse
- Which
timeout-minutesvalues does the new job set?:timeout-minutes: 30on the job andtimeout-minutes: 25on thenpm run test:globalstep, the values of the test-global job oftest-all.yaml. (best practice) [sources: .github/workflows/test-all.yaml, README.md:41]- Chosen: 30 on the job and 25 on the step, same as
test-all.yaml. The two jobs run the same command on the same runner, and equal values stop a drift between them. - Rejected: 15 on the job and 15 on the step. It differs from the existing job with no reason and gives a slow runner less headroom than the command already has.
- Rejected: 60 on the job and 50 on the step. A hung job holds a runner twice as long as the existing job allows.
- Chosen: 30 on the job and 25 on the step, same as
- Which actions, pins and steps does the new job copy?: It copies the steps of the test-global job of
test-all.yaml: checkout withactions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7andpersist-credentials: false, thennpm ci, then the guardednpm run test:globalstep. (best practice) [sources: .github/workflows/test-all.yaml, .github/workflows/test-pr.yaml]- Chosen: Copy the full-SHA pin of
test-all.yaml. The issue asks for the same pinned actions, and zizmor'sunpinned-usesaudit passes. - Rejected: Use the tag
actions/checkout@v7. A tag is not a full commit SHA; zizmor reportsunpinned-uses, and the issue requires the same pins. - Rejected: Call the CLI from the runner image and skip
npm ci. The CLI version then comes from the runner image and drifts frompackage-lock.json.
- Chosen: Copy the full-SHA pin of
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 19, 2026
Both concern the test/_global scenarios; #7 adds the sid_usable scenario, while this candidate makes CI run those scenarios on PRs.devops-cli-service commentedon Nov 19, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
[-]ci: run the global scenarios in pull requests that change test/_global[/-][+]ci: run global scenarios when test/_global changes[/+]devops-cli-service commentedon Nov 19, 2026
The job shortened the title of this item. The summary had 66 characters, and the limit is 60. The type and the scope stay.
ci: run the global scenarios in pull requests that change test/_globalci: run global scenarios when test/_global changesdevops-cli-service commentedon Nov 20, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
23 remaining items
devops-cli-service commentedon Nov 27, 2026
Cleared the stop at job by the rule
continue: the runner Job devops-cli-implement-devcontainer-features-12-3e3781 ended without a result. The classci_infraof the stop is one that a new attempt can fix. This is continuation 2 of 4 for this item. The item is Planned again. The Service takes it in the next round. The new Job takes the branch fromorigin, so it keeps the work that the run pushed there.devops-cli-service commentedon Nov 27, 2026
The draft pull request #29 holds the final title and body. In mode
onofroadmap.fix_checks.mode, the watch row marks it ready when its checks pass, and a fix-checks Job repairs a failed check whose name gives the class test, lint or types. In each other case the watch row stops the item: another failed check, a cancelled check, a conflict, a fix-checks Job that ended with no repair, or another mode.Spend: 50 model requests, 1866968 input tokens, 14142 output tokens.