Skip to content

Conversation

@ggiguash
Copy link
Contributor

@ggiguash ggiguash commented Feb 7, 2026

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.

@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

📝 Walkthrough

Walkthrough

This pull request adds local testing framework targets to test/Makefile, exports the WEB_SERVER_PORT environment variable, enables host networking for Podman commands, updates repository mirror configuration to use localhost, and migrates test scenarios and container base images from RHEL 9.6 (rhel96) to RHEL 9.8 (rhel98).

Changes

Cohort / File(s) Summary
Test Framework & Configuration
test/Makefile, test/bin/common.sh, test/bin/manage_webserver.sh
Adds Makefile targets for local testing (test-config-, test-cache-download, test-build-), exports WEB_SERVER_PORT variable, and reorders web server startup message timing.
Podman Build Configuration
test/bin/pyutils/build_bootc_images.py
Enables --network host flag in Podman build and run commands for improved networking during container operations.
Package Sources
test/package-sources-bootc/rhel98-mirror.repo
Updates repository baseurl from template-based dynamic URL to localhost-based URL using WEB_SERVER_PORT environment variable.
Container Base Images (layer1-base)
test/image-blueprints-bootc/layer1-base/group2/rhel98-bootc-*.containerfile
Updates base image references from rhel96-test-agent:latest to rhel98-test-agent:latest across three Containerfiles.
Container Base Images (layer2-presubmit)
test/image-blueprints-bootc/layer2-presubmit/group{1,2}/rhel98-bootc-*.containerfile
Updates base image references from localhost/rhel96 variants to localhost/rhel98 variants across five Containerfiles.
Container Base Images (layer3-periodic)
test/image-blueprints-bootc/layer3-periodic/group{1,2}/rhel98-bootc-*.containerfile, .image-bootc
Updates base image references from rhel96-bootc-source to rhel98-bootc-source, adds rhel98-bootc-source-isolated entry, removes rhel96 reference.
Test Scenarios
test/scenarios-bootc/presubmits/el98-*@*.sh (26 files)
Systematically updates all test scenario scripts to use RHEL 98 boot blueprints and source images instead of RHEL 96 throughout scenario_create_vms and scenario_run_tests functions.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 31.37% 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 accurately and specifically describes the main change: updating bootc presubmits and periodics to use RHEL 9.8, which is the primary functional update across the majority of file changes.

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

✨ Finishing touches
  • 📝 Generate docstrings
🧪 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.

Comment on lines +76 to +79
PHONY: test-build-ostree-presubmit
test-build-ostree-presubmit:
./bin/build_images.sh -l $(call find_layer,image-blueprints,base) $(ARGS)
./bin/build_images.sh -l $(call find_layer,image-blueprints,presubmit) $(ARGS)
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Missing . prefix: PHONY should be .PHONY.

Line 76 declares PHONY: instead of .PHONY:, so test-build-ostree-presubmit won't actually be marked as phony. Make will treat PHONY as a real target.

Proposed fix
-PHONY: test-build-ostree-presubmit
+.PHONY: test-build-ostree-presubmit
🧰 Tools
🪛 checkmake (0.2.2)

[warning] 76-76: Target "PHONY" should be declared PHONY.

(phonydeclared)

🤖 Prompt for AI Agents
In `@test/Makefile` around lines 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.


prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm --boot_blueprint rhel96-bootc
launch_vm --boot_blueprint rhel98-bootc
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check boot_blueprint and start_image patterns in scenario files
echo "=== Checking el9X@elYY upgrade scenarios ==="
fd -e sh test/scenarios-bootc/presubmits/ | grep '@' | while read file; do
  echo "--- $file ---"
  grep -E '(start_image|boot_blueprint)' "$file" | head -6
done

Repository: openshift/microshift

Length of output: 559


🏁 Script executed:

#!/bin/bash
# Fix: use correct fd syntax
echo "=== Checking upgrade scenarios (el9X@elYY pattern) ==="
fd '@' test/scenarios-bootc/presubmits/ --type f | while read file; do
  echo "--- $(basename "$file") ---"
  grep -E '(start_image|boot_blueprint)' "$file" | grep -v '^#'
  echo
done

Repository: openshift/microshift

Length of output: 2766


Change boot blueprint back to rhel96-bootc.

The boot blueprint should match the start image version. All other upgrade scenarios follow this pattern: el96-prel@el100-src uses rhel96-bootc, el98-src@el100-src uses rhel98-bootc. This file incorrectly pairs rhel96-bootc-prel (start) with rhel98-bootc (boot).

🤖 Prompt for AI Agents
In `@test/scenarios-bootc/presubmits/el96-prel`@el98-src@upgrade-ok.sh at 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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 11, 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-periodic e63bdd7 link true /test e2e-aws-tests-bootc-periodic
ci/prow/e2e-aws-tests-bootc-periodic-arm e63bdd7 link true /test e2e-aws-tests-bootc-periodic-arm
ci/prow/e2e-aws-tests-bootc e63bdd7 link true /test e2e-aws-tests-bootc
ci/prow/e2e-aws-tests-bootc-arm e63bdd7 link true /test e2e-aws-tests-bootc-arm

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