Repository navigation
ci(test): speed up the test and type-check jobs - #1567
Merged
Merged
Conversation
viethung0o0
force-pushed
the
ci/test-sharding
branch
from
October 27, 2026 16:19
aa82c5e to
77fb8e6
Compare
viethung0o0
force-pushed
the
ci/test-sharding
branch
from
October 27, 2026 16:25
77fb8e6 to
ef15346
Compare
viethung0o0
force-pushed
the
ci/test-sharding
branch
2 times, most recently
from
October 27, 2026 16:46
e5621e5 to
0bdb62d
Compare
- Run tests on eight shards with a depth-2 checkout. - Make the vitest preset actually pre-bundle heavy dependencies (drizzle-orm and subpaths, zod, S3 client, ioredis, bullmq, date-fns); its optimizer had no `include`, so it bundled nothing. Update vitest to 4.1.12 for its `importOriginal` fix under the optimizer; worker suites that factory-mock bullmq opt it out. - Split type-checking across two runners (builder + worker, the rest) and run it incrementally with a cached tsbuildinfo; ignore `*.tsbuildinfo` repo-wide. - Make turbo's `test` and `check-types` hashes cover the source of the internal packages they import (a no-op `transit` task chained through `^transit`). Before, a change to e.g. packages/business left builder's and worker's cached results valid and CI replayed them. - Read the button label limit from a dependency-free flow-config subpath, boot MSW only in the business tests that mock HTTP, and walk each recurrence oracle rule once. - Fix realtime closes issued during `open` (resync, overload): the upgrade runs inside `res.cork()`, so the TCP shutdown was skipped and clients saw `onclose` only ~16s later. Ends requested during the upgrade now run once the cork is released. - Keep the realtime client's reconnect backoff growing when a short-lived connection receives a message before closing (a replay frame then a resync): only sustained uptime resets it now, not any message. Coming back online or to the tab retries at once (`reconnectNow`, which still honours a server overload retryAfter). Tests with every workspace affected: >30 min (timed out) -> ~5.4 min. Locally: business 160s -> 53s, builder 385s -> 250s, worker 136s -> 95s, realtime ~65s -> ~5s.
viethung0o0
force-pushed
the
ci/test-sharding
branch
from
October 27, 2026 17:05
0bdb62d to
33a12ee
Compare
hello-jackytruong
referenced
this pull request
in hello-jackytruong/ChatWorkAI
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Speeds up the test and type-check jobs.
testandcheck-typeshashes now include the source of internal dependencies, so a change to e.g.packages/businessre-runs builder and worker instead of replaying their cached results.open(resync, overload) only reached the client after ~16s. The client's reconnect backoff now resets only after sustained uptime, so faster closes cannot turn into a fast reconnect loop; coming back online or to the tab retries at once.Results (CI, every workspace re-run, 0 turbo cache hits)
main)