-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Managed Active Directory IAM Resources #6717
Conversation
did best effort as i cant test this |
Hello! I am a robot who works on Magic Modules PRs. I've detected that you're a community contributor. @melinath, a repository maintainer, has been assigned to assist you and help review your changes. ❓ First time contributing? Click here for more detailsYour assigned reviewer will help review your code by:
You can help make sure that review is quick by running local tests and ensuring they're passing in between each push you make to your PR's branch. Also, try to leave a comment with each push you make, as pushes generally don't generate emails. If your reviewer doesn't get back to you within a week after your most recent change, please feel free to leave a comment on the issue asking them to take a look! In the absence of a dedicated review dashboard most maintainers manage their pending reviews through email, and those will sometimes get lost in their inbox. |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 314 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: All tests passed in REPLAYING mode |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 7 files changed, 620 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Errors occurred during REPLAYING mode. Please fix them to complete your PR |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 651 insertions(+), 37 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccActiveDirectoryDomainIamPolicyGenerated|TestAccActiveDirectoryDomainIamMemberGenerated|TestAccActiveDirectoryDomainIamBindingGenerated|TestAccActiveDirectoryDomain_activeDirectoryDomainBasicExample|TestAccContainerCluster_withInvalidGatewayApiConfigChannel |
test is now passing --- PASS: TestAccActiveDirectoryDomainIamBindingGenerated (2465.31s) |
making an effort to make tests runnable via CI |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 689 insertions(+), 40 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaserulesRelease_BasicRelease|TestAccContainerCluster_withInvalidGatewayApiConfigChannel|TestAccActiveDirectoryDomain_activeDirectoryDomainBasicExample|TestAccActiveDirectoryDomainIamBindingGenerated|TestAccActiveDirectoryDomainIamPolicyGenerated|TestAccActiveDirectoryDomainIamMemberGenerated |
not sure whats the issue with tests in CI, passes locally |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
Error message is:
Possibly it just needs a longer timeout? But I'm not sure; I know we have also had other issues with active directory in the past - see hashicorp/terraform-provider-google#9238 |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 691 insertions(+), 42 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaserulesRelease_BasicRelease|TestAccActiveDirectoryDomainIamPolicyGenerated|TestAccActiveDirectoryDomainIamMemberGenerated|TestAccActiveDirectoryDomainIamBindingGenerated|TestAccRegionInstanceGroupManager_stateful|TestAccActiveDirectoryDomain_activeDirectoryDomainBasicExample |
The provider crashed while running the VCR tests in RECORDING mode |
This is due to the 1h30m timeout on VCR test runs. |
Ah - it looks like I didn't look closely enough at the logs. It looks like the resource is trying repeatedly to create the active directory domain and is getting an HTTP 429 Too Many Requests response with the message "Quota 'GlobalDomainLocations' exhausted. Limit 8 in global". The resource is interpreting that as a retryable error, which is causing it to retry indefinitely until it times out. We'll need to fix the quota issue, but also we'll need to fix the retrying issue. But neither represents a blocking issue with this ticket. |
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.
The timeout was probably fine, sorry for the confusion. I think that this might be easiest to resolve by making the IAM tests handwritten and using BootstrapSharedTestADDomain
to ensure that they don't compete for resource quota.
melinath i have a concern with this, if we use a shared resource here, 1. how would we manage its state? 2. some of these resources mutate the iam while some additive and it might clash. i think specifically in IAM case its an issue |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 8 files changed, 689 insertions(+), 40 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaserulesRelease_BasicRelease|TestAccComputeForwardingRule_update|TestAccActiveDirectoryDomain_activeDirectoryDomainBasicExample|TestAccActiveDirectoryDomainIamPolicyGenerated|TestAccActiveDirectoryDomainIamBindingGenerated|TestAccActiveDirectoryDomainIamMemberGenerated |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
The other option would be creating separate projects for each test that would each have its own quota. |
b/265804681 |
Thanks for the response, let me see what I can do. Probably the handwritten
route (I.e I’ll generate and serialize tests)
…On Tue, 17 Jan 2023 at 19:51 Stephen Lewis (Burrows) < ***@***.***> wrote:
b/265804681
—
Reply to this email directly, view it on GitHub
<#6717 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIA2W7QCFR6KAXSX2MYNGGLWS3L3TANCNFSM6AAAAAARJBXT5M>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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.
marking as "change requested" per above conversation
melinath I dont see myself pushing this PR further. closing this maybe ill revisit in the future |
Closes hashicorp/terraform-provider-google#12801
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)