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: go lint action #3762

Closed
wants to merge 5 commits into from
Closed

Conversation

apostasie
Copy link
Contributor

@apostasie apostasie commented Dec 13, 2024

Fix #3761

After consideration, suggesting we get rid of the action entirely, as it does not seem to be able to accommodate our usage:

  • install mode binary does not work for canary
  • install mode goinstall precludes using GOOS, which we also need (and since their is no way to breakdown install and run steps with the action...)
  • therefore, since installation has to be handled separately anyhow, we would use the action solely to run the command golangci-lint run --verbose - which is ludicrous, and already provided by the makefile (and we should encourage the use of the same commands on the CI we expect people to run locally)

Besides dropping the golangci action, this PR folds the imports ordering (previously separate task) into the lint-go action as well.

Note that one of the effects of this is that we loose the ability to cache lint results.
This is actually a good thing, as our github cache usage is currently a source of concern - and the cache does not provide any value for us (the linting process runs in seconds).

Finally, this is on top of #3760 which should go first.

The new action will centralize go version so we stop having them peppered accross different files.
It also provides simple "strategies" that cover all our cases (canary, latest-stable, old-stable).

Signed-off-by: apostasie <[email protected]>
@apostasie apostasie force-pushed the ci-go-ling-action branch 7 times, most recently from a02cd00 to 200f87f Compare December 14, 2024 00:40
@apostasie apostasie changed the title [WIP] Ci go lint action CI: go lint action Dec 14, 2024
@apostasie apostasie marked this pull request as ready for review December 14, 2024 00:45
@apostasie apostasie marked this pull request as draft December 14, 2024 01:57
Signed-off-by: apostasie <[email protected]>
@apostasie apostasie marked this pull request as ready for review December 14, 2024 02:26
@AkihiroSuda
Copy link
Member

Finally, this is on top of #3760 which should go first.

I feel #3760 is too much complicated

@apostasie apostasie closed this Dec 15, 2024
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.

CI: golangci is broken with go canary (1.24RC)
2 participants