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

Run lint in parallel #1868

Merged
merged 2 commits into from
Apr 12, 2024
Merged

Run lint in parallel #1868

merged 2 commits into from
Apr 12, 2024

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Apr 12, 2024

About a third of CI time in this repo is spent running lints. The lints are extremely valuable, but don't need to be run synchronously with tests. Further, we don't need to run lints for the full matrix of test target.

A representative CI run breaks down as:

At the cost of spinning up an additional ubuntu-latest runner, we should be able to decrease end-to-end CI times by more then 20% without a loss in fidelity.

@iwahbe iwahbe self-assigned this Apr 12, 2024
@iwahbe iwahbe force-pushed the iwahbe/run-lint-in-parallel branch 3 times, most recently from 386f0a4 to 53f53b9 Compare April 12, 2024 10:57
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.47%. Comparing base (47052e2) to head (8b1302e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1868      +/-   ##
==========================================
- Coverage   61.02%   60.47%   -0.55%     
==========================================
  Files         303      310       +7     
  Lines       42457    42835     +378     
==========================================
- Hits        25909    25905       -4     
- Misses      15075    15457     +382     
  Partials     1473     1473              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@VenelinMartinov
Copy link
Contributor

🔥

This reduces duplication and ensures that master.yml and ci.yml remain in sync. This
ensures that master runs the same set of tests as ci, causing master to also run tests for
both go versions.
@iwahbe iwahbe force-pushed the iwahbe/run-lint-in-parallel branch from baf6b95 to 8b1302e Compare April 12, 2024 12:03
@iwahbe iwahbe merged commit 17265a0 into master Apr 12, 2024
11 checks passed
@iwahbe iwahbe deleted the iwahbe/run-lint-in-parallel branch April 12, 2024 12:15
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.

None yet

2 participants