Skip to content

Commit a52ef1a

Browse files
EC2 Default Userclaude
andcommitted
ci: drop the crash-recovery harness special-casing (vgi a1b101f)
vgi a1b101f moved table_buffering_worker_crash.test and table_buffering_pool_recovery.test out of the integration suite (to test_deferred/crash_recovery/), so nothing requires VGI_TEST_DEDICATED_WORKER any more. Bump VGI_REF to that commit and remove the harness wiring that existed only for those two files: the VGI_TEST_DEDICATED_WORKER exports, its expected-skip entries, separate-process steps and the related comments and docs. Executed-case floors on lanes that used to run the two files drop by 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 914520f commit a52ef1a

3 files changed

Lines changed: 6 additions & 46 deletions

File tree

‎.github/workflows/integration.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727
env:
2828
# The test suite and native Actions artifact must come from this exact ref.
2929
# The downloader verifies its provenance against the checked-out commit.
30-
VGI_REF: 22140b06cd7967c1f43d4b59a231716fe3a9423f
30+
VGI_REF: a1b101f920ff6358b270206f5c93e31cc011d371
3131
VGI_NATIVE_RUNNER_BRANCH: v2.0
3232
# CI is not a user: its ATTACHes should not land in Query.Farm's adoption data.
3333
# The vgi extension fires a telemetry event per successful ATTACH, and this

‎ci/README.md‎

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ against the matching client without waiting for a community extension release.
3535
`require` gates load linked extensions; unavailable optional extensions keep
3636
their normal skip behavior.
3737
5. **Run** — the harness wires the `VGI_*_WORKER` environment variables to the
38-
`.venv/bin` scripts for the selected transport and executes the suite, with
39-
`simple_writable` in its own process. Native mode passes `--test-dir` so the
38+
`.venv/bin` scripts for the selected transport and executes the suite in one
39+
runner invocation. Native mode passes `--test-dir` so the
4040
runner discovers the staged tree instead of its compiled source directory.
4141
Failed assertions, empty runs, fatal signals and dead shared HTTP workers
4242
fail the job. The no-error-skip configuration keeps HTTP errors from silently
@@ -99,21 +99,10 @@ lane (the tests check that transaction ids survive the HTTP sealing).
9999

100100
The `simple_writable/*.test` write-path tests (INSERT/UPDATE/DELETE/RETURNING)
101101
run on **every** lane against `VGI_SIMPLE_WRITABLE_WORKER`
102-
(`vgi-fixture-simple-writable-worker`), in their own `haybarn-unittest`
103-
invocation so their warm pooled connections don't perturb the immediately
104-
following crash-recovery test. That env var is always a spawned binary — a
102+
(`vgi-fixture-simple-writable-worker`). That env var is always a spawned binary — a
105103
`launch:` path on the launch lane, a plain path elsewhere — so these tests run
106104
over subprocess even on the http lane rather than skipping.
107105

108-
The crash / pool-recovery tests (`table_in_out/table_buffering_*`) are gated on
109-
`VGI_TEST_DEDICATED_WORKER`, which is set on the **`stdio` lane only**. Their
110-
`crash_on_process` fixture does `os.kill(getpid(), SIGKILL)`; that is a
111-
recoverable per-DuckDB-process child kill under subprocess transport, but under
112-
any shared-worker transport (`http://`, `launch:`) it kills the one process
113-
serving the whole suite and every later `ATTACH` fails. Because `shm` now rides
114-
the launcher, `stdio` is the only lane that can host them — worth knowing if you
115-
ever narrow the stdio lane.
116-
117106
### Excluded tests
118107

119108
Out of scope on **every** lane:

‎ci/run-integration.sh‎

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -251,27 +251,9 @@ export VGI_TXFIX_STATE_DIR
251251

252252
case "$TRANSPORT" in
253253
stdio)
254-
# Subprocess transport — the only lane that spawns a
255-
# fresh worker process per DuckDB connection, and so the only one that can
256-
# host the crash / pool-recovery tests below.
254+
# Subprocess transport — spawns a fresh worker process per DuckDB connection.
257255
export VGI_TEST_WORKER="$WORKER"
258256
export VGI_WRITABLE_TX_WORKER="$WRITABLE_TX"
259-
# Presence gate for the crash / pool-recovery tests
260-
# (table_in_out/table_buffering_{worker_crash,pool_recovery}). The value is
261-
# not a worker spec — the SQL attaches the normal pooled worker; this just
262-
# un-skips the tests.
263-
#
264-
# DEDICATED (subprocess) LANE ONLY. Those tests call the `crash_on_process`
265-
# fixture, which does os.kill(getpid(), SIGKILL). Under subprocess transport
266-
# that kills the per-DuckDB-process worker child and the pool recovers —
267-
# exactly what the tests assert. Under a SHARED-worker transport (http://,
268-
# unix://, launch:) it kills the single process serving the whole suite, and
269-
# every later ATTACH fails. Exporting it unconditionally silently voided 136
270-
# of 286 files on the http lane while still printing "All tests passed"
271-
# (run 29979884253) — the crash landed at file 132 and the runner's default
272-
# error handling swallowed the cascade. Since shm now runs over the launcher
273-
# (a shared worker), stdio is the ONLY lane that may set this.
274-
export VGI_TEST_DEDICATED_WORKER=1
275257
export VGI_VERSIONED_WORKER="$VERSIONED"
276258
export VGI_VERSIONED_TABLES_WORKER="$VERSIONED_TABLES"
277259
export VGI_ATTACH_OPTIONS_WORKER="$ATTACH_OPTIONS"
@@ -384,13 +366,6 @@ fi
384366
# Run the lane, streaming the native sqllogictest report (a progress line per
385367
# file + the final "All tests passed (.. N assertions ..)" summary). Out-of-scope
386368
# tests were dropped at staging; any failed assertion exits non-zero.
387-
#
388-
# simple_writable runs in its OWN invocation (a fresh DuckDB process / worker
389-
# pool). Its table-in-out write workers otherwise leave warm pooled connections
390-
# that perturb the immediately-following crash-recovery test
391-
# (table_in_out/table_buffering_pool_recovery). A separate process gives the
392-
# crash test a clean pool. Every lane does the split: simple_writable always
393-
# attaches a spawned binary (VGI_SIMPLE_WRITABLE_WORKER), even on the http lane.
394369
echo "Running suite ($SUITE_GLOB, transport=$TRANSPORT) ..."
395370
suite_rc=0
396371

@@ -428,11 +403,7 @@ run_unittest() {
428403
return "$rc"
429404
}
430405

431-
run_unittest "$SUITE_GLOB" "~test/sql/integration/simple_writable/*" || suite_rc=$?
432-
assert_bg_workers_alive || suite_rc=1
433-
434-
echo "Running simple_writable (isolated process) ..."
435-
run_unittest "test/sql/integration/simple_writable/*" || suite_rc=$?
406+
run_unittest "$SUITE_GLOB" || suite_rc=$?
436407
assert_bg_workers_alive || suite_rc=1
437408

438409
exit "$suite_rc"

0 commit comments

Comments
 (0)