Skip to content

Run exact PyPI release preflight on every PR and main push - #108

Merged
Aran404 merged 3 commits into
mainfrom
ci/release-preflight-parity-20261122
Nov 22, 2026
Merged

Aran404 merged 3 commits into
mainfrom
ci/release-preflight-parity-20261122

Conversation

@Aran404

@Aran404 Aran404 commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Why

The v2.1.2 tag failed in Publish a tagged release, even though ordinary PR and main checks were green: release installs build twine before the development extras, pulling in keyring without a recommended backend on headless Ubuntu. Existing offline CI never exercised that environment. A green GitHub Release entry was incorrectly mistaken for a successful PyPI publication.

Changes

  • Run the exact existing tagged-release build/test job on PRs and main pushes, and allow optional manual dry-runs. Do not create another copied test recipe that can drift.
  • Guard the publish job so it can only run on a Git tag push (refs/tags/v*); PR, branch and manual dry-runs must skip PyPI upload.
  • Keep matching tag/package-version validation on actual tag runs.
  • Fix manually dispatched authenticated integration check: if SPOTIFY_CANARY_COOKIE isn't configured, fail transparently rather than report success without testing.
  • Update release documentation to require a green preflight on the exact main SHA before tagging, and independently verify the tagged publish job and the actual PyPI version afterward.

Verification and guardrails

All normal PR CI plus the newly triggered Release preflight (publish environment) must pass; inspect that its wheel was built, twine check succeeded, and the publish job was skipped on PR. After merge, repeat this proof on main's exact SHA before instructing anyone to push v2.1.3. The actual PyPI trusted-publisher authentication still cannot be proven until a real tagged publication occurs.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 SpotAPI | 🛠️ Build #36074371 | 📁 Comparing b65dcb7 against latest (c01b58b)

  🔍 Preview build  

1 file changed
± release-checks/index.html

@Aran404
Aran404 merged commit 0aaa05b into main Nov 22, 2026
15 checks passed
@Aran404
Aran404 deleted the ci/release-preflight-parity-20261122 branch November 22, 2026 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant