Skip to content

feat!: sensors as functions, provider secrets and a reworked sqb dev - #1615

Merged
chio-labs-delivery[bot] merged 1 commit into
mainfrom
feat/sensors-providers-dev-batch-3
Nov 22, 2026
Merged

chio-labs-delivery[bot] merged 1 commit into
mainfrom
feat/sensors-providers-dev-batch-3

Conversation

@kvlonge

@kvlonge kvlonge commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Why

Ships the reviewed batch of orchestration, CLI, UI and rule work as one release.

Changes

  • Sensors are decorated functions, and one failing sensor no longer stops the others.
  • Provider settings load from .env, and runs that miss required secrets stop before the warehouse.
  • The sqb dev terminal is reworked, with prompt stops and full errors.
  • Ad-hoc builds that name a job apply its settings and permissions.
  • Dynamic models whose build went silent resume after a sync.
  • Unreadable snapshots, triggers and run requests fail on their own.
  • People page improvements, page titles, quieter lineage hover and a shared check list.
  • Custom Rules get clause nodes with snake_case kinds.
  • Python table functions work with Rules and sqb test.
  • sqb format handles macro-only bodies on Snowflake.
  • SQLQuack 0.22.1 and SQLClean 0.11.1.

Breaking: the commit message lists every breaking change and the upgrade order. Upgrade the server and all locations together; migrations 0004 and 0005 apply.

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

Verification

  • The combined head passed make check-ci.
  • The manually dispatched full matrix covers what a draft's run skips.
  • Changed golden: failure/provider-invalid-settings. A provider field without a default is now reported as a missing secret.
  • macOS and Windows builds were type-checked by cross-compiling.
  • Each topic branch was reviewed and tested on its own.

Upgrade the server and every location together:

1. Pause schedules and sensors, start no manual runs, and leave the scheduler running.
2. Let queued and running runs finish, or cancel them.
3. Upgrade the server, which applies control store migrations 0004 and 0005.
4. Upgrade and restart every location, so each publishes again.
5. Resume schedules and sensors. A migrated source sensor fires once more for each source's
   current version.

feat(sensors): sensors are decorated functions, with operator skip, a trial command, masked provider secrets and per-sensor failure isolation

feat(providers): load provider settings from the project .env and stop runs that miss required secrets before they reach the warehouse

feat(dev): rework the sqb dev terminal, with prompt stops and full errors

feat(server): apply a job's settings and permissions to ad-hoc builds and plan previews that name it

feat(location): resume dynamic models whose build went silent after each completed sync

feat(ui): add people who sign in with passwords, edit roles inline, title every page and quiet the lineage hover

feat(rules): add clause nodes to the custom-rule syntax tree

fix(scheduler): isolate unreadable snapshots, triggers and requests so each fails on its own

fix(worker): refuse a run request the worker can't fully read and keep the JSON report out of run output

fix(format): format models whose whole body is one macro call on Snowflake

fix(functions): let Rules read partitioned Python table function calls

fix(test): test a function's current code or fail with T006, and read a partitioned call's fixture once

fix(ui): draw a plan's graph and fit the Checks list

perf(ui): share and revalidate one check list per location

build(deps): pin SQLQuack 0.22.1 and SQLClean 0.11.1

BREAKING CHANGE: This release changes sensors, provider settings, sqb dev, the control API and custom Rules.
- 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.
- 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.
- 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`.
- Location health: reports require the provider list, so the server rejects a report from an older location.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- SQLClean: PostgreSQL, BigQuery and Databricks SQL nested more than 512 levels is reported as rules-unevaluated.
@kvlonge
kvlonge marked this pull request as ready for review November 22, 2026 07:47
@kvlonge kvlonge closed this Nov 22, 2026
@kvlonge kvlonge reopened this Nov 22, 2026
@chio-labs-delivery
chio-labs-delivery Bot added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 061df0f Nov 22, 2026
147 of 154 checks passed
@chio-labs-delivery
chio-labs-delivery Bot deleted the feat/sensors-providers-dev-batch-3 branch November 22, 2026 09:32
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