-
Notifications
You must be signed in to change notification settings - Fork 140
test: Fix packit-reboot.yml download URL issue #1664
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
Conversation
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
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.
Code Review
This pull request correctly updates the download URL for the packit-reboot.yml
ansible playbook to point to the main bootc-dev/bootc
repository. My review includes one suggestion to improve the stability of this test dependency by pinning the URL to a specific commit hash instead of the main
branch. This will make the tests more reliable and prevent unexpected failures due to upstream changes.
- how: ansible | ||
playbook: | ||
- https://github.com/henrywang/bootc/raw/refs/heads/gating/hack/packit-reboot.yml | ||
- https://github.com/bootc-dev/bootc/raw/refs/heads/main/hack/packit-reboot.yml |
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.
While this change correctly points to the canonical repository, fetching the playbook from the main
branch can cause test instability. If the remote packit-reboot.yml
file changes, this test may break unexpectedly. For improved reliability and reproducible builds, it's best practice to pin the URL to a specific commit SHA instead of a branch name.
For example, you could use a URL like:
https://github.com/bootc-dev/bootc/raw/<full-commit-hash>/hack/packit-reboot.yml
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.
This is a really simple playbook for reboot, no additional code included. So no need to pin to commit
.
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.
lgtm
- how: ansible | ||
playbook: | ||
- https://github.com/henrywang/bootc/raw/refs/heads/gating/hack/packit-reboot.yml | ||
- https://github.com/bootc-dev/bootc/raw/refs/heads/main/hack/packit-reboot.yml |
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.
Wait but can't we just specify running the playbook from the local git checkout?
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.
Two reasons:
- According to https://tmt.readthedocs.io/en/stable/plugins/prepare.html#ansible, I can't trace the git checkout folder. Very sad thing for me.
- The Fedora CI and OSCI gating does not have local git. I need extract
.src.rpm
. And it does not work withansible
prepare.
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.
And I'm working on another PR to use .src.rpm
instead of local git checkout. Just for working with dist-git gating test.
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 can't trace the git checkout folder. Very sad thing for me.
What do you mean "trace"? Oh...are you getting hit by
Line 17 in 3fd43a7
# Move the tmt bits to a subdirectory to work around https://github.com/teemtee/tmt/issues/4062 |
We can add
hack/
there too.
The Fedora CI and OSCI gating does not have local git. I need extract .src.rpm. And it does not work with ansible prepare.
Hmm. I often go back to referencing https://cockpit-project.org/blog/fmf-unified-testing.html
Though it looks like things have changed there for cockpit nowadays....
I also looked at https://src.fedoraproject.org/rpms/dnf5/blob/rawhide/f/.packit.yaml#_85 which is interesting.
Anyways I think the idea here is we should definitely be able to store this in a git repo directly.
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.
The dnf5 fedora dist-git does not have gating test for release PR, like https://src.fedoraproject.org/rpms/dnf5/pull-request/102.
PR #1642 merged, so the
packit-reboot.yml
ansible playbook download URL should be moved tobootc-dev/bootc
now.