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

Wait for product HTTP Proxy update to finish #14269

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

vsedmik
Copy link
Contributor

@vsedmik vsedmik commented Mar 6, 2024

Problem Statement

CLI test_positive_assign_http_proxy_to_products is flaky, it looks like the repo properties were not set in time (of assertion).

Solution

Wait for the Update repo tasks to finish.

PRT test Cases example

trigger: test-robottelo
pytest: tests/foreman/cli/test_http_proxy.py -k test_positive_assign_http_proxy_to_products

@vsedmik vsedmik added 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 CherryPick PR needs CherryPick to previous branches labels Mar 6, 2024
@vsedmik
Copy link
Contributor Author

vsedmik commented Mar 6, 2024

trigger: test-robottelo
pytest: tests/foreman/cli/test_http_proxy.py -k test_positive_assign_http_proxy_to_products

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 5957
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/cli/test_http_proxy.py -k test_positive_assign_http_proxy_to_products --external-logging
Test Result : =========== 1 passed, 4 deselected, 11 warnings in 827.63s (0:13:47) ===========

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

PRT Result

Build Number: 5958
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/cli/test_http_proxy.py -k test_positive_assign_http_proxy_to_products 
Test Result : =========== 1 passed, 4 deselected, 11 warnings in 813.57s (0:13:33) ===========

@vsedmik
Copy link
Contributor Author

vsedmik commented Mar 6, 2024

trigger: test-robottelo
pytest: tests/foreman/cli/test_http_proxy.py

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 5959
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/cli/test_http_proxy.py --external-logging
Test Result : =========== 3 passed, 2 deselected, 53 warnings in 826.34s (0:13:46) ===========

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 5960
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/cli/test_http_proxy.py 
Test Result : =========== 3 passed, 2 deselected, 54 warnings in 868.71s (0:14:28) ===========

@vsedmik vsedmik marked this pull request as ready for review March 6, 2024 16:10
@vsedmik vsedmik requested a review from a team as a code owner March 6, 2024 16:10
@vsedmik vsedmik added the Easy Fix :) Easiest Fix to review and quick merge request. label Mar 6, 2024
Copy link
Contributor

@damoore044 damoore044 left a comment

Choose a reason for hiding this comment

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

ack looks like the latest prt fail is unrelated, prior runs pass, looks good

@devendra104
Copy link
Member

trigger: test-robottelo
pytest: tests/foreman/cli/test_http_proxy.py

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 5968
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/cli/test_http_proxy.py --external-logging
Test Result : =========== 3 passed, 2 deselected, 54 warnings in 868.84s (0:14:28) ===========

Copy link
Contributor

@sambible sambible left a comment

Choose a reason for hiding this comment

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

ltgtm ( need to fix code quality issues first )

@vsedmik
Copy link
Contributor Author

vsedmik commented Mar 6, 2024

ltgtm ( need to fix code quality issues first )

CI/CQ failure seems unrelated - fails in install requirements with

Collecting ssh2-python@ git+https://github.com/jacobcallahan/ssh2-python.git (from broker->-r requirements.txt (line 39))
  Cloning https://github.com/jacobcallahan/ssh2-python.git to /tmp/pip-install-f3qy5lmn/ssh2-python_95c76781e5bb4d7bbbc4f2ab212b31bd
  Running command git clone --filter=blob:none --quiet https://github.com/jacobcallahan/ssh2-python.git /tmp/pip-install-f3qy5lmn/ssh2-python_95c76781e5bb4d7bbbc4f2ab212b31bd
  Downloading ci/appveyor/zlib1211.zip (747 KB)
  Error downloading object: ci/appveyor/zlib1211.zip (d7510a8): Smudge error: Error downloading ci/appveyor/zlib1211.zip (d7510a8ee1918b7d0cad197a089c0a2cd4d6df05fee22389f67f115e738b178d): batch

Copy link
Contributor

@vijaysawant vijaysawant left a comment

Choose a reason for hiding this comment

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

@@ -272,6 +272,13 @@ def test_positive_assign_http_proxy_to_products(module_org, module_target_sat):
}
)
assert 'Product proxy updated' in res
module_target_sat.wait_for_tasks(
Copy link
Contributor

Choose a reason for hiding this comment

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

I beleive this function returns List of sat.api.ForemanTask entities, would it be possible to use assersion on return value for this call?

@@ -293,6 +300,13 @@ def test_positive_assign_http_proxy_to_products(module_org, module_target_sat):
{'ids': f"{product_a['id']},{product_b['id']}", 'http-proxy-policy': 'none'}
)
assert 'Product proxy updated' in res
module_target_sat.wait_for_tasks(
Copy link
Contributor

Choose a reason for hiding this comment

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

I beleive this function returns List of sat.api.ForemanTask entities, would it be possible to use assersion on return value for this call?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup it returns a list of found tasks. However, since they are read before the pull loop, some of them are pending. So I'm fine with the subsequential assertion...

@vsedmik vsedmik force-pushed the http-cli-flakiness branch from d73c742 to 50b09ac Compare March 7, 2024 09:33
@vsedmik
Copy link
Contributor Author

vsedmik commented Mar 7, 2024

trigger: test-robottelo
pytest: tests/foreman/cli/test_http_proxy.py

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 5973
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/cli/test_http_proxy.py --external-logging
Test Result : =========== 3 passed, 2 deselected, 55 warnings in 895.57s (0:14:55) ===========

@vsedmik vsedmik added the AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing label Mar 7, 2024
@vijaysawant vijaysawant merged commit 9012e2f into SatelliteQE:master Mar 7, 2024
8 checks passed
github-actions bot pushed a commit that referenced this pull request Mar 7, 2024
github-actions bot pushed a commit that referenced this pull request Mar 7, 2024
github-actions bot pushed a commit that referenced this pull request Mar 7, 2024
shweta83 pushed a commit to shweta83/robottelo that referenced this pull request Apr 10, 2024
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 AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing CherryPick PR needs CherryPick to previous branches Easy Fix :) Easiest Fix to review and quick merge request. 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.

6 participants