Skip to content

Graph harness: a scenario-sized MCP fixture, arrowheads per scenario, and a stage-filled block tray - #285

Merged
agorischek merged 2 commits into
mainfrom
harness-large-graph-checks
Dec 3, 2026
Merged

agorischek merged 2 commits into
mainfrom
harness-large-graph-checks

Conversation

@agorischek

@agorischek agorischek commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 92175be50070aa9426532e1a6e3278b382f0b1c3

Dimension Assessment Rationale
Change confidence 8/10 ↑ Locally the graph/mcp-tools checks take 43 s instead of 82 s, and 69 s instead of 214 s at 4× CPU throttling, and pass in chromium-desktop, chromium-mobile and webkit-desktop.
↑ The built-in checks pass for every graph scenario in all three projects; the graph browser suites (60) and the split arrowheads spec (96 in each of chromium-desktop and webkit-desktop) pass.
↑ CI passes on this revision in three full runs: every Linux harness shard, including chromium-desktop 3/3, which failed on the last two merges, passed all three times.
↑ Copilot review found no issues.
↓ One macOS WebKit shard failed once, in the third run, on a runtime-policy comparator Wasm trap outside these tests, and passed on rerun.
Diagnosis confidence 8.5/10 ↑ Profiling the checks run shows 29 s of 48 s of main-thread work in graph routing, repeated across 51 frame loads of a 185-card comparison.
↑ Every mcp-tools check timeout on CI (4 on chromium-desktop, 1 on chromium-mobile) and both WebKit arrowheads timeouts came after the scenario was added.
↓ CI runners' exact slowdown isn't measured; 4× throttling only approximates it.
Evidence fit 8/10 ↑ The failing tests are exactly the ones that lay out this scenario many times in one test budget.
↓ The separate macOS WebKit gallery failure isn't addressed here: its page hangs at "Starting the shared engine…", and it also fails on branches without the graph changes.

What changed

Main's CI has been red since #272 added the graph/mcp-tools scenario: its built-in renderer checks time out at 360 s on chromium (run 46965714707), and the WebKit arrowheads test for the graph renderer has timed out on PRs too.

Why it was slow. The checks load a scenario about 51 times, and each load lays out the whole comparison in a fresh frame. At 185 cards, mcp-tools was nearly four times the largest other graph scenario (48 cards). Profiling one checks run, 29 s of its 48 s of main-thread work was graph routing. Locally that's 82 s, and 214 s at 4× CPU throttling (against 59 s for service-platform). A CI runner shared by four workers is slower still. The arrowheads test looped over every graph scenario inside one budget, so the large one pushed the whole loop over.

  • A scenario-sized fixture. graph/mcp-tools now shows the arrival among eight of the server's toolsets (54 cards after, 42 before). It still has the 11 added tools fanning into repo beside unchanged tools, plus a second block (notifications). make-mcp-tools.mjs also writes the whole inventory (mcp-tools-full-*.json, 185 cards) for the kit's Node layout performance test, which now reads it. The module graph fixtures already note the same limit for hub-heavy.
  • Arrowheads per scenario. arrowheads.spec.ts has one test per scenario, as gallery.spec.ts does, so each gets its own budget. A scenario that measures no arrowheads must draw none.
  • The block tray is filled with the stage. With the smaller scenario, a block sits at the side of the fitted view, and stage-surface failed: the tray's inset fill read as a lighter page. Any graph with a block at its side would fail the same way. The tray now uses the stage colour and reads by its border and by hiding the dot grid.

Not changed: the macOS WebKit gallery failure (run 46952875018, graph/terraform-database-replacement). Its error context shows the workbench stuck at "Starting the shared engine…", the Inspector's Wasm engine startup, before any renderer runs. The same failure hit graph/npm-react-update, runtime-policy/token-guard and dependency-injection/spring-orders on branches without the graph changes. Locally, 20 repeats of that test and 3 repeats of every graph gallery test (119 runs, 3 workers, webkit-desktop) all pass. It's a pre-existing Inspector startup flake, left for a follow-up.

Evidence

  • tools check --fast; kit and graph unit tests.

  • Built-in checks for every graph/* scenario: chromium-desktop, chromium-mobile, webkit-desktop (11 each).

  • Graph browser suites (60) and arrowheads.spec.ts (96) on chromium-desktop; arrowheads.spec.ts (96) on webkit-desktop.

  • Screenshots of the trimmed scenario in light, dark and the All scope reviewed.

  • Documentation that this change affects is updated.

  • Fixes include a regression test.

  • No credentials, private source or machine-specific paths are included.

agorischek and others added 2 commits December 2, 2026 15:11
… and the block tray filled with the stage

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the graph harness, fixture, and block-tray updates.

No open issues 🎉

What changed in this PR

This PR reduces graph harness timeout pressure following #272 while preserving full-inventory layout performance coverage. It also aligns graph block trays with the stage background.

Changes:

  • Shrinks the browser MCP scenario while generating full-size fixtures for performance tests.
  • Gives each arrowhead scenario its own test budget and checks unmeasured arrowheads.
  • Uses the stage colour for block trays and updates related documentation.
File Description
packages/​renderers/​kit/​test/​performance.test.mjs Uses the full-inventory performance fixture.
packages/​renderers/​kit/​styles/​graph.css Fills block trays with the stage colour.
packages/​renderers/​harness/​browser/​arrowheads.spec.ts Splits tests by scenario and checks empty measurements.
packages/​renderers/​graph/​scenarios.json Describes the smaller MCP scenario.
packages/​renderers/​graph/​fixtures/​mcp-tools-before.json Reduces the baseline to eight toolsets.
packages/​renderers/​graph/​fixtures/​mcp-tools-after.json Retains the 11-tool arrival within the smaller graph.
packages/​renderers/​graph/​fixtures/​make-mcp-tools.mjs Generates scenario-sized and full-inventory fixtures.
docs/​guides/​renderer-kit-graphs.md Removes the outdated inset-tray description.
changelog.d/​285.md Documents the block-tray colour fix.

Review effort: Balanced

@agorischek
agorischek merged commit 217f1e6 into main Dec 3, 2026
181 of 183 checks passed
@agorischek
agorischek deleted the harness-large-graph-checks branch December 3, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants