Skip to content

fix: show statement and step progress rows only with --debug - #967

Merged
kvlonge merged 2 commits into
mainfrom
fix/statement-lines-without-debug
Oct 6, 2026
Merged

kvlonge merged 2 commits into
mainfrom
fix/statement-lines-without-debug

Conversation

@kvlonge

@kvlonge kvlonge commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Why

A passing sqb build printed hundreds of permanent progress rows: a statement … START row for every warehouse statement, and START/OK rows for every internal step (staging, promotion, loader calls, audit evaluation, test assertions). sqb seed also printed every seed twice.

Changes

  • Statement START and query-ID rows print only with --debug. Statements still running after 30s and failed statements still print, with their query IDs.
  • Step START/OK rows inside a resource print only with --debug, in a terminal and in redirected output. A failed step always prints its FAIL row.
  • In a terminal, resource START rows print only with --debug. Redirected output keeps one START row per resource, so logs show what is running.
  • sqb seed registers its seeds with the progress printer, so each seed prints once.

Verification

  • Unit tests for hidden-by-default, shown-with-debug and failure-still-shown, for statements and steps, in a terminal and redirected; most fail without the fix.
  • Terminal E2E tests (screen replayed) for passing build, seed and test showing no START or step rows, and --debug build showing them.
  • Focused pytest on touched modules, ruff, fensu check and make check-ci.

Build and test printed a persistent 'statement ... START' row for every
warehouse statement, in a terminal and in redirected output. Statement
start and query-ID submission rows now appear only with --debug. Slow
statement heartbeats and statement failures are still shown, so long
warehouse queries keep a live signal with their query ID.
Build, test, load and seed printed a START and OK row for every step
inside a resource (staging creation, promotion, loader calls, audit
evaluation, SQL test assertions), in a terminal and in redirected
output. These rows now appear only with --debug; a failed step still
prints its FAIL row. In a terminal, resources without a dedicated
progress row no longer print a START row by default, and sqb seed no
longer prints a second result row for each seed.
@kvlonge
kvlonge enabled auto-merge (squash) October 6, 2026 09:31
@kvlonge
kvlonge merged commit 7e2fdd8 into main Oct 6, 2026
22 checks passed
@kvlonge
kvlonge deleted the fix/statement-lines-without-debug branch October 6, 2026 09:52
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