Skip to content

Upgrade golangci-lint and its GitHub Action#6666

Merged
kzys merged 1 commit intocontainerd:mainfrom
kzys:gha-lint-upgrade
Mar 11, 2022
Merged

Upgrade golangci-lint and its GitHub Action#6666
kzys merged 1 commit intocontainerd:mainfrom
kzys:gha-lint-upgrade

Conversation

@kzys
Copy link
Member

@kzys kzys commented Mar 11, 2022

The GitHub Action is unstable especially on Windows (see #6618).
This change may not address the issue itself, but using the latest
version makes reporting the upstream the issue easier.

Signed-off-by: Kazuyoshi Kato katokazu@amazon.com

Copy link
Contributor

@TBBle TBBle left a comment

Choose a reason for hiding this comment

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

Seems like a good change to me. A quick check of the golangci-lint release notes suggests staticcheck wasn't changed and nothing else jumped out at me that would help with the flakiness, but as long as it passes, being on a more-recent version seems good anyway.

version: v1.42.0
version: v1.44.2
args: --timeout=5m
skip-go-installation: true
Copy link
Contributor

Choose a reason for hiding this comment

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

v3 of the action made this implicit and dropped the flag, so this is generating a warning.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! Fixed in the last revision.

Copy link
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

The GitHub Action is unstable especially on Windows (see containerd#6618).
This change may not address the issue itself, but using the latest
version makes reporting the upstream the issue easier.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
@kzys kzys force-pushed the gha-lint-upgrade branch from 5654f13 to 622a35a Compare March 11, 2022 19:49
@theopenlab-ci
Copy link

theopenlab-ci bot commented Mar 11, 2022

Build succeeded.

Copy link
Member

@kevpar kevpar left a comment

Choose a reason for hiding this comment

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

LGTM pending CI

@dominikh
Copy link

A quick check of the golangci-lint release notes suggests staticcheck wasn't changed and nothing else jumped out at me that would help with the flakiness

Are you having trouble with Staticcheck?

@kzys
Copy link
Member Author

kzys commented Mar 11, 2022

Still no luck.

Summarizing 1 Failure:

[Fail] [k8s.io] Streaming runtime should support streaming interfaces [It] runtime should support exec with tty=true and stdin=true [Conformance] 
github.com/kubernetes-sigs/cri-tools/pkg/validate/streaming.go:203

Ran 32 of 39 Specs in 273.408 seconds
FAIL! -- 31 Passed | 1 Failed | 0 Pending | 7 Skipped

but that is a known issue (#6652) and upgrading golangci-lint wouldn't affect this behavior.

@kzys
Copy link
Member Author

kzys commented Mar 11, 2022

@dominikh Yes, in #6618. But I believe that this is coming from golangci-lint, not staticcheck itself.

@kzys kzys merged commit dc745fc into containerd:main Mar 11, 2022
@kevpar
Copy link
Member

kevpar commented Mar 11, 2022

Based on some initial investigation, I think this is an issue with the caching golangci-lint-action is doing, which uses https://github.com/actions/cache. It's manifesting as a weird issue with staticcheck, but I don't think staticcheck is doing anything wrong, and I haven't been able to repro the issue locally. I'll share more details on the caching as I learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/1.6.x PR commits are cherry-picked into release/1.6 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants