Skip to content

fix(chat): bump Testcontainers to 1.21.4 so CI finds Docker Engine 29 - #178

Merged
nguyenhoangdung245 merged 1 commit into
mainfrom
fix/chat-service-testcontainers
Oct 28, 2026
Merged

nguyenhoangdung245 merged 1 commit into
mainfrom
fix/chat-service-testcontainers

Conversation

@nguyenhoangdung245

Copy link
Copy Markdown
Collaborator

Why

Chat Service (Spring Boot) fails on every branch since the GitHub runner moved to Docker Engine 29
(e.g. run 40726443808 on dev):

UnixSocketClientProviderStrategy: BadRequestException (Status 400: client version 1.32 is too old.
Minimum supported API version is 1.40)

Testcontainers before 1.21.4 always pings the daemon with Docker API 1.32, so it finds no Docker
environment and all 9 Testcontainers-backed tests error out. Nothing in our code changed.

What

  • Bump testcontainers.version 1.20.4 → 1.21.4 (last 1.x). Its only functional change is
    testcontainers-java#11346:
    ping with API 1.44 first, fall back to 1.32 for older engines.
  • The property overrides the Testcontainers BOM imported by Spring Boot 3.3.5 (which manages 1.19.8),
    so testcontainers, junit-jupiter and mongodb all resolve to 1.21.4 (docker-java 3.4.2).
  • No CI yaml change, no DOCKER_API_VERSION override, no test skipped. Stayed on 1.x rather than 2.0.x
    because 2.0 renames the module artifacts and packages (org.testcontainers.mongodb.MongoDBContainer).

Verification

  • Before (1.20.4), locally on Docker Desktop 29.6.2 (Windows): CallBusyRegistryRedisTest fails with the same
    Could not find a valid Docker environment / BadRequestException.
  • After (1.21.4): mvn clean test in apps/server/chat-service → 842 tests, 0 failures, 0 errors (Spotless
    check included). Testcontainers connects to Docker 29.6.2 (API 1.55); all 9 previously failing classes pass:
    MeetingStoreTest, MeetingChatServiceTest, MeetingNotesServiceTest, CallBusyRegistryRedisTest,
    MessageServicePaginationTest, AssistantTokenStoreTest, CallSessionWriterTest,
    DirectConversationLookupTest, TokenUsageRepositoryTest.
  • CI: the Chat Service (Spring Boot) job on this PR is the check that matters.

🤖 Generated with Claude Code

The GitHub runner now ships Docker Engine 29, which rejects Docker API
versions below 1.40. Testcontainers 1.20.4 pings the daemon with API
1.32, so it reports "Could not find a valid Docker environment" and all
9 Testcontainers-backed chat-service tests error out on every branch.

1.21.4 pings with API 1.44 first and falls back to 1.32 for older
engines. The property overrides the Testcontainers BOM, so the
testcontainers, junit-jupiter and mongodb modules move together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
platform-web Ready Ready Preview Oct 28, 2026 5:04pm UTC

@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5e3b1192-9e6d-4880-9b97-3597aec445da
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch was successfully deployed

1 active deployment
Preview — 36d61325 Deployed Oct 28, 2026 by vercel[bot]
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.

1 participant