-
Notifications
You must be signed in to change notification settings - Fork 14
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
New release workflow #636
New release workflow #636
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #636 +/- ##
==========================================
- Coverage 80.73% 75.85% -4.88%
==========================================
Files 49 60 +11
Lines 3415 4312 +897
==========================================
+ Hits 2757 3271 +514
- Misses 658 1041 +383
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
thanks @danielhollas! |
@superstar54 I've written up a new release process in the wiki https://github.com/aiidalab/aiidalab/wiki/Development-guide#releasing-a-new-version Let me know if it makes sense. |
@danielhollas thanks for the update! I will follow the wiki and try to release a new version in the next few days. |
Great. Please coordinate with @unkcpz I think we want to first release an alpha version to test compatibility with AiiDA v2.5 |
Thanks both! Sure, and there are quite some issues before we move to |
@unkcpz to be honest, I would be unhappy if we blocked releasing 2.5 image on all this work since I'd really like to start using it (and it should also significantly speed the loading time of the demo server). Could you maybe backport what's needed on the support branch? |
There is no need to backport the test on |
@danielhollas Suddenly, I got a message from @unkcpz saying that making a new release is an urgent thing. Since I didn't touch the release stuff before, this work is kind of "new" to me, to better understand what's going on here and what to do next, I want to ask some "naive" question.
what's "all this work", and why it blocks the releasing?
I checked the #638, maybe I missed something, I think fixing #638 will not solve #601. @unkcpz could you give more detail on what you think? |
In the dependencies we put So I propose to add test to test QeApp (#638) along with both aiida-core versions to make sure we are in a safe situation. We should not just update the data regression test to pass the test because it is not valid test for the old stable version. tl;dr, we want the next release of QeApp can be installed and work for both |
I guess I just misunderstood what Jusong wrote above? It gave the impression that the stable release is far away? |
You are true about it, the stable release is far away. But release of the stable version will not block keep on making apha version and thus not block the test of
I understand, I also keen to get this done. It is more or less just one step away. |
Hi all, @danielhollas @unkcpz thanks for details. I will work on the #638 ASAP. |
Hi @danielhollas, thanks! I just did the release with Xing and realize this PR better go first. Since we already did the release PR with a branch named |
Just realize another problem, we encourage people to not make PR from aiidalab repo but from fork, so usually the origin is set to forked repo while upstream is set to aiidalab repo. Then the default branch usually is
@danielhollas I think make the change to bumpver tool is a better solution, what do you think? |
Hmm, but we tested that when you run bumpver in a branch it pushes that branch, and not main. It shouldn't matter if you push to fork or origin, since you will merge to origin anyway. Did I misunderstood? |
What about the tag? We need the tag appears also in aiidalab/aiidalab-qe not forked repo. |
The tag should appear there once you merge, no? That's why it is important to merge, and not rebase or squash merge, since the tag is always tied to the commit. |
That is not true I think, only if we have a CI action to do it for us explicitly. The tag always need to be created locally and push to remote repo I think, and in the past bumpver manage this for us. |
Seems like we talk past each other a bit. Yes, tag is created locally via bumpver and pushed to the repo. But the tag is not a separate entity, it always belong to a commit. So if you merge a branch from a forked repo, you'll get the tag together with the merged commit. |
63124e1
to
18e9dff
Compare
Yes, I remember, but that because the tag is created in the origin repo, it point to the commit.
Maybe I am wrong, but this not happened to @superstar54's case after we get the PR merged. You can try it with QeApp, we can delete it after. You can try by change the default remote branch to your forked repo first by |
I'll take a look and test it, perhaps I am wrong and Github does something different. |
Hi @danielhollas , I merged this PR first. Then try to make a new pre-release, and test it in the new docker aiidalab/aiidalab-docker-stack#424 |
@superstar54 please take a look at the expanded guide that I wrote and let me know if anything isn't clear, thanks! https://github.com/aiidalab/aiidalab/wiki/Development-guide#releasing-a-new-version |
Thanks @danielhollas ! |
I wanted to change the release workflow to the new semi-manual one that we now have in AWB (see the second commit on this PR), but then realized in in the case of QeApp, we don't really need a GHA workflow for it, because the release is just the tag on the main branch!
@unkcpz I thought it would be nice to merge this and test by releasing the alpha version that should support aiida-core~=2.5.
Also added a Dependabot config, same as in other repos.
(NOTE: Sorry I didn't write up the new workflow on the wiki yet, I'm hoping to do that today)