Repository navigation
feat!: runs say what failed and how to rerun it, unit tests run locally in DuckDB, health that works through outages - #1628
Merged
Conversation
…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
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
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
run_failedcarries URL, error, failed audits, duration, trigger and counts; failure summary, Rerun menu and one text log filter on the run page.audit:,run:,failed:,skipped:; the rerun page runs its selection assqb build.NOT_RUN, counted on their own.--run-on), falling back to the warehouse; SQLQuack 0.24.1./livez, public/api/health,/status; errors name the real cause; outage and degraded states in the UI.failure/local-config-unknown-keyandfailure/target-unknown-keylist the newtest_run_onandscenario_run_onkeys.Breaking: partial outcome and
RunEventKind.PARTIALremoved (migration 0012),sqb scenario test --local/--strictremoved; the commit message lists the upgrade order.This is one commit on purpose: squash merges take their message from the commits.
Verification
verify(make check-ci, the duplication check and the e2e shard check) andmake compiler-differential.