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

chore: update release script #319

Merged
merged 1 commit into from
Nov 7, 2024
Merged

chore: update release script #319

merged 1 commit into from
Nov 7, 2024

Conversation

kzantow
Copy link
Contributor

@kzantow kzantow commented Nov 7, 2024

This PR updates the release script to be the same as syft/grype/etc.

Signed-off-by: Keith Zantow <[email protected]>
@wagoodman wagoodman added changelog-ignore Don't include this issue in the release changelog release relating to the release process of stereoscope labels Nov 7, 2024
Copy link

github-actions bot commented Nov 7, 2024

Benchmark Test Results

Benchmark results from the latest changes vs base branch
make .tool/task
make[1]: Entering directory '/home/runner/work/stereoscope/stereoscope'
make[1]: Leaving directory '/home/runner/work/stereoscope/stereoscope'
.tool/task show-benchstat
?   	github.com/anchore/stereoscope	[no test files]
?   	github.com/anchore/stereoscope/examples	[no test files]
PASS
ok  	github.com/anchore/stereoscope/internal	0.004s
?   	github.com/anchore/stereoscope/internal/bus	[no test files]
PASS
ok  	github.com/anchore/stereoscope/internal/containerd	0.010s
PASS
ok  	github.com/anchore/stereoscope/internal/docker	0.004s
?   	github.com/anchore/stereoscope/internal/log	[no test files]
PASS
ok  	github.com/anchore/stereoscope/internal/podman	0.005s
?   	github.com/anchore/stereoscope/pkg/event	[no test files]
?   	github.com/anchore/stereoscope/pkg/event/parsers	[no test files]
goos: linux
goarch: amd64
pkg: github.com/anchore/stereoscope/pkg/file
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkTarIndex-4   	   33492	     36015 ns/op	    5700 B/op	      93 allocs/op
BenchmarkTarIndex-4   	   33394	     35735 ns/op	    5700 B/op	      93 allocs/op
BenchmarkTarIndex-4   	   33439	     35940 ns/op	    5700 B/op	      93 allocs/op
BenchmarkTarIndex-4   	   33154	     35809 ns/op	    5701 B/op	      93 allocs/op
BenchmarkTarIndex-4   	   33302	     36518 ns/op	    5701 B/op	      93 allocs/op
BenchmarkTarIndex-4   	   31868	     35689 ns/op	    5698 B/op	      93 allocs/op
BenchmarkTarIndex-4   	   33409	     35713 ns/op	    5698 B/op	      93 allocs/op
PASS
ok  	github.com/anchore/stereoscope/pkg/file	10.917s
PASS
ok  	github.com/anchore/stereoscope/pkg/filetree	0.005s
?   	github.com/anchore/stereoscope/pkg/filetree/filenode	[no test files]
PASS
ok  	github.com/anchore/stereoscope/pkg/image	0.005s
PASS
ok  	github.com/anchore/stereoscope/pkg/image/containerd	0.007s
PASS
ok  	github.com/anchore/stereoscope/pkg/image/docker	0.005s
PASS
ok  	github.com/anchore/stereoscope/pkg/image/oci	0.005s
PASS
ok  	github.com/anchore/stereoscope/pkg/image/oci/credhelpers	0.005s
?   	github.com/anchore/stereoscope/pkg/image/podman	[no test files]
PASS
ok  	github.com/anchore/stereoscope/pkg/image/sif	0.004s
?   	github.com/anchore/stereoscope/pkg/imagetest	[no test files]
PASS
ok  	github.com/anchore/stereoscope/pkg/tree	0.004s
PASS
ok  	github.com/anchore/stereoscope/pkg/tree/node	0.003s
goos: linux
goarch: amd64
pkg: github.com/anchore/stereoscope/test/integration
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkSimpleImage_GetImage/docker-archive-4 	    1015	   1163311 ns/op	  277763 B/op	    2404 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 	    1032	   1161546 ns/op	  277097 B/op	    2403 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 	    1030	   1161503 ns/op	  277083 B/op	    2403 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 	    1035	   1151049 ns/op	  277011 B/op	    2403 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 	    1038	   1186957 ns/op	  276954 B/op	    2402 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 	    1009	   1295980 ns/op	  276829 B/op	    2402 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 	    1032	   1152951 ns/op	  276742 B/op	    2402 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      64	  17597190 ns/op	  401260 B/op	    2700 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      64	  17680645 ns/op	  402778 B/op	    2702 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      68	  18246571 ns/op	  400828 B/op	    2699 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      70	  18309913 ns/op	  400620 B/op	    2699 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      67	  18124945 ns/op	  401688 B/op	    2700 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      67	  17701299 ns/op	  400999 B/op	    2699 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      70	  17928035 ns/op	  401892 B/op	    2700 allocs/op
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 345B done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [internal] load build context
#3 transferring context: 209B done
#3 DONE 0.0s

#4 [2/3] ADD file-2.txt /somefile-2.txt
#4 CACHED

#5 [1/3] ADD file-1.txt /somefile-1.txt
#5 CACHED

#6 [3/3] ADD target /
#6 CACHED

#7 exporting to image
#7 exporting layers done
#7 writing image sha256:16f496dbc982477ec37a1d1ce5eae04d60e58bee25c634e32281e24cae8c4dcb done
#7 naming to docker.io/library/stereoscope-fixture-image-simple:04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7 done
#7 naming to docker.io/library/stereoscope-fixture-image-simple:latest done
#7 DONE 0.0s
ctr: failed to dial "/run/containerd/containerd.sock": connection error: desc = "transport: error while dialing: dial unix /run/containerd/containerd.sock: connect: permission denied"
--- FAIL: BenchmarkSimpleImage_GetImage
    image_fixtures.go:193: using existing image tar: 'test-fixtures/cache/stereoscope-fixture-image-simple-04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7.tar' (size: 22528, modified: 2024-11-07 14:27:15.051334921 +0000 UTC, mode: -rw-r--r--)
    image_fixtures.go:241: Build docker image: name="stereoscope-fixture-image-simple" tag="04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7"
    image_fixtures.go:291: saveImage running: docker image save stereoscope-fixture-image-simple:04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7
    image_fixtures.go:286: 
        	Error Trace:	/home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:286
        	            				/home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:162
        	            				/home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:152
        	            				/home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:33
        	            				/home/runner/work/stereoscope/stereoscope/test/integration/fixture_image_simple_test.go:163
        	Error:      	Received unexpected error:
        	            	exit status 1
        	Test:       	BenchmarkSimpleImage_GetImage
        	Messages:   	could not import docker image to containerd (shell out)
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   53594	     22157 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   53653	     22226 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   53343	     22272 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   53460	     22213 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   53684	     22210 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   53606	     22128 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   53601	     22239 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   53487	     22227 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   53630	     22178 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   53946	     22496 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   53751	     22281 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   53804	     22193 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   53842	     22164 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   53815	     22270 ns/op	    2712 B/op	      21 allocs/op
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 345B done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 transferring context: 2B done
#2 DONE 0.0s

#3 [internal] load build context
#3 transferring context: 209B done
#3 DONE 0.0s

#4 [1/3] ADD file-1.txt /somefile-1.txt
#4 CACHED

#5 [2/3] ADD file-2.txt /somefile-2.txt
#5 CACHED

#6 [3/3] ADD target /
#6 CACHED

#7 exporting to image
#7 exporting layers done
#7 writing image sha256:16f496dbc982477ec37a1d1ce5eae04d60e58bee25c634e32281e24cae8c4dcb done
#7 naming to docker.io/library/stereoscope-fixture-image-simple:04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7 done
#7 naming to docker.io/library/stereoscope-fixture-image-simple:latest done
#7 DONE 0.0s
ctr: failed to dial "/run/containerd/containerd.sock": connection error: desc = "transport: error while dialing: dial unix /run/containerd/containerd.sock: connect: permission denied"
--- FAIL: BenchmarkSimpleImage_FetchSquashedContents
    image_fixtures.go:193: using existing image tar: 'test-fixtures/cache/stereoscope-fixture-image-simple-04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7.tar' (size: 22528, modified: 2024-11-07 14:27:15.051334921 +0000 UTC, mode: -rw-r--r--)
    image_fixtures.go:241: Build docker image: name="stereoscope-fixture-image-simple" tag="04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7"
    image_fixtures.go:291: saveImage running: docker image save stereoscope-fixture-image-simple:04e16e44161c8888a1a963720fd0443cbf7eef8101434c431de8725cd98cc9f7
    image_fixtures.go:286: 
        	Error Trace:	/home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:286
        	            				/home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:162
        	            				/home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:152
        	            				/home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:33
        	            				/home/runner/work/stereoscope/stereoscope/pkg/imagetest/image_fixtures.go:64
        	            				/home/runner/work/stereoscope/stereoscope/test/integration/fixture_image_simple_test.go:189
        	Error:      	Received unexpected error:
        	            	exit status 1
        	Test:       	BenchmarkSimpleImage_FetchSquashedContents
        	Messages:   	could not import docker image to containerd (shell out)
FAIL
exit status 1
FAIL	github.com/anchore/stereoscope/test/integration	39.397s
?   	github.com/anchore/stereoscope/test/integration/test-fixtures/registry	[no test files]
FAIL
goos: linux
goarch: amd64
pkg: github.com/anchore/stereoscope/pkg/file
cpu: AMD EPYC 7763 64-Core Processor                
ctr: 
           │ .tmp/benchmark-f7f0f7d-dirty.txt │
           │              sec/op              │
TarIndex-4                        35.81µ ± 2%

           │ .tmp/benchmark-f7f0f7d-dirty.txt │
           │               B/op               │
TarIndex-4                       5.566Ki ± 0%

           │ .tmp/benchmark-f7f0f7d-dirty.txt │
           │            allocs/op             │
TarIndex-4                         93.00 ± 0%

pkg: github.com/anchore/stereoscope/test/integration
                                      │ .tmp/benchmark-f7f0f7d-dirty.txt │
                                      │              sec/op              │
SimpleImage_GetImage/docker-archive-4                       1.162m ± 12%
SimpleImage_GetImage/podman-4                               17.93m ±  2%
geomean                                                     4.563m

                                      │ .tmp/benchmark-f7f0f7d-dirty.txt │
                                      │               B/op               │
SimpleImage_GetImage/docker-archive-4                       270.5Ki ± 0%
SimpleImage_GetImage/podman-4                               391.9Ki ± 0%
geomean                                                     325.6Ki

                                      │ .tmp/benchmark-f7f0f7d-dirty.txt │
                                      │            allocs/op             │
SimpleImage_GetImage/docker-archive-4                        2.403k ± 0%
SimpleImage_GetImage/podman-4                                2.700k ± 0%
geomean                                                      2.547k

ctr: failed to dial "/run/containerd/containerd.sock": connection error: desc = "transport: error while dialing: dial unix /run/containerd/containerd.sock: connect: permission denied"
                                                   │ .tmp/benchmark-f7f0f7d-dirty.txt │
                                                   │              sec/op              │
SimpleImage_FetchSquashedContents/docker-archive-4                        22.21µ ± 0%
SimpleImage_FetchSquashedContents/podman-4                                22.23µ ± 1%
geomean                                                                   22.22µ

                                                   │ .tmp/benchmark-f7f0f7d-dirty.txt │
                                                   │               B/op               │
SimpleImage_FetchSquashedContents/docker-archive-4                       2.648Ki ± 0%
SimpleImage_FetchSquashedContents/podman-4                               2.648Ki ± 0%
geomean                                                                  2.648Ki

                                                   │ .tmp/benchmark-f7f0f7d-dirty.txt │
                                                   │            allocs/op             │
SimpleImage_FetchSquashedContents/docker-archive-4                         21.00 ± 0%
SimpleImage_FetchSquashedContents/podman-4                                 21.00 ± 0%
geomean                                                                    21.00
goos: linux
goarch: amd64
pkg: github.com/anchore/stereoscope/pkg/file
cpu: AMD EPYC 7763 64-Core Processor                
ctr: 
           │ .tmp/benchmark-f7f0f7d-dirty.txt │
           │              sec/op              │
TarIndex-4                        35.81µ ± 2%

           │ .tmp/benchmark-f7f0f7d-dirty.txt │
           │               B/op               │
TarIndex-4                       5.566Ki ± 0%

           │ .tmp/benchmark-f7f0f7d-dirty.txt │
           │            allocs/op             │
TarIndex-4                         93.00 ± 0%

pkg: github.com/anchore/stereoscope/test/integration
                                      │ .tmp/benchmark-f7f0f7d-dirty.txt │
                                      │              sec/op              │
SimpleImage_GetImage/docker-archive-4                       1.162m ± 12%
SimpleImage_GetImage/podman-4                               17.93m ±  2%
geomean                                                     4.563m

                                      │ .tmp/benchmark-f7f0f7d-dirty.txt │
                                      │               B/op               │
SimpleImage_GetImage/docker-archive-4                       270.5Ki ± 0%
SimpleImage_GetImage/podman-4                               391.9Ki ± 0%
geomean                                                     325.6Ki

                                      │ .tmp/benchmark-f7f0f7d-dirty.txt │
                                      │            allocs/op             │
SimpleImage_GetImage/docker-archive-4                        2.403k ± 0%
SimpleImage_GetImage/podman-4                                2.700k ± 0%
geomean                                                      2.547k

ctr: failed to dial "/run/containerd/containerd.sock": connection error: desc = "transport: error while dialing: dial unix /run/containerd/containerd.sock: connect: permission denied"
                                                   │ .tmp/benchmark-f7f0f7d-dirty.txt │
                                                   │              sec/op              │
SimpleImage_FetchSquashedContents/docker-archive-4                        22.21µ ± 0%
SimpleImage_FetchSquashedContents/podman-4                                22.23µ ± 1%
geomean                                                                   22.22µ

                                                   │ .tmp/benchmark-f7f0f7d-dirty.txt │
                                                   │               B/op               │
SimpleImage_FetchSquashedContents/docker-archive-4                       2.648Ki ± 0%
SimpleImage_FetchSquashedContents/podman-4                               2.648Ki ± 0%
geomean                                                                  2.648Ki

                                                   │ .tmp/benchmark-f7f0f7d-dirty.txt │
                                                   │            allocs/op             │
SimpleImage_FetchSquashedContents/docker-archive-4                         21.00 ± 0%
SimpleImage_FetchSquashedContents/podman-4                                 21.00 ± 0%
geomean                                                                    21.00

@kzantow kzantow merged commit eeeb1de into main Nov 7, 2024
7 checks passed
@kzantow kzantow deleted the chore/update-release-script branch November 7, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-ignore Don't include this issue in the release changelog release relating to the release process of stereoscope
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants