Skip to content

fix(ci): report one required result for the Feature tests - #38

Merged
dan-petty merged 1 commit into
mainfrom
fix/37-one-feature-test-result
Nov 30, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/37-one-feature-test-result

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The ruleset main requires test, test-scenarios and podman-host. These are matrix jobs: a matrix job that runs reports <job> (<feature>, <image>) and no check with the bare name. Thus a pull request that selects a Feature to test waits with no end.

The new job Feature tests runs with if: always() and uses re-actors/alls-green to give one result of detect-changes and the four test jobs. It fails when one of these jobs fails or is cancelled, or when detect-changes does not succeed. A test job that the changed files do not select can be skipped. A failed global scenario now fails this check.

github/repository.yaml declares the required checks Feature tests, lint, validate and the title check. The live ruleset changes only when a person changes it after the merge.

Closes #37

Change: openspec/changes/archive/2026-11-30-37-one-feature-test-result/

Add the job Feature tests to test-pr.yaml. It gives one result of the test jobs with re-actors/alls-green, so a ruleset can require it. Declare the required checks Feature tests, lint and validate.

Closes #37
@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 force-pushed the fix/37-one-feature-test-result branch from 4f0cbe6 to 965b82d Compare November 30, 2026 16:52
@dan-petty

Copy link
Copy Markdown
Owner Author

Live proof on this draft (2026-11-30)

Success, head 965b82d. Feature tests: success (job). detect-changes succeeded. test, test-scenarios, podman-host and test-global were skipped. The three bare matrix names report skipped, so the present ruleset accepts this pull request.

Failure, scratch commit 4f0cbe6 (removed). The commit added one check to test/podman-in-podman/test.sh that fails on ubuntu:noble.

  • test (podman-in-podman, ubuntu:noble): failure (job). The other 8 matrix legs: success. test-global: skipped.
  • Feature tests: failure (job). Its log shows test → failure.
  • That head had no check run test, test-scenarios or podman-host. This confirms the defect of fix(ci): report one required result for the Feature tests #37.
  • A force push removed the commit. The checks of 965b82d then ran again, with the success above.

Local checks: actionlint, zizmor --offline .github/workflows/, check-jsonschema of github/repository.yaml against the template schema at v0.2.0, the pre-commit hooks, and openspec validate --all --strict (through devops openspec archive). devops openspec check does not run here, because this repository pins no OpenSpec package.

Not run live: a failed or cancelled detect-changes, a cancelled test job and a failed test-global. The code of re-actors/alls-green at the pinned commit accepts only success for detect-changes, and only success or skipped for each other job.

Steps for a person

  1. Merge this pull request.
  2. Give each other open pull request a new head.
  3. At once, in the ruleset main, replace detect-changes, test, test-scenarios and podman-host with Feature tests (source: GitHub Actions). Keep lint, validate, PR title / Semantic PR title, CodeQL and Analyze (actions).
  4. Open a draft pull request that changes one Feature. Read that each required check reports.

Until step 3, a pull request that selects a Feature to test cannot merge, as today.

@dan-petty
dan-petty marked this pull request as ready for review November 30, 2026 17:02
@dan-petty
dan-petty merged commit d33018c into main Nov 30, 2026
20 checks passed
@dan-petty
dan-petty deleted the fix/37-one-feature-test-result branch November 30, 2026 17:02
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): report one required result for the Feature tests

1 participant