Skip to content

fix(ui): record the demo again from DuckShop, in one command - #1989

Closed
kvlonge wants to merge 1 commit into
mainfrom
demo-rerecord
Closed

kvlonge wants to merge 1 commit into
mainfrom
demo-rerecord

Conversation

@kvlonge

@kvlonge kvlonge commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

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

  • One command re-records the demo: node scripts/record-demo-duckshop.mjs. It writes the DuckDB copy of DuckShop, adds the demo's orchestration from ui/demo/project/, serves it with sqb dev and runs nightly_job_group twice. The second run has a failing unique audit, 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.
  • The demo now has a job group: nightly_job_group runs staging, then intermediate, then marts. It sits beside three jobs and a sensor.
  • The recording no longer depends on when or where it was made. Server-made ids are renumbered in the order they first appear. Times move so the recording ends at a fixed moment. recordedAt is fixed. A read asked at several times is kept once. Run timings stay real.
  • Re-records can be reviewed: 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.html loads theme.js from the app's base path (%sveltekit.assets%), so the demo under /demo finds it. The default build is unchanged.

Evidence

Two recordings made one after the other, compared both ways:

$ node scripts/record-demo.mjs --compare /tmp/rec7.json.gz /tmp/rec8.json.gz
0 differences apart from timings.

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:

  • The jobs are renamed (staging_refresh, nightly_all and others become staging_job, nightly_job_group and others).
  • Plans hold every section page.
  • The failing and warning checks have pages.
  • Node pages include cost reads.
  • The runs, statements and events are those of the new runs.
Full compare output against today's recording (lines cut at 220 characters)
~ GET /api/admin/locations/<id>/targets/dev/roles null
    was: es":[],"permissions":["view","job.run","run.cancel","run.rerun","trigger.toggle"],"matched":{}}],"holders":0},{"key":"developer","builtin":true,"description":null,"grants":[{"nodes":[],"permissions":["view","vie
    now: es":[],"permissions":["view","job.run","run.cancel","run.rerun","trigger.toggle","location.republish"],"matched":{}}],"holders":0},{"key":"developer","builtin":true,"description":null,"grants":[{"nodes":[],"perm
~ GET /api/admin/server null
    was: {"version":"0.216.0","login_mode":"disabled","scheduler":true,"installation":{"storage":"sqlite","installed_at":"<time>","schema_checksum":"c0a5fdd0c114399fb6a344f64815a98bc8
    now: {"version":"0.309.0","login_mode":"disabled","scheduler":true,"installation":{"storage":"sqlite","installed_at":"<time>","schema_checksum":"33bb4d8fd1f7dfcac0ca0bb3e9820c35c8
~ GET /api/control/bootstrap null
    was: run.cancel","run.rerun","run.rewrite_history","run.prioritise","run.warehouse","trigger.toggle","sensor.reset_cursor","run.adhoc","connection.test","user.manage","role.assign","audit.view"],"locations":[{"locati
    now: run.cancel","run.rerun","run.rewrite_history","run.prioritise","run.warehouse","run.vars","run.load","run.clone","run.janitor","trigger.toggle","sensor.reset_cursor","run.adhoc","connection.test","location.repub
~ GET /api/control/locations/<id>/targets/dev/checks null
    was: m_samples":null,"evidence_count":0,"evidence_truncated":"false","reused":"false"},{"event_id":"<id>","binding_key":"0639a3a51d96060f5f3fc0b76f0ba7eea6db8bfb2973879dd39328c6ac844de8","audit_name":"accepted_values
    now: m_samples":null,"evidence_count":0,"evidence_truncated":"false","reused":"false","ignored":false},{"event_id":"<id>","binding_key":"0639a3a51d96060f5f3fc0b76f0ba7eea6db8bfb2973879dd39328c6ac844de8","audit_name":
- GET /api/control/locations/<id>/targets/dev/checks/04cea1aa0aee0a5d599801a856becef9b6c5886ecb36949e5953f89920a6d8a5 null
- GET /api/control/locations/<id>/targets/dev/column-lineage?node_key=model%3Adim_carriers null
~ GET /api/control/locations/<id>/targets/dev/health null
    was: [{"received_at":"<time>","report":{"event_id":"<id>","session_id":"<id>","target":"dev","health":{"kind":"heartbeat"}}},{"received_at":"<time>","report":{"event
    now: {"state":"healthy","verdict":{"fact":"healthy","tier":null},"warehouse_sync":{"requested":null,"running":null,"failing":false}}
~ GET /api/control/locations/<id>/targets/dev/jobs null
    was: [{"job_key":"intermediate_build","kind":"job","description":"Rebuild intermediate models.","selection":["model:int_affiliate_commissions_usd","model:int_agent_utilisation","model:int_app
    now: [{"job_key":"intermediate_job","kind":"job","description":"Rebuild the intermediate models","selection":["model:int_affiliate_commissions_usd","model:int_agent_utilisation","model:int_ap
- GET /api/control/locations/<id>/targets/dev/jobs/intermediate_build null
- GET /api/control/locations/<id>/targets/dev/jobs/marts_build null
- GET /api/control/locations/<id>/targets/dev/jobs/nightly_all null
- GET /api/control/locations/<id>/targets/dev/jobs/staging_refresh null
- GET /api/control/locations/<id>/targets/dev/node-status?node_key=model%3Adim_carriers null
~ GET /api/control/locations/<id>/targets/dev/node-status?node_key=model%3Adim_customers null
    was: fa7ec0c7e148223b6baabf67aa42f747789ed8cf153a1fe02a9352634da6c","version_hash":"c611884437348b0a25fed353b7c4351d542fa2adb6e1f0a91840f3149096ccf6","schema_fingerprint":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b
    now: fa7ec0c7e148223b6baabf67aa42f747789ed8cf153a1fe02a9352634da6c","version_hash":"ce7f2fbf93192bce823415e0ff6bb5f04e30af36b96ed33b3dd3049d938e3e98","schema_fingerprint":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b
~ GET /api/control/locations/<id>/targets/dev/node-status?node_key=model%3Afct_orders null
    was: 464c9109e7fbb1a2babf45b41308a2e4f31c8a2da9b13c6a06aedad89f0ebd","version_hash":"ffbb23a1348e8d6c6f713ebc945dc1fea430602b62af962f150a94ee11ad2974","schema_fingerprint":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649
    now: 464c9109e7fbb1a2babf45b41308a2e4f31c8a2da9b13c6a06aedad89f0ebd","version_hash":"4d6b256cbaef4b8a2e98e197658f6167e2916fc0589483d43325dec336043f05","schema_fingerprint":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649
~ GET /api/control/locations/<id>/targets/dev/nodes null
    was: n_count":null,"last_build":null,"last_outcome":null,"definition_changed":false,"snapshot_id":"<id>"},{"node_key":"audit:accepted_values:model:fct_orders:order_status","kind":"audit","name":"accepted_values","pat
    now: n_count":null,"last_build":null,"last_outcome":null,"definition_changed":false,"checks":{"total":0,"passing":0,"warning":0,"failing":0},"snapshot_id":"<id>"},{"node_key":"audit:accepted_values:model:fct_orders:o
- GET /api/control/locations/<id>/targets/dev/nodes/model%3Adim_carriers/runs?limit=100 null
- GET /api/control/locations/<id>/targets/dev/nodes/model%3Adim_carriers/sql null
~ GET /api/control/locations/<id>/targets/dev/nodes/model%3Adim_customers/runs?limit=100 null
    was: [{"run_id":"<id>","job_key":"marts_build","queued_at":"<time>","status":"success","started_at":"<time>","ended_at":"<time>","rows_affected":null,"error_code":null,"skipped_because_of":null},{"run
    now: [{"run_id":"<id>","job_key":"marts_job","queued_at":"<time>","status":"skipped","started_at":null,"ended_at":"<time>","rows_affected":null,"error_code":null,"skipped_because_of":"model:int_orders
~ GET /api/control/locations/<id>/targets/dev/nodes/model%3Afct_orders/runs?limit=100 null
    was: [{"run_id":"<id>","job_key":"marts_build","queued_at":"<time>","status":"success","started_at":"<time>","ended_at":"<time>","rows_affected":null,"error_code":null,"skipped_because_of":null},{"run
    now: [{"run_id":"<id>","job_key":"marts_job","queued_at":"<time>","status":"skipped","started_at":null,"ended_at":"<time>","rows_affected":null,"error_code":null,"skipped_because_of":"model:int_orders
~ GET /api/control/locations/<id>/targets/dev/nodes/model%3Astg_orders/runs?limit=100 null
    was: [{"run_id":"<id>","job_key":"nightly_all","queued_at":"<time>","status":"success","started_at":null,"ended_at":"<time>","rows_affected":null,"error_code":null,"skipped_because_of":null},{"r
    now: [{"run_id":"<id>","job_key":"staging_job","queued_at":"<time>","status":"success","started_at":"<time>","ended_at":"<time>","rows_affected":null,"error_code":null,"skipped_because_of":null}
- POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build","--select","tag:marts"]}
- POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build","--select","fct_orders+"]}
- POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build"]}
- POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build","--select","job:intermediate_build"]}
- POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build","--select","job:staging_refresh"]}
- POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build","--select","job:nightly_all"]}
- POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build","--select","job:marts_build"]}
- GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=functions&offset=0&limit=1000 null
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=functions&offset=0&limit=50 null
    was: {"total":2,"section_total":2,"rows":[{"name":"udf__sku_family","relative_path":"functions/sql/udf__sku_family.sql","language":"sql","return_kind":"scalar","returns":"VARCHAR","return_columns":[],"qualified_name"
    now: {"total":2,"section_total":2,"rows":[{"name":"udf__sku_family","relative_path":"sql/functions/sql/udf__sku_family.sql","language":"sql","return_kind":"scalar","returns":"VARCHAR","return_columns":[],"qualified_n
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=functions&offset=0&limit=50 null
    was: ,"section_total":3,"rows":[{"name":"table_fn__customer_orders","relative_path":"functions/sql/table_fn__customer_orders.sql","language":"sql","return_kind":"table","returns":"TABLE","return_columns":[{"name":"or
    now: ,"section_total":3,"rows":[{"name":"table_fn__customer_orders","relative_path":"sql/functions/sql/table_fn__customer_orders.sql","language":"sql","return_kind":"table","returns":"TABLE","return_columns":[{"name"
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=functions&offset=0&limit=50 null
    was: ,"section_total":3,"rows":[{"name":"table_fn__customer_orders","relative_path":"functions/sql/table_fn__customer_orders.sql","language":"sql","return_kind":"table","returns":"TABLE","return_columns":[{"name":"or
    now: ,"section_total":3,"rows":[{"name":"table_fn__customer_orders","relative_path":"sql/functions/sql/table_fn__customer_orders.sql","language":"sql","return_kind":"table","returns":"TABLE","return_columns":[{"name"
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=functions&offset=0&limit=50 null
    was: ,"section_total":3,"rows":[{"name":"table_fn__customer_orders","relative_path":"functions/sql/table_fn__customer_orders.sql","language":"sql","return_kind":"table","returns":"TABLE","return_columns":[{"name":"or
    now: ,"section_total":3,"rows":[{"name":"table_fn__customer_orders","relative_path":"sql/functions/sql/table_fn__customer_orders.sql","language":"sql","return_kind":"table","returns":"TABLE","return_columns":[{"name"
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=functions&offset=0&limit=50 null
    was: ,"section_total":3,"rows":[{"name":"table_fn__customer_orders","relative_path":"functions/sql/table_fn__customer_orders.sql","language":"sql","return_kind":"table","returns":"TABLE","return_columns":[{"name":"or
    now: ,"section_total":3,"rows":[{"name":"table_fn__customer_orders","relative_path":"sql/functions/sql/table_fn__customer_orders.sql","language":"sql","return_kind":"table","returns":"TABLE","return_columns":[{"name"
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=functions&offset=0&limit=50 null
    was: {"total":3,"section_total":3,"rows":[{"name":"table_fn__customer_orders","relative_path":"functions/sql/table_fn__customer_orders.sql","language":"sql","return_
    now: 
- GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=0&limit=1000 null
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=0&limit=50 null
    was: {"total":252,"section_total":252,"rows":[{"name":"dim_date","relative_path":"models/marts/core/dim_date.sql","materialization_type":"table","action":"create_table","reason":"no_change","expected_version_hash":"4
    now: {"total":252,"section_total":252,"rows":[{"name":"dim_date","relative_path":"sql/models/marts/core/dim_date.sql","materialization_type":"table","action":"create_table","reason":"no_change","expected_version_hash
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=0&limit=50 null
    was: {"total":252,"section_total":252,"rows":[{"name":"dim_date","relative_path":"models/marts/core/dim_date.sql","materialization_type":"table","action":"create_table","reas
    now: {"total":66,"section_total":66,"rows":[{"name":"dim_date","relative_path":"sql/models/marts/core/dim_date.sql","materialization_type":"table","action":"create_table","re
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=0&limit=50 null
    was: {"total":66,"section_total":66,"rows":[{"name":"dim_date","relative_path":"models/marts/core/dim_date.sql","materialization_type":"table","action":"create_table","reason":"no_change","expected_version_hash":"88c
    now: {"total":66,"section_total":66,"rows":[{"name":"dim_date","relative_path":"sql/models/marts/core/dim_date.sql","materialization_type":"table","action":"create_table","reason":"no_change","expected_version_hash":
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=0&limit=50 null
    was: {"total":66,"section_total":66,"rows":[{"name":"dim_date","relative_path":"models/marts/core/dim_date.sql","materialization_type":"table","action":"create_table","reason
    now: {"total":7,"section_total":7,"rows":[{"name":"fct_orders","relative_path":"sql/models/marts/orders/fct_orders.sql","materialization_type":"table","action":"create_table"
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=0&limit=50 null
    was: {"total":7,"section_total":7,"rows":[{"name":"fct_orders","relative_path":"models/marts/orders/fct_orders.sql","materialization_type":"table","action":"create_table","re
    now: {"total":87,"section_total":87,"rows":[{"name":"int_category_paths","relative_path":"sql/models/intermediate/catalogue/int_category_paths.sql","materialization_type":"ta
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=0&limit=50 null
    was: {"total":81,"section_total":81,"rows":[{"name":"int_category_paths","relative_path":"models/intermediate/catalogue/int_category_paths.sql","materialization_type":"table"
    now: {"total":99,"section_total":99,"rows":[{"name":"stg_brands","relative_path":"sql/models/staging/catalogue/stg_brands.sql","materialization_type":"view","action":"create_
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=0&limit=50 null
    was: {"total":99,"section_total":99,"rows":[{"name":"stg_brands","relative_path":"models/staging/catalogue/stg_brands.sql","materialization_type":"view","action":"cr
    now: 
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=50&limit=50 null
    was: ":252,"section_total":252,"rows":[{"name":"stg_ledger_entries","relative_path":"models/staging/finance/stg_ledger_entries.sql","materialization_type":"view","action":"create_view","reason":"no_change","expected_
    now: ":252,"section_total":252,"rows":[{"name":"stg_ledger_entries","relative_path":"sql/models/staging/finance/stg_ledger_entries.sql","materialization_type":"view","action":"create_view","reason":"no_change","expec
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=50&limit=50 null
    was: {"total":252,"section_total":252,"rows":[{"name":"stg_ledger_entries","relative_path":"models/staging/finance/stg_ledger_entries.sql","materialization_type":"view","acti
    now: {"total":66,"section_total":66,"rows":[{"name":"rpt_delivery_exceptions_monthly","relative_path":"sql/models/marts/fulfilment/rpt_delivery_exceptions_monthly.sql","mater
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=50&limit=50 null
    was: on_total":66,"rows":[{"name":"rpt_delivery_exceptions_monthly","relative_path":"models/marts/fulfilment/rpt_delivery_exceptions_monthly.sql","materialization_type":"table","action":"create_table","reason":"no_ch
    now: on_total":66,"rows":[{"name":"rpt_delivery_exceptions_monthly","relative_path":"sql/models/marts/fulfilment/rpt_delivery_exceptions_monthly.sql","materialization_type":"table","action":"create_table","reason":"n
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=50&limit=50 null
    was: {"total":66,"section_total":66,"rows":[{"name":"rpt_delivery_exceptions_monthly","relative_path":"models/marts/fulfilment/rpt_delivery_exceptions_monthly.sql","materiali
    now: {"total":87,"section_total":87,"rows":[{"name":"int_call_ivr_paths","relative_path":"sql/models/intermediate/support/int_call_ivr_paths.sql","materialization_type":"tabl
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=50&limit=50 null
    was: {"total":81,"section_total":81,"rows":[{"name":"int_ticket_first_response","relative_path":"models/intermediate/support/int_ticket_first_response.sql","materialization_t
    now: {"total":99,"section_total":99,"rows":[{"name":"stg_survey_responses","relative_path":"sql/models/staging/growth/stg_survey_responses.sql","materialization_type":"view",
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=50&limit=50 null
    was: {"total":99,"section_total":99,"rows":[{"name":"stg_survey_responses","relative_path":"models/staging/growth/stg_survey_responses.sql","materialization_type":"v
    now: 
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/summary null
    was: {"expires_at":"<time>","outcome":{"kind":"plan","document":{"timings":{"total_seconds":<n>,"steps":[{"name":"Reading warehouse state","seconds":<n>},{"name":"Detecting changes","seconds":<n>},{"name":"Checking s
    now: {"expires_at":"<time>","outcome":{"kind":"plan","document":{"members":[{"job":"staging_job","stage":0,"summary":{"timings":{"total_seconds":<n>,"steps":[{"name":"Reading warehouse state","seconds":<n>},{"name":"
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/summary null
    was: an","seconds":<n>},{"name":"Other","seconds":<n>}],"planned_from":"synced_state"},"selected_count":260,"source_load_count":76,"python_node_count":0,"models":[],"seeds":[],"source_loads":[],"functions":[],"python
    now: an","seconds":<n>},{"name":"Other","seconds":<n>}],"planned_from":"synced_state","work":{"execution_gate_edge_builds":3,"job_selection_resolutions":6,"plan_model_entries":66,"synced_catalog_lookups":314,"synced_
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/summary null
    was: an","seconds":<n>},{"name":"Other","seconds":<n>}],"planned_from":"synced_state"},"selected_count":260,"source_load_count":76,"python_node_count":0,"models":[],"seeds":[],"source_loads":[],"functions":[],"python
    now: an","seconds":<n>},{"name":"Other","seconds":<n>}],"planned_from":"synced_state","work":{"execution_gate_edge_builds":3,"job_selection_resolutions":6,"plan_model_entries":87,"synced_catalog_lookups":259,"synced_
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/summary null
    was: an","seconds":<n>},{"name":"Other","seconds":<n>}],"planned_from":"synced_state"},"selected_count":69,"source_load_count":0,"python_node_count":0,"models":[],"seeds":[],"source_loads":[],"functions":[],"python_n
    now: an","seconds":<n>},{"name":"Other","seconds":<n>}],"planned_from":"synced_state","work":{"execution_gate_edge_builds":3,"job_selection_resolutions":6,"plan_model_entries":99,"synced_catalog_lookups":182,"synced_
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/summary null
    was: an","seconds":<n>},{"name":"Other","seconds":<n>}],"planned_from":"synced_state"},"selected_count":69,"source_load_count":0,"python_node_count":0,"models":[],"seeds":[],"source_loads":[],"functions":[],"python_n
    now: an","seconds":<n>},{"name":"Other","seconds":<n>}],"planned_from":"synced_state","work":{"execution_gate_edge_builds":3,"plan_model_entries":252,"synced_catalog_lookups":335,"synced_fingerprint_reads":1}},"selec
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/summary null
    was: an","seconds":<n>},{"name":"Other","seconds":<n>}],"planned_from":"synced_state"},"selected_count":83,"source_load_count":1,"python_node_count":0,"models":[],"seeds":[],"source_loads":[],"functions":[],"python_n
    now: an","seconds":<n>},{"name":"Other","seconds":<n>}],"planned_from":"synced_state","work":{"execution_gate_edge_builds":3,"plan_model_entries":66,"synced_catalog_lookups":314,"synced_fingerprint_reads":1}},"select
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/summary null
    was: an","seconds":<n>},{"name":"Other","seconds":<n>}],"planned_from":"synced_state"},"selected_count":99,"source_load_count":76,"python_node_count":0,"models":[],"seeds":[],"source_loads":[],"functions":[],"python_
    now: an","seconds":<n>},{"name":"Other","seconds":<n>}],"planned_from":"synced_state","work":{"execution_gate_edge_builds":3,"plan_model_entries":7,"synced_catalog_lookups":177,"synced_fingerprint_reads":1}},"selecte
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=100&limit=50 null
    was: otal":252,"section_total":252,"rows":[{"name":"dim_warehouses","relative_path":"models/marts/core/dim_warehouses.sql","materialization_type":"table","action":"create_table","reason":"no_change","expected_version
    now: otal":252,"section_total":252,"rows":[{"name":"dim_warehouses","relative_path":"sql/models/marts/core/dim_warehouses.sql","materialization_type":"table","action":"create_table","reason":"no_change","expected_ver
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=100&limit=50 null
    was: {"total":252,"section_total":252,"rows":[{"name":"dim_warehouses","relative_path":"models/marts/core/dim_warehouses.sql","materialization_type":"table","action"
    now: 
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=150&limit=50 null
    was: {"total":252,"section_total":252,"rows":[{"name":"fct_refunds","relative_path":"models/marts/orders/fct_refunds.sql","materialization_type":"table","action":"create_table","reason":"no_change","expected_version_
    now: {"total":252,"section_total":252,"rows":[{"name":"fct_refunds","relative_path":"sql/models/marts/orders/fct_refunds.sql","materialization_type":"table","action":"create_table","reason":"no_change","expected_vers
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=150&limit=50 null
    was: {"total":252,"section_total":252,"rows":[{"name":"fct_refunds","relative_path":"models/marts/orders/fct_refunds.sql","materialization_type":"table","action":"cr
    now: 
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=200&limit=50 null
    was: otal":252,"section_total":252,"rows":[{"name":"int_orders_usd","relative_path":"models/intermediate/orders/int_orders_usd.sql","materialization_type":"table","action":"create_table","reason":"no_change","expecte
    now: otal":252,"section_total":252,"rows":[{"name":"int_orders_usd","relative_path":"sql/models/intermediate/orders/int_orders_usd.sql","materialization_type":"table","action":"create_table","reason":"no_change","exp
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=200&limit=50 null
    was: {"total":252,"section_total":252,"rows":[{"name":"int_orders_usd","relative_path":"models/intermediate/orders/int_orders_usd.sql","materialization_type":"table"
    now: 
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=250&limit=50 null
    was: ,"section_total":252,"rows":[{"name":"rpt_wishlist_conversion","relative_path":"models/marts/catalogue/rpt_wishlist_conversion.sql","materialization_type":"table","action":"create_table","reason":"no_change","ex
    now: ,"section_total":252,"rows":[{"name":"rpt_wishlist_conversion","relative_path":"sql/models/marts/catalogue/rpt_wishlist_conversion.sql","materialization_type":"table","action":"create_table","reason":"no_change"
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=250&limit=50 null
    was: {"total":252,"section_total":252,"rows":[{"name":"rpt_wishlist_conversion","relative_path":"models/marts/catalogue/rpt_wishlist_conversion.sql","materialization
    now: 
- GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=source_loads&offset=0&limit=1000 null
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=source_loads&offset=0&limit=50 null
    was: {"total":1,"section_total":1,"rows":[{"name":"support__call_records","loader":"support__call_records","kind":"source","target":"support__call_records","is_reload":false}
    now: {"total":2,"section_total":2,"rows":[{"name":"catalogue__price_lists","loader":"catalogue__price_lists","kind":"source","target":"catalogue__price_lists","is_reload":fal
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=source_loads&offset=0&limit=50 null
    was: {"total":76,"section_total":76,"rows":[{"name":"catalogue__brands","loader":"catalogue__brands","kind":"source","target":"catalogue__brands","is_reload":false},
    now: 
~ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=source_loads&offset=50&limit=50 null
    was: {"total":76,"section_total":76,"rows":[{"name":"storefront__customer_consents","loader":"storefront__customer_consents","kind":"source","target":"storefront__cu
    now: 
- GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=unchanged_seeds&offset=0&limit=1000 null
~ GET /api/control/locations/<id>/targets/dev/runs?limit=1000 null
    was: ,"location_id":"<id>","target":"dev","snapshot_id":"<id>","snapshot_generation":3,"git_revision":null,"git_dirty":false,"sqb_version":"0.216.0","image_id":null,"job_key":"marts_build","kind":"job","origin":"manu
    now: ,"location_id":"<id>","target":"dev","snapshot_id":"<id>","snapshot_generation":2,"git_revision":null,"git_dirty":false,"sqb_version":"0.309.0","image_id":null,"job_key":"staging_job","kind":"job","origin":"manu
- GET /api/control/locations/<id>/targets/dev/runs/<id>/events?limit=5000 null
- GET /api/control/locations/<id>/targets/dev/runs/<id>/nodes null
- GET /api/control/locations/<id>/targets/dev/runs/<id>/output null
- GET /api/control/locations/<id>/targets/dev/runs/<id>/statements null
- GET /api/control/locations/<id>/targets/dev/runs/<id>/nodes/model%3Adim_carriers/error null
~ GET /api/control/locations/<id>/targets/dev/snapshots null
    was: [{"snapshot_id":"<id>","generation":3,"git_revision":null,"git_dirty":false,"git_author":null,"environment_hash":"89c7981774ce16c0add511775a67911c7d868d4fac8f2878300adcefb54bb3bc","sqb_version":"0
    now: [{"snapshot_id":"<id>","generation":2,"git_revision":null,"git_dirty":false,"git_author":null,"environment_hash":"b47aca2f08e132cfb33384f527ac0f29fb260ccff133efcc626e0bbaa78ee224","sqb_version":"0
~ GET /api/control/locations/<id>/targets/dev/snapshots?limit=100 null
    was: [{"snapshot_id":"<id>","generation":3,"git_revision":null,"git_dirty":false,"git_author":null,"environment_hash":"89c7981774ce16c0add511775a67911c7d868d4fac8f2878300adcefb54bb3bc","sqb_version":"0
    now: [{"snapshot_id":"<id>","generation":2,"git_revision":null,"git_dirty":false,"git_author":null,"environment_hash":"b47aca2f08e132cfb33384f527ac0f29fb260ccff133efcc626e0bbaa78ee224","sqb_version":"0
- GET /api/control/locations/<id>/targets/dev/statistics?schema=dev&name=dim_carriers&after_event_id=<id> null
~ GET /api/control/locations/<id>/targets/dev/triggers null
    was: [{"trigger_id":"<id>","name":"after_staging","job_key":"intermediate_build","definition_json":{"description":"Rebuild intermediate models when staging finishes.","job_key":"intermediate_buil
    now: [{"trigger_id":"<id>","name":"marts_after_staging_sensor","job_key":null,"definition_json":{"description":"Rebuild the marts whenever staging finishes on its own","when":{"kind":"run_event",
~ GET /api/control/locations/<id>/targets/dev/triggers/<id>/changes?limit=100 null
    was: [{"event_id":"<id>","change":{"kind":"pause"},"actor":"local-development","actor_name":null,"reason":"Development starts with triggers paused","occurred_at":"<t
    now: 
~ GET /api/control/locations/<id>/targets/dev/triggers/<id>/ticks?limit=100 null
    was: []
    now: 
- GET /api/control/locations/<id>/targets/dev/triggers/<id>/ticks?limit=200 null
~ GET /api/control/locations/<id>/targets/dev/triggers/<id>/sensor?limit=100 null
    was: {"cursor":null,"definition_fingerprint":"ebf569ec2aefe2b23e285b6d670b1ae1059f8d90a95474dab3fabc2efee630b8","evaluations":[],"run_requests":[]}
    now: {"cursor":null,"definition_fingerprint":"398b208da828fe7c9e66e723c8969e1a644c1b506bea0fb5cdd431b668e4716c","evaluations":[],"run_requests":[],"failing":null}
~ GET /api/control/platform/problems null
    was: {"scheduler_leader":true,"scheduler_lease_expires_at":"<time>","broken_locations":[],"overdue_ticks":[],"low_calendars":[]}
    now: {"scheduler_leader":true,"scheduler_lease_expires_at":"<time>","scheduler_lease_holder":"<id>","scheduler_lease_epoch":1,"servers":[{"server_id":"<id>","last_seen_at":"<time>","scheduler":true,"version":"0.309.0
~ POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["build","--select","fct_orders+"],"priority":0}
    was: ction":"run.adhoc","allowed":true,"reason":null}],"error":null,"launchable":true}
    now: ction":"run.adhoc","allowed":true,"reason":null}],"error":null,"launchable":true,"still_running":[]}
- POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["build","--select","job:intermediate_build"],"priority":0}
- POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["build","--select","job:marts_build"],"priority":0}
- POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["build","--select","job:nightly_all"],"priority":0}
- POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["build","--select","job:staging_refresh"],"priority":0}
~ POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["build","--select","tag:marts"],"priority":0}
    was: ction":"run.adhoc","allowed":true,"reason":null}],"error":null,"launchable":true}
    now: ction":"run.adhoc","allowed":true,"reason":null}],"error":null,"launchable":true,"still_running":[]}
~ POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["build"],"priority":0}
    was: ction":"run.adhoc","allowed":true,"reason":null}],"error":null,"launchable":true}
    now: ction":"run.adhoc","allowed":true,"reason":null}],"error":null,"launchable":true,"still_running":[]}
~ GET /api/control/audit (every page) null
    was: "view.evidence\",\"location_id\":\"<id>\",\"target\":\"dev\",\"nodes\":[\"model:dim_carriers\"]},\"before_json\":null,\"after_json\":{\"run_id\":\"<id>\",\"found\":true},\"actor_name\":\"local-development\"}","{
    now: "view.evidence\",\"location_id\":\"<id>\",\"target\":\"dev\",\"nodes\":[\"model:int_orders_enriched\"]},\"before_json\":null,\"after_json\":{\"run_id\":\"<id>\",\"found\":true},\"actor_name\":\"local-development
+ GET /api/admin/service-accounts null
+ GET /api/control/locations/<id>/targets/dev/attention-acknowledgements null
+ GET /api/control/locations/<id>/targets/dev/checks/3aee98ea653b3edbed50d87b82459fe51fe51c0a8c25b9a34fb3cc121e818195 null
+ GET /api/control/locations/<id>/targets/dev/checks/f5ca070011f02e250117024765b8b64a5c5b4a9c063d9b376741fcb78541f48b null
+ GET /api/control/locations/<id>/targets/dev/column-lineage?node_key=model%3Aint_orders_enriched null
+ GET /api/control/locations/<id>/targets/dev/discovered null
+ GET /api/control/locations/<id>/targets/dev/jobs/intermediate_job null
+ GET /api/control/locations/<id>/targets/dev/jobs/marts_job null
+ GET /api/control/locations/<id>/targets/dev/jobs/nightly_job_group null
+ GET /api/control/locations/<id>/targets/dev/jobs/staging_job null
+ GET /api/control/locations/<id>/targets/dev/node-states null
+ GET /api/control/locations/<id>/targets/dev/node-status?node_key=model%3Aint_orders_enriched null
+ GET /api/control/locations/<id>/targets/dev/nodes/model%3Adim_customers/cost?days=30 null
+ GET /api/control/locations/<id>/targets/dev/nodes/model%3Afct_orders/cost?days=30 null
+ GET /api/control/locations/<id>/targets/dev/nodes/model%3Aint_orders_enriched/cost?days=30 null
+ GET /api/control/locations/<id>/targets/dev/nodes/model%3Aint_orders_enriched/runs?limit=100 null
+ GET /api/control/locations/<id>/targets/dev/nodes/model%3Aint_orders_enriched/sql null
+ GET /api/control/locations/<id>/targets/dev/nodes/model%3Astg_orders/cost?days=30 null
+ POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build","--select","job:staging_job"],"fresh":false}
+ POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build","--select","job:nightly_job_group"],"fresh":false}
+ POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build","--select","job:marts_job"],"fresh":false}
+ POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build","--select","job:intermediate_job"],"fresh":false}
+ POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build","--select","tag:marts"],"fresh":false}
+ POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build","--select","fct_orders+"],"fresh":false}
+ POST /api/control/locations/<id>/targets/dev/plans {"request_id":"<id>","command":["build"],"fresh":false}
+ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=functions&offset=0&limit=50&member=intermediate_job null
+ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=functions&offset=0&limit=50&member=marts_job null
+ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=0&limit=50&member=intermediate_job null
+ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=0&limit=50&member=marts_job null
+ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=0&limit=50&member=staging_job null
+ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=50&limit=50&member=intermediate_job null
+ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=50&limit=50&member=marts_job null
+ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=routine_models&offset=50&limit=50&member=staging_job null
+ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=source_loads&offset=0&limit=50&member=intermediate_job null
+ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=source_loads&offset=0&limit=50&member=staging_job null
+ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=source_loads&offset=50&limit=50&member=staging_job null
+ GET /api/control/locations/<id>/targets/dev/plans/<id>/rows?section=unchanged_seeds&offset=0&limit=50&member=staging_job null
+ GET /api/control/locations/<id>/targets/dev/providers null
+ GET /api/control/locations/<id>/targets/dev/runs/<id>/cost null
+ GET /api/control/locations/<id>/targets/dev/runs/<id>/edges null
+ GET /api/control/locations/<id>/targets/dev/runs/<id>/family null
+ GET /api/control/locations/<id>/targets/dev/runs/<id>/family?since=<n> null
+ GET /api/control/locations/<id>/targets/dev/runs/<id>/follow?events_limit=5000&event_types=node_log%2Cinvocation_started%2Cinvocation_phase%2Cinvocation_completed%2Cinvocation_failed%2Cresource_attemp
+ GET /api/control/locations/<id>/targets/dev/runs/<id>/node-changes null
+ GET /api/control/locations/<id>/targets/dev/runs/<id>/root-failures null
+ GET /api/control/locations/<id>/targets/dev/selection/vocabulary null
+ GET /api/control/locations/<id>/targets/dev/snapshots?limit=1 null
+ GET /api/control/locations/<id>/targets/dev/statistics?schema=dev&name=int_orders_enriched&after_event_id=<id> null
+ GET /api/control/locations/<id>/targets/dev/ticks?limit=200 null
+ GET /api/control/platform/events?limit=500 null
+ POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["build","--select","job:intermediate_job"],"priority":0}
+ POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["build","--select","job:marts_job"],"priority":0}
+ POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["build","--select","job:nightly_job_group"],"priority":0}
+ POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["build","--select","job:staging_job"],"priority":0}
+ POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["janitor","--select","job:intermediate_job"],"priority":0}
+ POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["janitor","--select","job:marts_job"],"priority":0}
+ POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["janitor","--select","job:staging_job"],"priority":0}
+ POST /api/control/runs/adhoc/check {"location_id":"<id>","target":"dev","command":["janitor","--select","tag:marts"],"priority":0}
+ GET /api/health null
+ GET /api/health/details null
152 differences apart from timings.

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.

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.
@kvlonge kvlonge closed this Dec 6, 2026
auto-merge was automatically disabled December 6, 2026 16:25

Pull request was closed

@kvlonge
kvlonge deleted the demo-rerecord branch December 6, 2026 16:25

kvlonge commented Dec 6, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1990 (the branch was renamed to fix the branch-name check).

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