Skip to content
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-tool/changelog.py: misc fixes from real world usage #10315

Merged
merged 6 commits into from May 31, 2021

Conversation

anonymouse64
Copy link
Member

@anonymouse64 anonymouse64 commented May 27, 2021

Miscellaneous little fixes I needed to apply to actually use the script for the 2.51 release.

  • The LP SRU bug release needs to be different for major releases, eventually for minor releases we can probably(?) auto-detect the right bug number, but for new major releases it should always be a new LP bug
  • The line length check was incorrect
  • For some weird reason I see that on my machine I don't get a %z timezone format string specified, so use UTC if this ends up the case
  • Fix the Fedora *.spec file date format generation, I had switched around the order of the name of the month and the day of the month.

@anonymouse64 anonymouse64 added the Skip spread Indicate that spread job should not run label May 27, 2021
…arg too

The LP bug for the release is different for every new major release, so we need
to specify this when generating the changelog.

We could eventually figure out what it should be for minor releases, but for
now just make it mandatory to specify it in the arguments to the script.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
Lines can actually be exactly 72 characters long.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
Somehow, on my system the %z format string was empty, resulting in the empty
string being used for the timezone, which does not match the expected format
for the opensuse changelog spec file. In this case, if we detect that there is
no timezone, use utc time and use the +0000 as the timezone.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
The correct format is "Mon Mar 08 2021", not "Thu 27 May 2021".

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
anonymouse64 added a commit to anonymouse64/snapd that referenced this pull request May 27, 2021
This was generated incorrectly by release-tools/changelog.py, but is now fixed
in snapcore#10315.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
anonymouse64 added a commit to anonymouse64/snapd that referenced this pull request May 27, 2021
This was generated incorrectly by release-tools/changelog.py, but is now fixed
in snapcore#10315.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
Copy link
Collaborator

@bboozzoo bboozzoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Also we have a typo s/update_opensuse_changlog/update_opensuse_changelog/

release-tools/changelog.py Outdated Show resolved Hide resolved
release-tools/changelog.py Outdated Show resolved Hide resolved
Thanks to Maciej for spotting this

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
Thanks to Maciej for sorting out the right format here, as we were using an
incorrect or inconsistent format for the past few releases, likely cargo
culting the first incorrect format that was introduced last year.

Also we should just always use UTC for this, so we can simplify the code
slightly.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@mvo5 mvo5 merged commit 72dc7d3 into snapcore:master May 31, 2021
@anonymouse64 anonymouse64 deleted the bugfix/changelog-py-fixes branch May 31, 2021 13:58
@anonymouse64 anonymouse64 added this to the 2.51 milestone Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip spread Indicate that spread job should not run
Projects
None yet
3 participants