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

chore: migrate graalvm jobs to kokoro instance pool #1580

Merged
merged 25 commits into from
Nov 20, 2024

Conversation

mpeddada1
Copy link
Contributor

Notable Changes:

  • Removed unused keystore settings.
  • Replaced use of TRAMPOLINE_IMAGE environment variable with container_properties { docker_image ...}}
  • Modified renovate bot settings to edit new docker_image property's value when a new version of java-shared-config is available.

@mpeddada1 mpeddada1 requested review from a team as code owners November 18, 2024 18:45
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Nov 18, 2024
@mpeddada1
Copy link
Contributor Author

mpeddada1 commented Nov 18, 2024

Stacktrace from Kokoro GraalVM build:

Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T00:58:13-07:00)
Maven home: /usr/local/apache-maven
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.0.0-050000rc8-generic", arch: "amd64", family: "unix"
graalvmA
Unable to parse command line options: Unrecognized option: -ntp

@mpeddada1 mpeddada1 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 18, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 18, 2024
@mpeddada1 mpeddada1 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 18, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 18, 2024
@mpeddada1 mpeddada1 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 18, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 18, 2024
@mpeddada1
Copy link
Contributor Author

Next stacktrace:

[INFO] Running com.google.auth.oauth2.ITWorkloadIdentityFederationTest
[ERROR] Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0.018 s <<< FAILURE! -- in com.google.auth.oauth2.ITWorkloadIdentityFederationTest
[ERROR] com.google.auth.oauth2.ITWorkloadIdentityFederationTest.identityPoolCredentials -- Time elapsed: 0.003 s <<< ERROR!
java.io.FileNotFoundException:  (No such file or directory)
	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:213)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:152)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:106)
	at com.google.auth.oauth2.ITWorkloadIdentityFederationTest.getServiceAccountKeyFileAsJson(ITWorkloadIdentityFederationTest.java:441)
	at com.google.auth.oauth2.ITWorkloadIdentityFederationTest.setup(ITWorkloadIdentityFederationTest.java:84)
	at java.base/java.lang.reflect.Method.invoke([Method.java:580](https://cs.corp.google.com/#search/&sq=package:%5Epiper$%20project:openjdk21&q=java/lang/reflect/Method.java:580))

[ERROR] com.google.auth.oauth2.ITWorkloadIdentityFederationTest.identityPoolCredentials_withProgrammaticAuth -- Time elapsed: 0.002 s <<< ERROR!
java.io.FileNotFoundException:  (No such file or directory)
	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:213)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:152)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:106)
	at com.google.auth.oauth2.ITWorkloadIdentityFederationTest.getServiceAccountKeyFileAsJson(ITWorkloadIdentityFederationTest.java:441)
	at com.google.auth.oauth2.ITWorkloadIdentityFederationTest.setup(ITWorkloadIdentityFederationTest.java:84)
	at java.base/java.lang.reflect.Method.invoke([Method.java:580](https://cs.corp.google.com/#search/&sq=package:%5Epiper$%20project:openjdk21&q=java/lang/reflect/Method.java:580))

@mpeddada1 mpeddada1 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 18, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 18, 2024
@mpeddada1
Copy link
Contributor Author

Stacktrace:

[ERROR] Failures: 
[ERROR]   FTServiceAccountCredentialsTest.WrongScopeBigQueryTest:147->executeRequestWrongScope:162 Should throw exception: 403 Forbidden
[ERROR]   FTServiceAccountCredentialsTest.WrongScopeComputeTest:137->executeRequestWrongScope:162 Should throw exception: 403 Forbidden
[ERROR]   FTServiceAccountCredentialsTest.WrongScopeOnePlatformTest:152->executeRequestWrongScope:162 Should throw exception: 403 Forbidden
[ERROR]   FTServiceAccountCredentialsTest.WrongScopeStorageTest:142->executeRequestWrongScope:162 Should throw exception: 403 Forbidden
[ERROR] Errors: 
[ERROR]   ITDownscopingTest.downscoping_serviceAccountSourceWithRefresh:121->retrieveObjectFromGcs:142 » ClassCast class com.google.auth.oauth2.ComputeEngineCredentials cannot be cast to class com.google.auth.oauth2.ServiceAccountCredentials (com.google.auth.oauth2.ComputeEngineCredentials and com.google.auth.oauth2.ServiceAccountCredentials are in unnamed module of loader 'app')
[ERROR]   ITWorkloadIdentityFederationTest.setup:84->getServiceAccountKeyFileAsJson:441 » FileNotFound  (No such file or directory)
[ERROR]   ITWorkloadIdentityFederationTest.setup:84->getServiceAccountKeyFileAsJson:441 » FileNotFound  (No such file or directory)
[ERROR]   ITWorkloadIdentityFederationTest.setup:84->getServiceAccountKeyFileAsJson:441 » FileNotFound  (No such file or directory)
[ERROR]   ITWorkloadIdentityFederationTest.setup:84->getServiceAccountKeyFileAsJson:441 » FileNotFound  (No such file or directory)
[ERROR]   ITWorkloadIdentityFederationTest.setup:84->getServiceAccountKeyFileAsJson:441 » FileNotFound  (No such file or directory)
[ERROR]   ITWorkloadIdentityFederationTest.setup:84->getServiceAccountKeyFileAsJson:441 » FileNotFound  (No such file or directory)

@mpeddada1 mpeddada1 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 19, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 19, 2024
@mpeddada1 mpeddada1 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 19, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 19, 2024
@mpeddada1
Copy link
Contributor Author

Still running into realpath: ...java-it-service-account’: No such file or directory

@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 Nov 19, 2024
@mpeddada1 mpeddada1 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 19, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 19, 2024
Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@mpeddada1
Copy link
Contributor Author

Explicitly setting GOOGLE_APPLICATION_CREDENTIALS through the build script worked.

@mpeddada1 mpeddada1 merged commit f3ba6db into main Nov 20, 2024
18 checks passed
@mpeddada1 mpeddada1 deleted the use-kokoro-instances branch November 20, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants