Skip to content
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

ci: sample build in Cloud Build #3171

Merged
merged 27 commits into from
Mar 5, 2024
Merged

ci: sample build in Cloud Build #3171

merged 27 commits into from
Mar 5, 2024

Conversation

suztomo
Copy link
Member

@suztomo suztomo commented Feb 26, 2024

b/322966824

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️

If you write sample code, please follow the samples format.

@suztomo suztomo requested review from a team as code owners February 26, 2024 20:17
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/java-bigquery API. samples Issues that are directly related to samples. labels Feb 26, 2024
@suztomo
Copy link
Member Author

suztomo commented Feb 27, 2024

[ERROR] Failures: 
[ERROR]   LoadCsvFromGcsTruncateTest.<clinit>:43->requireEnvVar:47 Environment variable BIGQUERY_DATASET_NAME is required to perform these tests.
[INFO] 

@suztomo suztomo added the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 29, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 29, 2024
@suztomo
Copy link
Member Author

suztomo commented Feb 29, 2024

Step #3: Status: Downloaded newer image for gcr.io/google.com/cloudsdktool/cloud-sdk:latest
Step #3: ERROR: (gcloud.secrets.versions.access) You do not currently have an active account selected.
Step #3: Please run:
Step #3: 
Step #3:   $ gcloud auth login
Step #3: 
Step #3: to obtain new credentials.
Step #3: 
Step #3: If you have already logged in with a different account, run:
Step #3: 
Step #3:   $ gcloud config set account ACCOUNT
Step #3: 
Step #3: to select an already authenticated account to use.

@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Feb 29, 2024
@suztomo
Copy link
Member Author

suztomo commented Feb 29, 2024

It seems the gcloud set account ... does not have effect of subsequent step. I'll need to survey how "gcloud set account" works for Cloud Build.

ERROR: (gcloud.secrets.versions.access) You do not currently have an active account selected.
Please run:

  $ gcloud auth login

to obtain new credentials.

If you have already logged in with a different account, run:

  $ gcloud config set account ACCOUNT

to select an already authenticated account to use.

@suztomo suztomo added the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 4, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 4, 2024
Copy link

Warning: This pull request is touching the following templated files:

  • .kokoro/build.sh

@suztomo
Copy link
Member Author

suztomo commented Mar 5, 2024

"message": "Access Denied: Project java-docs-samples-testing: User does not have bigquery.datasets.create permission in project java-docs-samples-testing.",

@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: m Pull request size is medium. labels Mar 5, 2024
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Mar 5, 2024
@suztomo
Copy link
Member Author

suztomo commented Mar 5, 2024

All checks passed after ignoring tests that require special setup.

@suztomo suztomo merged commit 8e2eccb into main Mar 5, 2024
20 checks passed
@suztomo suztomo deleted the samples_build branch March 5, 2024 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/java-bigquery API. samples Issues that are directly related to samples. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants