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. |
mmv1/products/bigquery/api.yaml
Outdated
There was a problem hiding this comment.
Not sure if this is needed. Because of that terraform generator doesn't set maxItems: 1
There was a problem hiding this comment.
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. |
slevenick
left a comment
There was a problem hiding this comment.
/gcbrun
Rerunning jobs as release note is fixed now
mmv1/products/bigquery/api.yaml
Outdated
There was a problem hiding this comment.
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. |
slevenick
left a comment
There was a problem hiding this comment.
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" |
slevenick
left a comment
There was a problem hiding this comment.
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 testandmake lintto ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)