-
-
Notifications
You must be signed in to change notification settings - Fork 405
[skip-changelog] Run integration tests concurrently #1953
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
[skip-changelog] Run integration tests concurrently #1953
Conversation
fee0b08
to
b995d75
Compare
I made some changes to avoid specifying a different go path. It is no longer needed to build the cli in a specific step of the workflow. |
c4d3230
to
e178905
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of nitpicks but I think we are there. 👍🏼
ca4e645
to
f32d9c4
Compare
This enhancement reduces the amount of time needed to execute integration tests, since each test package no longer has to wait for the previous ones to be completed. In order to do this, a regex is used to match each test file. It is also specified the path to the directory that contains the file.
Having different test files that shared the same package was inefficient, because the whole package test was run one time for each file. This enhancement avoids repeating the same tests more than once.
f32d9c4
to
1cb4633
Compare
Please check if the PR fulfills these requirements
See how to contribute
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)What kind of change does this PR introduce?
Infrastructure enhancement
What is the current behavior?
Integration tests are run consecutively and each test has to wait for the previous ones to end before starting, making the whole process slower any time a new test is added.
Unit tests and integration tests are executed by different jobs of the workflow.
What is the new behavior?
Using a matrix to run each package test concurrently reduces the waiting time.
GO_TEST_PACKAGE
is set to the test package name to identify the single package to run.Does this PR introduce a breaking change, and is titled accordingly?
No