Skip to content

ci: speed up regular and native checks - #1787

Merged
John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
ci/fail-fast-native-tests
Dec 1, 2026
Merged

John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
ci/fail-fast-native-tests

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Developers got Windows test results 1m 38s sooner (7m 43s → 6m 05s), and the Linux native build dropped from 66s to 42s in the two PR runs. Regular tests share one CLI build, and native builds bundle the CLI while staging their payloads. Before · After

Dropping routine screenshot artifacts reduced the local native test run from 3m 59s to 1m 49s. CI compares SVGs in memory, preserves the pixel comparison for differing SVGs, and writes screenshot files only when a check fails. The local HTML report displays SVGs directly.

Lint and type checks gate the regular matrix, which stops at the first failed test. Native builds and Windows Bazel start after the regular matrix passes. Every CLI CI and E2E matrix sets strategy.fail-fast: true. Superseded PR runs cancel automatically. The workflows use the alphabetized pnpm script names, including check:ci, test:ci, and test:e2e.

Companion PR Socket MCP #253

@jdalton
John-David Dalton (jdalton) marked this pull request as ready for review November 30, 2026 23:15
@cursor

cursor Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Changes are limited to CI orchestration, test scripts, and build parallelism; no production auth or data-path behavior changes.

Overview
CI now cancels superseded PR runs via workflow concurrency on ci.yml and e2e-tests.yml, and gates expensive work: the test matrix waits on lint + typecheck, while native CLI and new bazel-windows jobs wait on the regular test job only. Bazel Maven e2e is pulled out of the Windows pwsh test matrix into its own job (reusing YAML anchors for checkout/setup). Native matrix fail-fast is enabled.

pnpm test-ci is split for CI: test:prepare:ci (build without dotenvx test env), --bail=1 on unit/integration, and integration --use-built-dist so CI does not rebuild inside the integration runner. SEA build runs Rollup for the CLI bundle in parallel with other staging prep instead of afterward. Termless snapshot checks skip redundant pixel diffs when SVGs already match. Tests add CI scheduling contract coverage and longer timeouts on busy runners.

Reviewed by Cursor Bugbot for commit 9ac61a9. Configure here.

@jdalton John-David Dalton (jdalton) changed the title ci: fail fast before running expensive checks ci: speed up regular and native checks Nov 30, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the ci/fail-fast-native-tests branch 3 times, most recently from 9bf6a18 to dd6e947 Compare November 30, 2026 23:40

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jdalton
John-David Dalton (jdalton) merged commit 89d05ae into v1.x Dec 1, 2026
23 checks passed
@jdalton
John-David Dalton (jdalton) deleted the ci/fail-fast-native-tests branch December 1, 2026 12:11
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