-
Notifications
You must be signed in to change notification settings - Fork 886
Packit: use post-modifications hook to update downstream TMT plan
#2763
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
|
cc @inknos RE: similar changes in podman-py. |
|
Ephemeral COPR build failed. @containers/packit-build please check. |
|
|
.packit.yaml
Outdated
| prepare-files: >- | ||
| bash -c "sed -i 's/^\(\s*\)ref: .*/\1ref: \"${PACKIT_PROJECT_TAG}\"/' ${PACKIT_DOWNSTREAM_REPO}/plans/main.fmf" | ||
| post-modifications: >- | ||
| bash -c "sed -i 's/^\(\s*\)ref: .*/\1ref: \"v${PACKIT_PROJECT_VERSION}\"/' ${PACKIT_DOWNSTREAM_REPO}/plans/main.fmf" |
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.
is PACKIT_DOWNSTREAM_REPO the right variable to use?
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.
It's a path to cloned dist-git repo, so yes, I would say it's right. Out of curiosity, why do you ask? Does the name seem out of place?
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 would say so: https://packit.dev/docs/configuration/actions#run-condition-1
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 got confused by seeing the variable empty in the tests and then I checked here and found PACKIT_DOWNSTREAM_NAME and PACKIT_DOWNSTREAM_URL. I guess my bad
|
ah I gotta move the post-modifications to the propose-downstream job probably. Otherwise it's trying to mess with copr builds too. |
21ce404 to
0ee308f
Compare
|
@nforro PTAL at the post-modifications move. Thanks a lot! |
`prepare-files` action was interfering with spec file update which caused containers#2760 . `post-modifications` needs to be limited to the propose_downstream job or else it will interfere with upstream PR copr builds. Also, s/PACKIT_PROJECT_TAG/PACKIT_PROJECT_VERSION/ . Co-authored-by: Nikola Forró <[email protected]> Signed-off-by: Lokesh Mandvekar <[email protected]>
mtrmac
left a comment
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.
Thanks!
prepare-filesaction was interfering with spec file update which caused #2760 .Note: This will only take effect during the downstream update after an upstream release. No way to verify this before upstream merge.