Skip to content

Conversation

@lsm5
Copy link
Member

@lsm5 lsm5 commented Dec 4, 2025

prepare-files action 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.

@lsm5
Copy link
Member Author

lsm5 commented Dec 4, 2025

cc @inknos RE: similar changes in podman-py.

@packit-as-a-service
Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

@lsm5
Copy link
Member Author

lsm5 commented Dec 4, 2025

PACKIT_PROJECT_TAG is probably another issue that needs fixing.

.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"
Copy link

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?

Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

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

@lsm5
Copy link
Member Author

lsm5 commented Dec 4, 2025

ah I gotta move the post-modifications to the propose-downstream job probably. Otherwise it's trying to mess with copr builds too.

@lsm5 lsm5 force-pushed the packit-fix branch 2 times, most recently from 21ce404 to 0ee308f Compare December 4, 2025 19:10
@lsm5
Copy link
Member Author

lsm5 commented Dec 4, 2025

@nforro PTAL at the post-modifications move. Thanks a lot!

@lsm5 lsm5 marked this pull request as ready for review December 4, 2025 19:18
`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]>
@lsm5
Copy link
Member Author

lsm5 commented Dec 5, 2025

@mtrmac PTAL. We have approval from @nforro (packit team). Will only take effect on the next release.

Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mtrmac mtrmac merged commit 2821fe7 into containers:main Dec 5, 2025
37 checks passed
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.

4 participants