Repository navigation
fix: build the server bench's pages with the packages the browser bench uses - #5918
Merged
Merged
Conversation
…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
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.
The scheduled
benchjob has failed since #5864 (run 43204020539):leaf-dev bench's server read stopped atserver_paths.buildwithAssertionError: <lf-diff> (line 1): unknown widget — not in the page's registry, after the browser tables but before any server table. #5864 put anlf-diffpatch above every page built onask_sections(asks,asks-marked,widgets,events,revisions). The browser bench builds those pages with the example catalog's layer (page_fixtures.source_packagesfalls back toexamples/layer.json, which selectsdiff), butserver_paths.buildcalledcmd_initwith no packages. It now selects that same layer, so both reads measure the same page.Verified on current main: building
asksat size 8 raises the same assertion before the change. After it,asks,revisionsandthreadsbuild, anduv run leaf-dev bench asks widgets --read server --sizes 16,32 --rounds 1completes 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