Content-Length: 344357 | pFad | https://github.com/googleapis/java-bigquery/pull/1021

E9 chore: add env var for changing cloud-samples-data bucket by bmccutchon · Pull Request #1021 · googleapis/java-bigquery · GitHub
Skip to content

chore: add env var for changing cloud-samples-data bucket #1021

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

Merged
merged 3 commits into from
Dec 15, 2020

Conversation

bmccutchon
Copy link
Contributor

This makes it possible to run the tests in a VPC Service Controls perimeter where public buckets may be unreachable.

@bmccutchon bmccutchon requested review from a team and pmakani December 14, 2020 21:17
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 14, 2020
@product-auto-label product-auto-label bot added api: bigquery Issues related to the googleapis/java-bigquery API. samples Issues that are directly related to samples. labels Dec 14, 2020
@codecov
Copy link

codecov bot commented Dec 14, 2020

Codecov Report

Merging #1021 (4f4049a) into master (b62e8f2) will decrease coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1021      +/-   ##
============================================
- Coverage     80.18%   80.14%   -0.05%     
+ Complexity     1268     1267       -1     
============================================
  Files            79       79              
  Lines          6576     6556      -20     
  Branches        760      739      -21     
============================================
- Hits           5273     5254      -19     
+ Misses          910      909       -1     
  Partials        393      393              
Impacted Files Coverage Δ Complexity Δ
...com/google/cloud/bigquery/StandardSQLDataType.java 73.68% <0.00%> (-1.32%) 7.00% <0.00%> (ø%)
...m/google/cloud/bigquery/StandardSQLStructType.java 84.61% <0.00%> (-1.10%) 5.00% <0.00%> (ø%)
...gle/cloud/bigquery/MaterializedViewDefinition.java 70.00% <0.00%> (-0.97%) 6.00% <0.00%> (ø%)
...ava/com/google/cloud/bigquery/RoutineArgument.java 90.47% <0.00%> (-0.44%) 5.00% <0.00%> (ø%)
...va/com/google/cloud/bigquery/StandardSQLField.java 90.47% <0.00%> (-0.44%) 7.00% <0.00%> (ø%)
...java/com/google/cloud/bigquery/ViewDefinition.java 87.09% <0.00%> (-0.41%) 11.00% <0.00%> (ø%)
...google/cloud/bigquery/ExternalTableDefinition.java 58.18% <0.00%> (-0.38%) 21.00% <0.00%> (ø%)
...y/src/main/java/com/google/cloud/bigquery/Job.java 84.45% <0.00%> (-0.21%) 33.00% <0.00%> (-1.00%)
...om/google/cloud/bigquery/BigtableColumnFamily.java 95.83% <0.00%> (-0.17%) 5.00% <0.00%> (ø%)
...google/cloud/bigquery/StandardTableDefinition.java 93.24% <0.00%> (-0.10%) 16.00% <0.00%> (ø%)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b62e8f2...16bf72b. Read the comment docs.

Co-authored-by: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
@stephaniewang526 stephaniewang526 changed the title Add env var for changing cloud-samples-data bucket chore: add env var for changing cloud-samples-data bucket Dec 15, 2020
@stephaniewang526
Copy link
Contributor

@kurtisvg @lesv Do you have any objections to this change please?

@stephaniewang526 stephaniewang526 added the automerge Merge the pull request once unit tests and other checks pass. label Dec 15, 2020
@stephaniewang526
Copy link
Contributor

@bmccutchon can you take a look at the compilation errors?

Error:  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project google-cloud-bigquery: Compilation failure: Compilation failure: 
Error:  /home/runner/work/java-bigquery/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java:[124,17] cannot find symbol
Error:    symbol:   class Optional
Error:    location: package java.util
Error:  /home/runner/work/java-bigquery/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java:[124,17] cannot find symbol
Error:    symbol:   class Optional
Error:    location: package java.util
Error:  /home/runner/work/java-bigquery/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java:[153,7] cannot find symbol
Error:    symbol:   variable Optional
Error:    location: class com.google.cloud.bigquery.it.ITBigQueryTest
Error:  -> [Help 1]

full stacktrace

@stephaniewang526 stephaniewang526 removed the automerge Merge the pull request once unit tests and other checks pass. label Dec 15, 2020
This allows the tests to compile and run under Java 7.
@bmccutchon
Copy link
Contributor Author

I replaced java.util.Optional with com.google.common.base.Optional. I think that should fix it. Please take another look.

@stephaniewang526 stephaniewang526 merged commit 46708f7 into googleapis:master Dec 15, 2020
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. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/java-bigquery/pull/1021

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy