Repository navigation
chore: faster CI - #16842
chore: faster CI#16842
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/19841f6bb7ad058aa0d6bb5bf6c078a27be0ce67Open in |
|
|
There's also a setting for I also suspect there may be some tests we're running in multiple suites which we can deduplicate but I haven't looked deeply into it. Removing Node 22 for test-kit probably frees up a good number of runners. Those are currently the longest tests |
Stacked on #16842. The e2e legs were six copies of the same job with different scripts wired in. They're now one `e2e` matrix (rows are `{ script, project, shard, os, browser, workers }`) and one `test` matrix for unit tests, which also gives kit's unit tests a Windows leg outside `test:cross-platform:dev`. `basics` runs its js project in two shards and its no-js project alone (`KIT_E2E_SHARD`, `KIT_E2E_PROJECT` in `test/utils.js`); Playwright shards by contiguous test count, so a shard straddling the two projects was the 7m/1m40 split. Longest job 14m → 6.5m, coverage and runner-minutes unchanged. 88% of kit runs share the org's 60-slot pool with another kit run, so cutting runner-minutes means dropping cells, which is a separate decision.
#16852) `_invalidate` in `packages/kit/src/runtime/client/client.js` detects a racing navigation by capturing `is_navigating` and bailing if it flipped back to false. But `navigate` sets `is_navigating` only after `await get_navigation_intent(url, false)`, which is a network round trip when route resolution happens on the server. An `invalidate()` or `refreshAll()` starting during that round trip sees `is_navigating === false`, reruns the load functions of the page being left, and applies their result over the page the navigation just rendered. A navigation makes an in-flight invalidation stale exactly when it applies its result, which is also when it reassigns `current`, so `_invalidate` now captures `current` and bails if its identity changed. The existing test only hits the race when route resolution outlasts its 50ms `refreshAll` timer, so it passes locally and fails on loaded CI runners. It now delays `__route.js` responses by 150ms, and fails without the fix. This is what turns the `test:server-side-route-resolution` legs red on #16842.
teemingc
left a comment
There was a problem hiding this comment.
Nice! I think the longest one takes 7 mins now. Don't love the job names but I'm not sure how to improve them yet.
I have a hunch that there are several things we can be doing to improve the time it takes to run CI. I asked an agent to find the lowest-hanging fruit and this is what it came up with — mostly enabling more parallelism, though it did also remove Node 22 from the e2e test matrix, which is possibly dangerous. Let's see how much this buys us