Skip to content

Fix test containers used on release-0.4 - #2225

Merged
Molter73 merged 3 commits into
release-0.4from
mauro/backport/test-containers
Oct 26, 2026
Merged

Molter73 merged 3 commits into
release-0.4from
mauro/backport/test-containers

Conversation

@Molter73

@Molter73 Molter73 commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Description

This is a triple backport for release-0.4:

Checklist

  • Patch has a change log entry OR does not need one.
  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

Changes validated on their respective original PRs.

Molter73 and others added 3 commits October 23, 2026 10:49
After a change in the Vi/Vim versioned used by Fedora broke our
integration tests, we have decided to tag and version all images used in
our tests.

This patch adds a CI job for building and pushing the images when
`tests/containers/QA_TAG` is updated, much like we do in
stackrox/collector. It also modifies the existing tests from always
building the images to:
* Try to find the image locally.
* Attempt to pull it if it is not found.
* If unable to pulled and allowed to build locally, do that.
* Never rebuild test containers on scheduled builds

* Bump test container version

* Use debian:trixie as the base distro for 'editors'

* Use centos images + pin image versions and packages used

This leads to a closer and (hopefully) more stable version of the
existing fedora images we were previously using.

---------

Co-authored-by: Mauro Ezequiel Moltrasio <mmoltras@redhat.com>
)

* chore: validate test images don't exist on remote before building

This is a follow up to #2209, we need to backport those changes and we
need to ensure release branches will not accidentally overwrite images
built in the main branch.

A new `exists` make target is added to all test containers and a global
check ensures at least one of the images is missing before triggering
the rebuild.

On normal operation, new versions of the images will be built by the
main branch and be available once the QA_TAG bump is backported to
release branches. In this case the paths-filter action will determine a
rebuild is needed, but the new check will skip building the images.

If the images are in the process of being built on the main branch and
some of them are not yet pushed, the backported commit will push the
images again but they will have been built in such a small span of time
the resulting images will pretty much be the same.

On PRs, if the containers need to be rebuilt a unique tag is generated
and the step will always return the images don't exist.

* Global FACT_QA_TAG and portable redirections

* Don't conflate network/registry errors with manifest does not exist errors
@Molter73
Molter73 requested a review from a team as a code owner October 26, 2026 10:48
@coderabbitai

coderabbitai Bot commented Oct 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review: 2
  • main
  • ^release-*$

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 33.38%. Comparing base (db27f78) to head (8fb6ca8).

Additional details and impacted files
@@             Coverage Diff              @@
##           release-0.4    #2225   +/-   ##
============================================
  Coverage        33.38%   33.38%           
============================================
  Files               22       22           
  Lines             3630     3630           
  Branches          3630     3630           
============================================
  Hits              1212     1212           
  Misses            2409     2409           
  Partials             9        9           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Molter73
Molter73 enabled auto-merge (squash) October 26, 2026 11:12
@Molter73
Molter73 merged commit 75c3a81 into release-0.4 Oct 26, 2026
47 of 50 checks passed
@Molter73
Molter73 deleted the mauro/backport/test-containers branch October 26, 2026 11:17
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.

4 participants