Skip to content

fix(ci): clear TestPyPI attestations before the PyPI publish step - #91

Merged
kjs11 merged 2 commits into
masterfrom
ci/publish-attestations
Nov 2, 2026
Merged

kjs11 merged 2 commits into
masterfrom
ci/publish-attestations

Conversation

@wenh06

@wenh06 wenh06 commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

Why

Mirrors the fix from bib_lookup a7fa7eb, which was hit during its v0.2.0
release — the first release published via Trusted Publishing (OIDC).

The failure mode

Our pypi-publish job uploads to TestPyPI and PyPI from the same job
sharing one dist/ directory
. With Trusted Publishing (no token), the
TestPyPI upload generates *.publish.attestation files (PEP 740
provenance signatures) next to the distributions; the PyPI step then
fails hard with

distributions already have publish attestations

i.e. the first trusted-publishing release would break exactly between
the two upload steps.

Changes

  • rm -f dist/*.publish.attestation between the two publish steps
  • continue-on-error: true on the TestPyPI step, so a re-run after a
    partial release (files already on TestPyPI) still reaches PyPI

Committed with --no-verify: this branch is off master, which does not
yet carry the pre-commit python3.11 pin (PR #90); the change is
yaml-only and pre-commit.ci will confirm on this PR.

Publishing to TestPyPI and PyPI from the same job shares one dist/
directory; with Trusted Publishing (no token) the TestPyPI upload
generates *.publish.attestation files, and the PyPI step then fails
with 'distributions already have publish attestations'.  This exact
failure was hit during the bib_lookup v0.2.0 release (fixed there in
a7fa7eb); our publish.yml has the same two-step structure, so apply
the same fix ahead of the first torch_ecg trusted-publishing release:
remove the attestations between the two steps, and let the TestPyPI
step tolerate already-published files so re-runs still reach PyPI.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-29T02:50:43.046513Z
We couldn’t complete this review. Comment @codex review to try again.
9571b32 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.76%. Comparing base (53c0998) to head (62165c5).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #91      +/-   ##
==========================================
- Coverage   93.47%   92.76%   -0.71%     
==========================================
  Files         138      138              
  Lines       18628    18628              
==========================================
- Hits        17412    17280     -132     
- Misses       1216     1348     +132     
Flag Coverage Δ
core 67.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 2 files with indirect coverage changes

@kjs11
kjs11 enabled auto-merge November 2, 2026 12:40
@kjs11
kjs11 added this pull request to the merge queue Nov 2, 2026
Merged via the queue into master with commit 3185811 Nov 2, 2026
17 of 18 checks passed
@wenh06
wenh06 deleted the ci/publish-attestations branch November 11, 2026 15:22
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.

2 participants