You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: optimize unit test CI runtime and rename bulk filter (#14029)
## Problem
- **Redundant Generated Mock Tests**: Pure GAPIC-generated clients
contain thousands of auto-generated mock unit tests that test template
echo behavior against in-process mock servers. These tests consume **40+
minutes** per matrix CI run across 240+ client libraries.
- **Coverage is Already Provided Elsewhere**: Core generator templates
and GAX runtime behaviors are already thoroughly tested by
`java-showcase` (`showcase.yaml`), while business logic in
handwritten/split libraries is validated in dedicated `split-units`
jobs.
## High-Level Changes
- **Fast Global Monorepo Compile Pass**: In `.kokoro/build.sh`,
dynamically runs `mvn compile -T 1C` for full monorepo CI runs (`units`
matrix jobs), reducing full-repository validation from **40+ minutes to
~2 minutes** while keeping all required GitHub status check names.
- **Skip Unit Tests on GAPICs by Default**: Configured
`<skipUnitTests>true</skipUnitTests>` in
`google-cloud-jar-parent/pom.xml` to skip surefire execution for
generated modules, while preserving test compilation and enabling
`-Pnative` GraalVM test discovery.
- **Preserve Testing for Handwritten & Platform Modules**: Explicitly
configured `<skipUnitTests>false</skipUnitTests>` on all 18
handwritten/combo library root POMs (`java-storage`, `java-spanner`,
`java-bigquery`, `java-bigtable`, `sdk-platform-java`, etc.) so all
handwritten unit tests continue to run in `split-units`.
- **CI Workflow & Script Optimizations**: Added `cache: maven` to split
CI jobs in `.github/workflows/ci.yaml` and multi-threaded execution (`-T
1C`) in `.kokoro/dependencies.sh`.
0 commit comments