Repository navigation
Run the site check in fewer browsers, with cases in parallel - #1097
Open
beetlebugorg wants to merge 2 commits into
Open
beetlebugorg wants to merge 2 commits into
beetlebugorg wants to merge 2 commits into
Conversation
tests/site.sh started a new Chrome for each page of tests/browser.mjs, 23 in all, and ran them one at a time. The new tests/browser-pool.mjs runs those cases in one browser for each set of flags, each case in a new browser context, with SITE_JOBS cases at the same time (the count of CPUs by default). A case that passes its limit ends alone, and the browser stays up. The checks then read the file of each case in a fixed order, so the log keeps its order. The fonts pass of tests/pages.mjs opens SITE_JOBS pages at the same time, each in a browser context of its own, and prints the lines in the order of the paths. tests/touch.mjs, the longest test, runs in the background beside the other tests, and its lines come at its place. Refs #1087
This branch has not been deployed
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
tests/browser-pool.mjsruns the 23 pages thattests/site.shgave totests/browser.mjs: the observe panel at 3 viewports, the posters in 2 schemes, and the 18 cases of the size check.Target.createBrowserContext) and a target with its window size and viewport.SITE_JOBScases run at the same time. The default is the count of CPUs.tests/pages.mjs(820 pages) opensSITE_JOBSpages at the same time, each in a browser context of its own. It prints the lines in the order of the paths.tests/touch.mjs, the longest test (about 675 s), runs in the background beside the other tests. Its lines come at its old place in the log.tests/flicker.mjsmeasures frames on a slow network, so it stays one page at a time.tests/web.shandtests/docs-live.shdo not change.Refs #1087
Tests
Measured on 2026-12-04, on the Linux cloud box with 4 CPUs, Node 24, and google-chrome, with
tests/site.shafterzig build wasm:oklinesfitline gave "0 examples show their whole window". On this branch it gives 36. The fit pass now opens its tab in a new browser context. This run did not show why main got 0.