Skip to content

Update check-snapshots to include an update functionality #4719

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

Open
wants to merge 2 commits into
base: rhel-9.2.0
Choose a base branch
from

Conversation

PicklesMcDougan
Copy link

Added a new functionality to the tools/check-snapshots utility to allow automatic updates of any files with newer results.

./tools/check-snapshots -u .

@achilleas-k achilleas-k self-requested a review May 12, 2025 11:24
@achilleas-k
Copy link
Member

Hey. Thanks for the PR. I haven't read through it in detail yet. I invited you to one of the org teams with write access so that your PR checks run without needing approval.

Could you please clean up the git history a bit? Please have a look at our commit message guidelines: https://osbuild.org/docs/developer-guide/general/workflow/#preferred-commit-message-format

Some of the commit message summaries are a bit too long. Also some commits could be squashed for cleaner history. The update script for example is added and removed in the PR, so it shouldn't appear at all. The last commit message ("final version ...") isn't very informative. It should describe what changed in the commit itself.

@bcl
Copy link
Contributor

bcl commented May 13, 2025

Also, please separate changes to the tool from changes to the json files into their own commits.

using `./tools/check-snapshots -u .` will update the test repo files
with any NEWER updates

Signed-off-by: John Castranio <[email protected]>
@PicklesMcDougan PicklesMcDougan force-pushed the update_check-snapshots branch from c9f8a8e to b29350a Compare May 16, 2025 18:20
updates to test repositories based on tools/check-updates
@bcl
Copy link
Contributor

bcl commented May 16, 2025

Err. And now I'm confused, this PR is opened against rhel-9.2.0 not the main branch. Was that on purpose?

@PicklesMcDougan
Copy link
Author

@bcl My understanding was that the more recent branches had a method for updating the snapshot urls. People were out on leave so I was just working on how to fix the failing tests for the 9.2 branch, since 9.4 was working. I am unaware if the newer branches are working simply because the snapshots are still valid, or if there was another method to update those repo urls. Outside of whatever I've done to upset Schultzbot, I'm happy to update or cancel this request in order to do whatever would be best

@bcl
Copy link
Contributor

bcl commented May 19, 2025

I'm not seeing the update option in the current version of the script on main, did you add that yourself or copy it from somewhere? I'm likely missing some context here related to the older branches though.

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.

3 participants