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 RPM: Fetch from Podman upstream PR #64

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lsm5
Copy link
Member

@lsm5 lsm5 commented Dec 27, 2024

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.

Fetch rpm from upstream podman PR's copr build job

Copy link

openshift-ci bot commented Dec 27, 2024

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@lsm5 lsm5 force-pushed the main-copr-rpm-upstream branch 4 times, most recently from faac534 to aae8b2a Compare December 27, 2024 08:52
@lsm5 lsm5 marked this pull request as ready for review December 27, 2024 09:22
@lsm5
Copy link
Member Author

lsm5 commented Dec 27, 2024

Installing 1 packages:
  podman-102:5.4.0~dev-1.20241226125652340763.pr24369.370.a4e73e784.fc41.x86_64 (@commandline)
Updating: podman;102:5.4.0~dev-1.20241226125652340763.pr24369.370.a4e73e784.fc41;x86_64;local
Cleanup: podman;5:5.3.0-1.fc41;x86_64;installed

as seen here

@lsm5 lsm5 force-pushed the main-copr-rpm-upstream branch from aae8b2a to edc857f Compare January 2, 2025 10:16
@lsm5
Copy link
Member Author

lsm5 commented Jan 3, 2025

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.

@lsm5
Copy link
Member Author

lsm5 commented Jan 15, 2025

@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"
Copy link
Member Author

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.

@lsm5 lsm5 marked this pull request as draft January 30, 2025 13:41
@lsm5 lsm5 force-pushed the main-copr-rpm-upstream branch 3 times, most recently from 8c1ee28 to bffba27 Compare January 30, 2025 15:02
@lsm5
Copy link
Member Author

lsm5 commented Jan 30, 2025

@Luap99 did something change in the cirrus image recently?

from the Verify libkrun test

make -C podman podman-remote
/bin/bash: go: command not found
Makefile:152: invalid `override' directive
make: go: Command not found
env: go: No such file or directory
env: go: No such file or directory
Makefile:191: *** Required variable NATIVE_GOOS value is undefined, whitespace, or empty.  Stop.

Exit status: 2

@Luap99
Copy link
Member

Luap99 commented Jan 30, 2025

@lsm5 Yes there is a major bug in our cirrus yml...
I was in fact just looking at this already please do not rerun any tasks here. I will post a PR with the fix

@Luap99
Copy link
Member

Luap99 commented Jan 30, 2025

pushed the fix to #71

@lsm5 lsm5 force-pushed the main-copr-rpm-upstream branch 2 times, most recently from ee719a7 to 688deba Compare January 31, 2025 12:50
@lsm5 lsm5 marked this pull request as ready for review January 31, 2025 13:34
@lsm5 lsm5 force-pushed the main-copr-rpm-upstream branch from 688deba to 8207e26 Compare February 4, 2025 11:20
@lsm5 lsm5 force-pushed the main-copr-rpm-upstream branch from 8207e26 to a205116 Compare February 4, 2025 12:05
@lsm5
Copy link
Member Author

lsm5 commented Feb 4, 2025

good for review. PTAL.

build.sh Outdated Show resolved Hide resolved
podman-image/Containerfile Outdated Show resolved Hide resolved
# 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; \
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

done. PTAL

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; \
Copy link
Member

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 &&

Copy link
Member Author

Choose a reason for hiding this comment

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

done. PTAL

rpm-ostree override replace --experimental --freeze \
--from repo="copr:copr.fedorainfracloud.org:packit:containers-podman-${PODMAN_PR_NUM}" \
podman; \
fi; \
Copy link
Member

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 &&

Copy link
Member Author

Choose a reason for hiding this comment

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

done. PTAL

@baude
Copy link
Member

baude commented Feb 4, 2025

LGTM with comments resolved.

@lsm5 lsm5 force-pushed the main-copr-rpm-upstream branch from a205116 to d717e52 Compare February 5, 2025 11:08
@lsm5 lsm5 marked this pull request as draft February 5, 2025 11:09
lsm5 added 2 commits February 5, 2025 16:46
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]>
@lsm5 lsm5 force-pushed the main-copr-rpm-upstream branch from d717e52 to e904256 Compare February 5, 2025 11:16
@lsm5
Copy link
Member Author

lsm5 commented Feb 5, 2025

From the latest log:

Installing 1 packages:
  podman-102:5.4.0~dev-1.20250130152252168600.pr24369.67.9f01c0748.fc41.x86_64 (@commandline)
Updating: podman;102:5.4.0~dev-1.20250130152252168600.pr24369.67.9f01c0748.fc41;x86_64;local
Cleanup: podman;5:5.3.1-1.fc41;x86_64;installed

@lsm5 lsm5 marked this pull request as ready for review February 5, 2025 11:35
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.

3 participants