Skip to content

Gh 1088 #1

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

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
9048bc1
Increase Kafka container wait time for HTTP bindings examples (#1054)
artur-ciocanu Jun 20, 2024
502f7c0
Remove HTTP client and add gRPC interceptor helper. (#1051)
artursouza Jun 21, 2024
7e09841
Adding metadata endpoint (#1049)
salaboy Jun 25, 2024
48364b1
Try to fix one more time after conflicts (#1053)
artur-ciocanu Jun 25, 2024
d9cfba7
Delete DaprHTTPClient for actors. (#1056)
artursouza Jun 25, 2024
653ba7e
Expand Dapr metadata API (#1057)
artur-ciocanu Jun 25, 2024
363b6f9
[cherry-pick] Update Dapr CLI + Add HTTP code to DaprException (#1020)
artursouza Jun 25, 2024
64f291f
Add missing data to Dapr Metadata and its components (#1059)
artur-ciocanu Jun 26, 2024
9afbc3c
Adding path variable names to avoid Spring Boot 3.x issues (#1062)
artur-ciocanu Jun 27, 2024
a0ee8d1
Upgrade OTEL to v1.39.0 in integration tests (#1064)
artur-ciocanu Jul 1, 2024
3dadc0b
Use default state serializer content type if state is not null (#1033)
antoniomaria Jul 3, 2024
a4ec275
Adjust latency and jitter for Toxi proxy to stabilize SDK resiliency …
artur-ciocanu Jul 10, 2024
5bf8769
Add failure messages to GRPC method invoke IT test (#1077)
artur-ciocanu Jul 12, 2024
6e0f267
Bump supported Spring Boot baseline to version 3.2.x (#1050)
ThomasVitale Jul 16, 2024
a98327e
Ensure checkstyle can be imported into IDE (#1083)
artur-ciocanu Jul 19, 2024
5618af5
Ensure checkstyle header file is referenced from parent POM (#1087)
artur-ciocanu Jul 24, 2024
e30dc2d
Initial Testcontainers integration for Dapr (#1085)
salaboy Aug 5, 2024
b03da38
Adding multiple Spring Boot enhancements
Jul 23, 2024
fb842fd
Use the proper version
Jul 24, 2024
f2ab6eb
Ensure we send non-nullable values via messaging interface
Jul 24, 2024
197568b
Fix Dapr Workflows version
Jul 24, 2024
e6a69d5
Simplify Dapr Messaging interface
Jul 25, 2024
56b25d2
Extract classes to top level packages
Jul 25, 2024
b0ebde1
Adjust Spring Modules version
Jul 30, 2024
0575c53
Fix version numbers per guidelines
Jul 30, 2024
a1ad4ce
Add dapr-spring module, revert sdk-springboot module
Jul 31, 2024
5d70f47
Add the missing deps for autoconfiguration
Aug 1, 2024
9c8ba5b
Adding dapr-spring-data and dapr-spring-messaging modules
Aug 1, 2024
42129ac
Fixing tests based on Testcontainers PR
Aug 1, 2024
1f78f63
Move ITs to sdk-tests
Aug 1, 2024
901faaf
Adding container log consumer
Aug 5, 2024
2b934b1
Adjust Dapr Spring Modules names
Aug 5, 2024
5ec1a29
Fix Spotbugs
Aug 5, 2024
9d833a4
Add missing version properties
Aug 5, 2024
ec6d9ca
Adding auto-configuration condition on darp.statestore.enabled=true
Aug 5, 2024
4e94d52
Remove conditional property
Aug 5, 2024
498e686
Use @Lazy for KV template to avoid metadata lookup
Aug 5, 2024
c5b3981
Move tests to sdk-tests, move autoconfig to starter
Aug 6, 2024
f2a10ff
Remove redundant dependencies
Aug 6, 2024
4835a20
Instantiate Dapr client in BeforeEach
Aug 6, 2024
5dc39e0
Fix some minor cosmetics
Aug 6, 2024
a8b1cea
Revert unneeded change
Aug 6, 2024
b77818d
Expose Dapr ports explicitly
Aug 6, 2024
9b519da
Expose ports explicitly
Aug 6, 2024
b1f2f35
Add waitForSidecar() to see if this will help
Aug 6, 2024
bea0fb8
Forcibly start the Dapr container in the test
Aug 6, 2024
0cccd32
Ensure waitForSidecar() is used in all tests
Aug 6, 2024
f3900ea
Add logging for more information
Aug 6, 2024
a90baa4
Fix configuration for repository test
Aug 6, 2024
49c8141
moving things around
salaboy Aug 7, 2024
544b4fd
remove wait for sidecar
salaboy Aug 7, 2024
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
19 changes: 14 additions & 5 deletions .github/scripts/update_sdk_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,23 @@ set -uex

DAPR_JAVA_SDK_VERSION=$1

# The workflows sdk tracks the regular SDK minor and patch versions, just not the major.
# Replaces the workflows SDK major version to 0 until it is stable.
DAPR_JAVA_WORKFLOWS_SDK_VERSION=`echo $DAPR_JAVA_SDK_VERSION | sed 's/^[0-9]*\./0./'`
# Alpha artifacts of the sdk tracks the regular SDK minor and patch versions, just not the major.
# Replaces the SDK major version to 0 for alpha artifacts.
DAPR_JAVA_SDK_ALPHA_VERSION=`echo $DAPR_JAVA_SDK_VERSION | sed 's/^[0-9]*\./0./'`

mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_VERSION
mvn versions:set-property -Dproperty=dapr.sdk.alpha.version -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION
mvn versions:set-property -Dproperty=dapr.sdk.version -DnewVersion=$DAPR_JAVA_SDK_VERSION -f sdk-tests/pom.xml
mvn versions:set-property -Dproperty=dapr.sdk.alpha.version -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f sdk-tests/pom.xml

mvn versions:set -DnewVersion=$DAPR_JAVA_WORKFLOWS_SDK_VERSION -f sdk-workflows/pom.xml
mvn versions:set-property -Dproperty=dapr.sdk-workflows.version -DnewVersion=$DAPR_JAVA_WORKFLOWS_SDK_VERSION
###################
# Alpha artifacts #
###################

# sdk-workflows
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f sdk-workflows/pom.xml

# testcontainers-dapr
mvn versions:set -DnewVersion=$DAPR_JAVA_SDK_ALPHA_VERSION -f testcontainers-dapr/pom.xml

git clean -f
22 changes: 7 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,23 @@ jobs:
fail-fast: false
matrix:
java: [ 17 ]
spring-boot-version: [ 3.0.13 ]
spring-boot-display-version: [ 3.0.x ]
spring-boot-version: [ 3.2.6 ]
spring-boot-display-version: [ 3.2.x ]
experimental: [ false ]
include:
- java: 17
spring-boot-version: 2.7.18
spring-boot-display-version: 2.7.x
experimental: false
- java: 17
spring-boot-version: 2.6.14
spring-boot-display-version: 2.6.x
experimental: false
- java: 17
spring-boot-version: 2.5.7
spring-boot-display-version: 2.5.x
spring-boot-version: 3.3.0
spring-boot-display-version: 3.3.x
experimental: false
env:
GOVER: "1.20"
GOOS: linux
GOARCH: amd64
GOPROXY: https://proxy.golang.org
JDK_VER: ${{ matrix.java }}
DAPR_CLI_VER: 1.12.0
DAPR_CLI_VER: 1.13.0-rc.1
DAPR_RUNTIME_VER: 1.13.0-rc.2
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.12.0/install/install.sh
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.13.0-rc.1/install/install.sh
DAPR_CLI_REF:
DAPR_REF:
TOXIPROXY_URL: https://github.com/Shopify/toxiproxy/releases/download/v2.5.0/toxiproxy-server-linux-amd64
Expand Down Expand Up @@ -107,7 +99,7 @@ jobs:
./dist/linux_amd64/release/placement &
- name: Spin local environment
run: |
docker-compose -f ./sdk-tests/deploy/local-test.yml up -d mongo kafka
docker compose -f ./sdk-tests/deploy/local-test.yml up -d mongo kafka
docker ps
- name: Install local ToxiProxy to simulate connectivity issues to Dapr sidecar
run: |
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
GOARCH: amd64
GOPROXY: https://proxy.golang.org
JDK_VER: ${{ matrix.java }}
DAPR_CLI_VER: 1.12.0
DAPR_CLI_VER: 1.13.0-rc.1
DAPR_RUNTIME_VER: 1.13.0-rc.5
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.12.0/install/install.sh
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v1.13.0-rc.1/install/install.sh
DAPR_CLI_REF:
DAPR_REF:
steps:
Expand Down Expand Up @@ -100,10 +100,6 @@ jobs:
echo "PATH=$PATH:$HOME/.local/bin" >> $GITHUB_ENV
pip3 install setuptools wheel
pip3 install mechanical-markdown
- name: Install Local mongo database using docker-compose
run: |
docker-compose -f ./sdk-tests/deploy/local-test.yml up -d mongo
docker ps
- name: Clean up files
run: ./mvnw clean
- name: Build sdk
Expand Down Expand Up @@ -146,14 +142,10 @@ jobs:
working-directory: ./examples
run: |
mm.py ./src/main/java/io/dapr/examples/unittesting/README.md
- name: Validate Configuration gRPC API example
working-directory: ./examples
run: |
mm.py ./src/main/java/io/dapr/examples/configuration/grpc/README.md
- name: Validate Configuration HTTP API example
- name: Validate Configuration API example
working-directory: ./examples
run: |
mm.py ./src/main/java/io/dapr/examples/configuration/http/README.md
mm.py ./src/main/java/io/dapr/examples/configuration/README.md
- name: Validate actors example
working-directory: ./examples
run: |
Expand Down
4 changes: 3 additions & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
wrapperVersion=3.3.2
distributionType=script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.2/maven-wrapper-3.3.2.jar
2 changes: 1 addition & 1 deletion .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=11.0.19-tem
java=17.0.11-tem
maven=3.8.5
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ Try the following examples to learn more about Dapr's Java SDK:
* [Binding with input over Http](./examples/src/main/java/io/dapr/examples/bindings/http)
* [Actors](./examples/src/main/java/io/dapr/examples/actors/)
* [Secrets management](./examples/src/main/java/io/dapr/examples/secrets)
* [Configuration](./examples/src/main/java/io/dapr/examples/configuration)
* [Distributed tracing with OpenTelemetry SDK](./examples/src/main/java/io/dapr/examples/tracing)
* [Exception handling](./examples/src/main/java/io/dapr/examples/exception)
* [Unit testing](./examples/src/main/java/io/dapr/examples/unittesting)
Expand Down Expand Up @@ -236,13 +237,13 @@ Similarly, all of these need to be run for running the ITs either individually o
Run the following commands from the root of the repo to start all the docker containers that the tests depend on.

```bash
docker-compose -f ./sdk-tests/deploy/local-test.yml up -d
docker compose -f ./sdk-tests/deploy/local-test.yml up -d
```

To stop the containers and services, run the following commands.

```bash
docker-compose -f ./sdk-tests/deploy/local-test.yml down
docker compose -f ./sdk-tests/deploy/local-test.yml down
```


Expand Down
Loading