Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 78bd6232d1
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #530 +/- ##
==========================================
+ Coverage 91.66% 91.68% +0.01%
==========================================
Files 216 216
Lines 30533 30533
Branches 5672 5672
==========================================
+ Hits 27989 27993 +4
+ Misses 1458 1457 -1
+ Partials 1086 1083 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Alisama20
left a comment
There was a problem hiding this comment.
The guards work. I replayed the step in scratch repos: a bump push tags and dispatches once, a non-bump push and an existing tag both exit quietly. Three things before the first real release goes through it:
- It compares against
beforeof one push. If the bump commit's run fails (a flaky test, Codecov), the next merge sees equal versions and the release is silently lost. Comparing against the latest tag (publish ifrefs/tags/$versiondoesn't exist and the version is newer) fixes that and the downgrade case. - The tag is pushed before the dispatch. If
gh workflow runfails, a re-run sees the tag and skips, so nothing is released. Dispatch when no release exists for the tag, or retry the dispatch on its own. - Only
pyproject.tomlis read, but tbump also writesREADME.mdandsrc/gsim/__init__.py. A check that all three agree would avoid a wheel whose__version__disagrees with its metadata.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7f4a71ce02
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| run("git", "push", "origin", f"refs/tags/{version}") | ||
|
|
||
| # Tag pushes made with GITHUB_TOKEN do not trigger push workflows. | ||
| run("gh", "workflow", "run", "release.yml", "--repo", repository, "--ref", version) |
There was a problem hiding this comment.
Recover releases that fail after the PyPI upload
When release.yml fails after its PyPI step succeeds but before Release GH creates a non-draft release (for example, the draft-release API call fails), the run is completed and published_tags() still reports the version as unpublished, so this line dispatches the entire workflow again. The retry then attempts to upload the immutable version to PyPI a second time, fails before reaching the GitHub-release step, and every later main push repeats the same failure; handle this partial-publication state separately or make the publishing workflow safely resumable.
AGENTS.md reference: AGENTS.md:L56-L59
Useful? React with 👍 / 👎.
ce7fb83 to
4d832de
Compare
After tests and coverage pass on main, tag a changed package version and trigger the existing Release workflow. Ordinary merges and already tagged versions are skipped.
Validated workflow syntax and the unchanged-version, new-version, and existing-tag cases.