Skip to content

Commit 7ac6efe

Browse files
authored
Merge branch 'release-0.16' into http-server-error-handling
2 parents e86e915 + 5241ce6 commit 7ac6efe

File tree

21 files changed

+596
-92
lines changed

21 files changed

+596
-92
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222

2323
jobs:
2424
lint:
25-
name: Lint
25+
name: Check and Lint
2626
runs-on: ubuntu-latest
2727

2828
steps:
@@ -37,14 +37,20 @@ jobs:
3737
repo-token: ${{ secrets.GITHUB_TOKEN }}
3838
version: ${{ env.PROTOC_VERSION }}
3939
- uses: actions/checkout@v4
40+
41+
- name: Check compiled protos for a diff
42+
run: |
43+
make proto-gen check-diff-proto
44+
4045
- name: cargo fmt
4146
run: cargo fmt -- --check --color ${{ env.CARGO_TERM_COLOR }}
47+
4248
- name: cargo clippy
4349
run: cargo clippy
4450

4551

4652
build:
47-
name: Build on rust-${{ matrix.rust-version}}
53+
name: Test and Build on rust-${{ matrix.rust-version }}
4854
runs-on: ubuntu-latest
4955
strategy:
5056
fail-fast: false
@@ -71,33 +77,60 @@ jobs:
7177
- name: Run Tests
7278
run: cargo test --workspace --all-targets --all-features
7379

74-
test-docs-sdk:
75-
name: Docs SDK
80+
test-docs:
81+
name: Check Docs - ${{ matrix.crate }}
7682
runs-on: ubuntu-latest
83+
strategy:
84+
fail-fast: false
85+
matrix:
86+
crate:
87+
- dapr
88+
- dapr-macros
7789
env:
7890
RUSTDOCFLAGS: -Dwarnings
7991
steps:
8092
- uses: actions/checkout@v4
8193
- uses: dtolnay/rust-toolchain@nightly
8294
- uses: dtolnay/install@cargo-docs-rs
83-
- run: cargo docs-rs -p dapr
95+
- run: cargo docs-rs -p ${{ matrix.crate }}
8496

85-
test-docs-macros:
86-
name: Docs Macros
97+
publish-dry:
98+
name: Publish Test
8799
runs-on: ubuntu-latest
88-
env:
89-
RUSTDOCFLAGS: -Dwarnings
100+
strategy:
101+
fail-fast: false
102+
matrix:
103+
crate:
104+
- dapr
105+
- dapr-macros
106+
90107
steps:
108+
- name: Install Rust
109+
uses: dtolnay/rust-toolchain@master
110+
with:
111+
toolchain: stable
112+
components: clippy, rustfmt
113+
- name: Install Protoc
114+
uses: arduino/setup-protoc@v3
115+
with:
116+
repo-token: ${{ secrets.GITHUB_TOKEN }}
117+
version: ${{ env.PROTOC_VERSION }}
91118
- uses: actions/checkout@v4
92-
- uses: dtolnay/rust-toolchain@nightly
93-
- uses: dtolnay/install@cargo-docs-rs
94-
- run: cargo docs-rs -p dapr-macros
119+
- name: cargo publish - ${{ matrix.crate }}
120+
run: cargo publish --manifest-path ${{ matrix.crate }}/Cargo.toml --dry-run
121+
95122

96123
publish:
97124
name: Publish
98125
runs-on: ubuntu-latest
99-
needs: [test-docs-sdk, test-docs-macros, lint, build]
126+
needs: [test-docs, lint, build, publish-dry]
100127
if: startswith(github.ref, 'refs/tags/v')
128+
strategy:
129+
fail-fast: false
130+
matrix:
131+
crate:
132+
- dapr
133+
- dapr-macros
101134

102135
steps:
103136
- name: Install Rust
@@ -111,7 +144,5 @@ jobs:
111144
repo-token: ${{ secrets.GITHUB_TOKEN }}
112145
version: ${{ env.PROTOC_VERSION }}
113146
- uses: actions/checkout@v4
114-
- name: cargo publish dapr-macros
115-
run: cargo publish --manifest-path dapr-macros/Cargo.toml --token ${{ env.CARGO_TOKEN }}
116-
- name: cargo publish dapr
117-
run: cargo publish --manifest-path dapr/Cargo.toml --token ${{ env.CARGO_TOKEN }}
147+
- name: cargo publish - ${{ matrix.crate }}
148+
run: cargo publish --manifest-path ${{ matrix.crate }}/Cargo.toml --token ${{ env.CARGO_TOKEN }}

.github/workflows/validate-examples.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh
4747
DAPR_CLI_REF: ${{ github.event.inputs_daprcli_commit }}
4848
DAPR_CLI_VERSION: ${{ github.event.inputs_daprcli_version }}
49-
DAPR_REF: ${{ github.event.inputs.dapr_commit }}
49+
DAPR_REF: 334ae9eea43d487a7b29a0e4aef904e3eba57a10
5050
DAPR_RUNTIME_VERSION: ${{ github.event.inputs.dapr_version }}
5151
CHECKOUT_REPO: ${{ github.repository }}
5252
CHECKOUT_REF: ${{ github.ref }}
@@ -76,14 +76,14 @@ jobs:
7676
- name: Determine latest Dapr Runtime version
7777
if: env.DAPR_RUNTIME_VERSION == ''
7878
run: |
79-
RUNTIME_VERSION=$(curl -s "https://api.github.com/repos/dapr/dapr/releases/latest" | grep '"tag_name"' | cut -d ':' -f2 | tr -d '",v')
79+
RUNTIME_VERSION=$(curl -s "https://api.github.com/repos/dapr/dapr/releases/latest" | grep '"tag_name"' | cut -d ':' -f2 | tr -d ' ",v')
8080
echo "DAPR_RUNTIME_VERSION=$RUNTIME_VERSION" >> $GITHUB_ENV
8181
echo "Found $RUNTIME_VERSION"
8282
8383
- name: Determine latest Dapr Cli version
8484
if: env.DAPR_CLI_VERSION == ''
8585
run: |
86-
CLI_VERSION=$(curl -s "https://api.github.com/repos/dapr/cli/releases/latest" | grep '"tag_name"' | cut -d ':' -f2 | tr -d '",v')
86+
CLI_VERSION=$(curl -s "https://api.github.com/repos/dapr/cli/releases/latest" | grep '"tag_name"' | cut -d ':' -f2 | tr -d ' ",v')
8787
echo "DAPR_CLI_VERSION=$CLI_VERSION" >> $GITHUB_ENV
8888
echo "Found $CLI_VERSION"
8989
@@ -127,6 +127,7 @@ jobs:
127127
cd dapr_runtime
128128
make
129129
echo "artifactPath=~/artifacts/$GITHUB_SHA/" >> $GITHUB_ENV
130+
mkdir -p $HOME/artifacts/$GITHUB_SHA/
130131
RUNTIME_VERSION=edge
131132
echo "DAPR_RUNTIME_VERSION=$RUNTIME_VERSION" >> $GITHUB_ENV
132133
@@ -135,7 +136,7 @@ jobs:
135136
run: |
136137
mkdir ~/dapr_docker
137138
cd dapr_runtime
138-
docker build --build-arg "PKG_FILES=*" -f ./docker/Dockerfile ./dist/linux_amd64/release -t daprio/dapr:0.0.0-dev
139+
docker build --build-arg "PKG_FILES=*" -f ./docker/Dockerfile ./dist/linux_amd64/release -t daprio/dapr:9.0.0-dev
139140
140141
- name: Download Install Bundle CLI
141142
if: env.DAPR_REF != '' && env.DAPR_CLI_REF == ''
@@ -147,14 +148,14 @@ jobs:
147148
ls -la
148149
149150
- name: Build Custom Install Bundle
150-
if: env.DAPR_REF != '' && env.DAPR_CLI_REF != ''
151+
if: env.DAPR_REF != '' || env.DAPR_CLI_REF != ''
151152
run: |
152153
: # Create daprbundle directory
153154
mkdir ~/daprbundle
154155
cp .github/workflows/validate-examples/details.json ~/daprbundle/
155156
156157
: # Add cli
157-
cp ~/artifacts/$GITHUB_SHA/dapr ~/daprbundle/dapr
158+
cp cli/dist/linux_amd64/release/dapr ~/daprbundle/dapr
158159
159160
: # Compress executables to /dist/ appending _linux_amd64 to the name
160161
mkdir ~/daprbundle/dist
@@ -169,7 +170,7 @@ jobs:
169170
170171
: # Add docker image
171172
mkdir ~/daprbundle/docker
172-
docker save daprio/dapr:0.0.0-dev | gzip > ~/daprbundle/docker/daprio-dapr-0.0.0-dev.tar.gz
173+
docker save daprio/dapr:9.0.0-dev | gzip > ~/daprbundle/docker/daprio-dapr-9.0.0-dev.tar.gz
173174
174175
: # Bundle
175176
cd ~/daprbundle
@@ -219,7 +220,7 @@ jobs:
219220
fail-fast: false
220221
matrix:
221222
examples:
222-
[ "actors", "bindings", "client", "configuration", "crypto", "invoke/grpc", "invoke/grpc-proxying", "jobs", "pubsub", "query_state", "secrets-bulk" ]
223+
[ "actors", "bindings", "client", "configuration", "conversation", "crypto", "invoke/grpc", "invoke/grpc-proxying", "jobs", "pubsub", "query_state", "secrets-bulk" ]
223224
steps:
224225
- name: Check out code
225226
uses: actions/checkout@v4
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"daprd": "0.0.0-dev",
3-
"dashboard": "0.0.0-dev",
4-
"cli": "0.0.0-dev",
2+
"daprd": "9.0.0-dev",
3+
"dashboard": "9.0.0-dev",
4+
"cli": "9.0.0-dev",
55
"daprBinarySubDir": "dist",
66
"dockerImageSubDir": "docker",
7-
"daprImageName": "daprio/dapr:0.0.0-dev",
8-
"daprImageFileName": "daprio-dapr-0.0.0-dev.tar.gz"
7+
"daprImageName": "daprio/dapr:9.0.0-dev",
8+
"daprImageFileName": "daprio-dapr-9.0.0-dev.tar.gz"
99
}

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ resolver = "2"
1212

1313
[workspace.dependencies]
1414
async-trait = "0.1"
15-
16-
dapr-macros = { version = "0.16.0-rc.2", path = "./dapr-macros" }
17-
1815
prost = "0.13.1"
1916
prost-build = "0.13.1"
2017
prost-types = "0.13.1"
@@ -31,7 +28,7 @@ tonic = "0.12.1"
3128
tonic-build = "0.12.1"
3229

3330
[workspace.package]
34-
version = "0.16.0-rc.2"
31+
version = "0.16.0-rc.3"
3532
authors = [
3633
"Mike Nguyen <[email protected]>",
3734
"The Dapr Authors <[email protected]>"

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.PHONY: proto-gen
2+
proto-gen:
3+
cargo run --bin proto-gen
4+
5+
.PHONY: check-diff-proto
6+
check-diff-proto:
7+
git diff --exit-code ./proto/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Add the following to your `Cargo.toml` file:
5353

5454
```toml
5555
[dependencies]
56-
dapr = "0.16.0-rc.2"
56+
dapr = "0.16.0-rc.3"
5757
```
5858

5959
Here's a basic example to create a client:

dapr/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ async-trait = { workspace = true }
1515
axum = "0.7"
1616
bytes = "1.7"
1717
chrono = "0.4"
18-
dapr-macros = { workspace = true }
1918
futures = "0.3"
2019
log = "0.4"
2120
prost = { workspace = true }
@@ -28,9 +27,10 @@ tokio-util = { workspace = true, features = ["io"] }
2827

2928

3029
[dev-dependencies]
31-
axum-test = "15.3"
30+
axum-test = "16.4.0"
3231
once_cell = "1.19"
3332
dapr = { path = "./" }
33+
dapr-macros = { path = "../dapr-macros" }
3434
tokio = { workspace = true, features = ["full"] }
3535
uuid = { version = "1.10", features = ["v4"] }
3636
tokio-test = { workspace = true }

0 commit comments

Comments
 (0)