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: explore running linting on just new changes #347

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Dec 11, 2024

This adds a new temporary job that runs golangci-lint with only-new-issues enabled in the hopes that it'll reduce friction for contributions being made via GitHub by avoiding failing CI due to linting violations introduced through internal patches.

As I've not had a lot of experience with this option and an incorrect setup with linters can often look the same as linting being happy unless someone actually takes the time to review the logs of every run, I've opted to start by introducing this as a second job with the idea being we'll get the see what the linter would give us with and without that option.

I expect after a bunch of pull requests, we'll have seen enough to decide if this option would actually be helpful, and either way remove one of the two jobs

Relates to #346

@copybara-service copybara-service bot merged commit 0435622 into google:main Dec 12, 2024
7 of 8 checks passed
@G-Rath G-Rath deleted the linting/try-just-new branch December 12, 2024 20:27
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