Skip to content

feat!: runs say what failed and how to rerun it, unit tests run locally in DuckDB, health that works through outages - #1628

Merged
kvlonge merged 1 commit into
mainfrom
feat/runs-local-tests-health
Nov 26, 2026
Merged

kvlonge merged 1 commit into
mainfrom
feat/runs-local-tests-health

Conversation

@kvlonge

@kvlonge kvlonge commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Why

A failed run didn't say what failed or how to rerun it: an audit's warehouse error was lost, "partial" softened real failures, and the rerun page held state no command could reproduce. Unit tests needed the warehouse. And during a control database outage the UI only said "control store is busy" while nothing reported health.

Changes

  • Runs: run_failed carries URL, error, failed audits, duration, trigger and counts; failure summary, Rerun menu and one text log filter on the run page.
  • Selectors audit:, run:, failed:, skipped:; the rerun page runs its selection as sqb build.
  • Audits whose reads are missing are NOT_RUN, counted on their own.
  • Local unit tests and scenarios in DuckDB (--run-on), falling back to the warehouse; SQLQuack 0.24.1.
  • Health: /livez, public /api/health, /status; errors name the real cause; outage and degraded states in the UI.
  • Attention: failing syncs, lossy event sinks and failing webhooks; sync retries within a minute.
  • Goldens: failure/local-config-unknown-key and failure/target-unknown-key list the new test_run_on and scenario_run_on keys.

Breaking: partial outcome and RunEventKind.PARTIAL removed (migration 0012), sqb scenario test --local/--strict removed; the commit message lists the upgrade order.

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

Verification

  • The head passed verify (make check-ci, the duplication check and the e2e shard check) and make compiler-differential.
  • Two full matrices on earlier heads found failures, all fixed (including a 6% warm-preview regression, now +0.55% in instruction counts); the dispatched full matrix covers this head.
  • Focused Rust, Python and UI tests for each change, including outage, sync-recovery and Python-only event-order tests.

…ly in DuckDB, health that works through outages

Upgrade the server, its schedulers, every location and every worker together:

1. The server's control database migration 0012 rewrites stored `partial` run outcomes as
   `failed`, and sensors watching `partial` now watch `failed`.
2. Projects declaring `RunEventKind.PARTIAL` must use `RunEventKind.FAILED`.
3. `sqb scenario test --local` and `--strict` are removed: use `--run-on local`.
4. Container health checks can use `/livez` (process) or `/api/health` (dependencies).

feat!: a run with any failure is failed; the partial outcome and RunEventKind.PARTIAL are removed

feat!: unit tests and scenarios run locally in DuckDB when SQLQuack can convert them (--run-on auto|local|warehouse), falling back to the warehouse otherwise

feat: run_failed events and alerts carry the run URL, the run-level error, failed audits with their warehouse error, duration, trigger and counts

feat: audit:, run:, failed: and skipped: selectors in plan, build, test, audit and check, from local history or a server

feat: the rerun page runs its selection as sqb build, with no hidden rerun state

feat: a singular audit whose reads the target doesn't have is not run, counted on its own, instead of failing the job

feat: the run page leads with what failed, one text filter for the log, quieter header and Details drawer

feat(server): name the control database's real cause, and health that answers without it (/livez, /api/health, /status)

feat(ui): health and outages in the shell, a public Status page

feat(location): run-history sync retries within a minute and never stops for an unreached warehouse

feat: failing event sinks, webhooks and run-history syncs are attention items

fix: an audit whose query couldn't run keeps the warehouse's error

fix(worker): sqb audit reports a singular audit under its own check

fix(cli): an audit that isn't run shows only its NOT RUN row

fix: Started execution is published before the Python phase, and no warehouse connection opens when the SQL phase has nothing to run

fix(cli): the plan line leaves out zero counts

build: pin SQLQuack 0.24.1
@chio-labs-delivery
chio-labs-delivery Bot added this pull request to the merge queue Nov 26, 2026
@kvlonge
kvlonge removed this pull request from the merge queue due to a manual request Nov 26, 2026
@kvlonge
kvlonge merged commit 49b4934 into main Nov 26, 2026
90 checks passed
@kvlonge
kvlonge deleted the feat/runs-local-tests-health branch November 26, 2026 03:18
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