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

ci: pin Go version #210

Merged
merged 2 commits into from
Nov 19, 2024
Merged

ci: pin Go version #210

merged 2 commits into from
Nov 19, 2024

Conversation

nikpivkin
Copy link
Contributor

@nikpivkin nikpivkin commented Aug 14, 2024

This PR fixes the issue with the Go cache https://github.com/aquasecurity/trivy-aws/actions/runs/10381795510/job/28743812158?pr=209

Before

Successfully set up Go version 1.22.0
go: downloading go1.22.2 (linux/amd64)
/opt/hostedtoolcache/go/1.22.0/x64/bin/go env GOMODCACHE
/opt/hostedtoolcache/go/1.22.0/x64/bin/go env GOCACHE
/home/runner/go/pkg/mod
/home/runner/.cache/go-build
Received 255852544 of 1175999812 ([21](https://github.com/aquasecurity/trivy-aws/actions/runs/10381795510/job/28743812158?pr=209#step:3:22).8%), 244.0 MBs/sec
Received 524288000 of 1175999812 (44.6%), 250.0 MBs/sec
Received 788529152 of 1175999812 (67.1%), 250.3 MBs/sec
Received 1040187392 of 1175999812 (88.5%), 247.8 MBs/sec
Cache Size: ~11[22](https://github.com/aquasecurity/trivy-aws/actions/runs/10381795510/job/28743812158?pr=209#step:3:23) MB (1175999812 B)
/usr/bin/tar -xf /home/runner/work/_temp/9c71bdc4-df57-4f93-a1f7-be1ee071db2b/cache.tzst -P -C /home/runner/work/trivy-aws/trivy-aws --use-compress-program unzstd
Received 1175999812 of 1175999812 (100.0%), 2[24](https://github.com/aquasecurity/trivy-aws/actions/runs/10381795510/job/28743812158?pr=209#step:3:25).1 MBs/sec
/usr/bin/tar: ../../../go/pkg/mod/golang.org/[email protected]/lib/time/update.bash: Cannot open: File exists
/usr/bin/tar: ../../../go/pkg/mod/golang.org/[email protected]/lib/time/README: Cannot open: File exists
/usr/bin/tar: ../../../go/pkg/mod/golang.org/[email protected]/lib/time/mkzip.go: Cannot open: File exists
...
/usr/bin/tar: Exiting with failure status due to previous errors
Warning: Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
Cache is not found

After

Successfully set up Go version 1.22
/opt/hostedtoolcache/go/1.22.5/x64/bin/go env GOMODCACHE
/opt/hostedtoolcache/go/1.22.5/x64/bin/go env GOCACHE
/home/runner/go/pkg/mod
/home/runner/.cache/go-build
Received [13](https://github.com/aquasecurity/trivy-aws/actions/runs/10382449293/job/28745550572?pr=210#step:3:14)0023424 of 1041205102 (12.5%), 124.0 MBs/sec
Received 32296[14](https://github.com/aquasecurity/trivy-aws/actions/runs/10382449293/job/28745550572?pr=210#step:3:15)08 of 1041205102 (31.0%), 154.0 MBs/sec
Received 507510784 of 1041205102 (48.7%), 161.3 MBs/sec
Received 68367[15](https://github.com/aquasecurity/trivy-aws/actions/runs/10382449293/job/28745550572?pr=210#step:3:16)52 of 1041205102 (65.7%), [16](https://github.com/aquasecurity/trivy-aws/actions/runs/10382449293/job/28745550572?pr=210#step:3:17)3.0 MBs/sec
Received 851443712 of 1041205102 (81.8%), 162.4 MBs/sec
Received 1024427886 of 1041205102 (98.4%), 162.8 MBs/sec
Cache Size: ~993 MB (1041205102 B)
/usr/bin/tar -xf /home/runner/work/_temp/6fc419ec-8336-4f65-bec2-a0c42c38[18](https://github.com/aquasecurity/trivy-aws/actions/runs/10382449293/job/28745550572?pr=210#step:3:19)e9/cache.tzst -P -C /home/runner/work/trivy-aws/trivy-aws --use-compress-program unzstd
Received 1041205102 of 1041205102 (100.0%), 141.8 MBs/sec
Cache restored successfully
Cache restored from key: setup-go-Linux-ubuntu22-go-1.22.5-223a8fa6983d09b6092ef1d59e066159c5e09a12fd679c1389a128fb9[19](https://github.com/aquasecurity/trivy-aws/actions/runs/10382449293/job/28745550572?pr=210#step:3:20)d8198

@nikpivkin nikpivkin force-pushed the go-ver branch 3 times, most recently from df65243 to ca4cd19 Compare August 14, 2024 06:47
Signed-off-by: Nikita Pivkin <[email protected]>
@nikpivkin
Copy link
Contributor Author

The cache on windows takes a very long time to load, I created an issue in setup-go.

Signed-off-by: Nikita Pivkin <[email protected]>
@nikpivkin
Copy link
Contributor Author

I've left caching disabled on Windows as it was before until the problem is resolved.

Copy link

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the stale label Sep 14, 2024
@nikpivkin nikpivkin marked this pull request as ready for review October 11, 2024 10:19
@nikpivkin nikpivkin requested a review from simar7 as a code owner October 11, 2024 10:19
@github-actions github-actions bot removed the stale label Oct 11, 2024
Copy link

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the stale label Nov 10, 2024
@nikpivkin
Copy link
Contributor Author

@simar7 Can you take a look?

@github-actions github-actions bot removed the stale label Nov 15, 2024
@simar7 simar7 added this pull request to the merge queue Nov 19, 2024
Merged via the queue into aquasecurity:main with commit 0d3a1fb Nov 19, 2024
5 checks passed
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.

2 participants