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

Add a configurable wait period for shared resource #17464

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

Conversation

JacobCallahan
Copy link
Member

It would be beneficial to drop this lower for tests.

It would be beneficial to drop this lower for tests.
@JacobCallahan JacobCallahan added Easy Fix :) Easiest Fix to review and quick merge request. 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 Jan 30, 2025
@JacobCallahan JacobCallahan requested a review from a team as a code owner January 30, 2025 05:48

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 3 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • conf/robottelo.yaml.template: Language not supported
Comments suppressed due to low confidence (1)

robottelo/config/validators.py:333

  • The pull request title and description contain a typo: 'wat' should be 'wait'.
Validator('robottelo.shared_resource_wait', default=60, is_type_of=int),
@JacobCallahan JacobCallahan changed the title Add a configurable wat period for shared resource Add a configurable wait period for shared resource Jan 30, 2025
Copy link
Member

@ogajduse ogajduse left a comment

Choose a reason for hiding this comment

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

We are now down to 6 seconds of test time if executed as below.

ROBOTTELO_ROBOTTELO__SHARED_RESOURCE_WAIT=2 ROBOTTELO_SERVER__HOSTNAME="" VAULT_SECRET_ID_FOR_DYNACONF=somesecret pytest tests/robottelo/test_shared_resource.py

I left one comment - I would like to enable users to set the wait time to less than 1 second.

@@ -330,6 +330,7 @@
default=[],
cast=lambda x: list(map(str, x)),
),
Validator('robottelo.shared_resource_wait', default=60, is_type_of=int),
Copy link
Member

Choose a reason for hiding this comment

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

To allow the time to be lower than 1 second

Suggested change
Validator('robottelo.shared_resource_wait', default=60, is_type_of=int),
Validator('robottelo.shared_resource_wait', default=60, cast=float),

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 Easy Fix :) Easiest Fix to review and quick merge request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants