-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fixes to package info summaries #98
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javierggt
changed the title
Fixes to package info summaries
WIP: Fixes to package info summaries
Aug 23, 2023
… caches with the default arguments
…ant from when this code was an iterator)
…id PEP 440 numbers
javierggt
changed the title
WIP: Fixes to package info summaries
Fixes to package info summaries
Sep 5, 2023
jeanconn
approved these changes
Sep 6, 2023
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 haven't given this a line-by-line, but the documented / tested fixes in the description seem good so I think this should just get merged.
This was referenced Sep 18, 2023
Merged
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The biggest changes in this PR are in
skare3_tools.github.scripts.release_merge_info
(used to add a list of merges to the each release page) andskare3_tools.packages.get_repository_info
(used by the dashboard to collect information on packages, and when releasing ska3-flight, to make a list of all merges since last release).This PR fixes these issues:
get_repository_info
, when assembling the list PRs corresponding to releases, the releases were sorted by commit date. It is not uncommon to have the latest release at the HEAD commit. In these cases, the first and second entries in the list (current head and last release) were swapped. This caused an empty version in the dashboard, and showed merged PRs as open PRs.get_repository_info
so the cache is the same when the arguments are not given and when they are given, but equal to the defaults. Fixes Caching issue in dashboard #97And these tiny issues:
skare3-test-dashboard
, do it in batch mode (useful for me when I debug, no-op in production)github.Repository
that return lists (including fixing a broken generator)Interface impacts
None
Testing
Unit tests
Independent check of unit tests by [REVIEWER NAME]
Functional tests
For all these tests, I used the current ska3-flight, while setting PYTHONPATH to point to the skare3_tools local repo on this branch.
release_merge_info.py
script on proseco 5.10.0 (previously a long PR list because the list was sorted lexicographically).on the branch:
get_repository_info
interactively. Note that this should include a previous bugfix, release 14.0.2 has no merges because it is at the same commit as 14.0.1.get_repository_info
interactively to verify it was cached as expected:from the branch:
skare3_tools.github.scripts.release_merge_info
to verify the PR list is correct (see PR list in changes summary is wrong if a release is not from the main branch #100). Not possible on master.get_repository_info
interactively to verify the PR list is correct (see PR list in changes summary is wrong if a release is not from the main branch #100)