Skip to content

feat!: failing locations impossible to miss, cursor windows per model, folder roots in the UI - #1624

Closed
kvlonge wants to merge 1 commit into
mainfrom
feat/0-261-0
Closed

kvlonge wants to merge 1 commit into
mainfrom
feat/0-261-0

Conversation

@kvlonge

@kvlonge kvlonge commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Why

A location that failed to publish could look healthy everywhere: compile passed, sqb location health said healthy during a restart and then stayed falling_back after a successful publish, the UI said Live, and plan previews waited forever. This release makes those failures visible and fixes the health state, together with the cursor planning fixes, the folder roots in the UI and the SQLQuack 0.23.1 / SQLClean 0.12.1 upgrade.

Changes

  • Failing locations: banner on every page, Overview item, Locations page state, location_failing platform event; plans fail at once with the load error.
  • Health: the server alone computes the state (served by the person health endpoint); starting until a restarted location's own first load; reports ordered by arrival; generation lookups that keep failing report a failed load; non-healthy states exit non-zero.
  • Compile resolves job and sensor selectors (D017).
  • Cursor planning: a non-microbatch full build binds the intrinsics to the whole range; one model's planning error no longer fails the whole plan; explicit windows are clamped per model.
  • UI: catalog and Overview grouped by folders below sql/ and python/nodes/; Cost drills are one navigation; server-computed build status per node.
  • sqb dev keeps publication records off stdout.
  • SQLQuack 0.23.1 and SQLClean 0.12.1.

Breaking: the commit message lists every breaking change and the upgrade order.

This is one commit on purpose: squash merges take their message from the commits.

Verification

  • The head passed verify (make check-ci, the duplication check against the merge base and the e2e shard check).
  • The manually dispatched full matrix covers what the PR run skips.
  • Focused Rust, Python and UI tests ran for each change, including the planner unit and integration suites and new e2e tests for cursor windows and failing locations.

…, folder roots in the UI

Upgrade the server, its schedulers, every location and every worker together:

1. Run `sqb compile` on each project with this release: it now resolves job and sensor
   selectors (D017), which a location only checked when publishing.
2. Upgrade the server and schedulers, then every location and worker.
3. Container health checks: use `sqb location health --allow-starting` for liveness, so a
   location loading its first snapshot isn't restarted. Deploy readiness checks keep the plain
   command and wait for exit 0.

feat!: the server alone computes a location's health state, and serves it

feat: a failing location shows a banner on every page, a "Location failing" item on the Overview, its state on the Locations pages, and a location_failing platform event

fix: resolve job and sensor selectors at compile, as a location does when it publishes

fix(cli): report starting until a restarted location's own first load finishes

fix: order a location's load reports by arrival, so a later publication clears earlier failures

fix: fail plans at once with the load error when a location can't load the current code

fix(cli): a crashed discovered-set check discovers again, so its failure is reported

fix: a location that can't get its next generation number reports a failed load

fix: a full build binds cursor intrinsics to the whole cursor range instead of refusing

fix: one model's planning error no longer fails the whole plan

fix: clamp an explicit cursor window to each model's cursor_start

fix(ui): group the catalog and overview by folders below sql/ and python/nodes/

fix(server): name cost folders as the catalog does and offer only selectable path folders

fix(ui): make each Cost drill one navigation, so Back right after drilling goes up

fix: compute one build status per node on the server and render it on every page

fix(cli): keep publication records off sqb dev's stdout

fix(deps): upgrade to SQLQuack 0.23.1 and SQLClean 0.12.1

test: fix the duckshop benchmark for SQLClean 0.12 findings and the sql/ layout

BREAKING CHANGE: location health and planning report failures they used to hide.

- GET /api/control/locations/{location_id}/targets/{target}/health returns
  {"state": ..., "observations": [...]} instead of a bare array of observations.
- `sqb location health` exits 0 only when healthy. discovery_failed, degraded and the new
  change_plan_failed exit 1, the new starting state exits 3 (0 with --allow-starting), and 2
  still means the state couldn't be read. A location's state is ordered by when its reports
  arrived, not by generation number.
- `sqb compile` fails with D017 on a job or sensor selector a location would refuse to publish,
  such as a path selector without its sql/models/ or python/nodes/ root.
- `sqb plan` exits 1 when any model can't be planned; that model's row has action "error" with
  error {code, message, help}, and the plan has has_errors: true. Compile, validation and source
  errors (S4xx) still fail the whole plan. Builds still refuse a selection containing a model that
  can't be planned.
- A non-microbatch full build no longer fails with S204 on __cursor_start()/__cursor_end(): they
  bind to the model's cursor_start (or the cursor type's lowest value) and the type's highest
  value.
- An explicit --start-cursor-ts/--end-cursor-ts window is clamped to each model's cursor_start,
  and a model whose floor is after the window is skipped with a reason; P001 is raised only when
  the window leaves nothing to build across the selection.

Refs CHI-1657, CHI-1659, CHI-1660, CHI-1662, CHI-1665, CHI-1666
@kvlonge

kvlonge commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by the same change with the full-matrix failures fixed (stale tests and the 10K benchmark layout).

@kvlonge kvlonge closed this Nov 25, 2026
auto-merge was automatically disabled November 25, 2026 04:08

Pull request was closed

@kvlonge
kvlonge deleted the feat/0-261-0 branch November 25, 2026 04:08
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