Repository navigation
Graph harness: a scenario-sized MCP fixture, arrowheads per scenario, and a stage-filled block tray - #285
Merged
Conversation
… 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>
There was a problem hiding this comment.
🟢 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
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
92175be50070aa9426532e1a6e3278b382f0b1c3graph/mcp-toolschecks 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.
↑ Every
mcp-toolscheck 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.
↓ 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-toolsscenario: 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-toolswas 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 forservice-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.graph/mcp-toolsnow shows the arrival among eight of the server's toolsets (54 cards after, 42 before). It still has the 11 added tools fanning intorepobeside unchanged tools, plus a second block (notifications).make-mcp-tools.mjsalso 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 forhub-heavy.arrowheads.spec.tshas one test per scenario, asgallery.spec.tsdoes, so each gets its own budget. A scenario that measures no arrowheads must draw none.stage-surfacefailed: 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 hitgraph/npm-react-update,runtime-policy/token-guardanddependency-injection/spring-orderson 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.