perf(ci): add SKIP_DEPS, split postgres targets, allow test caching#19742
perf(ci): add SKIP_DEPS, split postgres targets, allow test caching#19742
Conversation
- Add SKIP_DEPS guard to deps target: when set, skip go mod tidy for jobs that don't need it (e.g. test-only jobs). - Split go-postgres-unit-tests into main/migrator subtargets to enable independent sharding in CI. - Remove -count=1 from integration-unit-tests to allow Go test cache hits. All changes are backward-compatible: existing callers work unchanged. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Skipping CI for Draft Pull Request. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #19742 +/- ##
==========================================
- Coverage 49.59% 49.59% -0.01%
==========================================
Files 2756 2756
Lines 208036 208036
==========================================
- Hits 103183 103182 -1
- Misses 97192 97193 +1
Partials 7661 7661
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Split the monolithic go job into 5 shards (pkg-helm, pkg-other, central-1, central-2, rest) and go-postgres into 2 shards (main, migrator) for parallel execution. Also split integration and operator tests into separate jobs (go-integration, go-operator-integration) so they run in parallel with unit tests instead of sequentially after them. Depends on #19743 (container removal) and #19742 (SKIP_DEPS + postgres subtargets). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Images are ready for the commit at af1275f. To use with deploy scripts, first |
|
Combined into #19744 (shard split PR) — the Makefile changes are a prerequisite for sharding and make more sense as one logical PR. |
Description
Backward-compatible Makefile changes that unblock CI optimization PRs:
depstarget inifdef SKIP_DEPSguard. When set, skipsgo mod tidyfor test-only jobs that don't modify dependencies. No-op unless env var is set.go-postgres-unit-testsintogo-postgres-unit-tests-mainandgo-postgres-unit-tests-migrator. The umbrella target still works identically. Enables independent sharding in CI.-count=1fromintegration-unit-tests: allows Go test cache hits for integration tests.Split from #19678.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
All changes are backward-compatible.
make go-postgres-unit-testsstill runs both subtargets.SKIP_DEPSis a no-op unless explicitly set. CI validates.🤖 Generated with Claude Code