From 713635254c1549f68479cc95315c9be5948ba3fd Mon Sep 17 00:00:00 2001 From: Albert Callarisa Date: Wed, 25 Mar 2026 12:56:30 +0100 Subject: [PATCH 1/3] fix cloudevents version Signed-off-by: Albert Callarisa --- dapr/version/version.py | 2 +- examples/demo_actor/demo_actor/requirements.txt | 2 +- examples/demo_workflow/demo_workflow/requirements.txt | 2 +- examples/invoke-simple/requirements.txt | 4 ++-- examples/w3c-tracing/requirements.txt | 4 ++-- examples/workflow/requirements.txt | 4 ++-- ext/dapr-ext-fastapi/dapr/ext/fastapi/version.py | 2 +- ext/dapr-ext-fastapi/setup.cfg | 2 +- ext/dapr-ext-grpc/dapr/ext/grpc/version.py | 2 +- ext/dapr-ext-grpc/setup.cfg | 4 ++-- ext/dapr-ext-workflow/dapr/ext/workflow/version.py | 2 +- ext/dapr-ext-workflow/setup.cfg | 2 +- ext/flask_dapr/flask_dapr/version.py | 2 +- ext/flask_dapr/setup.cfg | 2 +- 14 files changed, 18 insertions(+), 18 deletions(-) diff --git a/dapr/version/version.py b/dapr/version/version.py index 33fff432..29962c96 100644 --- a/dapr/version/version.py +++ b/dapr/version/version.py @@ -13,4 +13,4 @@ limitations under the License. """ -__version__ = '1.16.1' +__version__ = '1.16.2' diff --git a/examples/demo_actor/demo_actor/requirements.txt b/examples/demo_actor/demo_actor/requirements.txt index bfca817e..340f494c 100644 --- a/examples/demo_actor/demo_actor/requirements.txt +++ b/examples/demo_actor/demo_actor/requirements.txt @@ -1 +1 @@ -dapr-ext-fastapi>=1.16.1 +dapr-ext-fastapi>=1.16.2 diff --git a/examples/demo_workflow/demo_workflow/requirements.txt b/examples/demo_workflow/demo_workflow/requirements.txt index 89f71c20..c4988d9b 100644 --- a/examples/demo_workflow/demo_workflow/requirements.txt +++ b/examples/demo_workflow/demo_workflow/requirements.txt @@ -1 +1 @@ -dapr-ext-workflow>=1.16.1 +dapr-ext-workflow>=1.16.2 diff --git a/examples/invoke-simple/requirements.txt b/examples/invoke-simple/requirements.txt index 0ac61471..a1f9ece0 100644 --- a/examples/invoke-simple/requirements.txt +++ b/examples/invoke-simple/requirements.txt @@ -1,2 +1,2 @@ -dapr-ext-grpc >= 1.16.1 -dapr >= 1.16.1 +dapr-ext-grpc >= 1.16.2 +dapr >= 1.16.2 diff --git a/examples/w3c-tracing/requirements.txt b/examples/w3c-tracing/requirements.txt index a349a8cd..29e5d6e5 100644 --- a/examples/w3c-tracing/requirements.txt +++ b/examples/w3c-tracing/requirements.txt @@ -1,5 +1,5 @@ -dapr-ext-grpc >= 1.16.1 -dapr >= 1.16.1 +dapr-ext-grpc >= 1.16.2 +dapr >= 1.16.2 opentelemetry-sdk opentelemetry-instrumentation-grpc opentelemetry-exporter-zipkin diff --git a/examples/workflow/requirements.txt b/examples/workflow/requirements.txt index 2a34fde3..4cb5f389 100644 --- a/examples/workflow/requirements.txt +++ b/examples/workflow/requirements.txt @@ -1,2 +1,2 @@ -dapr-ext-workflow>=1.16.1 -dapr>=1.16.1 +dapr-ext-workflow>=1.16.2 +dapr>=1.16.2 diff --git a/ext/dapr-ext-fastapi/dapr/ext/fastapi/version.py b/ext/dapr-ext-fastapi/dapr/ext/fastapi/version.py index 33fff432..29962c96 100644 --- a/ext/dapr-ext-fastapi/dapr/ext/fastapi/version.py +++ b/ext/dapr-ext-fastapi/dapr/ext/fastapi/version.py @@ -13,4 +13,4 @@ limitations under the License. """ -__version__ = '1.16.1' +__version__ = '1.16.2' diff --git a/ext/dapr-ext-fastapi/setup.cfg b/ext/dapr-ext-fastapi/setup.cfg index fad9af62..f06f3952 100644 --- a/ext/dapr-ext-fastapi/setup.cfg +++ b/ext/dapr-ext-fastapi/setup.cfg @@ -24,7 +24,7 @@ python_requires = >=3.9 packages = find_namespace: include_package_data = True install_requires = - dapr >= 1.16.1 + dapr >= 1.16.2 uvicorn >= 0.11.6 fastapi >= 0.60.1 diff --git a/ext/dapr-ext-grpc/dapr/ext/grpc/version.py b/ext/dapr-ext-grpc/dapr/ext/grpc/version.py index 33fff432..29962c96 100644 --- a/ext/dapr-ext-grpc/dapr/ext/grpc/version.py +++ b/ext/dapr-ext-grpc/dapr/ext/grpc/version.py @@ -13,4 +13,4 @@ limitations under the License. """ -__version__ = '1.16.1' +__version__ = '1.16.2' diff --git a/ext/dapr-ext-grpc/setup.cfg b/ext/dapr-ext-grpc/setup.cfg index 70ed13b0..ec96042d 100644 --- a/ext/dapr-ext-grpc/setup.cfg +++ b/ext/dapr-ext-grpc/setup.cfg @@ -24,8 +24,8 @@ python_requires = >=3.9 packages = find_namespace: include_package_data = True install_requires = - dapr >= 1.16.1 - cloudevents >= 1.0.0 + dapr >= 1.16.2 + cloudevents >= 1.0.0, < 2.0.0 [options.packages.find] include = diff --git a/ext/dapr-ext-workflow/dapr/ext/workflow/version.py b/ext/dapr-ext-workflow/dapr/ext/workflow/version.py index 33fff432..29962c96 100644 --- a/ext/dapr-ext-workflow/dapr/ext/workflow/version.py +++ b/ext/dapr-ext-workflow/dapr/ext/workflow/version.py @@ -13,4 +13,4 @@ limitations under the License. """ -__version__ = '1.16.1' +__version__ = '1.16.2' diff --git a/ext/dapr-ext-workflow/setup.cfg b/ext/dapr-ext-workflow/setup.cfg index 840bb59f..7fc20aeb 100644 --- a/ext/dapr-ext-workflow/setup.cfg +++ b/ext/dapr-ext-workflow/setup.cfg @@ -24,7 +24,7 @@ python_requires = >=3.9 packages = find_namespace: include_package_data = True install_requires = - dapr >= 1.16.1 + dapr >= 1.16.2 durabletask-dapr >= 0.2.0a9 [options.packages.find] diff --git a/ext/flask_dapr/flask_dapr/version.py b/ext/flask_dapr/flask_dapr/version.py index 33fff432..29962c96 100644 --- a/ext/flask_dapr/flask_dapr/version.py +++ b/ext/flask_dapr/flask_dapr/version.py @@ -13,4 +13,4 @@ limitations under the License. """ -__version__ = '1.16.1' +__version__ = '1.16.2' diff --git a/ext/flask_dapr/setup.cfg b/ext/flask_dapr/setup.cfg index f459d9dd..a0f0b201 100644 --- a/ext/flask_dapr/setup.cfg +++ b/ext/flask_dapr/setup.cfg @@ -26,4 +26,4 @@ include_package_data = true zip_safe = false install_requires = Flask >= 1.1 - dapr >= 1.16.1 + dapr >= 1.16.2 From bc78846788f5cddf5003fd85e7de66f5c6819369 Mon Sep 17 00:00:00 2001 From: Albert Callarisa Date: Wed, 25 Mar 2026 13:55:51 +0100 Subject: [PATCH 2/3] Fix: Run validations with a hardcoded cli and runtime versions Signed-off-by: Albert Callarisa --- .github/workflows/validate_examples.yaml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/validate_examples.yaml b/.github/workflows/validate_examples.yaml index 9617223a..6c27bd2d 100644 --- a/.github/workflows/validate_examples.yaml +++ b/.github/workflows/validate_examples.yaml @@ -37,7 +37,8 @@ jobs: GOOS: linux GOARCH: amd64 GOPROXY: https://proxy.golang.org - DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh + DAPR_RUNTIME_VER: 1.16.10 + DAPR_CLI_VER: 1.16.5 DAPR_CLI_REF: ${{ github.event.inputs.daprcli_commit }} DAPR_REF: ${{ github.event.inputs.daprdapr_commit }} CHECKOUT_REPO: ${{ github.repository }} @@ -62,17 +63,6 @@ jobs: with: repository: ${{ env.CHECKOUT_REPO }} ref: ${{ env.CHECKOUT_REF }} - - uses: azure/setup-helm@v4 - - name: Determine latest Dapr Runtime version - run: | - helm repo add dapr https://dapr.github.io/helm-charts/ && helm repo update && export RUNTIME_VERSION=$(helm search repo dapr/dapr --devel --versions | awk '/dapr\/dapr/ {print $3; exit}' ) - echo "DAPR_RUNTIME_VER=$RUNTIME_VERSION" >> $GITHUB_ENV - echo "Found $RUNTIME_VERSION" - - name: Determine latest Dapr Cli version - run: | - export CLI_VERSION=$(curl "https://api.github.com/repos/dapr/cli/releases?per_page=1&page=1" --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' | jq '.[0].tag_name'| tr -d '",v') - echo "DAPR_CLI_VER=$CLI_VERSION" >> $GITHUB_ENV - echo "Found $CLI_VERSION" - name: Set up Python ${{ matrix.python_ver }} uses: actions/setup-python@v5 with: @@ -82,7 +72,7 @@ jobs: python -m pip install --upgrade pip pip install setuptools wheel twine tox - name: Set up Dapr CLI - run: wget -q ${{ env.DAPR_INSTALL_URL }} -O - | /bin/bash -s ${{ env.DAPR_CLI_VER }} + run: wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash -s ${{ env.DAPR_CLI_VER }} - name: Set up Go ${{ env.GOVER }} if: env.DAPR_REF != '' || env.DAPR_CLI_REF != '' uses: actions/setup-go@v5 From 658e9ec34382ce787dff7dcd847f2d320ef12bf0 Mon Sep 17 00:00:00 2001 From: Albert Callarisa Date: Wed, 25 Mar 2026 13:59:46 +0100 Subject: [PATCH 3/3] Fix tests Signed-off-by: Albert Callarisa --- examples/metadata/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/metadata/README.md b/examples/metadata/README.md index 409df01b..6cc08a28 100644 --- a/examples/metadata/README.md +++ b/examples/metadata/README.md @@ -7,7 +7,7 @@ two methods in that API: 2. **set_metadata**: Adds a custom label to the Dapr sidecar information stored by the Metadata endpoint. -It creates a client using `DaprClient`, uses a set of components defined in the +It creates a client using `DaprClient`, uses a set of components defined in the [`./components/`](./components/) folder and invokes the two APIs from [Metadata API]. @@ -41,7 +41,7 @@ expected_stdout_lines: - "== APP == registered_components:" - "== APP == name=lockstore type=lock.redis version= capabilities=[]" - "== APP == name=pubsub type=pubsub.redis version=v1 capabilities=[]" - - "== APP == name=statestore type=state.redis version=v1 capabilities=['ACTOR', 'ETAG', 'KEYS_LIKE', 'TRANSACTIONAL', 'TTL'" + - "== APP == name=statestore type=state.redis version=v1 capabilities=['ACTOR', 'ETAG', 'TRANSACTIONAL', 'TTL'" - "== APP == We will update our custom label value and check it was persisted" - "== APP == We added a custom label named [is-this-our-metadata-example]" - "== APP == Its old value was [yes] but now it is [You bet it is!]" @@ -64,7 +64,7 @@ The output should be as follows: == APP == registered_components: == APP == name=lockstore type=lock.redis version= capabilities=[] == APP == name=pubsub type=pubsub.redis version=v1 capabilities=[] -== APP == name=statestore type=state.redis version=v1 capabilities=['ACTOR', 'ETAG', 'KEYS_LIKE', 'TRANSACTIONAL', 'TTL'] +== APP == name=statestore type=state.redis version=v1 capabilities=['ACTOR', 'ETAG', 'TRANSACTIONAL', 'TTL'] == APP == We will update our custom label value and check it was persisted == APP == We added a custom label named [is-this-our-metadata-example] == APP == Its old value was [yes] but now it is [You bet it is!]