Skip to content

D4.7 Omits the Re-Check-to-Dispatch and Pending-Run Residuals #2002 Names #2009

Closed

Description

@ptr727

Summary

WORKFLOW.md D4.7, and its copy in workflow-ci-contract's references/d-guarantees.md, dispatches the publisher only when "the branch has not moved again since that check". It justifies refusing a non-bot update on the grounds that dispatching "would publish a human merge nobody dispatched, which D4.1 forbids". The step does not fully guarantee that, and the guarantee text leaves out both residuals that #2002 names in its PR body.

The two residuals D4.7 does not state

  1. The gap between the re-check and the dispatch. The branch re-check is git ls-remote just before gh workflow run ... --ref "$BRANCH". A workflow_dispatch run's github.sha is the branch head when the dispatch event is created, and the publisher passes ref: ${{ github.sha }}. So a human merge landing between the ls-remote and the dispatch call is built, tagged, and published with nobody having dispatched it. That is the path D4.1 forbids, reached through the step D4.7 describes.
  2. Pending-run replacement. The dispatched run waits as the publisher's concurrency group's one pending run until the self-cancel lands. A newer run queuing in that window replaces it, and if that run plans publish=false (a human merge), the change is stranded again.

Suggested direction

Name both residuals in D4.7 and in the S14 expected outcome, so a carrier reading the guarantee does not take the re-dispatch as unconditional. ptr727/aiopurpleair carries an adapted D4.7 that states both, which may serve as a starting point.

Found by a local strict-review pass in ptr727/aiopurpleair while carrying D4.7 downstream.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions