Skip to content

fix: build the server bench's pages with the packages the browser bench uses - #5918

Merged
leaf-agent merged 1 commit into
mainfrom
fix/server-bench-packages
Nov 13, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/server-bench-packages

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The scheduled bench job has failed since #5864 (run 43204020539): leaf-dev bench's server read stopped at server_paths.build with AssertionError: <lf-diff> (line 1): unknown widget — not in the page's registry, after the browser tables but before any server table. #5864 put an lf-diff patch above every page built on ask_sections (asks, asks-marked, widgets, events, revisions). The browser bench builds those pages with the example catalog's layer (page_fixtures.source_packages falls back to examples/layer.json, which selects diff), but server_paths.build called cmd_init with no packages. It now selects that same layer, so both reads measure the same page.

Verified on current main: building asks at size 8 raises the same assertion before the change. After it, asks, revisions and threads build, and uv run leaf-dev bench asks widgets --read server --sizes 16,32 --rounds 1 completes with every server path read. Server readings for every collection now include activating and checking against the full example layer, so the first daily run after this may shift their fixed cost.

Refs #4225 — automated triage

…ch uses

#5864 put an `lf-diff` patch above every page built on `ask_sections`. The
browser bench builds those pages with the example catalog's layer
(`page_fixtures.source_packages`), which selects `diff`, but the server
bench's `server_paths.build` initialized them with no packages, so activating
the first version refused `<lf-diff>` as an unknown widget and the scheduled
`bench` job exited before its server tables. The server bench now selects the
same layer, so both reads measure the same page.

Refs #4225
@leaf-agent
leaf-agent merged commit 13af19e into main Nov 13, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/server-bench-packages branch November 13, 2026 08:28
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.

1 participant