Skip to content

Accept a Schedule-Only Run-Id Suffix in the Publisher Concurrency Audit #2876

Closed

Description

@ptr727

What the audit reports

spec/audit.py homeassistant-purpleair, run at hub main 0c93369 (audit run 2026-10-12T02:55:47Z), reports one concurrency drift on the publisher:

DRIFT  concurrency: .github/workflows/publish-release.yml group is '${{ github.workflow }}-${{ github.ref }}${{ github.event_name == 'schedule' && format('-{0}', github.run_id) || '' }}', expected '${{ github.workflow }}-${{ github.ref }}'

The check came in with #2859 and was tightened by #2869. Today _RUN_ID_SUFFIX accepts only the push-only suffix with the exact actor allowlist.

Why this is a false positive

  • homeassistant-purpleair's publisher is dispatch-only. Its single other trigger is a weekly schedule that retests main and never publishes, because publish is gated on workflow_dispatch.
  • The schedule suffix applies the principle WORKFLOW.md D7.1 states: "A run that publishes nothing must therefore not share a group with a pending publish." Without the suffix, a Monday retest queued behind a running dispatch would replace a pending dispatch in the group.
  • The repo states this as a Local Rule Extension in OPERATIONS.md, under "Each ref serializes on its own". Its WORKFLOW.md D7 says the same.

A repo has no way to clear this finding. Dropping the suffix brings back the replacement D7.1 is meant to prevent. A registry driftNote doesn't suppress a finding. So the finding will appear on every run.

What would fix it

The maintainer decides which. Either:

  1. Accept a second suffix shape, ${{ github.event_name == 'schedule' && format('-{0}', github.run_id) || '' }}, on a publisher whose on: has a schedule and no push. That keeps the check exact for the hub's own push-triggered shape. Or:
  2. Have D7.1 name the schedule case, then match the check to that wording.

Either way, the self-test needs a case for a schedule-only publisher.

Found while closing homeassistant-purpleair#364. The other findings in that run are being re-vendored in this repo, and none of them are hub defects.

🤖 Generated with Claude Code

Activity

  1. added
    bug
    on Oct 12, 2026
  2. ptr727 commented on Oct 12, 2026

    @ptr727
    OwnerAuthor

    Maintainer decision (2026-10-12): option 2. D7.1 names the schedule case, a schedule run that publishes nothing appending github.run_id, and the audit's accepted suffix forms are matched to that wording, with a self-test case for a schedule-only publisher.

  3. added a commit that references this issue on Oct 12, 2026
    088afab
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions