Skip to content

Conversation

@achilleas-k
Copy link
Member

Image types listed under CAN_BOOT_TEST are unconditionally checked for a successful boot when generating the dynamic build pipelines in CI. If specific configurations are skipped when running boot-image, those configurations will always be rebuit in every CI run because they are marked as "CAN_BOOT_TEST" but never get 'boot-success: True' set in their build info.

Disable them temporarily until we can perform the same checks during the build config generation.

Image types listed under CAN_BOOT_TEST are unconditionally checked for a
successful boot when generating the dynamic build pipelines in CI.  If
specific configurations are skipped when running boot-image, those
configurations will always be rebuit in every CI run because they are
marked as "CAN_BOOT_TEST" but never get 'boot-success: True' set in
their build info.

Disable them temporarily until we can perform the same checks during the
build config generation.
@achilleas-k achilleas-k requested a review from mvo5 December 8, 2025 17:07
@achilleas-k achilleas-k requested review from a team and thozza as code owners December 8, 2025 17:07
@achilleas-k achilleas-k requested a review from lzap December 8, 2025 17:07
@achilleas-k
Copy link
Member Author

I'm currently working on moving the skip checks to the build configuration, but it might take a while. The rebuilds seem to be causing issues, probably because we've been hitting RHOS usage limits today and the qemu tests run on RHOS runners.

supakeen
supakeen previously approved these changes Dec 8, 2025
thozza
thozza previously approved these changes Dec 9, 2025
Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

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

Thank you!

@thozza thozza enabled auto-merge December 9, 2025 07:46
mvo5
mvo5 previously approved these changes Dec 9, 2025
Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

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

<3

@thozza
Copy link
Member

thozza commented Dec 9, 2025

There are failures such as

Collecting jobs
Collected 0 jobs
Initialised 16 workers
Submitting 0 jobs... done
RPM metadata cache kept in /tmp/rpmmd
Collecting jobs
Collected 0 jobs
Initialised 16 workers
Submitting 0 jobs... done
RPM metadata cache kept in /tmp/rpmmd
collected 765 items / 765 deselected / 0 selected
===================== 765 deselected in 150.15s (0:02:30) ======================
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit status 1

@supakeen
Copy link
Member

supakeen commented Dec 9, 2025

There are failures such as

Collecting jobs
Collected 0 jobs
Initialised 16 workers
Submitting 0 jobs... done
RPM metadata cache kept in /tmp/rpmmd
Collecting jobs
Collected 0 jobs
Initialised 16 workers
Submitting 0 jobs... done
RPM metadata cache kept in /tmp/rpmmd
collected 765 items / 765 deselected / 0 selected
===================== 765 deselected in 150.15s (0:02:30) ======================
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit status 1

When pytest collects no tests it would exit with status 5.

lzap
lzap previously approved these changes Dec 9, 2025
@mvo5
Copy link
Contributor

mvo5 commented Dec 9, 2025

There are failures such as

...

collected 765 items / 765 deselected / 0 selected
===================== 765 deselected in 150.15s (0:02:30) ======================
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit status 1

When pytest collects no tests it would exit with status 5.

It seems the issue is that the ostree test get something (the port) appened to the config_name when they are called:

$ sudo -E pytest -s -k "rhel-9.8-x86_64-edge-ami-edge-ostree-pull-user-42000" ./test

this is fallout from moving to pytest, sorry for that!

@mvo5 mvo5 dismissed stale reviews from lzap, thozza, supakeen, and themself via 5581938 December 9, 2025 10:48
lzap
lzap previously approved these changes Dec 9, 2025
@thozza
Copy link
Member

thozza commented Dec 9, 2025

ostree images are still failing 😢

@achilleas-k
Copy link
Member Author

The ostree builds aren't using the generated configuration, which replaces the ostree URL with a temporary one created for the test by running the ostree container. So the test runs with the example URL in the static configs:

Generating manifest for edge-ostree-pull-user: error: [ERROR] manifest generation failed: error ostree commit resolving: ostree repository "http://example.com/repo/refs/heads/centos/9/aarch64/edge" returned status: 404 Not Found

In osbuild#2045 the script
was converted to use pytest. However this does not work
for ostree configs. A ostree config must be rewritten so
that it points to an actual ostree commit and server.

This is done in the `setup_dependencies()` script that then
creates a different config/config_name. As this is different
from the configs we get via `gen-manifests --dry-run` pytest
cannot be used here.

So for now be pragmatic and just revert
https://github.com/osbuild/images/pull/2045/files#diff-8a0342654218957707e9769f498c86df3f070ee601f5b059f77b30d4d1f50d1eL18

We probably want get back to this eventually and make this
setup part of pytest.
@mvo5 mvo5 force-pushed the disable-skippable-boot-tests branch from 5581938 to ece732b Compare December 9, 2025 14:53
Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

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

All 💚 , let's get this merged!

@thozza thozza requested review from lzap and supakeen December 10, 2025 07:28
@thozza thozza added this pull request to the merge queue Dec 10, 2025
Merged via the queue into osbuild:main with commit bbf89a7 Dec 10, 2025
23 checks passed
@achilleas-k achilleas-k deleted the disable-skippable-boot-tests branch December 10, 2025 11:28
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.

5 participants