Skip to content

bug: python test flakey for secretstore #1029

@sicoyle

Description

@sicoyle

Fix the flakey test below:


ℹ️  Dapr sidecar is up and running.
ℹ️  Updating metadata for appPID: 9652
ℹ️  Updating metadata for app command: python3 example.py
✅  You're up and running! Both Dapr and your app logs will appear here.

time="2026-05-14T20:12:27.778082576Z" level=error msg="Failed to listen for gRPC server on TCP address :33223 with error: listen tcp :33223: bind: address already in use" app_id=secretsapp instance=runnervmrw5os scope=dapr.runtime.grpc.internal type=log ver=1.18.0-rc.3
time="2026-05-14T20:12:27.779982532Z" level=info msg="Closing HTTP server [::]:46531…" app_id=secretsapp instance=runnervmrw5os scope=dapr.runtime.http type=log ver=1.18.0-rc.3
time="2026-05-14T20:12:27.780066525Z" level=info msg="stopping mDNS server for app id: secretsapp" app_id=secretsapp component="nr (mdns/v1)" instance=runnervmrw5os scope=dapr.contrib type=log ver=1.18.0-rc.3
time="2026-05-14T20:12:27.780064112Z" level=info msg="Dapr is shutting down" app_id=secretsapp instance=runnervmrw5os scope=dapr.runtime type=log ver=1.18.0-rc.3
time="2026-05-14T20:12:27.780281902Z" level=info msg="Shutting down component localsecretstore (secretstores.local.file)" app_id=secretsapp instance=runnervmrw5os scope=dapr.runtime type=log ver=1.18.0-rc.3
time="2026-05-14T20:12:27.780311426Z" level=info msg="Dapr runtime stopped" app_id=secretsapp instance=runnervmrw5os scope=dapr.runtime type=log ver=1.18.0-rc.3
time="2026-05-14T20:12:27.780528645Z" level=fatal msg="Fatal error from runtime: failed to start internal gRPC server: could not listen on any endpoint" app_id=secretsapp instance=runnervmrw5os scope=dapr.runtime type=log ver=1.18.0-rc.3
❌  The daprd process exited with error code: exit status 1
ℹ️  
terminated signal received: shutting down
❌  Error exiting Dapr: exit status 1
❌  The App process was terminated by signal: terminated
✅  Exited App successfully
=========================== short test summary info ============================
FAILED tests/examples/test_secret_store.py::test_secret_store - AssertionError: Missing in output: {'secretKey': 'secretValue'}
assert "{'secretKey': 'secretValue'}" in 'ℹ️  Starting Dapr with id secretsapp. HTTP Port: 46531. gRPC Port: 33223\nℹ️  Checking if Dapr sidecar is listening o...ror exiting Dapr: exit status 1\n❌  The App process was terminated by signal: terminated\n✅  Exited App successfully\n'
=================== 1 failed, 29 passed in 332.06s (0:05:32) ===================

job: https://github.com/dapr/python-sdk/actions/runs/25882714951/job/76066525860?pr=1020
PR: #1020

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions