Skip to content

chore(e2e): run etcd 3.7.2 in the e2e harnesses and integration tests, from one place each - #1234

Merged
bpalermo merged 5 commits into
mainfrom
chore/1223-e2e-etcd-37
Oct 4, 2026
Merged

bpalermo merged 5 commits into
mainfrom
chore/1223-e2e-etcd-37

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Problem

The e2e harnesses started quay.io/coreos/etcd:v3.5.16 and the testcontainers integration tests started gcr.io/etcd-development/etcd:v3.5.21, while the Go client is go.etcd.io/etcd/client/v3 v3.7.2 (#1223). Each reference was its own copy: six shell defaults and three Go string literals.

Change

  • Shell: e2e/etcd-image.sh (sourced, not run) is now the single ETCD_IMAGE default, quay.io/coreos/etcd:v3.7.2. You can still override it per run with ETCD_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.
  • Go: registry/etcdtest.Image (gcr.io/etcd-development/etcd:v3.7.2) is the one constant. Both registry/internal/etcd and registrar/internal/replicator use it. It lives outside internal/ so both trees can import it.
  • Each registry keeps the one it already used. v3.7.2 is 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 on quay.io/v2/coreos/etcd and gcr.io/v2/etcd-development/etcd; v3.7.3 → 404 on both. etcd and etcdctl (which the harnesses docker 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 against gcr.io/etcd-development/etcd:v3.7.2 (containers created from that image per the log). 22 + 12 tests passed, 0 skipped.
  • Kind e2e, etcd backend: EWQ_CLUSTER=aether-1223 e2e/drain-propagation.sh up, then DRP_LEGS=S DRP_RUNS=3 … verify (DRP_EXPECT=green).
    • The container ran quay.io/coreos/etcd:v3.7.2 (etcdctl version: 3.7.2, API 3.7).
    • The registrar logged etcd registry initialized with 0 ERROR lines.
    • All three steady-state runs passed: mark→last request 0.20–0.25 s, mark→source DRAINING 0.32–0.35 s, 0 non-200. Result: ✓ 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) and make format-check pass.

Fixes #1223

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

bpalermo and others added 5 commits October 4, 2026 19:46
…, 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
@bpalermo
bpalermo merged commit 33344f0 into main Oct 4, 2026
24 checks passed
@bpalermo
bpalermo deleted the chore/1223-e2e-etcd-37 branch October 4, 2026 23:48
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.

e2e: scripts run etcd v3.5.16 while the registry client is v3.7.x — test-environment drift

1 participant