-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -11,7 +11,7 @@ prepare: | |||
# reboot in ansible is the only way to reboot in tmt prepare | ||||
- 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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Two reasons:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And I'm working on another PR to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
What do you mean "trace"? Oh...are you getting hit by Line 17 in 3fd43a7
We can add hack/ there too.
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 commentThe 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. |
||||
execute: | ||||
how: tmt | ||||
|
||||
|
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 remotepackit-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
.