]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
cache test: adjust conditions on cache usage
authorVladimír Čunát <vladimir.cunat@nic.cz>
Sat, 6 Dec 2025 12:59:29 +0000 (13:59 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 12 Dec 2025 06:37:05 +0000 (07:37 +0100)
The KRU-based garbage collection reduced the LMDB size a bit
for a particular overall cache size setting.
Apple Silicon uses 16 KiB pages instead of the usual 4 KiB,
so the usage is a bit shifted and that's why we didn't notice earlier
(though before the KRU GC we adjusted in commit adaac913c5)

For example failure, see "not ok" lines in
https://cache.nixos.org/log/1452wsll1fxh38p0fbqa0vw1p7ki6v55-knot-resolver_6-6.0.17.drv

NEWS
daemon/cache.test/clear.test.lua

diff --git a/NEWS b/NEWS
index bf41d5030451bef808ecdb6f7901ebffb2eb26ac..d7a019d4753592b167046288679febc16ad74db6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ Knot Resolver 6.0.18 (2026-mm-dd)
 Bugfixes
 --------
 - reload did not apply changes to /fallback (!1763)
+- fix config.cache.clear test on apple silicon (!1766)
 
 
 Knot Resolver 6.0.17 (2025-12-02)
index e1f69149656c95baae53263a410b53c094db7572..92520578af4fda5ffedfa0a2707c30a6c4ac541b 100644 (file)
@@ -197,15 +197,15 @@ end
 return {
        test_cache_used(0, 1),
        import_zone,
-       test_cache_used(9, 11),
+       test_cache_used(10, 12),
        test_exact_match_qtype,
        test_exact_match_qname,
        test_callback,
        import_zone,
        test_subtree,
-       test_cache_used(9, 11),
+       test_cache_used(10, 12),
        test_subtree_limit,
-       test_cache_used(5, 8),
+       test_cache_used(6, 9),
        test_apex,
        import_zone,
        test_root,