Skip to content

fix(syntax-receipts): import execute runs that have no run database - #186

Merged
kvlonge merged 1 commit into
mainfrom
feat/import-execute-runs
Nov 12, 2026
Merged

kvlonge merged 1 commit into
mainfrom
feat/import-execute-runs

Conversation

@kvlonge

@kvlonge kvlonge commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Why

The receipt importer refused every capture run that executes each case once in a fresh session with no run-owned database, because its start event names the execute capture but neither the scripting submission nor the compile-only EXPLAIN method. Two such runs (6 rows) went unimported.

Changes

  • fix(syntax-receipts): a start event with "capture": "execute" and a packet hash goes to the packet driver, which already reads these runs with an empty setup. Ddl runs still match first by their run database.
  • A test covers an execute run and a start event that names no driver.

Verification

  • The two real runs now import 6 receipts (4 syntax errors, 2 semantic errors) and 0 refusals. A ddl run's import is unchanged (80 receipts, 21 refusals).
  • uv run pytest tests/unit/scripts/syntax_receipts: 75 passed. The new test fails without the fix.
  • make check-ci RECORDER=0 passed on this head.

A capture run that executes each case once in a fresh session, without a run-owned database, names
its capture in the start event but uses neither the scripting submission nor the compile-only EXPLAIN
method, so the importer refused the whole run as matching no known driver. The packet driver already
reads such runs, with an empty setup; it now handles them.
@kvlonge
kvlonge added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit 01ace82 Nov 12, 2026
13 checks passed
@kvlonge
kvlonge deleted the feat/import-execute-runs branch November 12, 2026 00:09
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