]> git.hungrycats.org Git - bees/commitdiff
test/integration: pin free-min in the small rewrite tests
authorZygo Blaxell <bees@furryterror.org>
Sun, 11 Oct 2026 00:25:57 +0000 (20:25 -0400)
committerZygo Blaxell <bees@furryterror.org>
Sun, 11 Oct 2026 00:47:59 +0000 (20:47 -0400)
Version 2 raised rewrite.free-min from 50% to 128K in 941be6a85
("config-v2: update defaults for the scan_next extent scanner").  Tests 09,
10 and 14 build a 128K extent whose rewrite frees 32K, and their configs
do not set a version, so the planner now rejects the rewrite and each test
fails.  Pin free-min at 50%, as test 24 already does.

Assisted-by: Claude-Code:claude-opus-5-5
test/integration/cases/09-scan-next-tempfile.sh
test/integration/cases/10-scan-next-prealloc-mix.sh
test/integration/cases/14-scan-next-copy-only.sh

index dc29d3002e1018c9d7e81cccfbf8023bd3417bdc..122dcfa751224c8ae31cad9daec9565ecdfe73c1 100755 (executable)
@@ -88,6 +88,8 @@ echo "[pass] setup: mixedfile initially has no interior hole"
 
 # ── Write bees config ──────────────────────────────────────────────────────────
 mkdir -p '${BEESHOME}'
+# The test extent frees less than the version 2 free-min (128K); pin the
+# version 1 value so the rewrite is accepted.
 cat > '${BEESHOME}/bees.conf' <<'CONF'
 [config]
 global-config-filename =
@@ -101,6 +103,9 @@ exit-one-pass = yes
 [thread]
 thread-max = 1
 
+[rewrite]
+free-min = 50%
+
 [scan.extent.*]
 method = 1
 filter = ACCEPT
index ede8ed7819cdc23b27a719ec117828801b7a41d3..bb48f8209d01c39790696b709f66a61dc425b4d8 100755 (executable)
@@ -73,6 +73,8 @@ echo "[pass] setup: preallocmix has a disk_bytenr"
 
 # ── Write bees config ──────────────────────────────────────────────────────────
 mkdir -p '${BEESHOME}'
+# The test extent frees less than the version 2 free-min (128K); pin the
+# version 1 value so the rewrite is accepted.
 cat > '${BEESHOME}/bees.conf' <<'CONF'
 [config]
 global-config-filename =
@@ -86,6 +88,9 @@ exit-one-pass = yes
 [thread]
 thread-max = 1
 
+[rewrite]
+free-min = 50%
+
 [scan.extent.*]
 method = 1
 filter = ACCEPT
index 49a950d24e3a48e82bf3406096d42ca2c916d55f..b75421b10713c3b78adf43c09eeaab0304bc2878 100755 (executable)
@@ -116,6 +116,8 @@ btrfs filesystem sync '${TEST_MOUNT}'
 
 # ── Write bees config ──────────────────────────────────────────────────────────
 mkdir -p '${BEESHOME}'
+# The test extent frees less than the version 2 free-min (128K); pin the
+# version 1 value so the rewrite is accepted.
 cat > '${BEESHOME}/bees.conf' <<'CONF'
 [config]
 global-config-filename =
@@ -129,6 +131,9 @@ exit-one-pass = yes
 [thread]
 thread-max = 1
 
+[rewrite]
+free-min = 50%
+
 [scan.extent.*]
 method = 1
 filter = ACCEPT