Repository navigation
feat!: failing locations impossible to miss, cursor windows per model, folder roots in the UI - #1625
Merged
Merged
Conversation
…, 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 benchmarks for SQLClean 0.12 findings and the sql/ layout, and stale tests for the new health shape
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
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.
Why
A location that failed to publish could look healthy everywhere: compile passed,
sqb location healthsaid 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
location_failingplatform event; plans fail at once with the load error.startinguntil 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.sql/andpython/nodes/; Cost drills are one navigation; server-computed build status per node.sqb devkeeps publication records off stdout.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
verify(make check-ci, the duplication check against the merge base and the e2e shard check).