-
-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare for a release 5.0.1
#2183
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to include these two PRs:
@sobolevn the 2 PR:s you mentioned have been merged. What do you think, should we proceed with doing a release? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Haha @sobolevn the Action run: https://github.com/typeddjango/django-stubs/actions/runs/9253970455/job/25454746769 Fortunately we can just retry it if we update the publisher. Does the publisher you set here: #2150 (review) look like below?
|
Sorry, I didn't have time to review, I was away all weekend and had a busy Monday. But everything looks great to me 👍 I can also release |
@intgr no problem and yes, go ahead and do a manual one. I saw that there was some |
Actually, you missed one thing. The Let's make a quick 5.0.2 release which bumps the dependency? |
Sounds good! But I'm wondering, can that requirement be updated before we've done a release of |
Yes, the |
But it's a good point, we should tweak the |
And it's not at all your fault. We should have a checklist of what needs to be done for each release, written down somewhere. |
I'm not sure if it's a good idea to create a dependency in the release workflow? A problem that then shows up is that if e.g. I suppose it then becomes a measurement of which problem is worse, since I don't think we can support both, at least not in a simple way.
I agree that we should try to write it down, but I should've figured it out. I was looking through the PR:s marked with a "release notes reminder". I think we should continue with an open issue for the next release (e.g. like #2020). I liked that approach, and then we can try to update that with a checklist and other stuff relevant for the next release. |
I think we can control this with the workflow concurrency:
group: release Then both release jobs will be run in the same concurrency group and are ran in sequence. And we need to re-order them such that |
I don't think we should add any concurrency key, because; if a different workflow run with the same key is started, any already running is shut down. That means we could possibly be halfway through releasing and if a new one is started, GitHub actions would cancel the first one halfway through. I think we rather want to declare needs for jobs:
build-and-publish:
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/django-stubs
+ needs: [build-and-publish-ext]
permissions:
id-token: write
steps:
- name: Setup python to build package
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install build
run: python -m pip install build
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/[email protected] That should force sequential runs while allowing us to retry the |
That's only if using the
Sure, that sounds better. |
Ah, I missed that section in the docs 🙂 I was also completely oblivious to the meaning of the We should do both the above mentioned things then! That would mean any new workflow will wait for a currently running one and we will release Last addition is that we'll also need to resolve #2187 when we've put |
I think that's not necessary, we don't make releases so often that the workflows can run in parallel. 😄 |
That's true! But it's very easy for 2 persons to press e.g. "Rerun failing jobs" for a failed release workflow. |
There's already a bunch of contributions since
5.0.0
, I was thinking it might be time to release a5.0.1
.I've updated some numbers in preparation here, let me know if you know anything more that we should prepare before creating a new release.
Related issues
matrix-test
, drop old django versions #2133 (comment)