Skip to content

docs(ci): give one rule for a new test job in test-pr.yaml #39

Done

Description

@dan-petty

Problem

At commit d33018c (from #38), two texts give different rules for a new test job of .github/workflows/test-pr.yaml.

  • The comment above the job feature-tests (lines 253 to 258) says that a new test job goes in needs and in allowed-skips.
  • CONTRIBUTING.md (line 67) says to add the job to allowed-skips when the job has an if.

The rule in CONTRIBUTING.md does not include a job that has no if and needs a job that has one, for example needs: [test]. GitHub skips that job when test is skipped. re-actors/alls-green accepts a skipped job only when allowed-skips names it. Thus the check Feature tests fails on a pull request that selects no Feature.

Effect

No job of this kind exists now. If a person adds one and obeys CONTRIBUTING.md, the check blocks the pull request. This text does not let a failed test pass.

Evidence

  • GitHub documents: If a job fails or is skipped, all jobs that need it are skipped, unless a condition lets the job continue.
  • re-actors/alls-green at b5b5b37504aa4183270bd3d855c52a67f212be35: src/job_outcome.py judges each job against allowed-skips. An offline run of the script, with a skipped job that allowed-skips did not name, ended with exit code 1.

Fix

Give one rule in the two places: a new test job goes in needs, and in allowed-skips when GitHub can skip it (it has an if, or it needs a job that GitHub can skip).

Make this change in the next pull request that edits the two files, such as the planned change that tests each Feature when the test tooling changes. Do not open a pull request for this text only.

Acceptance

  • The workflow comment and CONTRIBUTING.md give the same rule.

Source

Source: #38

Activity

  1. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
    • Priority: No job of this kind exists now, and the body says to fold the fix into a later pull request. The regression commit d33018c does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.
    • Related: fix(ci): report one required result for the Feature tests #37, which asks for a different change. Both touch test-pr.yaml and the allowed-skips mechanism, but #37 fixes matrix-job reporting while this item fixes the written rule for adding a new job.
  2. added
    type/docs
    source/agent
    scope/ci
    status/new
    value/low
    effort/low
    priority/p2-medium
    on Nov 30, 2026
  3. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    Pull request #43 (for #41) includes the change of this issue. The comment above the job feature-tests and CONTRIBUTING.md now give the same rule for a new test job. #43 closes only #41. After the merge of #43, close this issue as completed.

  4. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor

    Delivered by #43, merged as 482c3bc. On main, the comment above the job feature-tests of test-pr.yaml and CONTRIBUTING.md give the same rule: a new test job goes in needs, and in allowed-skips when GitHub can skip it.

  5. removed
    status/new
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/cisource/agenttype/docsvalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions