Skip to content

Comments

USHIFT-6519: Switch to using RHEL 9.8 in bootc presubmits and periodics#6202

Draft
ggiguash wants to merge 13 commits intoopenshift:mainfrom
ggiguash:rhel98-presubmits-bootc
Draft

USHIFT-6519: Switch to using RHEL 9.8 in bootc presubmits and periodics#6202
ggiguash wants to merge 13 commits intoopenshift:mainfrom
ggiguash:rhel98-presubmits-bootc

Conversation

@ggiguash
Copy link
Contributor

@ggiguash ggiguash commented Feb 7, 2026

Also addresses USHIFT-6521

Summary by CodeRabbit

  • Tests
    • Added local testing targets for configuring, caching, and building test artifacts to support local development.
    • Migrated test scenarios and test images to RHEL 9.8 across the suite.
    • Added a new mirror/repo entry to support RHEL 9.8 testing.
  • Bug Fixes
    • Adjusted webserver start/stop messaging to ensure stop completes before start logs and launch.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 7, 2026
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 7, 2026
@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 7, 2026

@ggiguash: This pull request references USHIFT-6519 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Also addresses USHIFT-6521

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 7, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 7, 2026

@ggiguash: This pull request references USHIFT-6519 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Also addresses USHIFT-6521

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@ggiguash
Copy link
Contributor Author

ggiguash commented Feb 7, 2026

/test ?

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 7, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ggiguash

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 7, 2026
@ggiguash
Copy link
Contributor Author

ggiguash commented Feb 7, 2026

/test e2e-aws-tests-bootc
/test e2e-aws-tests-bootc-arm
/test e2e-aws-tests-bootc-periodic
/test e2e-aws-tests-bootc-periodic-arm

@ggiguash
Copy link
Contributor Author

ggiguash commented Feb 7, 2026

/test e2e-aws-tests-bootc

@ggiguash ggiguash force-pushed the rhel98-presubmits-bootc branch from 9a26b8c to 01cab47 Compare February 9, 2026 10:47
@ggiguash
Copy link
Contributor Author

ggiguash commented Feb 9, 2026

/test e2e-aws-tests-bootc
/test e2e-aws-tests-bootc-arm
/test e2e-aws-tests-bootc-periodic
/test e2e-aws-tests-bootc-periodic-arm

@ggiguash ggiguash force-pushed the rhel98-presubmits-bootc branch from 7ffcdda to 4f4e0b4 Compare February 9, 2026 14:00
@ggiguash
Copy link
Contributor Author

ggiguash commented Feb 9, 2026

/test e2e-aws-tests-bootc
/test e2e-aws-tests-bootc-arm
/test e2e-aws-tests-bootc-periodic
/test e2e-aws-tests-bootc-periodic-arm

@ggiguash
Copy link
Contributor Author

/test e2e-aws-tests-bootc
/test e2e-aws-tests-bootc-arm
/test e2e-aws-tests-bootc-periodic
/test e2e-aws-tests-bootc-periodic-arm

@coderabbitai
Copy link

coderabbitai bot commented Feb 11, 2026

Important

Review skipped

Draft detected.

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.

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
📝 Walkthrough

Walkthrough

Adds local test Makefile targets and a find_layer macro; shifts webserver start log timing; updates many bootc containerfiles, image tags, and presubmit scenario scripts from RHEL 9.6 → 9.8; adds a rhel98 mirror repo stanza.

Changes

Cohort / File(s) Summary
Test Makefile & tools
test/Makefile, test/bin/manage_webserver.sh
Adds local testing targets (test-config-, test-cache-download, test-build-, test-build-*-upstream) and find_layer macro; moves webserver start log emission until after stop completes.
Layer1 base containerfiles
test/image-blueprints-bootc/layer1-base/group2/*rhel98-bootc-*.containerfile
Replaced base image rhel96-test-agent:latestrhel98-test-agent:latest.
Layer2 presubmit containerfiles
test/image-blueprints-bootc/layer2-presubmit/.../*rhel98-bootc-source*.containerfile
Updated FROM lines from localhost/...rhel96-...localhost/...rhel98-....
Layer3 periodic/release images & containerfiles
test/image-blueprints-bootc/layer3-periodic/.../*, test/image-blueprints-bootc/layer3-periodic/.../*.image-bootc
Replaced rhel96 image tags with rhel98 variants; removed one rhel96 image line and added rhel98 image entries.
Presubmit scenario scripts
test/scenarios-bootc/presubmits/*.sh
Updated ~25 scripts to reference rhel98-bootc* (kickstart, boot blueprints, TARGET_REF, EXPECTED_OS_VERSION where applicable) instead of rhel96 variants.
Package sources
test/package-sources-bootc/rhel98-mirror.repo
Adds new [rhel-9.8-early-kernel] repository stanza.

Sequence Diagram(s)

sequenceDiagram
    participant Dev as Developer
    participant Make as Makefile (test/Makefile)
    participant Comp as Composer config
    participant Hyper as Hypervisor config
    participant Reg as Local Registry / OSTree
    participant Cache as Cache downloader

    Dev->>Make: invoke test-build-ostree-presubmit (ARGS...)
    Make->>Comp: test-config-composer (generate config)
    Make->>Hyper: test-config-hypervisor (prepare VM blueprint)
    Make->>Cache: test-cache-download (fetch layers)
    Make->>Reg: test-build-registry-clean (ensure clean registry)
    Make->>Reg: build ostree / bootc images (push tags)
    Reg->>Make: return image refs
    Make->>Dev: report build results
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 32.65% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: switching bootc presubmits and periodics to RHEL 9.8. This aligns with the bulk of changes across containerfiles, scenario scripts, and configuration files updating RHEL 96 to RHEL 98 references.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@ggiguash
Copy link
Contributor Author

/test e2e-aws-tests-bootc
/test e2e-aws-tests-bootc-arm
/test e2e-aws-tests-bootc-periodic
/test e2e-aws-tests-bootc-periodic-arm

@ggiguash
Copy link
Contributor Author

@coderabbitai perform full review

@coderabbitai
Copy link

coderabbitai bot commented Feb 11, 2026

@ggiguash: I'll perform a full review of the PR changes.

✅ Actions performed

Full review triggered.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 11, 2026

@ggiguash: This pull request references USHIFT-6519 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Also addresses USHIFT-6521

Summary by CodeRabbit

Release Notes

  • Tests

  • Added local testing framework configuration commands for composer, hypervisor, and cache setup.

  • Introduced build targets for ostree and bootc images across presubmit, periodic, and release workflows.

  • Updated testing infrastructure to support RHEL 9.8 images and scenarios.

  • Chores

  • Updated base container images from RHEL 9.6 to RHEL 9.8.

  • Enhanced container build configurations with host networking support.

  • Updated repository configurations for local testing environment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In `@test/Makefile`:
- Around line 76-79: The Makefile declares PHONY: instead of the special .PHONY:
so the target test-build-ostree-presubmit is not marked as phony; change the
target declaration from PHONY to .PHONY and include test-build-ostree-presubmit
in that .PHONY list so Make treats test-build-ostree-presubmit as a phony target
rather than a real file.

In `@test/scenarios-bootc/presubmits/el96-prel`@el98-src@upgrade-ok.sh:
- Line 11: The boot blueprint is incorrect: the launch_vm call currently uses
--boot_blueprint rhel98-bootc but the scenario is el96-prel@el98-src and must
use the rhel96 boot blueprint; update the launch_vm invocation to use
--boot_blueprint rhel96-bootc (matching the start image) so the boot blueprint
aligns with the start image for the el96-prel scenario.
🧹 Nitpick comments (2)
test/Makefile (2)

63-65: find_layer may return multiple or zero matches silently.

If no directory matches (e.g., typo in token), the build command will run with an empty -l argument and fail with a confusing error. Consider adding a guard or using $(or $(call find_layer,...),$(error ...)).


52-58: Double-space typo on line 57.

There's an extra leading space/tab before ./bin/manage_build_cache.sh (the on line 57 shows \t rather than just \t). In a bash -c heredoc this is harmless, but it looks unintentional.

@ggiguash ggiguash marked this pull request as ready for review February 19, 2026 15:31
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 19, 2026
@ggiguash
Copy link
Contributor Author

/test all

@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 19, 2026

@ggiguash: This pull request references USHIFT-6519 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Also addresses USHIFT-6521

Summary by CodeRabbit

Release Notes

  • Tests
  • Added local testing framework with new configuration, cache management, and build commands
  • Updated test suite to use RHEL 9.8 base images across scenarios and containerfiles
  • Enhanced testing infrastructure to support development workflows

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@test/Makefile`:
- Around line 63-65: The find_layer function silently returns empty or
multi-line values causing bad -l args; change its implementation (symbol:
find_layer) to validate the number of matches and fail loudly: run a shell
snippet that finds matching directories, splits by newline, counts them, and if
count != 1 prints a single canonical path to stdout but otherwise invokes make
error (or exits non‑zero) with a clear message; ensure consuming targets (e.g.
test-build-ostree-* and test-build-bootc-*) receive exactly one safe path or the
Makefile stops with an error.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 19, 2026

@ggiguash: This pull request references USHIFT-6519 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Also addresses USHIFT-6521

Summary by CodeRabbit

  • Tests
  • Added local testing targets for configuring, caching, and building test artifacts to support local development.
  • Migrated test scenarios and test images to RHEL 9.8 across the suite.
  • Added a new mirror/repo entry to support RHEL 9.8 testing.
  • Bug Fixes
  • Adjusted webserver start/stop messaging to ensure stop completes before start logs and launch.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@ggiguash ggiguash marked this pull request as draft February 20, 2026 06:34
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 20, 2026
@ggiguash
Copy link
Contributor Author

/test ?

@ggiguash
Copy link
Contributor Author

/test e2e-aws-tests-cache
/test e2e-aws-tests-cache-arm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 20, 2026

@ggiguash: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-tests-bootc-arm 3b55a49 link true /test e2e-aws-tests-bootc-arm
ci/prow/e2e-aws-tests-cache-arm 360a284 link true /test e2e-aws-tests-cache-arm
ci/prow/e2e-aws-tests-bootc-periodic-arm 3b55a49 link true /test e2e-aws-tests-bootc-periodic-arm
ci/prow/e2e-aws-tests-bootc 3b55a49 link true /test e2e-aws-tests-bootc
ci/prow/e2e-aws-tests-bootc-periodic 3b55a49 link true /test e2e-aws-tests-bootc-periodic

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants