Repository navigation
Description
Problem
A pull request that runs the tests of each Feature takes more than 6 minutes on average. The target of a CI check is 5 minutes, with a tolerance of 1 minute. The job test-scenarios of .github/workflows/test-pr.yaml runs all scenarios of a Feature in one step, one after the other. Its longest leg sets the time of the run.
Evidence
Runs of test-pr.yaml that tested the two Features. The run time is from the first job start to the last job end.
| Run | Date | Run time | Longest job (a test-scenarios leg) |
|---|---|---|---|
| 45090000034 | 2026-11-23 | 460 s | 419 s |
| 45091013216 | 2026-11-23 | 452 s | 445 s |
| 45091808946 | 2026-11-23 | 500 s | 430 s |
| 46477632652 | 2026-11-30 | 355 s | 339 s |
- The mean run time is 442 s.
- In these runs, a
test-scenariosleg takes 207 to 445 s. Atestorpodman-hostleg takes 34 to 97 s. - With fix(ci): test each Feature when the test tooling changes #43, a change to the test tooling also runs the tests of each Feature. This includes a Renovate update of the Dev Containers CLI.
Expected
- The mean run time of a run that tests each Feature is 6 minutes or less.
- Each scenario still runs on each base image.
Existing tool
devcontainer features test of the Dev Containers CLI has the option --filter, which the job podman-host uses. A matrix of GitHub Actions can use it to divide the scenarios between jobs.
Source
Source: #43
Proposed design
Problem statement
A pull request that tests each Feature takes more than 6 minutes on average. The job test-scenarios runs all scenarios of a Feature in one step, and its longest leg sets the run time. The change divides the scenarios of each Feature between matrix legs with --filter of devcontainer features test. Each scenario still runs on each base image, and the mean run time falls to 6 minutes or less.
Acceptance criteria
Requirement: One leg for each scenario and base image
The test-scenarios job SHALL run each scenario of each selected Feature in its own matrix leg, once for each base image.
Scenario: A Feature with scenarios on three base images
- WHEN a run of
test-pr.yamltests a Feature withtest/<feature>/scenarios.json - THEN the run shows one
test-scenarios (<feature>, <scenario>, <image>)leg for each scenario key and each base image, and each leg log shows a--filter <scenario>command.
Requirement: Scenario names from the manifest
The workflow SHALL get the scenario names from test/<feature>/scenarios.json, so a new scenario needs no edit to the workflow.
Scenario: A new scenario key
- WHEN a pull request adds a scenario key to
test/<feature>/scenarios.json - THEN the run shows a
test-scenariosleg for the new scenario ondebian:sid,debian:trixieandubuntu:noble.
Requirement: No leg for a Feature without scenarios
The test-scenarios job MUST NOT fail when a selected Feature has no test/<feature>/scenarios.json.
Scenario: A Feature without a scenarios file
- WHEN a run of
test-pr.yamlselects a Feature with notest/<feature>/scenarios.json - THEN the run shows no
test-scenariosleg for that Feature and theFeature testscheck passes.
Requirement: The dockerCompat skip line in its leg
The leg that runs the with_docker_in_docker scenario SHALL fail when its log lacks the line (!) <feature>: dockerCompat is skipped.
Scenario: The skip line is absent
- WHEN the leg for
with_docker_in_dockerof a Podman Feature ends and its log has nodockerCompat is skipped.line - THEN the leg log shows the grep of
dockerCompat is skipped.and the leg fails.
Requirement: Run time under the target
Three runs of test-pr.yaml that test each Feature MUST have a mean run time of 360 s or less, and each test-scenarios leg MUST end within 300 s.
Scenario: A change to the test tooling
- WHEN a pull request changes
package.json, which selects every Feature, and three runs complete - THEN the mean of the three run times is 360 s or less and no
test-scenariosleg is longer than 300 s.
Requirement: The workflow passes the lint check
The changed workflow SHALL pass the lint check of the repository.
Scenario: The lint check runs
- WHEN
uv run devops ci --check --only actionlintruns on the pull request - THEN the check reports no error for
.github/workflows/test-pr.yaml.
Existing Tool Considered
No alternatives check has run. The Dev Containers CLI (devcontainer features test) has the option --filter, and the job podman-host uses it (.github/workflows/test-pr.yaml). The tool covers the selection of one scenario in a leg. It lacks a shard option, so the workflow must list the scenario keys and give each leg one scenario. The change adds no code of its own.
Key questions
- How does the workflow divide the scenarios of a Feature between the matrix legs?: The job
detect-changeslists the keys oftest/<feature>/scenarios.jsonfor each selected Feature. It writes one matrix entry for each key and base image. Eachtest-scenariosleg runsnpx devcontainer features test --skip-autogenerated --skip-duplicated --filter <scenario>. (best practice) [sources: .github/workflows/test-pr.yaml, AGENTS.md]- Chosen: One leg for each scenario and base image. The longest leg runs one scenario. A new scenario key needs no edit to the workflow.
- Rejected: A fixed number of shards for each Feature. A Feature with one scenario gets an empty leg. A shard with many scenarios stays long.
- Rejected: Raise the timeout and the run time target. The owner set a target of 5 minutes with a tolerance of 1 minute. A raise needs the owner.
- How does the workflow keep the dockerCompat skip-line check?: The leg that runs the
with_docker_in_dockerscenario keeps the grep step. The step reads only the log of that leg. (best practice) [sources: .github/workflows/test-pr.yaml]- Chosen: Keep the grep in the leg that runs the scenario. That leg writes the log that holds the line.
- Rejected: Move the grep to a job after the matrix. The later job has no log of the leg.
- What happens when a selected Feature has no
test/<feature>/scenarios.json?: The matrix holds no leg for that Feature. The jobtest-scenariosis skipped, andfeature-testsaccepts the skip throughallowed-skips. (best practice) [sources: .github/workflows/test-pr.yaml]- Chosen: Skip the job when no scenario exists.
allowed-skipsinfeature-testsalready accepts a skippedtest-scenariosjob. - Rejected: Add a fallback leg that runs the CLI with no filter. The fallback runs no scenario and adds a job that reports nothing.
- Chosen: Skip the job when no scenario exists.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 30, 2026
CI runs exceed the 5-minute target by 47% on average, making CI very slow.Both work on the Feature test pipeline in test-pr.yaml; #41 ensures tests trigger on tooling changes, the candidate makes those tests run faster.devops-cli-service commentedon Nov 30, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (8)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 30, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.