Skip to content

Make test args and chunking configurable - #67

Merged
duynhne merged 1 commit into
mainfrom
feat/make-test-chunking
Aug 7, 2026
Merged

Make test args and chunking configurable#67
duynhne merged 1 commit into
mainfrom
feat/make-test-chunking

Conversation

@duynhne

@duynhne duynhne commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What

  • GO_TEST_ARGS ?= -race: focused runs can override the test flags per invocation, e.g. make test-obsx GO_TEST_ARGS="-race -run TestSetup -v". Default behavior unchanged.
  • make test-chunk CHUNK=N/M: runs the full per-module gate for one 1-indexed slice of the module list (CHUNK=2/4 = second quarter). Useful locally now; ready to back a CI matrix if the suite outgrows the current single ~2-minute job.

Why

Ergonomics adopted from mature multi-module Go monorepos. CI is intentionally unchanged: the existing gate already runs tidy+fmt+vet+golangci-lint+race tests per module plus a dirty-tree check, so no extra lint/fmt jobs are needed.

Verification

make test-chunk CHUNK=1/3|2/3|3/3 slices 13 modules as 5/5/3 and all gates pass; make test-flagx GO_TEST_ARGS="-race -run TestEnum -v" runs the focused subset; plain make test behavior is unchanged.

🤖 Generated with Claude Code

GO_TEST_ARGS lets a focused run override the default -race (e.g.
GO_TEST_ARGS="-race -run TestX -v"), and test-chunk CHUNK=N/M runs
one 1-indexed slice of the module list — usable locally today and
ready for a CI matrix if the suite outgrows a single job.
@sonarqubecloud

sonarqubecloud Bot commented Aug 7, 2026

Copy link
Copy Markdown

@duynhne
duynhne merged commit 68b0d41 into main Aug 7, 2026
11 checks passed
@duynhne
duynhne deleted the feat/make-test-chunking branch August 7, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant