-
Notifications
You must be signed in to change notification settings - Fork 6.6k
[iam] fix: reuse the same custom role for read/update tests #3291
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
Conversation
fixes GoogleCloudPlatform#2885 fixes GoogleCloudPlatform#2886 This PR will reduce the number of temporary custom roles to half. Not a fundamental fix, but it will definitely mitigate the above issues.
except googleapiclient.errors.HttpError: | ||
print("Custom role already deleted.") | ||
|
||
# Ignore error since we just reuse the same custom role. |
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 we make sure that we are ignoring the right error? Perhaps verify the message is correct and the snippet isn't failing for another reason?
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.
Sure! I'll make a change
@kurtisvg @leahecole PTAL |
lol the other test failed. I filed #3292 This is unreleated, so I'll just re-run the test. |
Ironically we reached the 300 limit because of the lots of builds due to PRs for fixing this very issue. I think we need to only run create/delete tests (which consume the quota) in the nightly builds. I'll add some changes for it in this PR later today. |
Still getting "Maximum number of roles reached. Maximum is: 300" More flakes I fixed, less likely this test will pass ... |
@leahecole Now the test passes! I addressed your comment, so I'm going to dismiss your review and merge this because it's a great chance :) |
I addressed your comment, also the test passes now!
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.
LGTM
fixes #2885
fixes #2886
This PR will reduce the number of temporary custom roles to half.
Not a fundamental fix, but it will definitely mitigate the above issues.