Repository navigation
chore(e2e): run etcd 3.7.2 in the e2e harnesses and integration tests, from one place each - #1234
Merged
Merged
Conversation
…, from one place each The e2e scripts started quay.io/coreos/etcd:v3.5.16 and the testcontainers integration tests gcr.io/etcd-development/etcd:v3.5.21, while the Go client is go.etcd.io/etcd/client/v3 v3.7.2. - e2e/etcd-image.sh is the one ETCD_IMAGE default (quay.io/coreos/etcd:v3.7.2, still overridable per run). The six etcd-backed harnesses source it instead of each carrying its own copy. - registry/etcdtest.Image is the one image the testcontainers tests start (gcr.io/etcd-development/etcd:v3.7.2), used by registry/internal/etcd and registrar/internal/replicator. Fixes #1223 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The e2e harnesses started
quay.io/coreos/etcd:v3.5.16and the testcontainers integration tests startedgcr.io/etcd-development/etcd:v3.5.21, while the Go client isgo.etcd.io/etcd/client/v3 v3.7.2(#1223). Each reference was its own copy: six shell defaults and three Go string literals.Change
e2e/etcd-image.sh(sourced, not run) is now the singleETCD_IMAGEdefault,quay.io/coreos/etcd:v3.7.2. You can still override it per run withETCD_IMAGE=…. The six etcd-backed harnesses (agent-restart-gap,drain-propagation,l4routes,multicluster_config,multicluster_replicator,multicluster_waypoint) source it in place of their own line. It is a new file because these scripts share no common lib today.registry/etcdtest.Image(gcr.io/etcd-development/etcd:v3.7.2) is the one constant. Bothregistry/internal/etcdandregistrar/internal/replicatoruse it. It lives outsideinternal/so both trees can import it.v3.7.2is the newest 3.7.x tag. It is also the newest etcd release (gh release list -R etcd-io/etcd), and it matches the client.Tag verified with a manifest HEAD on both registries:
v3.7.2→ 200 onquay.io/v2/coreos/etcdandgcr.io/v2/etcd-development/etcd;v3.7.3→ 404 on both.etcdandetcdctl(which the harnessesdocker exec) are both on PATH in the 3.7.2 image.No charts or docs referenced an etcd image.
Evidence
bazel test --nocache_test_results --test_arg=-test.v //registry/internal/etcd:all //registrar/internal/replicator:all: both PASS againstgcr.io/etcd-development/etcd:v3.7.2(containers created from that image per the log). 22 + 12 tests passed, 0 skipped.EWQ_CLUSTER=aether-1223 e2e/drain-propagation.sh up, thenDRP_LEGS=S DRP_RUNS=3 … verify(DRP_EXPECT=green).quay.io/coreos/etcd:v3.7.2(etcdctl version: 3.7.2, API 3.7).etcd registry initializedwith 0 ERROR lines.✓ S: every gap <= 1.0s, exit 0. The cluster was torn down afterwards.bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //agent/... //registry/... //registrar/internal/replicator/... //e2e/...(shellcheck covers the new file through//e2e:e2e_shell's glob) andmake format-checkpass.Fixes #1223
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr