Skip to content
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

[release-1.13 backport] [CI:BUILD] Packit: install golist before updating downstream spec #2042

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

lsm5
Copy link
Member

@lsm5 lsm5 commented Jul 11, 2023

The default Packit sandbox environment that runs Packit tasks for downstream Fedora does not have golist installed by default and can't run superuser tasks.

This commit will download and extract the golist binary from the Fedora rpm and use it to provide golist.

The GOPATH mention in rpm/update-spec-provides.sh is only required for golist to generate the gopaths and doesn't affect upstream or the rpm spec.

Currently, the only way to reliably test this is on an open github issue by running /packit propose-downstream. This can't be run on an open PR. The job-specific packit actions can only be tested via the packit service and not via packit cli.

(cherry picked from commit a39972c)

…ting downstream spec

The default Packit sandbox environment that runs Packit tasks for
downstream Fedora does not have golist installed by default and can't
run superuser tasks.

This commit will download and extract the golist binary from the Fedora
rpm and use it to provide golist.

The GOPATH mention in `rpm/update-spec-provides.sh` is only required for
golist to generate the gopaths and doesn't affect upstream or the rpm spec.

Currently, the only way to reliably test this is on an open github issue by running
`/packit propose-downstream`. This can't be run on an open PR.
The job-specific packit actions can only be tested via the packit
service and not via packit cli.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
(cherry picked from commit a39972c)
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
@lsm5
Copy link
Member Author

lsm5 commented Jul 11, 2023

i'll merge this once tests pass based on #2041 (comment)

@mtrmac
Copy link
Contributor

mtrmac commented Jul 11, 2023

ACK. (#2036 shows a failure, but it also clearly is not testing the updated code.)

@lsm5
Copy link
Member Author

lsm5 commented Jul 11, 2023

@mtrmac yes, i'm actually going by https://dashboard.packit.dev/results/propose-downstream/2892 which created the expected PR at https://src.fedoraproject.org/rpms/aardvark-dns/pull-request/5#request_diff . In that case, the script was correct and the cargo dependency was included in packit's sandbox. Just that earlier it wasn't producing the correct output in the fedora PR.

So, in skopeo's case the script should get properly triggered for the next upstream skopeo release and assuming golist has been fetched correctly, everything should be smooth for our next release. Sorry for the PITA, just that currently there's no direct cheap way to verify this until we cut a new release.

@lsm5 lsm5 merged commit d5b1f34 into containers:release-1.13 Jul 11, 2023
@mtrmac
Copy link
Contributor

mtrmac commented Jul 11, 2023

@lsm5 No worries, it’s great to be able to trust your expertise.

@lsm5 lsm5 deleted the release-1.13-packit branch July 13, 2023 12:56
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants