Skip to content

Conversation

@james-garner-canonical
Copy link
Contributor

@james-garner-canonical james-garner-canonical commented Aug 28, 2025

This PR adds coloured output for the logging in the release.py script, using rich.logging. This will be especially nice for the draft release, as it will more clearly separate the logging output visually from the release notes being printed. I tested this change by generating the post-release PR using this version of the script. I also tested that it runs cleanly for the draft release, bailing out with a keyboard interrupt on user input.

Before:
image

After:
image

Copy link
Collaborator

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

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

Fine with me. Can you show a before and after screenshot, just to refresh our memories of how it looked previously?

@james-garner-canonical
Copy link
Contributor Author

Here's an example of some logging from the release.py script without rich.logging.
image

@james-garner-canonical
Copy link
Contributor Author

Oh actually, the image I included in the PR body is not a good one, that was an intermediate version -- here's the actual output with rich.logging.
image

@james-garner-canonical
Copy link
Contributor Author

I've amended the PR description with accurate before and after screenshots.

@james-garner-canonical james-garner-canonical merged commit b261128 into canonical:main Aug 28, 2025
45 of 46 checks passed
Copy link
Collaborator

@tonyandrewmeyer tonyandrewmeyer left a comment

Choose a reason for hiding this comment

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

I didn't get much time to respond here, but approving retroactively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants