Repository navigation
Conversation
The demo at sqlbuild.com/demo had broken pages: Runs threw, Jobs, Locations and Connections could not load, Providers, some runs and every plan had no recording, and theme.js was a 404 under /demo. scripts/record-demo-duckshop.mjs records it again: it builds the DuckDB copy of DuckShop with the demo's jobs, nightly_job_group and a sensor, runs the group twice on sqb dev (the second time with a failing audit), opens every page, plan section and group member, and records the reads. record-demo.mjs now renumbers ids, moves times to a fixed moment and keeps a read asked at several times once, so two recordings differ only in run timings, and its --compare mode prints every other difference. app.html loads theme.js from the app's base path.
Contributor
Author
|
Superseded by #1990 (the branch was renamed to fix the branch-name check). |
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 click-through demo at sqlbuild.com/demo has broken pages. Runs throws. Jobs, Locations and Connections show "Couldn't load". Providers and six run pages have no recording. Plan pages show no plan, and every page gets a 404 for
/theme.js. This records the demo again from the public DuckShop project, in one command, and fixes the theme script.What changes
node scripts/record-demo-duckshop.mjs. It writes the DuckDB copy of DuckShop, adds the demo's orchestration fromui/demo/project/, serves it withsqb devand runsnightly_job_grouptwice. The second run has a failinguniqueaudit, so one member fails and the marts are blocked. The script then opens every page, with each plan section, "Show more" page, diff and group member, and records what the pages read.nightly_job_groupruns staging, then intermediate, then marts. It sits beside three jobs and a sensor.recordedAtis fixed. A read asked at several times is kept once. Run timings stay real.node scripts/record-demo.mjs --compare <old> <new>hides timings (times, durations, event counters, which number each id got, how often a page re-read the same thing) and prints every other difference.app.htmlloadstheme.jsfrom the app's base path (%sveltekit.assets%), so the demo under/demofinds it. The default build is unchanged.Evidence
Two recordings made one after the other, compared both ways:
The recording in this PR was made after the sensor file was formatted with ruff. Against the first of those two recordings, it differs only in the sensor's code hash and definition fingerprint (2 differences).
Compared with today's recording there are 152 differences, which is expected for a new project, new jobs and new runs:
staging_refresh,nightly_alland others becomestaging_job,nightly_job_groupand others).Full compare output against today's recording (lines cut at 220 characters)
Every page of the built demo opens cleanly, including every plan with each section, "Show more" page, diff and group member: 49 of 49 pages. Against today's recording, 0 of 47 pages load cleanly. A check that runs this on UI pull requests follows in a separate pull request.