|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [0.258.0](https://github.com/sqlstack-io/sqlbuild/compare/v0.257.0...v0.258.0) (2026-11-22) |
| 4 | + |
| 5 | + |
| 6 | +### ⚠ BREAKING CHANGES |
| 7 | + |
| 8 | +* sensors as functions, provider secrets and a reworked sqb dev ([#1615](https://github.com/sqlstack-io/sqlbuild/issues/1615)) |
| 9 | +* **deps:** This release changes sensors, provider settings, sqb dev, the control API and custom Rules. |
| 10 | + - Sensors: `@sensor(description=..., when=...)` is always a decorator on the function it runs. The `sensor(..., run=...)` form, `run=` and the positional name are removed. The sensor is named after the function (or `name=`), returns `RunRequest(job=...)`, and its `SensorContext` carries `event`. Every sensor needs a serving location. |
| 11 | + - Sensors: migration 0005 deletes old-form sensors' tick history and pending work, hides them until their location publishes again, and makes run keys unique per job. |
| 12 | + - Provider settings: a default `.env` the parser rejects fails every command with exit 1. A provider field without a default counts as a required secret, whatever its type. Secret-typed fields with a default no longer appear in `sqb debug`. |
| 13 | + - Location health: reports require the provider list, so the server rejects a report from an older location. |
| 14 | + - Ad-hoc runs: run requests and plan work carry the named job's settings. An older location refuses those plans and runs such builds without the job's settings. |
| 15 | + - Job concurrency: a published job's `resolved_concurrency` is `{limit}`. Its `source` and the `ConcurrencySource` schema are removed, and `sqb build --verbose` no longer names the source. Until a location publishes again, its job pages, group runs and ad-hoc runs fail. |
| 16 | + - sqb dev: stopping cancels runs in flight, which can take up to 30 seconds. A second Ctrl+C or Ctrl+\ forces the stop. Ctrl+Z is unsupported. Exit statuses are 0 for q, 130 for Ctrl+C, 143 for SIGTERM, 129 for SIGHUP, 2 when it didn't start (including a failed first warehouse connection) and 1 when a service failed after it was ready. |
| 17 | + - sqb dev: plain output uses the live screen's step, problem and event lines. NO_COLOR only turns colour off; use --plain for plain output. Typed sign-in input isn't echoed. |
| 18 | + - sqb server: local workers run in their own process groups. A terminal's Ctrl+C reaches only the server, which stops them, and SIGHUP stops the server and scheduler like SIGTERM. |
| 19 | + - Custom Rules: the syntax tree's kinds are snake_case, such as `cte`, `join`, `subquery` and `star`, `nodes(kind=...)` matches them exactly, and clause nodes are new parents of their contents. |
| 20 | + - SQLClean: PostgreSQL, BigQuery and Databricks SQL nested more than 512 levels is reported as rules-unevaluated. |
| 21 | + |
| 22 | +### Features |
| 23 | + |
| 24 | +* **dev:** rework the sqb dev terminal, with prompt stops and full errors ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 25 | +* **location:** resume dynamic models whose build went silent after each completed sync ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 26 | +* **providers:** load provider settings from the project .env and stop runs that miss required secrets before they reach the warehouse ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 27 | +* **rules:** add clause nodes to the custom-rule syntax tree ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 28 | +* sensors as functions, provider secrets and a reworked sqb dev ([#1615](https://github.com/sqlstack-io/sqlbuild/issues/1615)) ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 29 | +* **sensors:** sensors are decorated functions, with operator skip, a trial command, masked provider secrets and per-sensor failure isolation ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 30 | +* **server:** apply a job's settings and permissions to ad-hoc builds and plan previews that name it ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 31 | +* **ui:** add people who sign in with passwords, edit roles inline, title every page and quiet the lineage hover ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 32 | + |
| 33 | + |
| 34 | +### Bug Fixes |
| 35 | + |
| 36 | +* **format:** format models whose whole body is one macro call on Snowflake ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 37 | +* **functions:** let Rules read partitioned Python table function calls ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 38 | +* **scheduler:** isolate unreadable snapshots, triggers and requests so each fails on its own ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 39 | +* **test:** test a function's current code or fail with T006, and read a partitioned call's fixture once ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 40 | +* **ui:** draw a plan's graph and fit the Checks list ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 41 | +* **worker:** refuse a run request the worker can't fully read and keep the JSON report out of run output ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 42 | + |
| 43 | + |
| 44 | +### Performance Improvements |
| 45 | + |
| 46 | +* **ui:** share and revalidate one check list per location ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 47 | + |
| 48 | + |
| 49 | +### Build System |
| 50 | + |
| 51 | +* **deps:** pin SQLQuack 0.22.1 and SQLClean 0.11.1 ([061df0f](https://github.com/sqlstack-io/sqlbuild/commit/061df0fb09a7b8f1c10f0be089d3f5d406b8d7aa)) |
| 52 | + |
3 | 53 | ## [0.257.0](https://github.com/sqlstack-io/sqlbuild/compare/v0.256.0...v0.257.0) (2026-11-21) |
4 | 54 |
|
5 | 55 |
|
|
0 commit comments