mirror of https://github.com/dapr/java-sdk.git
update dapr runtime + cli to latest rc: 1.14 (#1078)
* update dapr runtime + cli to latest rc Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * update install url version Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * add back v Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * trying things for pom.xml Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * Fix sdk-autogen proto code gen Signed-off-by: Artur Souza <asouza.pro@gmail.com> * Use 1.14.0-rc.3 CLI for build.yaml Signed-off-by: Artur Souza <asouza.pro@gmail.com> * debug scheduler connection. Signed-off-by: Artur Souza <asouza.pro@gmail.com> * Update CLI to rc6 and runtime to rc4 Signed-off-by: Artur Souza <asouza.pro@gmail.com> * Update gRPC and proto dependency in sdk-tests too. Signed-off-by: Artur Souza <asouza.pro@gmail.com> * Update to runtime RC6 Signed-off-by: Artur Souza <asouza.pro@gmail.com> * Update error message expectations in 1.15 Signed-off-by: Artur Souza <asouza.pro@gmail.com> --------- Signed-off-by: Cassandra Coyle <cassie@diagrid.io> Signed-off-by: Artur Souza <asouza.pro@gmail.com> Co-authored-by: Artur Souza <asouza.pro@gmail.com>
This commit is contained in:
parent
5bf8769585
commit
7d74fdbbfd
|
|
@ -46,9 +46,9 @@ jobs:
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
JDK_VER: ${{ matrix.java }}
|
JDK_VER: ${{ matrix.java }}
|
||||||
DAPR_CLI_VER: 1.13.0-rc.1
|
DAPR_CLI_VER: 1.14.0-rc.6
|
||||||
DAPR_RUNTIME_VER: 1.13.0-rc.2
|
DAPR_RUNTIME_VER: 1.14.0-rc.6
|
||||||
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.13.0-rc.1/install/install.sh
|
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.14.0-rc.4/install/install.sh
|
||||||
DAPR_CLI_REF:
|
DAPR_CLI_REF:
|
||||||
DAPR_REF:
|
DAPR_REF:
|
||||||
TOXIPROXY_URL: https://github.com/Shopify/toxiproxy/releases/download/v2.5.0/toxiproxy-server-linux-amd64
|
TOXIPROXY_URL: https://github.com/Shopify/toxiproxy/releases/download/v2.5.0/toxiproxy-server-linux-amd64
|
||||||
|
|
|
||||||
|
|
@ -37,9 +37,9 @@ jobs:
|
||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
GOPROXY: https://proxy.golang.org
|
GOPROXY: https://proxy.golang.org
|
||||||
JDK_VER: ${{ matrix.java }}
|
JDK_VER: ${{ matrix.java }}
|
||||||
DAPR_CLI_VER: 1.13.0-rc.1
|
DAPR_CLI_VER: 1.14.0-rc.6
|
||||||
DAPR_RUNTIME_VER: 1.13.0-rc.5
|
DAPR_RUNTIME_VER: 1.14.0-rc.6
|
||||||
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.13.0-rc.1/install/install.sh
|
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.14.0-rc.3/install/install.sh
|
||||||
DAPR_CLI_REF:
|
DAPR_CLI_REF:
|
||||||
DAPR_REF:
|
DAPR_REF:
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -100,6 +100,8 @@ jobs:
|
||||||
echo "PATH=$PATH:$HOME/.local/bin" >> $GITHUB_ENV
|
echo "PATH=$PATH:$HOME/.local/bin" >> $GITHUB_ENV
|
||||||
pip3 install setuptools wheel
|
pip3 install setuptools wheel
|
||||||
pip3 install mechanical-markdown
|
pip3 install mechanical-markdown
|
||||||
|
- name: Verify scheduler is listening on port.
|
||||||
|
run: sleep 30 && docker logs dapr_scheduler && nc -vz localhost 50006
|
||||||
- name: Clean up files
|
- name: Clean up files
|
||||||
run: ./mvnw clean
|
run: ./mvnw clean
|
||||||
- name: Build sdk
|
- name: Build sdk
|
||||||
|
|
|
||||||
11
pom.xml
11
pom.xml
|
|
@ -14,11 +14,12 @@
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<grpc.version>1.59.0</grpc.version>
|
<grpc.version>1.64.0</grpc.version>
|
||||||
<protobuf.version>3.17.3</protobuf.version>
|
<protobuf.version>3.25.0</protobuf.version>
|
||||||
<dapr.proto.baseurl>https://raw.githubusercontent.com/dapr/dapr/v1.13.0-rc.5/dapr/proto</dapr.proto.baseurl>
|
<protocCommand>protoc</protocCommand>
|
||||||
|
<dapr.proto.baseurl>https://raw.githubusercontent.com/dapr/dapr/v1.14.0-rc.2/dapr/proto</dapr.proto.baseurl>
|
||||||
<dapr.sdk-workflows.version>0.12.0-SNAPSHOT</dapr.sdk-workflows.version>
|
<dapr.sdk-workflows.version>0.12.0-SNAPSHOT</dapr.sdk-workflows.version>
|
||||||
<os-maven-plugin.version>1.6.2</os-maven-plugin.version>
|
<os-maven-plugin.version>1.7.1</os-maven-plugin.version>
|
||||||
<maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
|
<maven-dependency-plugin.version>3.1.1</maven-dependency-plugin.version>
|
||||||
<maven-antrun-plugin.version>1.8</maven-antrun-plugin.version>
|
<maven-antrun-plugin.version>1.8</maven-antrun-plugin.version>
|
||||||
<maven-deploy-plugin.version>2.7</maven-deploy-plugin.version>
|
<maven-deploy-plugin.version>2.7</maven-deploy-plugin.version>
|
||||||
|
|
@ -46,7 +47,7 @@
|
||||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
<site>
|
<site>
|
||||||
<id>localDocsDirecty</id>
|
<id>localDocsDirectory</id>
|
||||||
<url>file:${maven.multiModuleProjectDirectory}/docs/</url>
|
<url>file:${maven.multiModuleProjectDirectory}/docs/</url>
|
||||||
</site>
|
</site>
|
||||||
<!-- Use default repository -->
|
<!-- Use default repository -->
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,9 @@
|
||||||
<protobuf.output.directory>${project.build.directory}/generated-sources</protobuf.output.directory>
|
<protobuf.output.directory>${project.build.directory}/generated-sources</protobuf.output.directory>
|
||||||
<protobuf.input.directory>${project.build.directory}/proto</protobuf.input.directory>
|
<protobuf.input.directory>${project.build.directory}/proto</protobuf.input.directory>
|
||||||
<maven.deploy.skip>false</maven.deploy.skip>
|
<maven.deploy.skip>false</maven.deploy.skip>
|
||||||
<grpc.version>1.59.0</grpc.version>
|
<grpc.version>1.64.0</grpc.version>
|
||||||
|
<protocCommand>protoc</protocCommand>
|
||||||
|
<protobuf.version>3.25.0</protobuf.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
@ -61,6 +63,19 @@
|
||||||
<artifactId>download-maven-plugin</artifactId>
|
<artifactId>download-maven-plugin</artifactId>
|
||||||
<version>1.6.0</version>
|
<version>1.6.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>getDaprProto</id>
|
||||||
|
<phase>initialize</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>wget</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<skipCache>true</skipCache>
|
||||||
|
<url>${dapr.proto.baseurl}/runtime/v1/dapr.proto</url>
|
||||||
|
<outputFileName>dapr.proto</outputFileName>
|
||||||
|
<outputDirectory>${protobuf.input.directory}/dapr/proto/runtime/v1</outputDirectory>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
<id>getCommonProto</id>
|
<id>getCommonProto</id>
|
||||||
<phase>initialize</phase>
|
<phase>initialize</phase>
|
||||||
|
|
@ -74,19 +89,6 @@
|
||||||
<outputDirectory>${protobuf.input.directory}/dapr/proto/common/v1</outputDirectory>
|
<outputDirectory>${protobuf.input.directory}/dapr/proto/common/v1</outputDirectory>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
|
||||||
<id>getDaprProto</id>
|
|
||||||
<phase>initialize</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>wget</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<skipCache>true</skipCache>
|
|
||||||
<url>${dapr.proto.baseurl}/runtime/v1/dapr.proto</url>
|
|
||||||
<outputFileName>dapr.proto</outputFileName>
|
|
||||||
<outputDirectory>${protobuf.input.directory}</outputDirectory>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
<execution>
|
||||||
<id>getDaprClientProto</id>
|
<id>getDaprClientProto</id>
|
||||||
<phase>initialize</phase>
|
<phase>initialize</phase>
|
||||||
|
|
@ -97,11 +99,23 @@
|
||||||
<skipCache>true</skipCache>
|
<skipCache>true</skipCache>
|
||||||
<url>${dapr.proto.baseurl}/runtime/v1/appcallback.proto</url>
|
<url>${dapr.proto.baseurl}/runtime/v1/appcallback.proto</url>
|
||||||
<outputFileName>appcallback.proto</outputFileName>
|
<outputFileName>appcallback.proto</outputFileName>
|
||||||
<outputDirectory>${protobuf.input.directory}</outputDirectory>
|
<outputDirectory>${protobuf.input.directory}/dapr/proto/runtime/v1</outputDirectory>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>kr.motd.maven</groupId>
|
||||||
|
<artifactId>os-maven-plugin</artifactId>
|
||||||
|
<version>1.7.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>detect</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.github.os72</groupId>
|
<groupId>com.github.os72</groupId>
|
||||||
<artifactId>protoc-jar-maven-plugin</artifactId>
|
<artifactId>protoc-jar-maven-plugin</artifactId>
|
||||||
|
|
@ -113,14 +127,18 @@
|
||||||
<goal>run</goal>
|
<goal>run</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
|
<protocCommand>protoc</protocCommand>
|
||||||
<protocVersion>${protobuf.version}</protocVersion>
|
<protocVersion>${protobuf.version}</protocVersion>
|
||||||
|
<protocArtifact>com.google.protobuf:protoc:3.21.1</protocArtifact>
|
||||||
<addProtoSources>inputs</addProtoSources>
|
<addProtoSources>inputs</addProtoSources>
|
||||||
<includeMavenTypes>direct</includeMavenTypes>
|
<includeMavenTypes>direct</includeMavenTypes>
|
||||||
<includeStdTypes>true</includeStdTypes>
|
<includeStdTypes>true</includeStdTypes>
|
||||||
<inputDirectories>
|
<inputDirectories>
|
||||||
<include>${protobuf.input.directory}/dapr/proto/common/v1</include>
|
|
||||||
<include>${protobuf.input.directory}</include>
|
<include>${protobuf.input.directory}</include>
|
||||||
</inputDirectories>
|
</inputDirectories>
|
||||||
|
<includeDirectories>
|
||||||
|
<include>${protobuf.input.directory}</include>
|
||||||
|
</includeDirectories>
|
||||||
<outputTargets>
|
<outputTargets>
|
||||||
<outputTarget>
|
<outputTarget>
|
||||||
<type>java</type>
|
<type>java</type>
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@
|
||||||
<dapr.sdk.version>1.12.0-SNAPSHOT</dapr.sdk.version>
|
<dapr.sdk.version>1.12.0-SNAPSHOT</dapr.sdk.version>
|
||||||
<protobuf.output.directory>${project.build.directory}/generated-sources</protobuf.output.directory>
|
<protobuf.output.directory>${project.build.directory}/generated-sources</protobuf.output.directory>
|
||||||
<protobuf.input.directory>${project.basedir}/proto</protobuf.input.directory>
|
<protobuf.input.directory>${project.basedir}/proto</protobuf.input.directory>
|
||||||
<grpc.version>1.59.0</grpc.version>
|
<grpc.version>1.64.0</grpc.version>
|
||||||
<protobuf.version>3.17.3</protobuf.version>
|
<protobuf.version>3.25.0</protobuf.version>
|
||||||
<opentelemetry.version>1.39.0</opentelemetry.version>
|
<opentelemetry.version>1.39.0</opentelemetry.version>
|
||||||
<spring-boot.version>3.0.13</spring-boot.version>
|
<spring-boot.version>3.0.13</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@ public class MethodInvokeIT extends BaseIT {
|
||||||
private static final int TIMEOUT_MS = 100;
|
private static final int TIMEOUT_MS = 100;
|
||||||
private static final ResiliencyOptions RESILIENCY_OPTIONS = new ResiliencyOptions()
|
private static final ResiliencyOptions RESILIENCY_OPTIONS = new ResiliencyOptions()
|
||||||
.setTimeout(Duration.ofMillis(TIMEOUT_MS));
|
.setTimeout(Duration.ofMillis(TIMEOUT_MS));
|
||||||
private static final String EXCEPTION_MARKER = "DEADLINE_EXCEEDED: deadline exceeded after";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run of a Dapr application.
|
* Run of a Dapr application.
|
||||||
|
|
@ -92,7 +91,8 @@ public class MethodInvokeIT extends BaseIT {
|
||||||
String message = assertThrows(StatusRuntimeException.class, () -> stub.sleep(req)).getMessage();
|
String message = assertThrows(StatusRuntimeException.class, () -> stub.sleep(req)).getMessage();
|
||||||
long delay = System.currentTimeMillis() - started;
|
long delay = System.currentTimeMillis() - started;
|
||||||
assertTrue(delay >= TIMEOUT_MS, "Delay: " + delay + " is not greater than timeout: " + TIMEOUT_MS);
|
assertTrue(delay >= TIMEOUT_MS, "Delay: " + delay + " is not greater than timeout: " + TIMEOUT_MS);
|
||||||
assertTrue(message.startsWith(EXCEPTION_MARKER), "Message: " + message + " does not start with: " + EXCEPTION_MARKER);
|
assertTrue(message.contains("DEADLINE_EXCEEDED"));
|
||||||
|
assertTrue(message.contains("CallOptions deadline exceeded after"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -112,7 +112,8 @@ public class MethodInvokeIT extends BaseIT {
|
||||||
// If this test fails, there might be a regression in runtime (like we had in 1.10.0).
|
// If this test fails, there might be a regression in runtime (like we had in 1.10.0).
|
||||||
// The expectations below are as per 1.9 release and (later on) hotfixed in 1.10.
|
// The expectations below are as per 1.9 release and (later on) hotfixed in 1.10.
|
||||||
assertEquals(Status.UNKNOWN.getCode(), exception.getStatus().getCode());
|
assertEquals(Status.UNKNOWN.getCode(), exception.getStatus().getCode());
|
||||||
assertEquals("", exception.getStatus().getDescription());
|
// The error message below is added starting in Dapr 1.15.0
|
||||||
|
assertEquals("Application error processing RPC", exception.getStatus().getDescription());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue