Skip to content

refactor(test-utils): single source for default docker test image config#3349

Merged
nkaradzhov merged 2 commits into
redis:masterfrom
nkaradzhov:dedupe-test-image-config
Jul 22, 2026
Merged

refactor(test-utils): single source for default docker test image config#3349
nkaradzhov merged 2 commits into
redis:masterfrom
nkaradzhov:dedupe-test-image-config

Conversation

@nkaradzhov

@nkaradzhov nkaradzhov commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Every package's test-utils duplicated the same createFromConfig block (image name, CLI argument names, default tag/version), so bumping the default test image meant touching eight files.

This moves the shared config into @redis/test-utils as an exported DEFAULT_DOCKER_CONFIG with a TestUtils.createDefault() factory, and switches all eight call sites to it. Future bumps touch one line in one file (plus the CI matrix).

Also updates the bump-test-image agent skill to match the new layout and adds a commit message template to it for consistent bump commits.

🤖 Generated with Claude Code

@nkaradzhov
nkaradzhov requested a review from PavelPashov July 21, 2026 17:48
nkaradzhov and others added 2 commits July 21, 2026 20:50
Every package's test-utils duplicated the same createFromConfig block
(image name, CLI argument names, default tag/version). Move it into
@redis/test-utils as DEFAULT_DOCKER_CONFIG with a createDefault()
factory, so bumping the default test image now touches one file
instead of eight.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The default docker image config now lives only in DEFAULT_DOCKER_CONFIG
in @redis/test-utils, so the skill edits one file instead of eight. Also
add an explicit commit message template so bump commits stay consistent,
and accept tags given in the full image:tag form.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@nkaradzhov
nkaradzhov force-pushed the dedupe-test-image-config branch from 87afd56 to 385c054 Compare July 21, 2026 18:47
## Step 7 — Force-push and PR

```bash
git push -f origin bump-test-image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we derive the branch name from the image tag (for example, bump-test-image/<tag>), fetch that remote branch when it exists, and use git push --force-with-lease? This keeps separate image bumps isolated while safely supporting reruns for the same tag.

@nkaradzhov
nkaradzhov merged commit 744e3ef into redis:master Jul 22, 2026
15 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.

2 participants