test: retrieve unique package and latest version for YAML generation #190
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.
There were two issues with the original code: the
sort -u -t- -k5,5
command was not returning the latest version for each package, and because some package names came with additional dash(es), i.e.python-monitoring-dashboards
whenpython-monitoring
exists, some packages were not being regenerated at all. Currently the command returns the following list:Fixing this by retrieving the unique package names, then using that to retrieve the latest version for each tarball. This now retrieves the following list:
I've verified manually that there are no packages dropped compared to the bucket, as well as that each of these are the latest version of each tarball.
Fixes #189.