Skip to content

Conversation

codeboten
Copy link
Contributor

@codeboten codeboten commented Jan 13, 2022

Increasing the number of parallel linters appears to be causing timeouts in the lint job.

Fixes #7169

@codeboten codeboten changed the title fix build fix lint build failures Jan 13, 2022
@codeboten codeboten added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 14, 2022
@codeboten codeboten marked this pull request as ready for review January 14, 2022 02:28
@codeboten codeboten requested review from a team and tigrannajaryan January 14, 2022 02:28
@@ -75,7 +75,7 @@ jobs:
path: /home/runner/.cache/go-build
key: go-build-lint-${{ runner.os }}-${{ hashFiles('**/go.mod', '**/go.sum') }}
- name: Lint
run: make -j4 golint
run: make -j2 golint
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't it be better to increase the timeout itself as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤔 hmmm the timeout for golangci-lint is already set to 10m:

Copy link
Member

@dmitryax dmitryax Jan 14, 2022

Choose a reason for hiding this comment

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

I suspect that something wrong is happening after this PR #7153

I see that at least misspell is running multiple times in every package because it validates all the nested files in each module nvm, this is incorrect assumption

Copy link
Member

@dmitryax dmitryax left a comment

Choose a reason for hiding this comment

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

Not sure how it solves the problem but let's merge it to unblock the build :)

@codeboten codeboten merged commit a395bdf into open-telemetry:main Jan 14, 2022
@codeboten codeboten deleted the codeboten/reduce-parallel branch January 14, 2022 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lint job is failing
4 participants