Skip to content

Conversation

tmatsuo
Copy link
Contributor

@tmatsuo tmatsuo commented Apr 7, 2020

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.

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.
@tmatsuo tmatsuo requested review from leahecole and kurtisvg April 7, 2020 19:45
@tmatsuo tmatsuo requested a review from a team as a code owner April 7, 2020 19:45
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 7, 2020
except googleapiclient.errors.HttpError:
print("Custom role already deleted.")

# Ignore error since we just reuse the same custom role.
Copy link
Contributor

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?

Copy link
Contributor Author

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

@tmatsuo
Copy link
Contributor Author

tmatsuo commented Apr 7, 2020

@kurtisvg @leahecole PTAL

@tmatsuo
Copy link
Contributor Author

tmatsuo commented Apr 7, 2020

lol the other test failed. I filed #3292

This is unreleated, so I'll just re-run the test.

@tmatsuo tmatsuo added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 7, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 7, 2020
@kurtisvg kurtisvg requested a review from leahecole April 8, 2020 00:34
@tmatsuo
Copy link
Contributor Author

tmatsuo commented Apr 8, 2020

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.

@tmatsuo
Copy link
Contributor Author

tmatsuo commented Apr 9, 2020

Still getting "Maximum number of roles reached. Maximum is: 300"

More flakes I fixed, less likely this test will pass ...

@tmatsuo tmatsuo added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 9, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 9, 2020
@tmatsuo tmatsuo added kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Apr 9, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 9, 2020
@tmatsuo tmatsuo added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 9, 2020
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 9, 2020
@tmatsuo
Copy link
Contributor Author

tmatsuo commented Apr 9, 2020

@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 :)

@tmatsuo tmatsuo dismissed leahecole’s stale review April 9, 2020 21:23

I addressed your comment, also the test passes now!

@tmatsuo tmatsuo merged commit d8dbc3a into GoogleCloudPlatform:master Apr 9, 2020
@tmatsuo tmatsuo deleted the fix-iam branch April 9, 2020 21:24
Copy link
Contributor

@gguuss gguuss left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iam.api-client.custom_roles_test: test_delete_role failed iam.api-client.custom_roles_test: test_list_roles failed
7 participants