Skip to content

build: use matrix for split unit tests#12127

Merged
chingor13 merged 5 commits intomainfrom
split-tests
Mar 24, 2026
Merged

build: use matrix for split unit tests#12127
chingor13 merged 5 commits intomainfrom
split-tests

Conversation

@chingor13
Copy link
Contributor

@chingor13 chingor13 commented Mar 20, 2026

Uses a GitHub actions matrix and the dorny/paths-filter action (already in use) to conditionally run split unit tests for a select number of modules.

When running the bulk unit test suite, we enable use the bulkTests profile. This profile is configured to skip the tests for the ones that have split tests.

Also fixes the showcase-clirr check by installing necessary dependencies without running the enforcer check.

Fixes #12185

@gemini-code-assist
Copy link
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@chingor13 chingor13 marked this pull request as ready for review March 20, 2026 22:17
@chingor13 chingor13 requested review from a team as code owners March 20, 2026 22:17
@chingor13 chingor13 changed the title build: try matrix for split unit tests build: use matrix for split unit tests Mar 20, 2026
@meltsufin
Copy link
Member

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a mechanism to skip unit tests for specific modules during bulk builds by using a Maven profile bulkTests. The changes in .kokoro/build.sh activate this profile when a full build is performed, and the changes in the various pom.xml files define this profile to set <skipTests>true</skipTests>. The overall approach is sound. I have a suggestion to improve the robustness of the shell script by using an array for the optional Maven profile argument, which is a best practice in bash scripting to avoid potential issues with word splitting.

@chingor13 chingor13 requested review from blakeli0 and meltsufin March 24, 2026 19:42
@chingor13 chingor13 enabled auto-merge (squash) March 24, 2026 20:35
@chingor13 chingor13 merged commit 92f300a into main Mar 24, 2026
114 checks passed
@chingor13 chingor13 deleted the split-tests branch March 24, 2026 21:11
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.

showcase-clirr test failing for all PRs that touch sdk-platform-java

3 participants