Skip to content

Commit f0d8a68

Browse files
committed
test: skip the source bundle on exact tag
When building for the release, as the release hasn't been finalized yet, the test might fail. ``` run.go:146: Running "/home/runner/_work/talos/talos/_out/talosctl-linux-amd64 --talosconfig /tmp/e2e/docker/talosconfig image talos-bundle v1.13.0-alpha.0" run.go:210: Error Trace: /src/internal/integration/base/run.go:210 /src/internal/integration/base/cli.go:107 /src/internal/integration/cli/image.go:142 /go/src/runtime/asm_amd64.s:1693 Error: Received unexpected error: exit status 1 Test: TestIntegration/cli.ImageSuite/TestSourceBundle Messages: command failed, stdout: "", stderr: "error fetching official extensions for v1.13.0-alpha.0: HEAD https://ghcr.io/v2/ghcr.io/siderolabs/extensions/manifests/v1.13.0-alpha.0: unexpected status code 404 Not Found (HEAD responses have no body, use GET for details)\n" ``` Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
1 parent c57701d commit f0d8a68

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/integration/cli/image.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ ghcr.io/siderolabs/zfs:2.3.3-v1.11.2@sha256:73782571f334b18995ddf324d24b86ea9a11
139139
suite.T().Log(normalizeTag(version.Tag))
140140
suite.T().Log(version.Tag)
141141

142+
if strings.TrimLeft(version.Tag, "v") == normalizeTag(version.Tag) {
143+
suite.T().Skip("skipping the test for the exact version tag")
144+
}
145+
142146
suite.RunCLI([]string{"image", "talos-bundle", "v" + tag.String()},
143147
base.StdoutShouldMatch(regexp.MustCompile(regexp.QuoteMeta("ghcr.io/siderolabs/talos:v"+tag.String()))),
144148
)

0 commit comments

Comments
 (0)