-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Make integration tests using test suites #11634
Conversation
c0b4919
to
477bff9
Compare
Codecov Report
@@ Coverage Diff @@
## master #11634 +/- ##
============================================
- Coverage 63.12% 62.96% -0.17%
Complexity 1140 1140
============================================
Files 2343 2343
Lines 126306 126330 +24
Branches 19419 19421 +2
============================================
- Hits 79733 79545 -188
- Misses 40905 41108 +203
- Partials 5668 5677 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 25 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
1b29f55
to
82382e8
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.
are we planning to reuse cluster for some of the SQL tests or just to use this framework to better balance the 2 integration test sides in GHA?
371d0e6
to
8d4161c
Compare
Integration 1 and 2 are for balancing. |
58c0042
to
4c77a6d
Compare
@@ -39,7 +39,7 @@ | |||
/** | |||
* Integration test for floating point data type (float & double) filter queries. | |||
*/ | |||
@Test(suiteName = "CustomClusterIntegrationTest") | |||
@Test(suiteName = "CustomClusterIntegrationTest", groups = {"custom-integration-suite"}) |
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.
so before this change the @BeforeSuite and @BeforeClass is basically the same b/c they are not group into suite is that correct? (we should see huge test time reduction if so)
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.
Only this package has the suite implementation, which is already tested using mvn test -P github-actions,custom-cluster-integration-test-suite || exit 1
. But in this case, we are missing the code coverage report for this.
So just wanna merge these two suite to run together.
We have 3 integration tests profile right now:
1 and 2 are just for rebalancing Right now we split the integration tests in two parts:
For 2, just one command:
The issue with 1 is that we are missing the code coverage report for the first command. |
4c77a6d
to
321d410
Compare
</run> | ||
</groups> | ||
<packages> | ||
<package name="org.apache.pinot.integration.tests.*"/> |
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.
this looks like in includes everything (*) and the other *-2
also have the same package name, do we plan to still do the first letter split to make it eaiser (e.g. no need to annotate each test class).
b/c i can image adding a new file without remembering to include the suite name - one will be able to manually trigger that test in IDE but will be ignored in CI and mvn test
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.
nvm i actually see you do exclusion from the *-2
xml... (maybe to call it out in comment)
</run> | ||
</groups> | ||
<packages> | ||
<package name="org.apache.pinot.integration.tests.*"/> |
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.
nvm i actually see you do exclusion from the *-2
xml... (maybe to call it out in comment)
<exclude name="custom-integration-suite"/> | ||
<exclude name="integration-suite-1"/> |
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.
good to call out that integration-suite-2 is a catch all and theoretically it doesn't need name annotation in @Test
lgtm can you fix the test failures |
2d82e5b
to
53cf473
Compare
afd762b
to
6272c77
Compare
5bfefc7
to
a325a48
Compare
a325a48
to
ffc08cd
Compare
Split integration tests into two suites:
integration-suite-1
andintegration-suite-2