You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit eb94c81
Browse filesBrowse the repository at this point in the historyBrowse files
feat!: sensors as functions, provider secrets and a reworked sqb dev
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.
Copy file name to clipboardExpand all lines: benchmarks/duckshop/edge_cases/orchestration/attached_checks.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
"cancelled": "import signal\nfrom sqlbuild.checks import check\nfrom sqlbuild.refs import model\n@check(depends_on=model('orders'), description='Heartbeat cancellation interrupts the driver without SIGTERM.')\ndef orders_valid(ctx):\n signal.signal(signal.SIGTERM, signal.SIG_IGN)\n ctx.query('WITH RECURSIVE pending(i) AS ((SELECT i FROM range(10000000000) AS seed(i) LIMIT 1) UNION ALL SELECT i FROM pending) SELECT sum(i) FROM pending')\n return ctx.pass_()\n",
0 commit comments