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

Fix base-image CI exiting early when update is needed #671

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

gerrod3
Copy link
Collaborator

@gerrod3 gerrod3 commented Oct 1, 2024

No description provided.

@@ -45,6 +45,8 @@ runs:
# Enable running/building ARM64 images: https://github.com/multiarch/qemu-user-static
sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes
IMAGES=()
# Github runs with -e by default, but dnf check-upgrade returns 100 when upgrade needed
set +e
Copy link
Member

@mdellweg mdellweg Oct 1, 2024

Choose a reason for hiding this comment

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

Shouldn't we do

if ! podman run --pull=never pulp/${IMAGE}:ci-${ARCH} bash -c "dnf check-upgrade"
then
...
fi

instead?

@gerrod3 gerrod3 force-pushed the unsete branch 2 times, most recently from 278cef0 to 9ec59c5 Compare October 1, 2024 15:03
Copy link
Member

@mdellweg mdellweg left a comment

Choose a reason for hiding this comment

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

Looks good now.

@gerrod3
Copy link
Collaborator Author

gerrod3 commented Oct 2, 2024

The compose test was failing because it was trying to pull the tag 3.63 for the web image, but we haven't published that tag yet since our CI was broken yesterday during the release. I changed the code so that it'll pull 'latest' instead of the branch version for PRs and releases on latest so that we should be able to pull something. Now how useful it is to test compose with the multi-process images, I don't know.

@gerrod3 gerrod3 merged commit f821ca7 into pulp:latest Oct 2, 2024
16 checks passed
@gerrod3 gerrod3 deleted the unsete branch October 2, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants