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: build export with compression #146

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

crazy-max
Copy link
Member

No description provided.

benchmarkBuildExport(b, sb, "gzip")
}
func benchmarkBuildExportZstd(b *testing.B, sb testutil.Sandbox) {
benchmarkBuildExport(b, sb, "zstd")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zstd compression in available since v0.10.0 so it fails for older refs like: https://github.com/moby/buildkit-bench/actions/runs/10995084553/job/30525242309?pr=146#step:8:139

BenchmarkBuild/BenchmarkBuildExportZstd/ref=v0.9.0/run=1
    build_test.go:254: 
        	Error Trace:	/src/test/build_test.go:254
        	            				/src/test/build_test.go:238
        	            				/src/util/testutil/run.go:127
        	            				/src/util/testutil/run.go:253
        	            				/src/util/testutil/run.go:258
        	            				/src/util/testutil/run.go:280
        	            				/usr/local/go/src/testing/benchmark.go:193
        	            				/usr/local/go/src/testing/benchmark.go:215
        	            				/usr/local/go/src/runtime/asm_amd64.s:1695
        	Error:      	Received unexpected error:
        	            	exit status 1
        	Test:       	BenchmarkBuild/BenchmarkBuildExportZstd/ref=v0.9.0/run=1
        	Messages:   	ERROR: failed to solve: unsupported layer compression type: zstd

I will disable this benchmark for now but we could solve this with #120 or patches if that makes sense

@crazy-max crazy-max force-pushed the test-build-export branch 2 times, most recently from 77f952b to 188aba2 Compare September 23, 2024 14:34
@@ -133,7 +158,7 @@ RUN cp /etc/foo /etc/bar
fstest.CreateFile("Dockerfile", dockerfile, 0600),
fstest.CreateFile("foo", []byte("foo"), 0600),
)
out, err := buildxBuildCmd(sb, withArgs(dir))
out, err := buildxBuildCmd(sb, withArgs("--output=type=image", dir))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks to be an oversight from me during rebase 😞

@crazy-max crazy-max marked this pull request as ready for review September 23, 2024 14:35
@crazy-max crazy-max merged commit d6bfea9 into moby:master Sep 23, 2024
27 checks passed
@crazy-max crazy-max deleted the test-build-export branch September 23, 2024 14:49
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.

1 participant