Skip to content

Commit 55e26ad

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 a305dcc commit 55e26ad

4 files changed

Lines changed: 15 additions & 77 deletions

File tree

‎.github/workflows/integration.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020

2121
env:
2222
# Match the test suite to the native runner built from this exact revision.
23-
VGI_REF: 22140b06cd7967c1f43d4b59a231716fe3a9423f
23+
VGI_REF: a1b101f920ff6358b270206f5c93e31cc011d371
2424
VGI_NATIVE_RUNNER_BRANCH: v2.0
2525
# Disable local sibling substitution: validate the released Maven dependency.
2626
VGI_RPC_JAVA_DIR: /nonexistent

‎Makefile‎

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,6 @@ WRITABLE_TX_LOCATION := $(LAUNCHER_PREFIX)$(WRAPPERS)/vgi-worker-txfix
5858
# Every fixture-worker variable the shared suite reads, in one place so `test`
5959
# and `test-single` cannot drift apart.
6060
#
61-
# VGI_TEST_DEDICATED_WORKER is deliberately NOT set here, and setting it is a
62-
# bug. It gates table_buffering_{worker_crash,pool_recovery}.test, whose
63-
# `crash_on_process` fixture SIGKILLs the worker serving it — but both files
64-
# ATTACH the VGI_TEST_WORKER location, NOT the dedicated binary, so on this lane the
65-
# victim is the ONE shared launcher JVM. Serially that is survivable (the next
66-
# ATTACH respawns it); under -j it tears the worker out from under every
67-
# concurrent DuckDB process, which is exactly the 8-file "table_buffering fails
68-
# at -j 6" symptom this lane was pinned serial for. run_tests.py already
69-
# leaves the var unset for shared-worker transports (launch:/unix:///http://) —
70-
# see its `env.setdefault` guard — and setting it here defeated that. The two
71-
# files self-skip instead (allow-listed in COVERAGE_GATE below); vgi-go and
72-
# vgi-typescript do the same on their launcher lanes.
73-
#
7461
# VGI_ATTACH_OPTIONS_REQUIRED_WORKER is the same wrapper as
7562
# VGI_ATTACH_OPTIONS_WORKER: that worker serves the `attach_options_required`
7663
# catalog too, and upstream split those assertions into their own file behind
@@ -97,7 +84,7 @@ FIXTURE_ENV := \
9784
VGI_WRITABLE_TX_WORKER=$(WRITABLE_TX_LOCATION) \
9885
VGI_REQUIRE_LAUNCHER_TRANSPORT=1
9986

100-
.PHONY: build smoke test test-crash test-http test-single clean
87+
.PHONY: build smoke test test-http test-single clean
10188

10289
## Build all worker dist images.
10390
build:
@@ -157,14 +144,10 @@ smoke: build
157144
# which now run against this worker's own contents_* fixture catalogs).
158145
JAVA_MIN_EXECUTED ?= 295
159146

160-
# Parallel. This lane was pinned serial because raising it to -j 6 failed 8
161-
# table_buffering files reproducibly, which read as a java-worker concurrency
162-
# bug. It was not: FIXTURE_ENV set VGI_TEST_DEDICATED_WORKER, which un-skipped
163-
# table_buffering_{worker_crash,pool_recovery}.test, whose crash_on_process
164-
# fixture SIGKILLs the ONE shared launcher JVM every concurrent DuckDB process
165-
# is talking to. The survivors reported "RPC response stream EOF" / "Broken
166-
# pipe" — i.e. the collateral damage, not a race of their own. See the
167-
# VGI_TEST_DEDICATED_WORKER note above.
147+
# Parallel. This lane was once pinned serial because -j 6 failed 8
148+
# table_buffering files; the cause was the crash-recovery tests SIGKILLing the
149+
# shared launcher JVM, not a java-worker race. Those tests now live in vgi's
150+
# test_deferred/crash_recovery/ and no longer run here.
168151
JAVA_JOBS ?= 6
169152
COVERAGE_GATE := --min-executed $(JAVA_MIN_EXECUTED) \
170153
--allow-skip 'require spatial' \
@@ -174,7 +157,6 @@ COVERAGE_GATE := --min-executed $(JAVA_MIN_EXECUTED) \
174157
--allow-skip 'require-env VGI_TEST_ICEBERG' \
175158
--allow-skip 'require-env VGI_TEST_COMPANION_TARGET' \
176159
--allow-skip 'require-env VGI_TEST_BEARER_TOKEN' \
177-
--allow-skip 'require-env VGI_TEST_DEDICATED_WORKER' \
178160
--allow-skip 'require-env VGI_TEST_BRANCH_DIR' \
179161
--allow-skip 'require-env VGI_HTTP_TRANSPORT' \
180162
--allow-skip 'require-env VGI_HTTP_DISABLE_ZSTD' \
@@ -199,21 +181,6 @@ test: build
199181
@cd $(VGI_DIR) && $(FIXTURE_ENV) \
200182
python3 scripts/run_tests.py -j $(JAVA_JOBS) --test-config $(TEST_CONFIG) $(COVERAGE_GATE) \
201183
"test/sql/integration/*" "~test/sql/integration/simple_writable/*"
202-
@$(MAKE) --no-print-directory test-crash
203-
204-
## The two crash files the main lane necessarily skips, run the only way they
205-
## are meaningful: over the SUBPROCESS transport, where VGI_TEST_WORKER is a
206-
## bare path and every DuckDB process forks its own private worker child. Both
207-
## ATTACH ${VGI_TEST_WORKER} and then have the worker SIGKILL itself, so on the
208-
## launcher transport the victim is the shared JVM (see the note above) — the
209-
## main lane leaves VGI_TEST_DEDICATED_WORKER unset so they self-skip there, and
210-
## this target is what actually exercises them. run_tests.py derives
211-
## VGI_TEST_DEDICATED_WORKER itself from the bare path, so it is not set here.
212-
test-crash: build
213-
@cd $(VGI_DIR) && VGI_TEST_WORKER=$(EXAMPLE_WORKER) \
214-
python3 scripts/run_tests.py -j 2 --test-config $(TEST_CONFIG) --min-executed 2 \
215-
"test/sql/integration/table_in_out/table_buffering_worker_crash.test" \
216-
"test/sql/integration/table_in_out/table_buffering_pool_recovery.test"
217184

218185
## The whole suite over the HTTP transport, exactly as CI's `integration (http)`
219186
## lane runs it: ci/run-integration.sh boots the example worker (and the

‎ci/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ guards in `summarize_run`:
5959

6060
- **Skip allowlist.** Every skip reason the runner prints must appear in
6161
`EXPECTED_SKIP_REASONS` (a base list plus, on the http lane, the bad-enum /
62-
dedicated-crash / launcher reasons that gate off there but *run* on launch). An
62+
launcher reasons that gate off there but *run* on launch). An
6363
unlisted reason — the signature of a whole file silently gated off, like
6464
`require httpfs: 227` — fails the lane. A genuinely new, legitimate skip is
6565
added to the list *with the reason why*.

‎ci/run-integration.sh‎

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,6 @@ case "$TRANSPORT" in
188188
launch)
189189
# The three wrappers route the one binary into the versioned /
190190
# versioned_tables / attach_options catalogs.
191-
#
192-
# NB: VGI_TEST_DEDICATED_WORKER stays UNSET here, for the same reason it is
193-
# unset on the http lane below. It used to be exported as the bare binary
194-
# path, on the theory that it named a private worker for the crash tests —
195-
# but table_buffering_{worker_crash,pool_recovery}.test ATTACH
196-
# ${VGI_TEST_WORKER}, not the dedicated path, so setting the var merely
197-
# un-skipped a fixture (crash_on_process) that SIGKILLs the ONE shared
198-
# launcher JVM serving the whole run. Serially that only cost the launcher a
199-
# respawn; run the suite with any parallelism and it takes every concurrent
200-
# DuckDB process down with it.
201191
export VGI_TEST_WORKER="launch:${VGI_WORKER_BIN}"
202192
export VGI_VERSIONED_WORKER="launch:${HERE}/wrappers/vgi-worker-versioned"
203193
export VGI_VERSIONED_TABLES_WORKER="launch:${HERE}/wrappers/vgi-worker-versioned-tables"
@@ -258,11 +248,6 @@ case "$TRANSPORT" in
258248
boot_http_worker "${HERE}/wrappers/vgi-worker-txfix"; tx_port="$BOOTED_PORT"
259249
export VGI_WRITABLE_TX_WORKER="http://localhost:${tx_port}"
260250
echo "txfix http worker on ${VGI_WRITABLE_TX_WORKER}"
261-
# NB: VGI_TEST_DEDICATED_WORKER stays UNSET here. The buffering crash /
262-
# pool-recovery tests SIGKILL their worker mid-process, which is only safe on
263-
# a subprocess (bare-path) transport — over http it would tear down the single
264-
# shared server for the whole suite. Those tests are designed to skip on any
265-
# shared-worker transport (see table_buffering_worker_crash.test's header).
266251
;;
267252
*)
268253
echo "::error::unknown TRANSPORT=$TRANSPORT (expected launch|http)"; exit 1 ;;
@@ -302,14 +287,6 @@ EXPECTED_SKIP_REASONS=(
302287
'require-env VGI_DATABASE_BUN_WORKER' # Bun package fixture belongs to its SDK lane
303288
'require-env VGI_DATABASE_PYTHON_WORKER' # Python package fixture belongs to its SDK lane
304289
'require-env VGI_DATABASE_RUST_WORKER' # Rust package fixture belongs to its SDK lane
305-
# table_buffering_{worker_crash,pool_recovery}: their crash_on_process fixture
306-
# SIGKILLs the worker serving it, and both files ATTACH ${VGI_TEST_WORKER} —
307-
# a SHARED worker on every lane here (launch/shm share one launcher JVM, http
308-
# one server), so running them would kill the process every concurrent test is
309-
# using. Expected on ALL lanes, and NOT a coverage loss: the launch lane runs
310-
# those two in their own step over the subprocess transport, where each DuckDB
311-
# process owns a worker it can watch die.
312-
'require-env VGI_TEST_DEDICATED_WORKER'
313290
'require-env VGI_MALFORMED_BATCH_WORKER' # hostile malformed-Arrow fixture (vgi test/support only)
314291
'require-env VGI_ROWID_CONSTRAINT_WORKER' # hostile rowid-constraint fixture (vgi test/support only)
315292
)
@@ -474,21 +451,15 @@ if [ "$TRANSPORT" = "launch" ]; then
474451
run_unittest "test/sql/integration/http/gzip_fallback.test" )
475452
fi
476453

477-
# The two buffering crash files skip on every shared-worker transport (their
478-
# crash_on_process fixture SIGKILLs whatever worker serves it). They are only
479-
# meaningful over the SUBPROCESS transport, where VGI_TEST_WORKER is a bare path
480-
# and each DuckDB process forks a private worker child it can watch die — so
481-
# they get their own invocation with the bare binary, exactly like gzip_fallback
482-
# above gets its own http worker. Same subshell isolation: MAIN_EXECUTED and the
483-
# floor below are the main suite's, not this run's.
454+
# shm_pool_metadata.test checks function-to-catalog pool ownership, which only
455+
# the SUBPROCESS transport has (the main launch/shm suite uses socket sessions
456+
# instead of this pool), so it gets its own invocation with the bare binary, just
457+
# as gzip_fallback above gets its own http worker. Same subshell isolation:
458+
# MAIN_EXECUTED and the floor below are the main suite's, not this run's.
484459
if [ "$TRANSPORT" = "launch" ]; then
485-
echo "Running the buffering crash files (subprocess transport, private worker) ..."
486-
( export VGI_TEST_WORKER="$VGI_WORKER_BIN" VGI_TEST_DEDICATED_WORKER="$VGI_WORKER_BIN"
487-
# Also exercise function-to-catalog pool ownership on a private process;
488-
# the main launch/shm suite uses socket sessions instead of this pool.
489-
run_unittest "test/sql/integration/table_in_out/shm_pool_metadata.test"
490-
run_unittest "test/sql/integration/table_in_out/table_buffering_worker_crash.test"
491-
run_unittest "test/sql/integration/table_in_out/table_buffering_pool_recovery.test" )
460+
echo "Running shm_pool_metadata.test (subprocess transport, private worker) ..."
461+
( export VGI_TEST_WORKER="$VGI_WORKER_BIN"
462+
run_unittest "test/sql/integration/table_in_out/shm_pool_metadata.test" )
492463
fi
493464

494465
# Executed-case floor on the main suite — the collapse-detector. Reached only if

0 commit comments

Comments
 (0)