fix(build): task check runs in ~27s cold, ~12s warm

task test runs -short with the test cache on; task test:full keeps the
uncached run. The 50s keepalive proof skips under -short (the deploy
workflow's full go test still runs it). Sleep-bound archied watch tests
run in parallel, and the read-only gate steps run concurrently after fmt
and proto:check. ui:deps is run: once so the parallel UI steps install once.
This commit is contained in:
sam committed 2026-09-24 00:29:07 +10:00
1 parent 94ca015070
commit f4d20cfe0a
6 files changed
+39 -8

No files matched your search

@@ -92,8 +92,10 @@ const (
// reported, not fatal -- the kind stays absent, the file's value is the one in
// effect, and the operator's fix in config.toml is what clears it.
func TestStateStoreBootsWithStaleDatabaseOwnedValues(t *testing.T) {
t.Parallel()
for _, tt := range staleDatabaseOwnedSettings {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
dir := t.TempDir()
path := filepath.Join(dir, "config.toml")
body := fmt.Sprintf(
@@ -456,9 +456,11 @@ func TestPersonaWatchIsReEstablishedAfterTheStreamEnds(t *testing.T) {
// than spun, a shutdown that does not wait out the backoff, and a resume point
// that only updates carrying a version can move.
func TestKeepWatchGuardrails(t *testing.T) {
t.Parallel()
log := slog.New(slog.DiscardHandler)
versionOf := func(version int64) int64 { return version }
t.Run("one stream is held at a time", func(t *testing.T) {
t.Parallel()
var opens atomic.Int64
first := make(chan int64)
close(first)
@@ -485,6 +487,7 @@ func TestKeepWatchGuardrails(t *testing.T) {
})
t.Run("a stream that cannot be re-established is retried with backoff", func(t *testing.T) {
t.Parallel()
var opens atomic.Int64
first := make(chan int64)
close(first)
@@ -515,6 +518,7 @@ func TestKeepWatchGuardrails(t *testing.T) {
})
t.Run("a cancelled context ends the watch while it is backing off", func(t *testing.T) {
t.Parallel()
var opens atomic.Int64
first := make(chan int64)
close(first)
@@ -540,6 +544,7 @@ func TestKeepWatchGuardrails(t *testing.T) {
})
t.Run("the reconnect resumes after the last version delivered", func(t *testing.T) {
t.Parallel()
// A version this process applied, then the update a stream failure
// arrives as: the failure carries no version, so it must not move the
// resume point and the next stream must not be asked to replay history.
@@ -744,6 +749,7 @@ func TestAttemptHealthyAtTheWindowBoundary(t *testing.T) {
// same rule -- it ended at once having delivered nothing -- so the delay has
// something to reset from.
func TestKeepWatchBackoffResetsAfterASuccessfulReopen(t *testing.T) {
t.Parallel()
log, retries := newRetryLog()
first := make(chan int64)
close(first)
@@ -793,6 +799,7 @@ func TestKeepWatchBackoffResetsAfterASuccessfulReopen(t *testing.T) {
// minimum they start at. The delay is read off the watch's own log line, which
// is where the loop states the wait it is about to take.
func TestKeepWatchChargesAReopenTheStoreMerelyAccepted(t *testing.T) {
t.Parallel()
log, retries := newRetryLog()
first := make(chan int64)
close(first)
@@ -105,6 +105,9 @@ const keepaliveWindow = 50 * time.Second
// above pins the same agreement in microseconds; this case is the end-to-end
// proof, which is the part a value assertion cannot give.
func TestStateStoreServerOptionsTolerateTheDialersKeepalive(t *testing.T) {
if testing.Short() {
t.Skipf("holds a watch open for %s of wall clock; runs in the full suite (task test:full)", keepaliveWindow)
}
// The options the standalone State Store serves its local profile with,
// taken from the composition rather than hand-built here.
served, loopback, err := stateStoreServerOpts("127.0.0.1:9090", "", &staterpc.TaskGrants{})