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

retry on quota reset check #3068

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
print_cgroups
from tests_e2e.tests.lib.logging import log
from tests_e2e.tests.lib.remote_test import run_remote_test
from tests_e2e.tests.lib.retry import retry_if_false


def verify_custom_script_cgroup_assigned_correctly():
Expand Down Expand Up @@ -218,7 +219,7 @@ def main():
run_remote_test(main)
except Exception as e:
# It is possible that agent cgroup can be disabled due to UNKNOWN process or throttled before we run this check, in that case, we should ignore the validation
if check_agent_quota_disabled() and check_cgroup_disabled_with_unknown_process():
if check_cgroup_disabled_with_unknown_process() and retry_if_false(check_agent_quota_disabled()):
log.info("Cgroup is disabled due to UNKNOWN process, ignoring ext cgroups validations")
else:
raise
Loading