Skip to content

fix(ci): divide the scenarios of each Feature between two jobs - #47

Merged
dan-petty merged 1 commit into
mainfrom
fix/44-divide-feature-scenarios
Nov 30, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/44-divide-feature-scenarios

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

A run of test-pr.yaml that tests each Feature took 442 s on average in four runs. The target is 6 minutes at most. In each run, the last test job to end was in test-scenarios, whose scenario step is 96% of its job time.

test-scenarios now has two shards for each Feature and base image. Scenarios with equal features stay in one shard, so they can use the same build cache. The output shards of detect-changes is the one list of the shards. Each scenario runs once on each base image. Feature tests keeps its name. A run of two Features has 27 jobs, not 21.

The run of this pull request (46495734450) took 259 s from the first job start to the last job end. Its logs show that each of the 18 scenarios ran once and passed on each of the three base images. This is one run.

actionlint, shellcheck, zizmor and openspec validate pass on a computer. devops openspec check fails: see #45.

Closes #44

Change: openspec/changes/archive/2026-11-30-44-divide-feature-scenarios/

A run of test-pr.yaml that tests each Feature took 442 s on average. The target of a CI check is 5 minutes, with a tolerance of 1 minute. The CLI runs the scenarios of a Feature one after the other, and one test-scenarios job ran all nine.

test-scenarios now has two shards for each Feature and base image. Scenarios with equal features stay in one shard, so they can use the same build cache. Each scenario still runs on each base image, and the check Feature tests keeps its name.

Closes #44
@dan-petty dan-petty added type/bug Defect, regression, or incorrect runtime behavior scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 30, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 30, 2026 19:42
@dan-petty
dan-petty merged commit 29b2a43 into main Nov 30, 2026
34 checks passed
@dan-petty
dan-petty deleted the fix/44-divide-feature-scenarios branch November 30, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/bug Defect, regression, or incorrect runtime behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): the tests of each Feature take more than 6 minutes

1 participant