Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify schedule to create Incident SLES4SAP HDD #20086

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

a-kpappas
Copy link
Contributor

@a-kpappas a-kpappas commented Aug 29, 2024

The schedule to create the image that all the on-prem SAP specific scenarios are using was complicated because it had:

  1. Cases for unsupported versions
  2. Workarounds for YAMLs being unable to loop
  3. Unused options
  4. Nested cases that were always true

This commit fixes that by:

  1. Removing unsupported versions
  2. Modifying system_role.pm to remove the need to unroll a version loop inside the yaml
  3. Removing unused options.
  4. Moving the cases up the tree.

-- FIPS Verification: https://openqa.suse.de/tests/overview?build=apappas-test&distri=sle&version=15-SP6&groupid=605

Copy link
Contributor

@mpagot mpagot left a comment

Choose a reason for hiding this comment

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

LGTM

tests/installation/system_role.pm Outdated Show resolved Hide resolved
# needle check to make sure we are in the correct place and the System Role
# dialog did not come up.
assert_screen('partitioning-edit-proposal-button');
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar to the first elsif, I think it'd be a good idea to add a record_info here indicating that test is skipping the screen/check because there is no system role selection in SLES for SAP 12-SP5

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will add the record_info

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will not remove the needle check because the comments reminded me why I added it. It exists because when system_role.pm is run in create_hdd_SLES_gnome, the job we need for migrations, is_sles4sap returns true. So we need to add a check_screen to make sure the system role SCREEN has not come up.

Here is an example where I run is_sles4sap in the sles create_hdd job and it returns true. http://openqaworker15.qa.suse.cz/tests/295826#step/system_role/1

Copy link
Contributor

@mpagot mpagot left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@alvarocarvajald alvarocarvajald left a comment

Choose a reason for hiding this comment

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

LGTM

The schedule to create the image that all the on-prem SAP specific scenarios are
using was complicated because it had:
1. Cases for unsupported versions
2. Workarounds for YAMLs being unable to loop
3. Unused options
4. Nested cases that were always true

This commit fixes that by:
1. Removing unsupported versions
2. Modifying system_role.pm to remove the need to unroll a version loop inside
the yaml
3. Removing unused options.
4. Moving the cases up the tree.

Related Ticket: TEAM-9610

Delete unsupported SLES4SAP version

Remove conditionals from the schedule that are always true
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.

3 participants