Fossil Forum
Post: proper fix for 2.27 test issue
There was a testing issue in 2.27 which was fixed in 2.28 by disabling the test. Here is a proper fix.
This is thanks to Cheng Li, see https://bugs.debian.org/1123552
From Cheng Li:
fossil 1:2.28-1 migrated to testing on 2026-08-21, so this bug is no longer blocking anything. Here is a follow-up on the root cause, for the record.
Upstream disabled test/settings.test in 2.28 (renamed it to settings.test.off), which is why the failures went away. But test/settings-repo.test still iterates over the same get_all_settings list in test/tester.tcl, and that list has fallen behind the settings fossil actually supports. The three settings that triggered this bug (anon-cookie-lifespan, regexp-limit, robot-exception) are still missing from it, and five more have accumulated since -- so instead of failing, they are now silently untested.
The attached patch adds all eight settings missing as of 2.28. I tested it locally against a 2.28 build: settings-repo.test passes both before and after, and after the patch those eight settings are actually exercised.
Description: tester.tcl: add missing settings to get_all_settings
Upstream disabled test/settings.test in 2.28 (renamed to
settings.test.off), but test/settings-repo.test still iterates over
get_all_settings from test/tester.tcl, and that list has fallen behind
the settings actually supported by fossil. Add the eight
unconditionally-compiled settings introduced up to 2.28 that were
missing from the list, restoring test coverage for them:
.
anon-cookie-lifespan, regexp-limit, robot-exception, robot-zip-leaf,
robot-zip-tag, suggested-downloads, timeline-default-style,
timeline-mark-leaves
.
The conditionally-compiled settings (tcl, tcl-setup, th1-docs,
th1-hooks) are already handled dynamically via "hasfeature" below the
static list, so they are intentionally not added here.
.
Verified with: tclsh test/tester.tcl <fossil> settings-repo (passes
both before and after; after the change the eight settings are
actually exercised).
Author: Cheng Li <[email protected]>
Bug-Debian: https://bugs.debian.org/1123552
Last-Update: 2026-07-20
---
--- a/test/tester.tcl
+++ b/test/tester.tcl
@@ -294,6 +294,7 @@
access-log \
admin-log \
allow-symlinks \
+ anon-cookie-lifespan \
auto-captcha \
auto-hyperlink \
auto-hyperlink-delay \
@@ -370,10 +371,14 @@
proxy \
raw-bgcolor \
redirect-to-https \
+ regexp-limit \
relative-paths \
repo-cksum \
repolist-skin \
+ robot-exception \
robot-restrict \
+ robot-zip-leaf \
+ robot-zip-tag \
robots-txt \
safe-html \
self-pw-reset \
@@ -382,11 +387,14 @@
ssh-command \
ssl-ca-location \
ssl-identity \
+ suggested-downloads \
tclsh \
th1-setup \
th1-uri-regexp \
ticket-default-report \
+ timeline-default-style \
timeline-hard-newlines \
+ timeline-mark-leaves \
timeline-plaintext \
timeline-truncate-at-blank \
timeline-tslink-info \
There was a testing issue in 2.27 which was fixed in 2.28 by disabling the test. Here is a proper fix.
This is thanks to Cheng Li, see https://bugs.debian.org/1123552
From Cheng Li:
fossil 1:2.28-1 migrated to testing on 2026-08-21, so this bug is no longer blocking anything. Here is a follow-up on the root cause, for the record.
Upstream disabled test/settings.test in 2.28 (renamed it to settings.test.off), which is why the failures went away. But test/settings-repo.test still iterates over the same get_all_settings list in test/tester.tcl, and that list has fallen behind the settings fossil actually supports. The three settings that triggered this bug (anon-cookie-lifespan, regexp-limit, robot-exception) are still missing from it, and five more have accumulated since -- so instead of failing, they are now silently untested.
The attached patch adds all eight settings missing as of 2.28. I tested it locally against a 2.28 build: settings-repo.test passes both before and after, and after the patch those eight settings are actually exercised.
Description: tester.tcl: add missing settings to get_all_settings
Upstream disabled test/settings.test in 2.28 (renamed to
settings.test.off), but test/settings-repo.test still iterates over
get_all_settings from test/tester.tcl, and that list has fallen behind
the settings actually supported by fossil. Add the eight
unconditionally-compiled settings introduced up to 2.28 that were
missing from the list, restoring test coverage for them:
.
anon-cookie-lifespan, regexp-limit, robot-exception, robot-zip-leaf,
robot-zip-tag, suggested-downloads, timeline-default-style,
timeline-mark-leaves
.
The conditionally-compiled settings (tcl, tcl-setup, th1-docs,
th1-hooks) are already handled dynamically via "hasfeature" below the
static list, so they are intentionally not added here.
.
Verified with: tclsh test/tester.tcl <fossil> settings-repo (passes
both before and after; after the change the eight settings are
actually exercised).
Author: Cheng Li <[email protected]>
Bug-Debian: https://bugs.debian.org/1123552
Last-Update: 2026-07-20
---
--- a/test/tester.tcl
+++ b/test/tester.tcl
@@ -294,6 +294,7 @@
access-log \
admin-log \
allow-symlinks \
+ anon-cookie-lifespan \
auto-captcha \
auto-hyperlink \
auto-hyperlink-delay \
@@ -370,10 +371,14 @@
proxy \
raw-bgcolor \
redirect-to-https \
+ regexp-limit \
relative-paths \
repo-cksum \
repolist-skin \
+ robot-exception \
robot-restrict \
+ robot-zip-leaf \
+ robot-zip-tag \
robots-txt \
safe-html \
self-pw-reset \
@@ -382,11 +387,14 @@
ssh-command \
ssl-ca-location \
ssl-identity \
+ suggested-downloads \
tclsh \
th1-setup \
th1-uri-regexp \
ticket-default-report \
+ timeline-default-style \
timeline-hard-newlines \
+ timeline-mark-leaves \
timeline-plaintext \
timeline-truncate-at-blank \
timeline-tslink-info \
Hello Barak,
I have committed a first draft redesign of the test suite to branch test-suite-new. Could you (or indeed anyone else) please try it out and see if it works.
When this is knocked into shape, I have an extended version prepared which includes stuff like the powerloss tester in libfossil.
Thanks
Dan