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

feat: [run] Adds support for Startup CPU Boost (GA) #9397

Merged
merged 2 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions java-run/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.11.0</version>
<version>26.13.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-run.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.14.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.16.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public void getExecutionTest() throws Exception {
.setCancelledCount(1921113249)
.setRetriedCount(-1654679545)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -179,6 +180,7 @@ public void getExecutionTest2() throws Exception {
.setCancelledCount(1921113249)
.setRetriedCount(-1654679545)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -350,6 +352,7 @@ public void deleteExecutionTest() throws Exception {
.setCancelledCount(1921113249)
.setRetriedCount(-1654679545)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -424,6 +427,7 @@ public void deleteExecutionTest2() throws Exception {
.setCancelledCount(1921113249)
.setRetriedCount(-1654679545)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public void getExecutionTest() throws Exception {
.setCancelledCount(1921113249)
.setRetriedCount(-1654679545)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
mockExecutions.addResponse(expectedResponse);
Expand Down Expand Up @@ -181,6 +182,7 @@ public void getExecutionTest2() throws Exception {
.setCancelledCount(1921113249)
.setRetriedCount(-1654679545)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
mockExecutions.addResponse(expectedResponse);
Expand Down Expand Up @@ -332,6 +334,7 @@ public void deleteExecutionTest() throws Exception {
.setCancelledCount(1921113249)
.setRetriedCount(-1654679545)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -403,6 +406,7 @@ public void deleteExecutionTest2() throws Exception {
.setCancelledCount(1921113249)
.setRetriedCount(-1654679545)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public void createJobTest() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -192,6 +193,7 @@ public void createJobTest2() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -267,6 +269,7 @@ public void getJobTest() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -333,6 +336,7 @@ public void getJobTest2() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -499,6 +503,7 @@ public void updateJobTest() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -533,6 +538,7 @@ public void updateJobTest() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();

Expand Down Expand Up @@ -586,6 +592,7 @@ public void updateJobExceptionTest() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
client.updateJobAsync(job).get();
Expand Down Expand Up @@ -620,6 +627,7 @@ public void deleteJobTest() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -691,6 +699,7 @@ public void deleteJobTest2() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -765,6 +774,7 @@ public void runJobTest() throws Exception {
.setCancelledCount(1921113249)
.setRetriedCount(-1654679545)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -839,6 +849,7 @@ public void runJobTest2() throws Exception {
.setCancelledCount(1921113249)
.setRetriedCount(-1654679545)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public void createJobTest() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -198,6 +199,7 @@ public void createJobTest2() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -272,6 +274,7 @@ public void getJobTest() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
mockJobs.addResponse(expectedResponse);
Expand Down Expand Up @@ -332,6 +335,7 @@ public void getJobTest2() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
mockJobs.addResponse(expectedResponse);
Expand Down Expand Up @@ -480,6 +484,7 @@ public void updateJobTest() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -548,6 +553,7 @@ public void deleteJobTest() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -616,6 +622,7 @@ public void deleteJobTest2() throws Exception {
.setExecutionCount(1646136616)
.setLatestCreatedExecution(ExecutionReference.newBuilder().build())
.setReconciling(true)
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -687,6 +694,7 @@ public void runJobTest() throws Exception {
.setCancelledCount(1921113249)
.setRetriedCount(-1654679545)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -758,6 +766,7 @@ public void runJobTest2() throws Exception {
.setCancelledCount(1921113249)
.setRetriedCount(-1654679545)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ public void getRevisionTest() throws Exception {
.addAllConditions(new ArrayList<Condition>())
.setObservedGeneration(900833007)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setSessionAffinity(true)
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -184,6 +186,8 @@ public void getRevisionTest2() throws Exception {
.addAllConditions(new ArrayList<Condition>())
.setObservedGeneration(900833007)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setSessionAffinity(true)
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);
Expand Down Expand Up @@ -357,6 +361,8 @@ public void deleteRevisionTest() throws Exception {
.addAllConditions(new ArrayList<Condition>())
.setObservedGeneration(900833007)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setSessionAffinity(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -433,6 +439,8 @@ public void deleteRevisionTest2() throws Exception {
.addAllConditions(new ArrayList<Condition>())
.setObservedGeneration(900833007)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setSessionAffinity(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ public void getRevisionTest() throws Exception {
.addAllConditions(new ArrayList<Condition>())
.setObservedGeneration(900833007)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setSessionAffinity(true)
.setEtag("etag3123477")
.build();
mockRevisions.addResponse(expectedResponse);
Expand Down Expand Up @@ -186,6 +188,8 @@ public void getRevisionTest2() throws Exception {
.addAllConditions(new ArrayList<Condition>())
.setObservedGeneration(900833007)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setSessionAffinity(true)
.setEtag("etag3123477")
.build();
mockRevisions.addResponse(expectedResponse);
Expand Down Expand Up @@ -339,6 +343,8 @@ public void deleteRevisionTest() throws Exception {
.addAllConditions(new ArrayList<Condition>())
.setObservedGeneration(900833007)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setSessionAffinity(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down Expand Up @@ -412,6 +418,8 @@ public void deleteRevisionTest2() throws Exception {
.addAllConditions(new ArrayList<Condition>())
.setObservedGeneration(900833007)
.setLogUri("logUri-1097354360")
.setSatisfiesPzs(true)
.setSessionAffinity(true)
.setEtag("etag3123477")
.build();
Operation resultOperation =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public void createServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
.build();
Expand Down Expand Up @@ -205,6 +206,7 @@ public void createServiceTest2() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
.build();
Expand Down Expand Up @@ -287,6 +289,7 @@ public void getServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
.build();
Expand Down Expand Up @@ -360,6 +363,7 @@ public void getServiceTest2() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
.build();
Expand Down Expand Up @@ -533,6 +537,7 @@ public void updateServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
.build();
Expand Down Expand Up @@ -574,6 +579,7 @@ public void updateServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
.build();
Expand Down Expand Up @@ -634,6 +640,7 @@ public void updateServiceExceptionTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
.build();
Expand Down Expand Up @@ -675,6 +682,7 @@ public void deleteServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
.build();
Expand Down Expand Up @@ -753,6 +761,7 @@ public void deleteServiceTest2() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
.build();
Expand Down
Loading