Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-integration-docker-compatibility: TestComposeConfigWithPrintServiceHash began to fail on circa 2023-10-27 #2605

Closed
AkihiroSuda opened this issue Oct 27, 2023 · 0 comments · Fixed by #2606
Labels
area/ci e.g., CI failure

Comments

@AkihiroSuda
Copy link
Member

AkihiroSuda commented Oct 27, 2023

=== RUN   TestComposeConfigWithPrintServiceHash
    compose_config_test.go:71: assertion failed: 
        Command:  /usr/bin/docker compose -f /tmp/nerdctl-compose-test1172080644/docker-compose.yaml config --hash=*
        ExitCode: 0
        Stdout:   
        Stderr:   
        
        Failures:
        Expected stdout to contain "hello1"
--- FAIL: TestComposeConfigWithPrintServiceHash (0.15s)

https://github.com/containerd/nerdctl/actions/runs/6649372640/job/18122285518

func TestComposeConfigWithPrintServiceHash(t *testing.T) {
base := testutil.NewBase(t)
var dockerComposeYAML = `
services:
hello1:
image: alpine:%s
`
comp := testutil.NewComposeDir(t, fmt.Sprintf(dockerComposeYAML, "3.13"))
defer comp.CleanUp()
base.ComposeCmd("-f", comp.YAMLFullPath(), "config", "--hash=*").AssertOutContains("hello1")


This is because of a regression in docker compose v2.23.0:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci e.g., CI failure
Projects
None yet
1 participant