From e81fe1d362e430e81fd474569eb7b403db5f66d6 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 9 Sep 2026 16:50:25 -0400 Subject: --serial default behaviour (--parallel an option) serial processing, it turns out, is significantly faster and more efficient for tested use-cases, which came as a surprise. As the parallelization option buys nothing, serial processing is set as default. Parallel processing remains as an option (where available, as before). (assisted by Claude-Code) --- test/test-abstraction-ssp.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/test-abstraction-ssp.sh b/test/test-abstraction-ssp.sh index 3b2217b..b63c6e4 100755 --- a/test/test-abstraction-ssp.sh +++ b/test/test-abstraction-ssp.sh @@ -105,10 +105,11 @@ echo "Generating current .ssp files..." rm -rf "$TMP_DIR" mkdir -p "$TMP_DIR" # this run has to be the parallel one: the serial run below is what it is -# compared against, and two serial runs compare nothing. --show-abstraction -# now parallelises on its own, and --abstraction is kept as well so that the -# test does not go quietly serial if that ever changes. -$SPINE_BIN --abstraction --show-abstraction --skip-output --output="$SCRIPT_DIR/current" "$SAMPLES_DIR"/* 2>&1 | tail -1 +# compared against, and two serial runs compare nothing. Serial is spine's +# behaviour now and --parallel is the option, so it has to be asked for +# here by name. Drop it and this test stops guarding the .ssp write race +# without any test failing to say so. +$SPINE_BIN --parallel --show-abstraction --skip-output --output="$SCRIPT_DIR/current" "$SAMPLES_DIR"/* 2>&1 | tail -1 # flatten find "$SCRIPT_DIR/current" -name "*.ssp" ! -path "$TMP_DIR/*" -exec mv {} "$TMP_DIR/" \; find "$SCRIPT_DIR/current" -mindepth 1 -type d -empty -delete 2>/dev/null || true -- cgit v1.2.3