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: Parallelize Go tests jobs #558

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Conversation

3v1n0
Copy link
Collaborator

@3v1n0 3v1n0 commented Sep 27, 2024

Tests start to take quite a bit of time an in case a specific test kind fails we have to restart the whole CI job.

To avoid this use a matrix to parallelize the go test jobs and skip the steps that are not required in each step.

This is not optimal since we still repeat the setup (although some parts are cached and in general the common part takes less than a minute), but it still allows to get way faster builds (~ -50%) with a very minimal effort

UDENG-4806

@3v1n0 3v1n0 requested a review from a team as a code owner September 27, 2024 05:59
Tests start to take quite a bit of time an in case a specific test kind
fails we have to restart the whole CI job.

To avoid this use a matrix to parallelize the go test jobs and skip the
steps that are not required in each step.

This is not optimal since we still repeat the setup (although some parts
are cached and in general the common part takes less than a minute), but
it allows to get faster builds with a very minimal effort
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.64%. Comparing base (908d67e) to head (f92cd88).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #558      +/-   ##
==========================================
- Coverage   84.80%   84.64%   -0.16%     
==========================================
  Files          79       79              
  Lines        6957     6963       +6     
  Branches       75       75              
==========================================
- Hits         5900     5894       -6     
- Misses        738      744       +6     
- Partials      319      325       +6     

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

Copy link
Member

@didrocks didrocks left a comment

Choose a reason for hiding this comment

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

There will be probably more things to do to work on the testsuite, but I agree that this low hanging fruit will at least help for the time being, while keeping some "setup" part common. Thanks Marco!

@3v1n0 3v1n0 merged commit 1ba9bce into ubuntu:main Sep 27, 2024
8 checks passed
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.

3 participants