Repository navigation
Commit e68d409
authored
feat!: failing locations impossible to miss, cursor windows per model, folder roots in the UI (#1625)
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-16661 parent e1f92ba commit e68d409
237 files changed
Lines changed: 5172 additions & 866 deletions
File tree
- benchmarks
- duckshop-10k
- duckshop10k
- duckshop
- edge_cases/named_selectors
- orchestration/jobs
- sql/models/orders
- project
- python/nodes/loaders
- sql/models
- intermediate
- customers
- edge_cases
- staging/inventory
- scripts
- clients/typescript/src
- crates
- sqlbuild-cli
- src
- adhoc
- _helpers
- tests
- argv
- dev_screen/tests
- dev_session
- _helpers
- main
- native_commands
- _helpers
- command
- location
- main
- tests
- tests/native_commands
- sqlbuild-core/src
- build_command
- main
- tests
- cli_text
- _helpers
- plan_display
- _helpers
- tests
- sqlbuild-orchestration
- src
- api/_helpers/resources
- dev_events
- node_states
- _helpers
- main
- platform
- _helpers
- health
- location
- maintenance
- plans
- main
- health
- person_reads
- runs/_helpers/requests
- warehouse_history/_helpers
- tests
- api
- dev_events
- node_states
- platform
- sqlbuild-python-base/src
- native_host/_helpers
- records/_helpers
- compiler_enums
- planner_records
- sqlbuild-python-compile/src/compile_driver/_helpers/stages
- sqlbuild-python-planner/src
- plan_output
- _helpers
- main
- planner_entries
- _helpers/entries
- planner_phases
- planner_resolution
- _helpers
- cursor
- references
- main/cursor
- sqlbuild-python-project/src
- native_host/main
- project_snapshot
- main
- sqlbuild-python/src/bindings/_helpers/build_command
- deploy
- src/sqlbuild
- .agents/skills/sqlbuild/references/docs
- cli
- concepts
- adapters
- clickhouse
- classes
- sqlite/_helpers
- adapter/contract
- classes
- executor/pipeline
- _helpers
- main
- orchestration_declarations
- tests
- e2e/src/sqlbuild/cli/commands/main
- build
- own_change_replay
- compile
- sql_macros
- integration/src/sqlbuild/compiler
- compiled_project/publication
- planner/main
- unit/src/sqlbuild
- adapter/contract/classes/strict_adapter
- compiler/planner
- _helpers/resolve
- main
- ui
- e2e
- support
- src
- lib
- api
- mock
- types
- build-area
- components/build-area
- lineage
- platform
- run
- selection
- state
- routes
- catalog
- [name]
- cost
- utils
- lineage
- website/src/content/docs/docs
- cli
- concepts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | | - | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | | - | |
44 | | - | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | | - | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
0 commit comments