-
Notifications
You must be signed in to change notification settings - Fork 46
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
Release script milestone automation #409
Conversation
WARNING!!! This PR is not attached to an issue. In most cases this is not advisable. Please see our PR docs for more information about how to attach this PR to an issue. |
52cd811
to
cd86b0e
Compare
Currently validating milestone at release script:
|
39cc7d4
to
a2cebfd
Compare
.travis/redmine.py
Outdated
|
||
from redminelib import Redmine | ||
|
||
REDMINE_KEY = os.environ["REDMINE_KEY"] |
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.
Need to set this var on travis
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.
Can you change it to REDMINE_API_KEY. I think this is what we're calling it in pulp-ci.
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.
Sure!
This looks good overall.
This brings up a good point: issue 6885 was released in 1.0.1 but we're not removing the changelog entries for changes cherry picked to z-releases. Perhaps we should? Or maybe we can just check that issues are at MODIFIED+? @bmbouter @dkliban any thoughts? also, can we get a second review? |
.travis/release.py
Outdated
|
||
async def get_redmine_issue_data(url): | ||
"""Get issue JSON from redmine.""" | ||
async with aiohttp.ClientSession() as session: |
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.
How would folks feel about using https://python-redmine.com/ instead of raw aiohttp requests?
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 didn't do it before because I thought it would require to use the token, as we run it locally it would not be cool. But now I tested it, and for fetching issues, it doesn't need the token. So I'm +1 to it, it will make the code simpler
When things are cherrypicked, I would prefer that both the z-stream, e.g. 1.0.1 and the next y-stream 1.2.0 changelogs would show the same entry. My thinking is that not everyone received the z-stream release so when users skip 1.0.1 they wouldn't see the bugfix listed. I'm comfortable with also removing the changelog from the next y-stream changelog if folks think that is better. In terms of the Redmine issue for a bugfix, it's milestone can be set to the "first one released". So if that's a z-stream then its milestone can show that z-stream number. If that's a y-release then it can show the y-release number. Having the machinery ignore issues already at a CLOSED state I think is fine. |
1c45c15
to
e9da34f
Compare
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.
Thanks @fao89 ! This looks good enough for us to give it a try!
[noissue]
[noissue]