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

[Backport] Parallel test jobs for CI (#2861) #2936

Conversation

pawel-gudel-eliatra
Copy link
Contributor

Backport e4f4817 from #2861

* Split multiple tests into separate gradle tasks.
  * Tasks are configured in "splitTestConfig" map in build.gradle file.
    Map allows to use all patterns from TestFilter like:
    includeTestsMatching, excludeTestsMatching, includeTest etc.
  * Tasks are automatically generated from "splitTestConfig" map.
  * Two new Gradle tasks: listTasksAsJSON and listTasksAsParam to
    output task names to console. First one outputs them as a JSON
    and second - in gradlew "-x <TASK>" format to use in CLI.
  * Patterns included in tasks are automatically excluded from main
    "test" task but at the same time generated tasks are dependencies
    for "test". Running "gradlew test" will run whole suite at once.
* CI pipeline has been configured to accomodate all changes.
  * New 'master' task to generate list of jobs to run in parallel.
  * Updated matrix strategy to include task name to start.

Signed-off-by: Pawel Gudel <[email protected]>
(cherry picked from commit e4f4817)
Signed-off-by: Pawel Gudel <[email protected]>
@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

Merging #2936 (b92d103) into 2.x (e1fc42f) will decrease coverage by 3.40%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                2.x    #2936      +/-   ##
============================================
- Coverage     62.11%   58.71%   -3.40%     
+ Complexity     3371     3057     -314     
============================================
  Files           264      264              
  Lines         19460    19460              
  Branches       3319     3319              
============================================
- Hits          12087    11426     -661     
- Misses         5772     6385     +613     
- Partials       1601     1649      +48     

see 57 files with indirect coverage changes

peternied
peternied previously approved these changes Jul 10, 2023
…ion to any version (opensearch-project#2253)

* Generalize Backwards Compatibility tests so we can test from any version to any version

With an issue reported indicating that there are serialization issue between 1.3 and 2.X, making sure that we can reproduce the errors. This new workflow(s) will make sure that we aren't breaking BWC with changes we are adding to 2.X and will give us the flexibility to test certain migration workflows.

Fixing an issue where the BWC tests were not actually building or executing causing the clusters to spin up and then immediately spin down. We will need to invest more energy into running multiple kinds of security plugin specific scenarios through the test system.

Signed-off-by: Peter Nied <[email protected]>
@peternied peternied dismissed stale reviews from stephen-crawford and themself via 6e3042d July 10, 2023 21:04
Copy link
Member

@peternied peternied left a comment

Choose a reason for hiding this comment

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

We were using the old BWC testing suite, pulled in the most recent version

@peternied
Copy link
Member

Interesting, codecov/project is out of date compared to the results generated from all the integration test runs, that is kinda silly

image

@peternied peternied merged commit 1ec67d6 into opensearch-project:2.x Jul 10, 2023
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.

4 participants