Skip to content

The Docker Delta List Never Says to Remove the push: Block, so an Adopter Keeps a Trigger the Shape Forbids #1497

Closed

Description

@ptr727

docs/reusable-workflows.md "Adopting the Release Chain" shows the full caller stub for a NuGet-library repo and then lists, per repo type, the deltas that turn it into the shape that type needs. The Docker delta list at line 580 is exhaustive on every other change. It says to add schedule:, to set enable_docker: true and enable_nuget: false, and to drop the publish-nuget job. It never says to remove the push: block.

That block is the one thing a Docker repo must not keep. The same section's own line 455 states the Docker trigger policy as workflow_dispatch plus a main-only weekly schedule, with no push, and both audited Docker publishers match it (reports/vscode-server-dotnetcore/audit.md:43, reports/plexcleaner/audit.md:45).

The failure

A Docker repo adopts the chain the way the section tells it to: copy the shown shape, apply the listed deltas. Nothing on the list touches push:, so the stub keeps push: branches: [main] with a paths filter.

A bot merge to main touching a filtered path then reaches publish-plan-task.yml's push arm, which sets publish=true for the codegen App and Dependabot identities. The repo cuts an image release on that merge, on top of the weekly schedule the delta list did tell it to add. That is a release the section says the Docker shape does not cut, produced by following the section exactly.

The defect is in the delta list rather than in the gate. publish-plan-task.yml behaves correctly for the triggers it is handed.

Scope note

The PyPI paragraph at line 584 says nothing about the paths filter either, but there the filter's contents are visibly a per-repo placeholder, so a reader has to fill it in rather than inherit a wrong one. That one is not the same defect and may need no change.

Provenance

Found by a local-strict-review pass on #1498, classed pre-existing and filed rather than fixed, since it is untouched by that change's diff.

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