Skip to content

ci: remove redundant tests, and parallelize - #1323

Merged
wesm merged 1 commit into
kenn-io:mainfrom
mjacobs:ci/trim-redundant-test-lanes
Aug 1, 2026
Merged

ci: remove redundant tests, and parallelize#1323
wesm merged 1 commit into
kenn-io:mainfrom
mjacobs:ci/trim-redundant-test-lanes

Conversation

@mjacobs

@mjacobs mjacobs commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

CI takes about 33 minutes, and nearly all of it is the serial Go Test (ubuntu) job. Timing a recent run showed most of that is the same tests running twice.

  • The race step re-ran internal/duckdb without -race costing 421s (a fifth of the job), repeating what the ./... step had already finished minutes earlier.
  • make test-evalingest also ran ./internal/db, another 260s for an identical result.
  • The standalone coverage job was a third full pass over the suite, contributing 629s of "runner time".
  • The race run was moved to a separate job so it starts in parallel with the "plain" run.

After this, Go Test (windows-latest) (~23 min) becomes the critical path.

The Go Test (ubuntu) job was a 33-minute serial critical path that paid for
the same work repeatedly. Per-job timing from run 30671070765 showed three
avoidable costs:

- The race step first re-ran internal/duckdb without -race (421s) — a verbatim
  duplicate of the invocation the ./... step had already run minutes earlier.
  Excluding duckdb from -race never required re-running it plain.
- make test-evalingest ran ./internal/db (260s) even though the evalingest
  build tag only gates files in internal/server, so db was byte-identical to
  the untagged run that had just finished.
- The standalone coverage job re-ran the entire suite a third time (629s of
  runner time). Measured instrumentation overhead of -coverprofile is ~0
  (artifact: 577.9s with vs 579.8s without), so the main test job can emit
  the profile for free and upload to Codecov itself.

Moving the race run into its own job lets it start alongside the plain run
instead of after it. Combined, the push-CI critical path drops from ~33 min
to roughly the max of the plain and race lanes (~12 min), and one full-suite
job's worth of self-hosted runner occupancy disappears per push.

Follow-up for repo admins: if branch protection lists the old coverage job as
a required check, it must be repointed at the test job.

Generated with Claude Code (claude-fable-5)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@roborev-ci

roborev-ci Bot commented Aug 1, 2026

Copy link
Copy Markdown

roborev: Combined Review (ee21961)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 1m34s

@mjacobs mjacobs changed the title ci: remove redundant test reruns and parallelize race lane ci: remove redundant tests, and parallelize Aug 1, 2026
@wesm
wesm merged commit e4b891a into kenn-io:main Aug 1, 2026
13 checks passed
wesm pushed a commit that referenced this pull request Aug 2, 2026
Two background timing tests depended on receiver or scheduler ordering and could exercise the wrong state under differently scheduled CI runners.

The unwatched poll cooldown test now retains its one-shot completion notification so a completed reconcile pass cannot become a timeout. The daemon replacement startup-wait test now waits until ensureBackgroundServe enters the startup wait before publishing the incompatible runtime, ensuring it exercises replacement rather than a fresh launch.

Both changes are test-only; production polling and daemon lifecycle behavior are unchanged. The race/non-race job split already exists on main via #1323.

Co-authored-by: Marius van Niekerk <mariusvniekerk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants