-
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
Add status to bigquery_job #4455
Add status to bigquery_job #4455
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. Thanks for your contribution! A human will be with you soon. @slevenick, please review this PR or find an appropriate assignee. |
@@ -978,6 +978,40 @@ objects: | |||
description: | | |||
The geographic location of the job. The default value is US. | |||
default_value: 'US' | |||
- !ruby/object:Api::Type::NestedObject | |||
name: 'status' | |||
output: true |
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.
Not sure if this is needed. Because of that terraform generator doesn't set maxItems: 1
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.
I believe this is needed because the user cannot set the value of the status
object. output: true
is not necessarily needed on the sub-fields of this object, as if the top-level is output only then all sub fields will be as well
@googlebot I signed it! |
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. |
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.
/gcbrun
Rerunning jobs as release note is fixed now
@@ -978,6 +978,40 @@ objects: | |||
description: | | |||
The geographic location of the job. The default value is US. | |||
default_value: 'US' | |||
- !ruby/object:Api::Type::NestedObject | |||
name: 'status' | |||
output: true |
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.
I believe this is needed because the user cannot set the value of the status
object. output: true
is not necessarily needed on the sub-fields of this object, as if the top-level is output only then all sub fields will be as well
/gcbrun Apparently review comments don't trigger this |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=170550" |
I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccActiveDirectoryDomainTrust_activeDirectoryDomainTrustBasicExample|TestAccBigQueryJob_bigqueryJobQueryTableReferenceExample|TestAccBigQueryJob_bigqueryJobQueryExample|TestAccBigQueryJob_bigqueryJobLoadExample|TestAccBigQueryJob_withLocation|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityCmekExample You can view the result here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=170552" |
I fixed my setup so I can run tests locally and now I can see what's wrong. Fixing it now and going to update the code soon. |
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.
Looks like this causes a panic during the bigquery tests:
panic: status.0.error_result: '' expected type 'string', got unconvertible type 'map[string]interface {}'
Looks like the errorResult
is this structure: https://cloud.google.com/bigquery/docs/reference/rest/v2/ErrorProto
rather than just a string
05ca323
to
91ef325
Compare
/gcbrun |
@slevenick sorry, totally confused it. Now tests pass locally, is it possible to re-trigger GCB? |
/gcbrun |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=170555" |
I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccActiveDirectoryDomainTrust_activeDirectoryDomainTrustBasicExample|TestAccBigQueryJob_bigqueryJobLoadExample|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityCmekExample You can view the result here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=170640" |
I can't reproduce the failure of
|
Yeah, the other two tests are unrelated to your changes, ignore them. I'm still seeing this failure for the bigquery job:
it looks like the job status is changing between creating the job & the import step running. This may be flaky due to the time it takes the job to finish. We probably want to ignore the status when running the import step due to this, as it should never be set by the user. You can add |
@slevenick thanks for the clarifications, I've updated tests, including auto-generated ones. Should we /gcbrun? |
/gcbrun |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=170713" |
I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthorityCmekExample You can view the result here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=170729" |
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.
Looks good to me! Thanks
@slevenick thanks a lot for your support, I learned a lot! |
Fixes hashicorp/terraform-provider-google#8357
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)