Skip to content

ci: re-actors/alls-green meta-check fails on doc-only PRs (test job correctly skipped) #478

Closed

Description

@thiras

Symptom

The CI success meta-check (in .github/workflows/ci.yml) fails on doc-only PRs. Example: PR #477 (ADR 030 documentation-only change).

All real CI jobs pass:

  • rustfmt ✓
  • clippy ✓
  • cargo deny ✓
  • cargo doc ✓
  • MSRV check ✓
  • markdownlint ✓
  • coverage tooling tests ✓
  • detect changes ✓
  • Semantic PR title ✓

The test job is correctly skipped by the `needs.changes.outputs.rust == 'true'` gate (no Rust code changed). But the `re-actors/alls-green@release/v1` aggregator at `.github/workflows/ci.yml:355-363` treats `skipped` as failure by default — so the meta-check fails.

This affects every doc-only PR.

Root cause

Introduced (or surfaced) by PR #476 (`ci: merge test and coverage jobs into single instrumented run`, commit a2852fc). The current workflow comment at `ci.yml:120-121` claims:

Doc-only PRs are skipped via the `changes` gate; alls-green treats skipped jobs as success.

This claim is incorrect. `re-actors/alls-green@release/v1` requires explicit `allowed-skips` configuration to accept skipped jobs as success.

Suggested fix

Add `allowed-skips: test` to the alls-green step:

```yaml
ci-success:
name: CI success
if: always()
runs-on: ubuntu-latest
needs: [fmt, clippy, changes, test, deny, doc, msrv, markdownlint]
steps:
- uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
allowed-skips: test
```

And update the misleading comment at `ci.yml:120-121` to match.

Reference: re-actors/alls-green README — `allowed-skips` is the documented mechanism for this case.

Reproducer

Open any PR that touches only files outside the `changes` filter (e.g., `adr/.md`, `CLAUDE.md`, anything not matching `/*.rs`, `/Cargo.toml`, `Cargo.lock`, `rust-toolchain.toml`, `.github/workflows/ci.yml`, `.github/scripts/coverage-diff.py`, `.github/scripts/tests/`). The `CI success` job will fail.

Workaround

Until the workflow is updated, doc-only PRs need an admin merge override.

Out of scope

Anything beyond the meta-aggregator config — every other CI job behaves correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions