Skip to content

[Backport stable-f44] fix(release): tag selection in changelogs.py - #2375

Merged
renner0e merged 1 commit into
stable-f44from
backport-2363-to-stable-f44
Jun 12, 2026
Merged

[Backport stable-f44] fix(release): tag selection in changelogs.py#2375
renner0e merged 1 commit into
stable-f44from
backport-2363-to-stable-f44

Conversation

@aurora-backport

Copy link
Copy Markdown

This is an automated backport of PR #2363 to stable-f44.

Please review the changes.

Original PR Description:

This PR fixes an issue with choosing incorrect tags when we have multiple builds on the same day. We now group tags by date and make sure to only select the same date when there are multiple builds.

Tested:

$ python -m doctest .github/changelogs.py -v
Trying:
    imgs = lambda tags: {"aurora": {"RepoTags": tags}}
Expecting nothing
ok
Trying:
    get_tags("stable", imgs(["stable-20260602.1", "stable-20260609", "stable-20260609.1"]))
Expecting:
    ('stable-20260602.1', 'stable-20260609.1')
ok
Trying:
    get_tags("stable", imgs(["stable-20260602.1", "stable-20260609.1", "stable-20260609.2"]))
Expecting:
    ('stable-20260602.1', 'stable-20260609.2')
ok
Trying:
    get_tags("stable", imgs(["stable-20260526", "stable-20260602", "stable-20260602.1", "stable-20260609", "stable-20260609.1"]))
Expecting:
    ('stable-20260602.1', 'stable-20260609.1')
ok
14 items had no tests:
    changelogs
    changelogs.START_PATTERN
    changelogs.calculate_changes
    changelogs.generate_changelog
    changelogs.get_commits
    changelogs.get_image_digest
    changelogs.get_images
    changelogs.get_manifests
    changelogs.get_package_groups
    changelogs.get_packages
    changelogs.get_sbom
    changelogs.get_versions
    changelogs.main
    changelogs.parse_sbom_packages
1 item passed all tests:
   4 tests in changelogs.get_tags
4 tests in 15 items.
4 passed.
Test passed.

Closes #2362.

Disclaimer: written with iteration from Sonnet 4.6. Test plan is mine.

@codacy-production

codacy-production Bot commented Jun 12, 2026

Copy link
Copy Markdown

Not up to standards ⛔

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@renner0e
renner0e merged commit 56c7df5 into stable-f44 Jun 12, 2026
12 of 14 checks passed
@renner0e
renner0e deleted the backport-2363-to-stable-f44 branch June 12, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants