Skip to content

Commit

Permalink
WIP... Updating to latest proto deps while removing entirely proto1 d…
Browse files Browse the repository at this point in the history
…ependency. Now tests fail because previous change in ApiUtils has a confusion between proto and proto builders. Will look in next PR.
  • Loading branch information
ludo committed Oct 20, 2024
1 parent a053a8b commit 3706b5f
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public QueryResultsSource runQuery(FetchOptions fetchOptions, Query query, Trans

Future<DatastoreV3Pb.QueryResult> result =
DatastoreApiHelper.makeAsyncCall(
apiConfig, Method.RunQuery, queryProto.build(), DatastoreV3Pb.QueryResult.newBuilder().build());
apiConfig, Method.RunQuery, queryProto.build(), DatastoreV3Pb.QueryResult.newBuilder().buildPartial());

// Adding more info to DatastoreNeedIndexException if thrown
result =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*/
class PseudoKinds {
// Marker to indicate get() was not called on a pseudo-kind
static final EntityProto NOT_A_PSEUDO_KIND = EntityProto.newBuilder().build();
static final EntityProto NOT_A_PSEUDO_KIND = EntityProto.newBuilder().buildPartial();

// Key is kind name
private final Map<String, PseudoKind> pseudoKinds;
Expand Down
35 changes: 2 additions & 33 deletions appengine-api-1.0-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -366,40 +366,10 @@
<filter>
<artifact>com.google.appengine:protos</artifact>
<includes>
<include>com/google/appengine/api/**</include>
<include>com/google/apphosting/api/**</include>
<include>com/google/apphosting/datastore/proto2api/**</include>
<include>com/google/apphosting/base/protos/Codes*</include>
<include>com/google/apphosting/base/protos/SourcePb*</include>
<include>com/google/apphosting/base/protos/api/ApiBasePb*</include>
<include>com/google/apphosting/base/protos/api/RemoteApiPb*</include>
<include>com/google/protos/proto2/bridge/*</include>
<include>com/google/storage/onestore/v3/proto2api/*</include>
<include>com/google/apphosting/executor/*</include>
</includes>
</filter>
<filter>
<artifact>com.google.appengine:proto1</artifact>
<includes>
<include>com/google/appengine/api/taskqueue/*</include>
<include>com/google/apphosting/datastore/**</include>
<include>com/google/apphosting/utils/remoteapi/*</include>
<include>com/google/common/annotations/GoogleInternal*</include>
<include>com/google/common/base/StringUtil*</include>
<include>com/google/common/util/concurrent/internal/*</include>
<include>com/google/common/flags/*</include>
<include>com/google/common/flags/ext/*</include>
<include>com/google/io/base/**</include>
<include>com/google/io/protocol/**</include>
<include>com/google/protobuf/**</include>
<include>com/google/storage/onestore/v3/OnestoreAction*</include>
<include>com/google/storage/onestore/v3/OnestoreEntity*</include>
<include>com/google/storage/onestore/v3/OnestoreSnapshot*</include>
<include>com/google/storage/onestore/v3/proto2api/OnestoreAction*</include>
<include>com/google/storage/onestore/v3/proto2api/OnestoreEntity*</include>
<include>com/google/storage/onestore/v3/proto2api/OnestoreSnapshot*</include>
<include>com/**</include>
</includes>
</filter>

<filter>
<artifact>com.google.appengine:runtime-shared</artifact>
<excludes>
Expand Down Expand Up @@ -487,7 +457,6 @@
<include>com.google.appengine:appengine-apis:*</include>
<include>com.google.appengine:appengine-utils:*</include>
<include>com.google.appengine:geronimo-javamail_1.4_spec:*</include>
<include>com.google.appengine:proto1:*</include>
<include>com.google.appengine:protos:*</include>
<include>com.google.appengine:runtime-shared:*</include>
<include>com.google.cloud.datastore:datastore-v1-proto-client:*</include>
Expand Down
12 changes: 1 addition & 11 deletions lib/tools_api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,7 @@
<include>com/google/appengine/tools/util/**</include>
</includes>
</filter>
<filter>
<artifact>com.google.appengine:proto1:*</artifact>
<includes>
<include>com/google/common/annotations/GoogleInternal*</include>
<include>com/google/common/base/StringUtil*</include>
<include>com/google/common/util/concurrent/internal/*</include>
<include>com/google/common/flags/*</include>
<include>com/google/protobuf/**</include>
</includes>
</filter>

<filter>
<artifact>com.google.protobuf:protobuf-java</artifact>
<includes>
Expand Down Expand Up @@ -294,7 +285,6 @@
<include>com.google.appengine:appengine-apis-dev</include>
<include>com.google.appengine:shared-sdk</include>
<include>com.google.appengine:protos</include>
<include>com.google.appengine:proto1:*</include>
<include>com.google.appengine:appengine-utils</include>
<include>com.google.flogger:google-extensions</include>
<include>com.google.flogger:flogger-system-backend</include>
Expand Down

This file was deleted.

17 changes: 6 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,10 @@
<artifactId>httpcore-nio</artifactId>
<version>4.4.16</version>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>proto1</artifactId>
<version>0.7</version>
</dependency>
<dependency>
<groupId>com.google.cloud.datastore</groupId>
<artifactId>datastore-v1-proto-client</artifactId>
<version>2.18.2</version> <!--keep>-->
<version>2.22.0</version>
</dependency>
<dependency>
<groupId>com.google.geometry</groupId>
Expand Down Expand Up @@ -418,12 +413,12 @@
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-datastore-v1</artifactId>
<version>0.108.5</version> <!--keep-->
<version>0.112.1</version>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-common-protos</artifactId>
<version>2.32.0</version> <!--keep-->
<version>2.46.0</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
Expand Down Expand Up @@ -475,12 +470,12 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.25.1</version> <!-- keep -->
<version>3.25.5</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java-util</artifactId>
<version>3.25.1</version> <!-- keep -->
<version>3.25.5</version>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
Expand Down Expand Up @@ -851,7 +846,7 @@
https://github.com/protocolbuffers/protobuf/blob/master/java/pom.xml#L7
Read https://github.com/os72/protoc-jar-maven-plugin/issues/107 for context.
-->
<protocVersion>3.25.1</protocVersion>
<protocVersion>3.25.5</protocVersion>
</configuration>
</plugin>
<plugin>
Expand Down
5 changes: 0 additions & 5 deletions runtime/impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,6 @@
<artifactId>appengine-tools-sdk</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>proto1</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
Expand Down
16 changes: 0 additions & 16 deletions runtime/local_jetty12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>proto1</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.ee8</groupId>
<artifactId>jetty-ee8-webapp</artifactId>
Expand Down Expand Up @@ -251,18 +247,6 @@
<include>com/google/appengine/tools/development/proto/**</include>
</includes>
</filter>
<filter>
<artifact>com.google.appengine:proto1:*</artifact>
<includes>
<include>com/google/common/flags/*</include>
<include>com/google/common/flags/ext/*</include>
<include>com/google/io/protocol/**</include>
<include>com/google/protobuf/**</include>
</includes>
<excludes>
<exclude>com/google/io/protocol/proto2/*</exclude>
</excludes>
</filter>
<filter>
<artifact>com.google.appengine:shared-sdk-jetty12:*</artifact>
<includes>
Expand Down
4 changes: 0 additions & 4 deletions runtime/local_jetty12_ee10/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>proto1</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-webapp</artifactId>
Expand Down
16 changes: 0 additions & 16 deletions runtime/local_jetty9/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>proto1</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
Expand Down Expand Up @@ -187,18 +183,6 @@
<include>com/google/appengine/tools/development/proto/**</include>
</includes>
</filter>
<filter>
<artifact>com.google.appengine:proto1:*</artifact>
<includes>
<include>com/google/common/flags/*</include>
<include>com/google/common/flags/ext/*</include>
<include>com/google/io/protocol/**</include>
<include>com/google/protobuf/**</include>
</includes>
<excludes>
<exclude>com/google/io/protocol/proto2/*</exclude>
</excludes>
</filter>
<filter>
<artifact>com.google.appengine:shared-sdk-jetty9:*</artifact>
<includes>
Expand Down
29 changes: 1 addition & 28 deletions runtime/runtime_impl_jetty12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,6 @@
<!-- Test dependencies. -->


<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>proto1</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
Expand Down Expand Up @@ -401,28 +396,7 @@
<filter>
<artifact>com.google.appengine:protos</artifact>
<includes>
<include>com/google/apphosting/api/**</include>
<include>com/google/apphosting/base/protos/*</include>
<include>com/google/apphosting/base/protos/api/*</include>
<include>com/google/apphosting/datastore/proto2api/**</include>
<include>com/google/cloud/datastore/logs/*</include>
<include>com/google/storage/onestore/v3/proto2api/*</include>
<include>com/google/appengine/api/appidentity/*</include>
<include>com/google/appengine/api/datastore/*</include>
<include>com/google/appengine/api/memcache/*</include>
<include>com/google/appengine/api/oauth/*</include>
<include>com/google/appengine/api/taskqueue/*</include>
<include>com/google/appengine/api/urlfetch/*</include>
<include>com/google/appengine/api/users/*</include>
<include>com/google/appengine/api/utils/*</include>
<include>com/google/apphosting/datastore/proto2api/**</include>
<include>com/google/apphosting/base/protos/Codes*</include>
<include>com/google/apphosting/base/protos/SourcePb*</include>
<include>com/google/apphosting/base/protos/api/ApiBasePb*</include>
<include>com/google/apphosting/base/protos/api/RemoteApiPb*</include>
<include>com/google/protos/proto2/bridge/*</include>
<include>com/google/storage/onestore/v3/proto2api/*</include>
<include>com/google/apphosting/executor/*</include>
<include>com/**</include>
</includes>
</filter>
<filter>
Expand Down Expand Up @@ -501,7 +475,6 @@
<include>com.google.api.grpc:proto-google-common-protos</include>
<include>com.google.appengine:appengine-utils</include>
<include>com.google.appengine:runtime-impl</include>
<include>com.google.appengine:proto1</include>
<include>com.google.appengine:protos</include>
<include>com.google.appengine:runtime-util</include>
<include>com.google.appengine:appengine-apis</include>
Expand Down
Loading

0 comments on commit 3706b5f

Please sign in to comment.