-
Notifications
You must be signed in to change notification settings - Fork 8
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 RPM: Fetch from Podman upstream PR #64
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lsm5 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
faac534
to
aae8b2a
Compare
as seen here |
aae8b2a
to
edc857f
Compare
I'll be on PTO Jan 6-13, so if we can't wait until I return, feel free to take this PR forward. I hope getting rid of the second commit in this PR will be good enough for the main branch. |
@baude @Luap99 @ashley-cui PTAL |
@@ -2,10 +2,10 @@ | |||
|
|||
# Set to "dev" to pull from the podman-next copr, set to "release" | |||
# to pull the ext rom from the fedora build system based of the versions below. | |||
export PODMAN_RPM_TYPE="dev" | |||
export PODMAN_RPM_TYPE="release" |
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 change has to be reverted before we merge on main. release
should only be on the release branches. I added it to only show the rpm being replaced with the one from copr.
I can do the revert after I have LGTMs.
8c1ee28
to
bffba27
Compare
@Luap99 did something change in the cirrus image recently? from the
|
@lsm5 Yes there is a major bug in our cirrus yml... |
pushed the fix to #71 |
ee719a7
to
688deba
Compare
688deba
to
8207e26
Compare
8207e26
to
a205116
Compare
good for review. PTAL. |
podman-image/Containerfile
Outdated
# 1. For dev builds, replace aardvark-dns, conmon, crun, netavark, podman, containers-common | ||
# 2. For release builds, fetch the build from koji | ||
# 3. Remove moby-engine, containerd, runc, zincati for both dev and release builds | ||
# Note: Currently does not result in a size reduction for the container image | ||
|
||
RUN if [[ ${PODMAN_RPM_TYPE} == "dev" ]]; then \ | ||
rm /etc/yum.repos.d/podman-release-copr.repo /etc/pki/rpm-gpg/podman-release-copr.gpg; \ |
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 breaking exit code checks, you need to use &&
here
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.
done. PTAL
podman-image/Containerfile
Outdated
rpm-ostree override remove moby-engine containerd runc && \ | ||
rm -fr /var/cache && \ | ||
ostree container commit | ||
rm /etc/yum.repos.d/rhcontainerbot*.repo /etc/pki/rpm-gpg/rhcontainerbot*.gpg; \ |
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.
and here again you need 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.
done. PTAL
podman-image/Containerfile
Outdated
rpm-ostree override replace --experimental --freeze \ | ||
--from repo="copr:copr.fedorainfracloud.org:packit:containers-podman-${PODMAN_PR_NUM}" \ | ||
podman; \ | ||
fi; \ |
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.
and this is as well is also a major problem that prevents us from checking the exit code, you need 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.
done. PTAL
LGTM with comments resolved. |
a205116
to
d717e52
Compare
This commit will allow fetching the podman rpm from the upstream Podman release PR's (or any PR for that matter) Packit copr job. At this point, the upstream release PR is assumed to already have successful copr rpms. We do not need a new tag pushed to podman upstream in order for this to work. The copr created by Packit on the Podman release PR will be preserved indefinitely. Note: For now, the PODMAN_VERSION var will also have to be updated manually on release PRs. Signed-off-by: Lokesh Mandvekar <[email protected]>
Signed-off-by: Lokesh Mandvekar <[email protected]>
d717e52
to
e904256
Compare
From the latest log:
|
This commit will allow fetching the podman rpm from the upstream Podman release PR's (or any PR for that matter) Packit copr job.
At this point, the upstream PR is assumed to have passed system tests using the rpms generated in its copr job.
The copr created by Packit on the Podman release PR will be preserved indefinitely.