Repository navigation
feat!: sensors as functions, provider secrets and a reworked sqb dev - #1615
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 22, 2026 07:47
chio-labs-delivery
Bot
deleted the
feat/sensors-providers-dev-batch-3
branch
November 22, 2026 09:32
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
Ships the reviewed batch of orchestration, CLI, UI and rule work as one release.
Changes
.env, and runs that miss required secrets stop before the warehouse.sqb devterminal is reworked, with prompt stops and full errors.sqb test.sqb formathandles macro-only bodies on Snowflake.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
make check-ci.failure/provider-invalid-settings. A provider field without a default is now reported as a missing secret.