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

Add release pipeline #230

Merged
merged 1 commit into from
Apr 23, 2024
Merged

Add release pipeline #230

merged 1 commit into from
Apr 23, 2024

Conversation

wagoodman
Copy link
Contributor

Closes #221

@wagoodman wagoodman added the changelog-ignore Don't include this issue in the release changelog label Apr 23, 2024
Copy link

github-actions bot commented Apr 23, 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.008s
PASS
ok  	github.com/anchore/stereoscope/internal/docker	0.005s
?   	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   	   33391	     35860 ns/op	    5699 B/op	      93 allocs/op
BenchmarkTarIndex-4   	   33493	     35950 ns/op	    5699 B/op	      93 allocs/op
BenchmarkTarIndex-4   	   31824	     36694 ns/op	    5701 B/op	      93 allocs/op
BenchmarkTarIndex-4   	   33219	     35921 ns/op	    5700 B/op	      93 allocs/op
BenchmarkTarIndex-4   	   33442	     35901 ns/op	    5698 B/op	      93 allocs/op
BenchmarkTarIndex-4   	   33225	     35835 ns/op	    5698 B/op	      93 allocs/op
BenchmarkTarIndex-4   	   33426	     35916 ns/op	    5699 B/op	      93 allocs/op
PASS
ok  	github.com/anchore/stereoscope/pkg/file	10.935s
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.006s
PASS
ok  	github.com/anchore/stereoscope/pkg/image/containerd	0.011s
PASS
ok  	github.com/anchore/stereoscope/pkg/image/docker	0.007s
PASS
ok  	github.com/anchore/stereoscope/pkg/image/oci	0.006s
PASS
ok  	github.com/anchore/stereoscope/pkg/image/oci/credhelpers	0.006s
?   	github.com/anchore/stereoscope/pkg/image/podman	[no test files]
PASS
ok  	github.com/anchore/stereoscope/pkg/image/sif	0.005s
?   	github.com/anchore/stereoscope/pkg/imagetest	[no test files]
PASS
ok  	github.com/anchore/stereoscope/pkg/tree	0.003s
PASS
ok  	github.com/anchore/stereoscope/pkg/tree/node	0.004s
goos: linux
goarch: amd64
pkg: github.com/anchore/stereoscope/test/integration
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkSimpleImage_GetImage/docker-archive-4 	     973	   1201644 ns/op	  336459 B/op	    2649 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 	     997	   1261545 ns/op	  335982 B/op	    2648 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 	     907	   1243645 ns/op	  335920 B/op	    2648 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 	     979	   1188327 ns/op	  335869 B/op	    2648 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 	    1003	   1184411 ns/op	  335748 B/op	    2648 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 	    1002	   1193403 ns/op	  335757 B/op	    2648 allocs/op
BenchmarkSimpleImage_GetImage/docker-archive-4 	     996	   1187174 ns/op	  335848 B/op	    2648 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      68	  17554526 ns/op	  453752 B/op	    2808 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      66	  17213816 ns/op	  454065 B/op	    2808 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      66	  18630436 ns/op	  454544 B/op	    2809 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      68	  17323259 ns/op	  453441 B/op	    2807 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      67	  17275573 ns/op	  454476 B/op	    2809 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      69	  17185928 ns/op	  454273 B/op	    2809 allocs/op
BenchmarkSimpleImage_GetImage/podman-4         	      70	  17302851 ns/op	  454956 B/op	    2808 allocs/op
#0 building with "default" instance using docker driver

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

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 345B 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:3b54054e913a454348a865b2c407e63bf93dbedfe863d8e56b2f6cd2d6de1468 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: 21504, modified: 2024-04-23 14:54:22.056058492 +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         	   54372	     21919 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   54075	     21957 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   54196	     21923 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   54654	     22020 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   54504	     21932 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   54680	     21908 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/docker-archive-4         	   54495	     21933 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   54336	     21993 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   54609	     21947 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   54441	     21954 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   54177	     21947 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   54450	     22007 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   54783	     21991 ns/op	    2712 B/op	      21 allocs/op
BenchmarkSimpleImage_FetchSquashedContents/podman-4                 	   54100	     21912 ns/op	    2712 B/op	      21 allocs/op
#0 building with "default" instance using docker driver

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

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 345B 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:3b54054e913a454348a865b2c407e63bf93dbedfe863d8e56b2f6cd2d6de1468 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: 21504, modified: 2024-04-23 14:54:22.056058492 +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.113s
?   	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-c903a6d.txt │
           │           sec/op           │
TarIndex-4                  35.92µ ± 2%

           │ .tmp/benchmark-c903a6d.txt │
           │            B/op            │
TarIndex-4                 5.565Ki ± 0%

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

pkg: github.com/anchore/stereoscope/test/integration
                                      │ .tmp/benchmark-c903a6d.txt │
                                      │           sec/op           │
SimpleImage_GetImage/docker-archive-4                  1.193m ± 6%
SimpleImage_GetImage/podman-4                          17.30m ± 8%
geomean                                                4.544m

                                      │ .tmp/benchmark-c903a6d.txt │
                                      │            B/op            │
SimpleImage_GetImage/docker-archive-4                 328.0Ki ± 0%
SimpleImage_GetImage/podman-4                         443.6Ki ± 0%
geomean                                               381.5Ki

                                      │ .tmp/benchmark-c903a6d.txt │
                                      │         allocs/op          │
SimpleImage_GetImage/docker-archive-4                  2.648k ± 0%
SimpleImage_GetImage/podman-4                          2.808k ± 0%
geomean                                                2.727k

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-c903a6d.txt │
                                                   │           sec/op           │
SimpleImage_FetchSquashedContents/docker-archive-4                  21.93µ ± 0%
SimpleImage_FetchSquashedContents/podman-4                          21.95µ ± 0%
geomean                                                             21.94µ

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

                                                   │ .tmp/benchmark-c903a6d.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-c903a6d.txt │
           │           sec/op           │
TarIndex-4                  35.92µ ± 2%

           │ .tmp/benchmark-c903a6d.txt │
           │            B/op            │
TarIndex-4                 5.565Ki ± 0%

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

pkg: github.com/anchore/stereoscope/test/integration
                                      │ .tmp/benchmark-c903a6d.txt │
                                      │           sec/op           │
SimpleImage_GetImage/docker-archive-4                  1.193m ± 6%
SimpleImage_GetImage/podman-4                          17.30m ± 8%
geomean                                                4.544m

                                      │ .tmp/benchmark-c903a6d.txt │
                                      │            B/op            │
SimpleImage_GetImage/docker-archive-4                 328.0Ki ± 0%
SimpleImage_GetImage/podman-4                         443.6Ki ± 0%
geomean                                               381.5Ki

                                      │ .tmp/benchmark-c903a6d.txt │
                                      │         allocs/op          │
SimpleImage_GetImage/docker-archive-4                  2.648k ± 0%
SimpleImage_GetImage/podman-4                          2.808k ± 0%
geomean                                                2.727k

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-c903a6d.txt │
                                                   │           sec/op           │
SimpleImage_FetchSquashedContents/docker-archive-4                  21.93µ ± 0%
SimpleImage_FetchSquashedContents/podman-4                          21.95µ ± 0%
geomean                                                             21.94µ

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

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

@wagoodman wagoodman force-pushed the add-release-pipeline branch 2 times, most recently from f7a8174 to e86b910 Compare April 23, 2024 14:43
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
@wagoodman wagoodman force-pushed the add-release-pipeline branch from e86b910 to a46f339 Compare April 23, 2024 14:53
@wagoodman wagoodman marked this pull request as ready for review April 23, 2024 14:54
@wagoodman wagoodman self-assigned this Apr 23, 2024
@wagoodman wagoodman requested a review from a team April 23, 2024 14:55
@wagoodman wagoodman merged commit fe7824a into main Apr 23, 2024
7 checks passed
@wagoodman wagoodman deleted the add-release-pipeline branch April 23, 2024 15:05
deps: [tools]
cmds:
- task: ci-check
- "{{ .TOOL_DIR }}/chronicle -vvv > CHANGELOG.md"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be {{ .CHANGELOG }} instead of CHANGELOG.md? I just noticed that variable is used elsewhere.

@wagoodman wagoodman mentioned this pull request Apr 23, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add release process
3 participants