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

Decrease linter's memory usage #690

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Apr 2, 2024

Description of your changes

Relevant PR: crossplane-contrib/provider-upjet-aws#1217

This PR decreases the linter runner's memory footprint using a combination of techniques discussed in more detail in crossplane-contrib/provider-upjet-aws#1217. We could try to optimize the parameters that this PR proposes for the Azure provider, but let's defer it until we need those optimizations. The current parameters proposed here are probably more tight than what's necessary as the AWS provider is a larger provider.

Because of the hdinsight group, which the misspell linter treats as a misspelling of "hindsight", this PR disables the misspell linter on all of the generated files.

This PR also bumps the kind version used in uptest runs to v0.21.0 and the golangci-lint version to 1.55.2.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Validated locally by running make lint. Also introduced a linter error and observed that the linter can successfully detect it.

- Limit linter runner concurrency to 1
- Set GOGC to 50% for both lint phases
- Set linter runner timeout to 90min

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
@ulucinar
Copy link
Collaborator Author

ulucinar commented Apr 2, 2024

/test-examples="examples/network/subnet.yaml"

Copy link
Collaborator

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar LGTM!

@ulucinar ulucinar merged commit 4cf09a4 into crossplane-contrib:main Apr 2, 2024
12 checks passed
Copy link

github-actions bot commented Apr 2, 2024

Successfully created backport PR #693 for release-1.0.

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

Successfully merging this pull request may close these issues.

2 participants