Skip to content

[6.19.z] improved rex UI tests reliability - #22276

Merged
Satellite-QE merged 1 commit into
6.19.zfrom
cherry-pick-6.19.z-cc96a888f2f4b5e44255c637675b05423240dfe6
Jul 27, 2026
Merged

[6.19.z] improved rex UI tests reliability#22276
Satellite-QE merged 1 commit into
6.19.zfrom
cherry-pick-6.19.z-cc96a888f2f4b5e44255c637675b05423240dfe6

Conversation

@Satellite-QE

Copy link
Copy Markdown
Collaborator

Cherrypick of PR: #21742

Together with changes to airgun SatelliteQE/airgun#2454 this improves reliability of REX UI tests.

  • improved retry on host search page
  • re-factored test_positive_run_scheduled_job_template_by_ip
  • reusing wait_for results (in some cases there was a wait_for used properly, but then the page was reloaded and search was applied again without wait_for)

Summary by Sourcery

Improve reliability and robustness of remote execution (REX) UI tests by adding resilient host lookup and more deterministic job scheduling assertions.

Bug Fixes:

  • Use a retrying wait_for-based host search in REX UI tests to handle delayed host visibility and prevent flaky lookups.
  • Stabilize the scheduled job execution test by polling and validating realistic job state transitions before asserting success.

Tests:

  • Harden multiple REX UI tests to use shared wait_for results for host searches instead of immediate re-searching.
  • Rework the scheduled job-by-IP test to track and assert the sequence of job status transitions through completion.

@Satellite-QE Satellite-QE added 6.19.z Auto_Cherry_Picked Automatically cherrypicked PR using GHA No-CherryPick PR doesnt need CherryPick to previous branches labels Jul 27, 2026
@Satellite-QE

Copy link
Copy Markdown
Collaborator Author

trigger: test-robottelo
pytest: tests/foreman/ui/test_remoteexecution.py -k test_positive_run_default_job_template

@Satellite-QE Satellite-QE added the AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing label Jul 27, 2026
@Satellite-QE

Copy link
Copy Markdown
Collaborator Author

PRT Result

Build Number: 16254
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/ui/test_remoteexecution.py -k test_positive_run_default_job_template --external-logging
Test Result : =========== 1 passed, 7 deselected, 9 warnings in 1513.96s (0:25:13) ===========

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Jul 27, 2026
@Satellite-QE
Satellite-QE merged commit b728a92 into 6.19.z Jul 27, 2026
21 of 22 checks passed
@Satellite-QE
Satellite-QE deleted the cherry-pick-6.19.z-cc96a888f2f4b5e44255c637675b05423240dfe6 branch July 27, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.19.z Auto_Cherry_Picked Automatically cherrypicked PR using GHA AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing No-CherryPick PR doesnt need CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants