Repository navigation
ci(viewer): the viewer's browser tests are part of CI passed, in three balanced legs on a faster WASM build (#1394, #1374) - #1395
Merged
Conversation
DrunkOnJava
marked this pull request as ready for review
November 4, 2026 22:06
…easurement leaves CI passed for Deploy viewer, and the toggle test stays in the suite (#1394)
DrunkOnJava
enabled auto-merge (squash)
November 5, 2026 00:12
…th GitHub's self-repository syntax, as zizmor asks (#1394)
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
The viewer's Playwright suite becomes part of
CI passed:viewer-test.ymlis a reusable workflow thatci.ymlcalls as itsviewerjob in the full set, listed inci-ok'sneeds. A pull request cannot merge before the suite has passed on its head. Deploy viewer loses itspull_requesttrigger; on a push to main it builds and publishes the site and runs the suite and the saved-mesh measurement again on the release WASM it publishes, and its deploy job waits for both and forCI passed.Motivation
Pull requests merge on
full / CI passedalone, and the suite ran in Deploy viewer's pull-request run, whichCI passeddoes not wait for. #1370 merged before that run had finished (skipped as a draft, then cancelled by a later push), and Deploy viewer went red on main (#1374). The maintainer'sarm.shchecks the viewer run only when a PR is armed, so a PR updated with main after arming could still merge before the viewer tests reran. Issue: #1394.Changes
.github/workflows/viewer-test.yml(new): the former Deploy viewerbuildjob, withworkflow_callandworkflow_dispatch(a draft's viewer can still be checked by hand). Permissions:contents: read. Every action keeps its pinned SHA. The legs are a JSON input: ci.yml runs three, groups of spec files packed by length (--shardcuts in file order and put four 30-second Core Interior tests in one shard), and a first step that fails when a spec file is in no leg. The failure report artifact is nowplaywright-report-<leg>(three legs cannot share a name; nothing reads it by name);viewer-saved-meshes-measurementis unchanged.ci.yml: jobviewer, in the full set only, withviewer-pathsbefore it, which skips the viewer for a pull request that changes nothing but documentation (the file list Deploy viewer's deploy step already uses, exceptdocs/viewer-demos.jsonanddocs/support-matrix.json, which the viewer is built from; an answer the API does not give runs the tests). Both are inci-ok'sneeds; a skipped job passes. It passesrelease_wasm: false.CI passedtests a different build from the one published. Deploy viewer therefore runs the suite and the measurement again on the release build before it deploys.release_wasm: trueinci.yml(one line) tests the release build in CI, at about 1 to 2 minutes more per leg (150 to 225 s of build against 82 to 126 s).CI passedfor Deploy viewer. Its only gating assertion on the toggle, on Core Interior, stays in the suite (saved-meshes-measure.spec.tsruns its toggle test in the suite and its per-model sweep only withRVT_VIEWER_MEASURE=1); the per-model sweep (Core Interior, Einhoven, RE1 x 4, each on and off) is now post-merge only.--with-deps: its apt step added fonts only, and the mirror stalled on them for four minutes in two of three legs of one run.RVT_VIEWER_FULLY_PARALLEL=1(CI only) lets Playwright run tests of a file in parallel. gen-fixture is built beside the WASM, and the four RE1 models are cached on their pinned commit.deploy-viewer.yml: nopull_requesttrigger; jobsbuild,tests,measure;deployneeds all three.RELEASE.md,CONTRIBUTING.md,docs/maintaining.md,docs/library.md,viewer/README.md;changelog.d/changed/1394-viewer-tests-in-ci-passed.md.Testing
Unit tests are banned in this repository; this is a workflow change, verified by running it.
ruby -ryaml) on the four workflow files;actionlintreports the same 18 findings as on main, none new; file modes unchanged (the new file is 0644)python3 tools/release/changelog.py checkandtools/ci/api-doc-ids.pypassviewer-pathsandviewerjobs in them. Deploy viewer dispatched on the branch (runs 41925472744, 41933471380, 41937570817):build,testsandmeasurepass anddeployis skipped, as it is off main.Timing
Before this change a full CI run took 7.2 minutes (median of 11 recent runs, 5.9 to 9.2, first job start to last job end) and its longest job 6.7 (5.7 to 9.1). The viewer's job in Deploy viewer took 11.8 to 20.5 minutes (median 16.5, 12 runs): WASM build 230 s, demos 71 s, suite 377 s, measurement 218 s. Run to run, one runner's speed varies by a factor of two (the same Core Interior test took 26 s and 66 s).
This pull request, full CI, first job start to last job end, and its viewer legs (minutes):
The last two runs are the final workflow. In one the longest job was the Python wheel (6.5) and the viewer's longest leg 4.7; in the other the viewer's longest leg ran 6.3 minutes, starting 0.9 after the first job, and ended 0.9 after the longest other job (Python wheel, 5.7). So the viewer adds between 0 and about 1 minute to a full run, inside the variation between runs. What holds the legs now is the build every leg repeats (82 to 126 s) and the tests (106 to 180 s), whose longest single test is the 114-second toggle; the rest is runner speed and a queue of up to a minute and a half before a leg starts.
Audit-honesty checklist
changelog.d/changed/Breaking changes
None. The required check is still
full / CI passed. Deploy viewer's pull-request run no longer exists; nothing requires it by name.Related issues
Closes #1394. Refs #1374.