Repository navigation
Replies: 1 comment
I don't really think that's a worry, as there's not like 10 maintainers constantly merging and releasing. Tiangolo merges almost all PRs and also does the releases... |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
First Check
Example Code
Description
I'd like to propose two small changes to typer's GitHub Actions setup. Neither changes the library.
1. The draft release can target the wrong commit.
create-draft-release.ymlruns when arelease-labelled PR merges. It checks out the default branch when the job runs and passes$(git rev-parse HEAD)togh release create --target. If another PR merges before the job checks out, the draft release (and so the tag) points at that later commit, and the release notes are read from it.github.event.pull_request.merge_commit_shais the commit the release PR actually produced. The same job also keepspersist-credentials: true, although onlygh(authenticated withGH_TOKEN) talks to GitHub afterwards, so the token sits in.git/configfor no reason.2. Superseded PR runs are never cancelled.
No CI workflow declares
concurrency, so each push to a PR runs the full Test matrix (10 jobs on three OSes) again while the previous run keeps going. Forpre-commit.yml, a superseded run can also try to push "🎨 Auto format" onto a head that has already moved, and that push fails. The proposed groups key on the PR number only, somasterpushes, scheduled and manual runs are never cancelled.deploy-docsandsmokeshowwould skip cancelled upstream runs, so a cancelled run doesn't post red statuses on the old commit.I opened #2033 for the first change before I'd seen that PRs should start here. Sorry about that; it can be closed if you'd rather not take it. I have the second change prepared and would open it only if you ask.
Operating System
Linux (GitHub-hosted runners; not OS-specific)
Project Version
master (6d6383f)
Python Version
n/a — CI workflow change
Additional Context
AI disclosure: I found both issues and drafted the changes with Claude Opus 5.5 (via Claude Code). I reviewed them, and I can share details on request.
All reactions