-
Notifications
You must be signed in to change notification settings - Fork 111
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
ContentCredentials CLI fix for stream #15165
Conversation
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
PRT Result
|
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, ACK!
Non-blocking - the comments are not necessary imho - the function name and docstring are self-describing enough.
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
trigger: test-robottelo |
PRT Result
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good, only 1 failure being returned seems positive. Still, I'd like to see a consistent pass here before we merge :)
@damoore044 Please make sure the test failing is unrelated to this change. The change looks good otherwise. |
The remaining failure seems to be the same kind of flakiness in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack pending prt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack pending prt
trigger: test-robottelo |
PRT Result
|
def wait_for_repo_metadata_tasks(sat, org_name, repo_name='', product_name=''): | ||
"""Search and wait for any repository metadata generate task(s). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please explain the rationale for adding a new function for this instead using existing wait_for_tasks
helper func directly in tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They all need pretty much the same thing so saw the opportunity to streamline,
and perhaps any future use in other CLI tests?
trigger: test-robottelo |
PRT Result
|
(cherry picked from commit d88e9c0)
Problem Statement
In Stream runs, for ContentCredentials, we see some occasional failures in several tests,
that attempt to add/update gpg key associated to repo/product with repo(s), then read info of the product/repo and assert the key name:
Solution
We need to wait for an in-progress Repository Metadata Generate task,
that is not handled synchronously by cli
.update
or cli.info
. Else, the GPG key is not yet present in repo/product.In any CLI tests adding/updating a GPG key associated to repo, or adding the key to a product containing repos,
we should wait for these repo metadata task(s), before calling info of product/repo, and asserting the key.
Related Issues
KeyError
. Locally reproduced when full cli module is run.but it is enough for an intermittent failure when trying to read the entity (repos or product) and find the key, before the task(s) finished.
PRT Case