add runtime check for oauth in MR#381
Conversation
Signed-off-by: lugi0 <lgiorgi@redhat.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
The following are automatically added/executed:
Available user actions:
Supported labels{'/verified', '/lgtm', '/cherry-pick', '/wip', '/hold', '/build-push-pr-image'} |
| mr.wait_for_condition(condition="Available", status="True") | ||
| mr.wait_for_condition(condition="OAuthProxyAvailable", status="True") | ||
| if is_model_registry_oauth or get_product_version(admin_client=admin_client) >= Version.parse( | ||
| version="2.22.0" |
There was a problem hiding this comment.
should we use a constant for the version number?
| @pytest.fixture(scope="class") | ||
| def is_model_registry_oauth(request: FixtureRequest) -> bool: | ||
| return getattr(request, "param", {}).get("use_oauth_proxy", True) | ||
| def is_model_registry_oauth(request: FixtureRequest, get_product_version: Version, admin_client: DynamicClient) -> bool: |
There was a problem hiding this comment.
We should not change this. It should be based on request.param and main is aligned with 2.23, so it should always be oauth.
| ) as mr: | ||
| mr.wait_for_condition(condition="Available", status="True") | ||
| mr.wait_for_condition(condition="OAuthProxyAvailable", status="True") | ||
| if is_model_registry_oauth or get_product_version(admin_client=admin_client) >= Version.parse( |
There was a problem hiding this comment.
Main is now pointing to 2.23. We should not work around testops image tag issue. They need to prioritize and fix it. We should not sign off otherwise.
dbasunag
left a comment
There was a problem hiding this comment.
We should not do this. Branch was cut for 2.22. Now main is aligned with 2.23 and any older releases can't be qualified with latest tag.
|
Berto's PR is now merged. We no longer need this. |
|
Closing as this is no longer relevant. |
Description
How Has This Been Tested?
Merge criteria: