From 93473235f8d01ccece9f11db4e079ab67285fd02 Mon Sep 17 00:00:00 2001 From: "hiroto.toyoda" Date: Tue, 25 Aug 2026 03:48:03 +0900 Subject: [PATCH] test(build): re-enable wrong ssh key id test moby/buildkit#5558, which this test was disabled for, is fixed and released well before the buildkit v0.26.3 currently vendored here. Verified the re-enabled case passes (3 consecutive runs). Signed-off-by: hiroto.toyoda --- pkg/e2e/build_test.go | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/pkg/e2e/build_test.go b/pkg/e2e/build_test.go index 25fd08b4fd..c76d572125 100644 --- a/pkg/e2e/build_test.go +++ b/pkg/e2e/build_test.go @@ -172,20 +172,17 @@ func TestBuildSSH(t *testing.T) { c.RunDockerCmd(t, "image", "inspect", "build-test-ssh") }) - /* - FIXME disabled waiting for https://github.com/moby/buildkit/issues/5558 - t.Run("build failed with wrong ssh key id from CLI", func(t *testing.T) { - c.RunDockerOrExitError(t, "rmi", "build-test-ssh") - - res := c.RunDockerComposeCmdNoCheck(t, "-f", "fixtures/build-test/ssh/compose-without-ssh.yaml", - "--project-directory", "fixtures/build-test/ssh", "build", "--no-cache", "--ssh", - "wrong-ssh=./fixtures/build-test/ssh/fake_rsa") - res.Assert(t, icmd.Expected{ - ExitCode: 1, - Err: "unset ssh forward key fake-ssh", - }) + t.Run("build failed with wrong ssh key id from CLI", func(t *testing.T) { + c.RunDockerOrExitError(t, "rmi", "build-test-ssh") + + res := c.RunDockerComposeCmdNoCheck(t, "-f", "fixtures/build-test/ssh/compose-without-ssh.yaml", + "--project-directory", "fixtures/build-test/ssh", "build", "--no-cache", "--ssh", + "wrong-ssh=./fixtures/build-test/ssh/fake_rsa") + res.Assert(t, icmd.Expected{ + ExitCode: 1, + Err: "unset ssh forward key fake-ssh", }) - */ + }) t.Run("build succeed as part of up with ssh from Compose file", func(t *testing.T) { c.RunDockerOrExitError(t, "rmi", "build-test-ssh")