Repository navigation
Give the docs site's test run the kit's browser debug lines - #290
Merged
Merged
Conversation
The docs site's run now starts through BrowserSessionStages.runAsync, as the kit's parts do, so its log holds the Playwright provider's and the orchestrator socket's lines on each browser session, and a stalled run shows how far each session got. Agent: DEV2 (developer) Agent-Model: Anthropic Opus 5.5, Medium
Agent: DEV2 (developer) Agent-Model: Anthropic Opus 5.5, Medium
rostislavrotaru
commented
Nov 30, 2026
OrchestratorLine replaces BrowserSessionStages' table of pattern and event pairs, and the test's provider, api and reportOf helpers become DebugLines' members. Agent: DEV2 (developer) Agent-Model: Anthropic Opus 5.5, Medium
rostislavrotaru
commented
Nov 30, 2026
rostislavrotaru
left a comment
Contributor
Author
There was a problem hiding this comment.
Reviewed: #290 at a135f2a
Verdict: Approve
Findings: 0 Should fix, 0 Low, as line comments
Why it's right: the docs site's test run now carries the kit's browser debug lines, so a stalled test shows where it stalled; the review round's line table is a named class, and the last head only merges main, with CI green on every target.
Agent: LEAD (lead)
Agent-Model: Anthropic Opus 5.5, High
This was referenced Nov 30, 2026
rostislavrotaru
added a commit
that referenced
this pull request
Nov 30, 2026
Issue: #283 The timing check now judges the times `npm test` just recorded, using the limit factor `NOLDOVA_TIMING_LIMIT_FACTOR` gives. It no longer runs the suite three more times. CI doesn't run it yet. With the shared workflow's `test-times` on, this PR's first run failed with 8 files over factor 2: that step judges the one coverage run's single sample per test, up to about twice the trial's no-coverage medians, and the set of files over moves between runs. [noldova-com/.github#75](noldova-com/.github#75) asks the shared workflow to time a run without coverage, or several. So `test-times` stays off here, and #283's box for it stays open. ## What Paths are under `src/noldova.ui.components.angular/`. **Recorded times** - `scripts/angular/test-times.ts` (new, `TestTimes`) keeps each Angular test builder run's JSON report in `_build/test-times/<project>`. Each test run empties that folder first. - A docs run that skips its tests writes a note saying why instead. - `scripts/test.ts` keeps each kit run's report. - `../noldova.ui.components.angular.docs/scripts/test-docs.ts` keeps the docs run's report, or writes the skip note when the run is separate, off-platform or filtered. **The check** - `scripts/angular/angular-test-timing.ts` reads `NOLDOVA_TIMING_LIMIT_FACTOR` (1 when unset; a value that isn't a number of 1 or more fails) in place of its 20% margin. A file fails only over the factor times its budget. - `scripts/angular/angular-timing-script.ts` no longer runs any spec. It judges the kept reports and fails when there are none, unless the docs skip note explains why. - It refuses spec file names. - The self-check cases follow the factor, and a case checks how the factor is read. - The part and isolated-run cases go, with `scripts/angular/timing-part-case.ts`. - `scripts/angular/kept-report.ts` (new, `KeptReport`) names a kept report and its order; `TestTimes` sorts the reports through it. - No spec file gets a longer budget: TESTING.md lets a maintainer accept only a unit test file. - `.github/workflows/build-and-test.yml` is unchanged: `test-times` stays off. noldova-com/.github#75 is released in v2.60.0, and turning it on is a PR of its own. **The five other files over twice their budget** These are from the hosted trial in #283. - `tests/app/components/button/button-disabled-look.component.spec.ts` and `tests/app/components/icon-button/icon-button-disabled-look.component.spec.ts`: one capture of every look's pieces through `ScreenshotFixture.piecesAsync`, then one of the focused labels or glyphs. Before, each look took four captures. - `tests/app/models/markdown-math-scan.spec.ts` and `tests/app/models/markdown-text-references-scan.spec.ts`: inputs of 20,000 characters, not 100,000. A scan that grows with the square of the length still reads thousands of times per character at that size, far over the check's 4. - `tests/app/components/message/message-popover.spec.ts`: finishes each fade through the transition's `finish()` and reads the opacity it ends at, rather than waiting the 120 ms out. **The gallery feed specs** They stay over twice the budget, so #283's box for main passing the check stays open, and #296 follows them. Times are per test from a filtered run, without coverage, on a Linux test machine: - `tests/app/components/gallery/gallery-feed.component.spec.ts`: 479 ms, now 208 ms. It renders stand-ins for the feed's message and virtual feed sections, which their own specs render, and checks the feed's order and edges: the virtual feed right under the states and as wide as the chips' specimen. - `tests/app/components/gallery/gallery-virtual-feed.component.spec.ts`: median 287 ms, now 237 ms. Its lists render 6rem tall, a few rows each, and its first test now checks that the specimen fills the component's box. - What stays is each settle's two passes of two frames, about 66 ms, and the first test's warm-up, about 135 ms. **README**: the test line and Time per file follow the code, and say why CI doesn't run the check yet. The gallery rows now point to #296 rather than #211, a merged footer PR; the feed's row in the list of tests over 1 second goes, since it renders neither section. ## Checks On Linux, Mac and Windows test machines, I ran the five changed spec files with `npm test -- <names>`, then `npm run test:timing` with the factor at 2. - The tests passed everywhere, and the self-check held. - On Linux, all five were within twice the budget. - On the Windows test machine, which is slower than the hosted runner, three were over it: the two disabled looks (414 and 500 ms) and the math scan (262 ms). At 2cf6da1, on Linux, Mac and Windows test machines, I ran the two gallery specs, then `button-disabled-look`, then `npm run test:timing` with the factor at 2. Everything passed, and the self-check held. After merging main with #290 (fad3a44), the docs run keeps #290's debug lines and keeps its times only when it didn't fail. On the test machines, `npm test -- browser-session-stages button-disabled-look` and the timing check at factor 2 ran, with `npm run test:docs` on Linux. Every test passed and the self-check held. The check named only files already known to be over: on Linux, the docs site's `docs-on-this-page` (274 ms) and `docs-search` (215 ms); on the Windows test machine, the two disabled looks (276 and 284 ms). ## Not checked - The timing check in CI, which stays off until a PR turns on `test-times` with the v2.60.0 pin. Once it is on, the docs tests run in the Separate test job, so the Linux x64 job's check only prints the docs skip note. - I haven't checked the smaller scan inputs against the scan before #50. Agent: DEV2 (developer) Agent-Model: Anthropic Opus 5.5, Medium
Merged
rostislavrotaru
added a commit
that referenced
this pull request
Dec 1, 2026
Closes #286 Moves the kit to 0.0.48, with what has merged since 0.0.47, so apps can take the binary file note and the path tooltip from #282, and the tab marker's tone, close place and dot from #299. ## What changes - `version.json` is at 0.0.48. - `CHANGELOG.md` has the 0.0.48 section, one entry per change a consumer or docs-site reader sees, from #303 (#299), #291 (#280), #281 (#275), #285 (#282), #263 (#151), #250 (#245), #262 (#138, #223), #260 (#16), #248 (#233), #258 (#18), #268 (#28), #255 (#234), #254 (#239), #256 (#236), #253 (#238), #252 (#160), #249 (#244), #242 (#231), #269 (#261) and #259 (#26). - Left out, as changing nothing the package or the docs site shows: #251 (the header's phone-bar rules written once, the same look), #247 (workflow pins), #264 and #277 (build scripts), #266 (example names and their check), #267, #271, #272, #273, #274, #276, #289 and #290 (tests and their tools), #279 and #295 (workflow pins). ## Checks No test covers these two files. The product names check reads the new section in CI; it names no product. Agent: DEV2 (developer) Agent-Model: Anthropic Opus 5.5, Medium
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.
Issue: #270
The docs site's test run now writes the same browser debug lines as the kit's runs. A stalled docs run's log then shows how far each browser session got, and the last events of its Playwright provider and orchestrator socket.
Cause
In #267's stalled run, the docs-shell spec went silent after one test. The next test never reported, and its 30-second limit never fired. That leaves two causes: a renderer crash, or a page whose main thread stayed busy.
A crash is ruled out. Vitest 5.0.5's Playwright provider listens for the page's
crashevent and fails the session at once, with "The chromium page crashed while running tests" (@vitest/browser-playwright,openBrowserPage). The stalled run never failed that way.Until a next stall proves otherwise, the cause is a busy main thread. #276's watchdog already names such a page: in CI, where the page's debugger isn't turned on early, as unread.
What the docs run lacked was the provider's and the socket's lines, which the kit's runs have had since #143. This change gives the docs run those lines.
What
Paths are under
src/.noldova.ui.components.angular/scripts/angular/browser-session-stages.ts: newBrowserSessionStages.runAsync.DEBUGnamingvitest:browser:playwrightandvitest:browser:api, added to anyDEBUGalready set.noldova.ui.components.angular/scripts/test.ts: the kit's parts start throughrunAsync, in place of their own copy of the same environment and reader.noldova.ui.components.angular.docs/scripts/test-docs.ts: the docs site's run starts throughrunAsynctoo, and prints the stages' report.noldova.ui.components.angular/tests/node/browser-session-stages.test.ts: a new test runs a stand-in process throughrunAsync.DEBUGholds both the environment's value and the namespaces; the test checks the exit code and the stages report read from its lines.runAsyncdoesn't exist there, and fails again if the namespaces aren't added.README.md: the debug-lines paragraph names the docs run.Checks
npm test -- browser-session-stagespasses, 9 of 9.npm run test:docspasses, 20 spec files. Its log now holds 32vitest:browser:lines.Not checked
Agent: DEV2 (developer)
Agent-Model: Anthropic Opus 5.5, Medium