Skip to content

fix(adapters): unhang KV container tests in CI - #214

Merged
07prajwal2000 merged 1 commit into
Fluxify-rest:mainfrom
07prajwal2000:fix/kv-container-test-hang
Aug 7, 2026
Merged

fix(adapters): unhang KV container tests in CI#214
07prajwal2000 merged 1 commit into
Fluxify-rest:mainfrom
07prajwal2000:fix/kv-container-test-hang

Conversation

@07prajwal2000

Copy link
Copy Markdown
Collaborator

Why

test-packages-adapters has been hanging indefinitely on main — the last run sat in progress for over an hour with no redis or memcached test output at all, blocking every downstream job.

The cause is ensureImage(), added in d151956. It probes the daemon with docker.getImage(x).inspect() before deciding whether to pull. That call never settles on the CI runner, so the redis/memcached beforeAll hung forever — which is why those tests never printed rather than failing.

The db container tests (mongo, mysql, postgres) were untouched by that commit, still call pullImage() directly, and have never hung. That's the tell.

What

  • Drop ensureImage(); KV tests call pullImage() directly, same as the db container tests. A pull against an image the daemon already has is a cheap no-op, so the probe bought nothing.
  • Swap redis:7.4-alpine for valkey/valkey:8-alpine.
  • Cap test-packages-adapters at timeout-minutes: 15 so a stalled docker call fails fast instead of burning a runner for hours.

Testing

Cold local run (images removed first): 6 pass, 0 fail across both KV files.

🤖 Generated with Claude Code

ensureImage() probed the daemon with getImage().inspect() before pulling.
On the CI runner that call never settles, so redis/memcached beforeAll hung
and the adapters job ran until the 6h ceiling. The db container tests always
called pullImage() directly and never hung — KV now does the same.

Also swaps redis for valkey and caps the adapters job at 15 minutes so a
stalled docker call fails fast instead of burning a runner.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@07prajwal2000
07prajwal2000 added this pull request to the merge queue Aug 7, 2026
Merged via the queue into Fluxify-rest:main with commit c3dc397 Aug 7, 2026
9 of 12 checks passed
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