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

Convert perf tuning upgrade scenario to new format #16929

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

Conversation

synkd
Copy link
Contributor

@synkd synkd commented Nov 15, 2024

As part of the current upgrade scenarios refactor, this PR converts the performance tuning scenario to use the SharedResource framework, converts the pre-upgrade test to a Pytest fixture, and adds a Satellite upgrade fixture for this scenario.

@synkd synkd self-assigned this Nov 15, 2024
@synkd synkd added Upgrades Issues and PRs related to upgrades CherryPick PR needs CherryPick to previous branches 6.13.z Introduced in or relating directly to Satellite 6.13 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 6.16.z Introduced in or relating directly to Satellite 6.16 labels Nov 15, 2024
@synkd
Copy link
Contributor Author

synkd commented Nov 15, 2024

trigger: test-robottelo
pytest: tests/new_upgrades/test_performance_tuning.py
env:
BROKER_SSH_BACKEND: hussh

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 9374
Build Status: SUCCESS
PRT Comment: pytest tests/new_upgrades/test_performance_tuning.py --external-logging
Test Result : ================= 1 passed, 19 warnings in 4301.67s (1:11:41) ==================

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Nov 15, 2024
Copy link

@Copilot 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.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 suggestion.

Comments skipped due to low confidence (2)

tests/new_upgrades/conftest.py:106

  • [nitpick] The variable name sat_instance is ambiguous. It should be renamed to satellite_instance for clarity.
sat_instance = shared_checkout("perf_tuning_upgrade")

tests/new_upgrades/conftest.py:108

  • [nitpick] The variable name sat_instance is ambiguous. It should be renamed to satellite_instance for clarity.
"perf_tuning_upgrade_tests", shared_checkin, sat_instance=sat_instance

@@ -0,0 +1,97 @@
"""Test for Performance Tuning related Upgrade Scenario's
Copy link
Preview

Copilot AI Nov 17, 2024

Choose a reason for hiding this comment

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

The word 'Scenario's' should be 'Scenarios'.

Suggested change
"""Test for Performance Tuning related Upgrade Scenario's
"""Test for Performance Tuning related Upgrade Scenarios

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Copy link
Member

@JacobCallahan JacobCallahan left a comment

Choose a reason for hiding this comment

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

Some minor comments for ids. Otherwise, this is looking nice

def perf_tuning_upgrade_setup(perf_tuning_upgrade_shared_satellite, upgrade_action):
"""In preupgrade scenario we apply non-default tuning size.

:id: preupgrade-83404326-20b7-11ea-a370-48f17f1fc2e1
Copy link
Member

Choose a reason for hiding this comment

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

we should be able to drop ids for this since it's a fixture now

"""In postupgrade scenario, we verify the set tuning parameters and custom-hiera.yaml
file's content.

:id: postupgrade-31e26b08-2157-11ea-9223-001a4a1601d8
Copy link
Member

Choose a reason for hiding this comment

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

May be best to remove post-upgrade from these as well

Suggested change
:id: postupgrade-31e26b08-2157-11ea-9223-001a4a1601d8
:id: 31e26b08-2157-11ea-9223-001a4a1601d8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.13.z Introduced in or relating directly to Satellite 6.13 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 6.16.z Introduced in or relating directly to Satellite 6.16 CherryPick PR needs CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR Upgrades Issues and PRs related to upgrades
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants