Skip to content

[REFACTOR](ci) Remove the real-PyPI priming dispatch path - #699

Open
John McCall (lowlydba) wants to merge 2 commits into
mainfrom
remove-pypi-priming-dispatch
Open

[REFACTOR](ci) Remove the real-PyPI priming dispatch path#699
John McCall (lowlydba) wants to merge 2 commits into
mainfrom
remove-pypi-priming-dispatch

Conversation

@lowlydba

@lowlydba John McCall (lowlydba) commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Part of Branching Strategy Phase 3, closing out the last open item on that phase's definition of done. release-publish.yaml shipped in #638. #653 then set up PyPI Trusted Publishing and added a temporary real-PyPI dispatch path to prime it; all 12 packages are now primed on both pypi.org and test.pypi.org (see #653's latest status comment), so this PR tears that path back out, leaving the publish pipeline in its permanent shape.

workflow_dispatch's target: pypi option is standing attack surface with no remaining use: a compromised or careless dispatch could put a .dev0 on the real index, gated by nothing beyond repo write access. Drops the target input entirely since test-pypi is now the only choice, and simplifies every conditional that branched on inputs.target == 'pypi' (job name, environment selection, publish step name, repository-url). The Test PyPI dispatch path stays; it has no production blast radius and remains useful for ongoing pipeline verification.

Also fixes docs/versioning.md's release-flow table, which described real-PyPI dispatches as requiring a pypi-dispatch-<package> approval environment. That gate never existed: dispatch reuses pypi-release-<package>, the same environment the automated release path uses.

Fixes #688

All 12 packages are primed on both pypi.org and test.pypi.org (see #653),
so the workflow_dispatch 	arget: pypi option has no remaining use and is
standing attack surface: a compromised or careless dispatch could put a
.dev0 on the real index.

Drops the 	arget input entirely since test-pypi is now the only choice,
and simplifies every conditional in release-publish.yaml that branched on
inputs.target == 'pypi'. The Test PyPI dispatch path stays; it has no
production blast radius and stays useful for ongoing pipeline verification.

Also fixes docs/versioning.md's release-flow table, which described
real-PyPI dispatches as requiring a pypi-dispatch-<package> approval
environment. That gate never existed: dispatch reuses pypi-release-<package>.

Fixes #688

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>
@lowlydba
John McCall (lowlydba) force-pushed the remove-pypi-priming-dispatch branch from e69b062 to ad73210 Compare August 26, 2026 21:07
@lowlydba
John McCall (lowlydba) marked this pull request as ready for review August 26, 2026 21:08
@lowlydba
John McCall (lowlydba) requested a review from a team as a code owner August 26, 2026 21:08
Copilot AI lite review requested due to automatic review settings August 26, 2026 21:08
@github-actions

github-actions Bot commented Aug 26, 2026

Copy link
Copy Markdown

🗺️ Schema reference docs preview is live!

🌍 Preview https://staging.overturemaps.org/schema/pr/699/schema/index.html
🕐 Updated Aug 26, 2026 21:21 UTC
📝 Commit d92b67d
🔧 env SCHEMA_PREVIEW true

Note

♻️ This preview updates automatically with each push to this PR.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the workflow_dispatch path that could publish priming .dev0 builds to real PyPI, leaving workflow_dispatch as a Test PyPI-only publish for pipeline verification, and updates the versioning documentation accordingly.

Changes:

  • Removes the target input from release-publish.yaml and simplifies all logic that branched on real-PyPI vs Test PyPI dispatches.
  • Updates the release-publish.yaml header/comments and publish step labeling to reflect the remaining Test PyPI dispatch behavior.
  • Fixes the release-flow documentation to remove references to a non-existent approval-gated “pypi-dispatch-” environment.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/release-publish.yaml Drops real-PyPI priming dispatch option and simplifies dispatch conditionals to Test PyPI only.
docs/versioning.md Updates release-flow table to reflect Test PyPI-only dispatch and correct environment-gating description.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/versioning.md Outdated
There is no separate automated Test PyPI path; workflow_dispatch is the
only one. Per review feedback on PR #699.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Signed-off-by: John McCall <john@overturemaps.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Devops] Remove the real-PyPI priming dispatch path once all packages are primed

2 participants