Skip to content

Conversation

@AnuGayan
Copy link
Contributor

@AnuGayan AnuGayan commented Jan 24, 2026

This pull request introduces a minor update to the CloudFormation template by adding support for RHEL 10. The change consists of including the appropriate AMI mapping for the new RHEL 10 image.

  • Platform support:
    • Added a new mapping for RHEL10 with its corresponding AMI (ami-0ad50334604831820) in the Mappings section of jobs/intg-test-resources/update2-releases/wso2-u2-intg-test-cfn.yaml.

Summary by CodeRabbit

  • Chores
    • Added support for RHEL10 operating system in test infrastructure.

✏️ Tip: You can customize this high-level summary in your review settings.

Copilot AI review requested due to automatic review settings January 24, 2026 03:22
@coderabbitai
Copy link

coderabbitai bot commented Jan 24, 2026

Walkthrough

A CloudFormation template was updated to include a new mapping entry for RHEL10 operating system with AMI ID ami-0ad50334604831820 under the existing OperatingSystemAMI mapping section.

Changes

Cohort / File(s) Summary
CloudFormation OS Mappings
jobs/intg-test-resources/update2-releases/wso2-u2-intg-test-cfn.yaml
Added RHEL10 AMI mapping entry (ami-0ad50334604831820) to the OperatingSystemAMI mapping configuration

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A hop and a skip, RHEL10's here,
New AMI mapping brings cheer!
Configuration grows with ease,
Infrastructure amendments please. 🚀

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the purpose and approach but lacks most required template sections (Goals, User stories, Release notes, Documentation, etc.). It provides only a basic overview of the technical change. Complete the pull request description by filling out the required template sections including Goals, User stories, Release notes, Documentation, Test environment, and other applicable sections from the repository template.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change—adding RHEL10 image support to the WSO2 integration test configuration, which directly reflects the modifications in the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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


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.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds RHEL 10 support to the WSO2 update2 integration test CloudFormation template by introducing an AMI mapping entry.

Changes:

  • Added a new RHEL10 entry under the OperatingSystemAMI mapping with AMI ami-0ad50334604831820.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 215 to +219
img: ami-077a8c9eeb949d9d6
RHEL9:
img: ami-07aa0998b75b559e0
RHEL10:
img: ami-0ad50334604831820
Copy link

Copilot AI Jan 24, 2026

Choose a reason for hiding this comment

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

Adding the RHEL10 AMI mapping is not sufficient on its own: the template’s OS gating/bootstrapping logic does not recognize "RHEL10" yet. In particular, the IsUnix condition currently excludes RHEL10, so choosing OperatingSystem=RHEL10 would prevent WSO2UnixInstance from being created (and the UserData branches that handle RHEL8/RHEL9/Rocky won’t run for RHEL10 either). Update the IsUnix condition and the relevant UserData OS checks to include RHEL10 (likely alongside the existing RHEL9/Rocky paths).

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not needed as this will be passed as a parameter

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

🤖 Fix all issues with AI agents
In `@jobs/intg-test-resources/update2-releases/wso2-u2-intg-test-cfn.yaml`:
- Around line 218-219: RHEL10 is added to the AMI map but not included in the OS
condition and bootstrap branches; update the CloudFormation template so the
"RHEL10" key is treated like "RHEL9": add "RHEL10" into the IsUnix condition (or
create an explicit IsRHEL10 condition) and include it in the same UserData and
cfn-signal branches that run RHEL9 bootstrap steps (or add a parallel RHEL10
UserData/cfn-signal branch), ensuring instances with OperatingSystem=RHEL10
evaluate IsUnix true and execute the same bootstrap and cfn-signal actions.

Comment on lines +218 to +219
RHEL10:
img: ami-0ad50334604831820
Copy link

@coderabbitai coderabbitai bot Jan 24, 2026

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Add RHEL10 to OS conditions and UserData branches.
RHEL10 is mapped, but it isn’t included in IsUnix or any of the OS-specific UserData/cfn-signal branches. Selecting OperatingSystem=RHEL10 will result in no instance being created and missing bootstrap steps. Please wire RHEL10 into the same paths as RHEL9 (or an explicit RHEL10 branch if needed).

🔧 Suggested updates
 Conditions:
   IsWindows: !Equals [ !Ref OperatingSystem, "Windows" ]
-  IsUnix: !Or [ !Equals [ !Ref OperatingSystem, "CentOS"], !Equals [ !Ref OperatingSystem, "Ubuntu" ], !Equals [ !Ref OperatingSystem, "RHEL8" ], !Equals [ !Ref OperatingSystem, "RHEL9" ], !Equals [ !Ref OperatingSystem, "SUSE" ], !Equals [ !Ref OperatingSystem, "Rocky" ]]
+  IsUnix: !Or [ !Equals [ !Ref OperatingSystem, "CentOS"], !Equals [ !Ref OperatingSystem, "Ubuntu" ], !Equals [ !Ref OperatingSystem, "RHEL8" ], !Equals [ !Ref OperatingSystem, "RHEL9" ], !Equals [ !Ref OperatingSystem, "RHEL10" ], !Equals [ !Ref OperatingSystem, "SUSE" ], !Equals [ !Ref OperatingSystem, "Rocky" ]]

-              if [[ ${OperatingSystem} == "CentOS" ]] || [[ ${OperatingSystem} == "RHEL8" ]] || [[ ${OperatingSystem} == "RHEL9" ]] || [[ ${OperatingSystem} == "Rocky" ]]; then
+              if [[ ${OperatingSystem} == "CentOS" ]] || [[ ${OperatingSystem} == "RHEL8" ]] || [[ ${OperatingSystem} == "RHEL9" ]] || [[ ${OperatingSystem} == "RHEL10" ]] || [[ ${OperatingSystem} == "Rocky" ]]; then
...
-                if [[ ${OperatingSystem} == "RHEL8" ]] || [[ ${OperatingSystem} == "RHEL9" ]] || [[ ${OperatingSystem} == "Rocky" ]] ; then
+                if [[ ${OperatingSystem} == "RHEL8" ]] || [[ ${OperatingSystem} == "RHEL9" ]] || [[ ${OperatingSystem} == "RHEL10" ]] || [[ ${OperatingSystem} == "Rocky" ]] ; then
...
-              if [[ ${OperatingSystem} == "RHEL9" ]] || [[ ${OperatingSystem} == "Rocky" ]]; then
+              if [[ ${OperatingSystem} == "RHEL9" ]] || [[ ${OperatingSystem} == "RHEL10" ]] || [[ ${OperatingSystem} == "Rocky" ]]; then
...
-              if [[ ${OperatingSystem} == "RHEL8" ]] || [[ ${OperatingSystem} == "CentOS" ]] || [[ ${OperatingSystem} == "SUSE" ]]; then
+              if [[ ${OperatingSystem} == "RHEL8" ]] || [[ ${OperatingSystem} == "RHEL10" ]] || [[ ${OperatingSystem} == "CentOS" ]] || [[ ${OperatingSystem} == "SUSE" ]]; then
...
-              if [[ ${OperatingSystem} == "RHEL8" ]] || [[ ${OperatingSystem} == "RHEL9" ]] || [[ ${OperatingSystem} == "SUSE" ]] || [[ ${OperatingSystem} == "Rocky" ]]; then
+              if [[ ${OperatingSystem} == "RHEL8" ]] || [[ ${OperatingSystem} == "RHEL9" ]] || [[ ${OperatingSystem} == "RHEL10" ]] || [[ ${OperatingSystem} == "SUSE" ]] || [[ ${OperatingSystem} == "Rocky" ]]; then
...
-              if [[ ${OperatingSystem} == "RHEL8" ]] || [[ ${OperatingSystem} == "RHEL9" ]] || [[ ${OperatingSystem} == "Rocky" ]]; then
+              if [[ ${OperatingSystem} == "RHEL8" ]] || [[ ${OperatingSystem} == "RHEL9" ]] || [[ ${OperatingSystem} == "RHEL10" ]] || [[ ${OperatingSystem} == "Rocky" ]]; then
🤖 Prompt for AI Agents
In `@jobs/intg-test-resources/update2-releases/wso2-u2-intg-test-cfn.yaml` around
lines 218 - 219, RHEL10 is added to the AMI map but not included in the OS
condition and bootstrap branches; update the CloudFormation template so the
"RHEL10" key is treated like "RHEL9": add "RHEL10" into the IsUnix condition (or
create an explicit IsRHEL10 condition) and include it in the same UserData and
cfn-signal branches that run RHEL9 bootstrap steps (or add a parallel RHEL10
UserData/cfn-signal branch), ensuring instances with OperatingSystem=RHEL10
evaluate IsUnix true and execute the same bootstrap and cfn-signal actions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not needed as this will be passed as a parameter

Copy link

Choose a reason for hiding this comment

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

@AnuGayan, I understand that OperatingSystem is passed as a parameter, but the concern is about how that parameter value is used within the template logic.

Here's the technical issue:

  1. CloudFormation condition: The IsUnix condition (around line 220) explicitly checks for specific OS values. If someone passes OperatingSystem=RHEL10, the condition evaluates to false because RHEL10 isn't in the list. This means WSO2UnixInstance (which has Condition: 'IsUnix') won't be created at all.

  2. UserData script logic: The bash script has multiple OS-specific branches (e.g., installing packages, setting up cfn-signal). If RHEL10 isn't included in these conditionals, those installation steps won't execute for RHEL10 instances.

While the parameter allows users to specify RHEL10, the template currently doesn't have the logic to handle that value. You might want to verify this works as expected with the current structure, or consider adding RHEL10 to the relevant conditions and script branches similar to how RHEL9 is handled.

Let me know if you'd like me to search for more information about RHEL10-specific requirements or if you've tested this configuration!

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