Skip to content

Fix container build#276

Merged
dbutenhof merged 4 commits intocloud-bulldozer:mainfrom
dbutenhof:pyfix
Oct 15, 2025
Merged

Fix container build#276
dbutenhof merged 4 commits intocloud-bulldozer:mainfrom
dbutenhof:pyfix

Conversation

@dbutenhof
Copy link
Copy Markdown
Collaborator

@dbutenhof dbutenhof commented Oct 9, 2025

Type of change

  • Refactor
  • New feature
  • Bug fix
  • Optimization
  • Documentation Update

Description

Since my Python 3.12 upgrade, the GitHub build-push.yml Action hasn't been succeeding, complaining about an unspecified issue in a RUN command within the backend.containerfile.

I first tried backing off to the original CentOS Stream 9, which didn't solve the problem: but I'm going to leave it. While having Python 3.12 pre-installed on CentOS Stream 10 was convenient, this won't help to upgrade later to 3.13 (which I'd like to do), so leaving the EPEL setup probably makes sense.

The sticking point appears to be the use of the redhat-actions/buildah-build@v2 Action, which behaves differently from a straightforward podman build command with the equivalent parameters. Ultimately, the issue seems to stem from differences between buildah bud, which is the actual command used by the action, and podman build. For simplicity, I've removed the use of the action plugin in favor of a straightforward podman build.

Related Tickets & Documents

PANDA-1044 fix container build

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.

Testing

Tested locally with ./run-container.sh, test.sh, and e2e.sh, all of which build & run containers using the same backend.containerfile.

I added a new GitHub Action workflow to duplicate the build-push.yaml build process without trying to push a container image to Quay (and which therefore doesn't need the secrets): this allows testing the real build on each PR before merging to main.

Since my Python 3.12 upgrade, the GitHub `build-push.yml` Action hasn't been
succeeding, complaining about an unspecified issue in a `RUN` command within
the `backend.containerfile`. The main relevant change was moving from the
CentOS Stream 9 base image to CentOS Stream 10. This was convenient, as it
comes with Python 3.12 installed whereas CentOS Stream 9 does not... but it
also seems the most likely source of the problem.

This is an experiment, to back off to the CentOS Stream 9 base image and
manually install Python 3.12 from EPEL.

Again, all local testing succeeds: but that was true before, as well,  so the
real test will start when this PR is merged onto `main`.
@dbutenhof dbutenhof self-assigned this Oct 9, 2025
We can't run `build-and-push` on a PR since we don't have access to the quay
secret; but this creates a stripped down copy (without the push steps) to
build containers the same way in a pull request.

A useful test ... and more importantly this allows me to debug without merging
to `main`. (Should have thought of this earlier ...)
@dbutenhof dbutenhof changed the title Attempt 1 to fix container build Fix container build Oct 13, 2025
Copy link
Copy Markdown
Collaborator

@MVarshini MVarshini left a comment

Choose a reason for hiding this comment

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

LGTM!

@dbutenhof dbutenhof merged commit ea09076 into cloud-bulldozer:main Oct 15, 2025
11 checks passed
@dbutenhof dbutenhof deleted the pyfix branch October 15, 2025 11:30
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.

2 participants