The CI Challenge: save 10% or get $1,000

Split one long Go test package into parallel shards behind one required check

Splitting the slowest package across matrix legs shortens the Go test critical path.

How OpenClaw used this technique

Read what OpenClaw changed and follow the original sources.

Split one long Go test package into parallel shards behind one required check

Splitting the slowest package across matrix legs shortens the Go test critical path.

Use it when
A Go test job is the long pole because one large package runs all of its tests in a single go test process.
Before applying it
Each leg repeats checkout, Go setup and the test compile, so runner minutes rise while the critical path falls; a small gate job keeps the original required check name.

Company Playbooks