Skip to content

fix: update cockroachdb image from v21.2.3 to v23.2.29#4272

Open
nelson-parente wants to merge 4 commits intodapr:mainfrom
nelson-parente:fix/cockroachdb-image-tag
Open

fix: update cockroachdb image from v21.2.3 to v23.2.29#4272
nelson-parente wants to merge 4 commits intodapr:mainfrom
nelson-parente:fix/cockroachdb-image-tag

Conversation

@nelson-parente
Copy link
Contributor

Summary

  • The cockroachdb/cockroach:v21.2.3 Docker image has been removed from Docker Hub (v21.2 went EOL), causing state.cockroachdb.v1 certification and conformance tests to fail on every scheduled run with manifest unknown
  • Updates both docker-compose files to v23.2.29 (latest v23.2 LTS patch)

Files changed

  • .github/infrastructure/docker-compose-cockroachdb.yml — conformance tests
  • tests/certification/state/cockroachdb/v1/docker-compose.yml — certification tests

Test plan

  • Conformance test state.cockroachdb.v1 passes with new image
  • Certification test state.cockroachdb.v1 passes with new image

The cockroachdb/cockroach:v21.2.3 image has been removed from Docker
Hub (v21.2 is EOL), breaking both certification and conformance tests
on every scheduled run.

Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>
JoshVanL
JoshVanL previously approved these changes Mar 11, 2026
cicoyle
cicoyle previously approved these changes Mar 11, 2026
CockroachDB v23.2 defaults to requiring TLS. The pgx driver attempts
a TLS handshake which gets reset by the insecure-mode server. Adding
sslmode=disable to all three connection strings fixes the connection.

Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>
@nelson-parente nelson-parente dismissed stale reviews from cicoyle and JoshVanL via e6daa0f March 11, 2026 17:33
@nelson-parente nelson-parente requested review from a team as code owners March 11, 2026 17:33
CockroachDB v23.x changed TLS defaults — the pgx driver now attempts
TLS even against an --insecure server, causing connection reset errors.
Add sslmode=disable to all 3 hardcoded connection strings in the
certification test that were missed in the previous commit.

Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>
CockroachDB v23.x takes longer to initialize than v21.x. The TCP port
opens before the SQL layer is ready, causing "connection reset by peer"
errors. Add a healthcheck using `cockroach sql` and make the init
container wait for CockroachDB to be healthy before creating the
dapr_test database.

Also removes deprecated `version` key from docker-compose files.

Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants