The e2e gate rebuilt selfpost:e2e through compose.override.yml with its
own VERSION=e2e, and that rebuild is the image release.yml pushed: every
published image printed "e2e", and the backup/restore version check
compared a backup's version with "e2e".
- compose.override.yml: VERSION: ${SELFPOST_E2E_VERSION:-e2e}.
- release.yml: the e2e step gets SELFPOST_E2E_VERSION = the release's
X.Y.Z; a new step before the push checks panel -version and
selfpost-backup -version of selfpost:e2e against it.
- e2e: image_stamped_with_version checks both binaries against
expectedVersion() (the variable, or "e2e" when unset).
- development.md, CHANGELOG [Unreleased], audit plan line ticked,
roadmap 1/61.
Evidence: make e2e on the test server for this tree with
SELFPOST_E2E_VERSION=2.4.2-stamp - exit 0, TestE2E/image_stamped_with_version
PASS, and `docker run --rm --entrypoint <bin> selfpost:e2e -version` prints
2.4.2-stamp for panel and selfpost-backup. GOOS=linux go vet in test/e2e
clean. Published images are left as they are.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -130,6 +130,23 @@ func TestE2E(t *testing.T) {
|
||||
}
|
||||
})
|
||||
|
||||
// The image is pushed as the release, so it must say it is the release:
|
||||
// the footer, -version and the backup/restore version check all read this
|
||||
// stamp. Release images were once stamped "e2e" because this stand rebuilt
|
||||
// them with its own VERSION (audit 2026-10-12, H1).
|
||||
run("image_stamped_with_version", func(t *testing.T) {
|
||||
want := expectedVersion()
|
||||
for _, bin := range []string{"panel", "selfpost-backup"} {
|
||||
out, err := h.execIn("selfpost", bin, "-version")
|
||||
if err != nil {
|
||||
t.Fatalf("%s -version: %v", bin, err)
|
||||
}
|
||||
if got := strings.TrimSpace(out); got != want {
|
||||
t.Fatalf("%s -version = %q, want %q", bin, got, want)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
run("setup_and_login", func(t *testing.T) {
|
||||
token, err := readSetupToken(h)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user