-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Documentai Processor #6083
Documentai Processor #6083
Conversation
Oops! It looks like you're using an unknown release-note type in your changelog entries:
Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md. |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 7 files changed, 822 insertions(+), 2 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|TestAccDocumentAIProcessor_documentaiProcessorWithDefaultExample|TestAccDocumentAIProcessor_documentaiProcessorExample|TestAccBillingSubaccount_basic|TestAccBillingSubaccount_renameOnDestroy |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
Oops! It looks like you're using an unknown release-note type in your changelog entries:
Please only use the types listed in https://github.com/GoogleCloudPlatform/magic-modules/blob/master/.ci/RELEASE_NOTES_GUIDE.md. |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 7 files changed, 619 insertions(+), 2 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|TestAccContainerNodePool_withWorkloadIdentityConfig|TestAccDocumentAIProcessor_documentaiProcessorExample|TestAccContainerCluster_withDatabaseEncryption|TestAccContainerCluster_withSandboxConfig|TestAccContainerCluster_nodeAutoprovisioningDefaultsImageType|TestAccContainerCluster_withReleaseChannelEnabledDefaultVersion|TestAccContainerCluster_nodeAutoprovisioningDefaultsMinCpuPlatform|TestAccContainerCluster_withNodePoolUpdateVersion|TestAccContainerCluster_withConfidentialNodes|TestAccContainerCluster_errorAutopilotLocation|TestAccContainerCluster_withWorkloadIdentityConfig|TestAccContainerNodePool_withLinuxNodeConfig|TestAccContainerNodePool_withKubeletConfig|TestAccContainerCluster_withAutopilot|TestAccContainerCluster_withNotificationConfig|TestAccContainerCluster_withAddons|TestAccContainerNodePool_withSandboxConfig|TestAccContainerCluster_withWorkloadMetadataConfig|TestAccContainerCluster_nodeAutoprovisioningDefaults|TestAccContainerCluster_withBootDiskKmsKey|TestAccContainerCluster_updateVersion|TestAccContainerCluster_withVersion|TestAccContainerClusterDatasource_regional |
The provider crashed while running the VCR tests in RECORDING mode |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 7 files changed, 619 insertions(+), 2 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccDocumentAIProcessor_documentaiProcessorExample|TestAccContainerCluster_withConfidentialNodes|TestAccContainerCluster_withNotificationConfig|TestAccContainerCluster_withAddons |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 10 files changed, 952 insertions(+), 2 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|TestAccDocumentAIProcessorDefaultVersion_documentaiDefaultVersionExample|TestAccContainerCluster_withConfidentialNodes|TestAccContainerCluster_withAddons |
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
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.
It looks like mmv1/templates/terraform/post_create/documentai_processor.go.erb
was added but is no longer used - could it be removed?
Relatedly - why does being able to directly set the field on the resource end up not working?
Ah good call, that's from a previous impementation. Setting the field during create isn't allowed by the API, but the bigger deal is that I would expect in the future for this to be able to reference user-created processor versions, which are sub-resources of this processor resource. So it will create a circular dependency between processor -> processorVersion -> defaultProcessorVersion |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:Terraform GA: Diff ( 10 files changed, 952 insertions(+), 2 deletions(-)) |
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.
b/209050020
Gotcha - so the issue is that if a user tries to create a processor and a version and also use that version as the default version all in a single apply, Terraform wouldn't be able to process the dependency chain - but if the default version is set by a separate resource, that breaks the circular dependency and makes it work intuitively.
LGTM. Is there a precedent for this setup?
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_withConfidentialNodes|TestAccContainerCluster_withAddons |
Heres an example of a similar issue and the fix was adding a new FGR: hashicorp/terraform-provider-google#2686 Yeah, the issue is that we need to split out the defaultVersion to allow Terraform to build the dependency graph successfully |
Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are. Diff report:TF Validator: Diff ( 2 files changed, 3 insertions(+), 3 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccSqlUser_mysqlDisabled|TestAccContainerCluster_withConfidentialNodes|TestAccContainerCluster_withAddons |
Adds DocumentAI Processor resource and processor default version FGR
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)