Skip to content

gha: specify full version for golang-ci-lint to speedup selection#4716

Merged
estesp merged 1 commit intocontainerd:masterfrom
thaJeztah:faster_golang_ci
Nov 10, 2020
Merged

gha: specify full version for golang-ci-lint to speedup selection#4716
estesp merged 1 commit intocontainerd:masterfrom
thaJeztah:faster_golang_ci

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

Noticed this in the CI output:

Requested golangci-lint 'v1.29', using 'v1.29.0', calculation took 7969ms
Installing golangci-lint v1.29.0...
Downloading https://github.com/golangci/golangci-lint/releases/download/v1.29.0/golangci-lint-1.29.0-darwin-amd64.tar.gz ...

Using nearly 8 seconds to convert v1.29 to v1.29.0 seems a bit long,
so hard-coding to the full version to speedup CI somewhat.

Noticed this in the CI output:

    Requested golangci-lint 'v1.29', using 'v1.29.0', calculation took 7969ms
    Installing golangci-lint v1.29.0...
    Downloading https://github.com/golangci/golangci-lint/releases/download/v1.29.0/golangci-lint-1.29.0-darwin-amd64.tar.gz ...

Using nearly 8 seconds to convert v1.29 to v1.29.0 seems a bit long,
so hard-coding to the full version to speedup CI somewhat.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Copy Markdown
Member Author

Let's see if this works 🤞

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Nov 10, 2020

Build succeeded.

@thaJeztah
Copy link
Copy Markdown
Member Author

Looks like it works (only networking was somewhat slower this time)

Before:

Installed Go in 6567ms
Requested golangci-lint 'v1.29', using 'v1.29.0', calculation took 6600ms
Installing golangci-lint v1.29.0...
Downloading https://github.com/golangci/golangci-lint/releases/download/v1.29.0/golangci-lint-1.29.0-darwin-amd64.tar.gz ...
Received 482691 of 482691 (100.0%), 11.2 MBs/sec
...
Installed golangci-lint into /Users/runner/golangci-lint-1.29.0-darwin-amd64/golangci-lint in 587ms
Restored cache for golangci-lint from key 'golangci-lint.cache-2653-nogomod' in 7850ms

After:

Installed Go in 7517ms
...
Installed golangci-lint into /Users/runner/golangci-lint-1.29.0-darwin-amd64/golangci-lint in 8189ms
Restored cache for golangci-lint from key 'golangci-lint.cache-2653-nogomod' in 9160ms

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp merged commit 6dc35df into containerd:master Nov 10, 2020
@thaJeztah thaJeztah deleted the faster_golang_ci branch November 10, 2020 15:14
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.

3 participants