Vladimír Čunát [Sat, 6 Dec 2025 12:59:29 +0000 (13:59 +0100)]
cache test: adjust conditions on cache usage
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
Vladimír Čunát [Wed, 3 Dec 2025 13:33:34 +0000 (14:33 +0100)]
modules/experimental_dot_auth: fix copy&paste error in meson
There's no ./static dir to even install.
Apparently this snippet came from modules/http.
Discovered thanks to meson reporting:
NOTICE: Future-deprecated features used:
* 0.60.0: {'install_subdir with empty directory'}
Vladimír Čunát [Tue, 6 Dec 2022 18:54:43 +0000 (19:54 +0100)]
meson: use summary()
https://mesonbuild.com/Reference-manual_functions.html#summary
- has nicer output
- less code in meson files
- allows defining summary parts closer to where they originate
Also short pieces of meson code are moved around.
I'm not sure how much info to put into those summaries;
this commit keeps the amount about the same.
Also note that (while not documented in meson)
a "User defined options" is appended, so the summary()
may end up repeating entries from that section.
Vladimír Čunát [Tue, 6 Dec 2022 17:38:57 +0000 (18:38 +0100)]
meson minimal version: 0.49 -> 0.53
This gets rid of a warning * 0.52.0: {'priority arg in test'}
There's still Ubuntu 20.04 with meson 0.53.2,
though its standard support ended a few months ago.
Debian 11 with meson 0.56.2 is similar in this respect.
Still well supported: RHEL 9 derivatives with meson 0.63.3
and Ubuntu 22.04 with meson 0.61.2.
Vladimír Čunát [Mon, 8 Dec 2025 12:55:13 +0000 (13:55 +0100)]
ci: switch lint:tidy from Arch to Debian 13
The problem was that in Arch the clang-tidy package
updates at random moments, so we have to resolve
the issues when doing urelated refreshes of CI images.
Aleš Mrázek [Fri, 5 Dec 2025 16:56:19 +0000 (17:56 +0100)]
utils/modeling: support for annotations in python3.14
PEP 649 & PEP 749: Deferred evaluation of annotations
The annotations on classes(ConfigSchema classes in our case) are no longer evaluated eagerly. They are evaluated only when necessary.
Vladimír Čunát [Mon, 1 Dec 2025 11:24:30 +0000 (12:24 +0100)]
doc /logging/groups: document the three missing groups
In particular, I was now interested in `cache-gc`
and incorrectly assumed that it's merged with `cache`
(the C code didn't help, as they appear merged on that level).
It seemed to bring more complexity than benefit.
In many parts this meant revert to code before a few commits.
It's slightly tricky that qry or req may be NULL in some cases,
but I believe I've caught all of them by conditions, and moreover
they're cases where it doesn't make sense to update kr_cache_top_*
Vladimír Čunát [Tue, 5 Aug 2025 08:59:57 +0000 (10:59 +0200)]
lib/cache/top.h: avoid issues with inclusion in C++
kru.h would be a bit complicated to adapt, so let's avoid it.
I don't think uint32_t as return price will be an issue,
though we might... e.g. add a static_assert() into top.c
Vladimír Čunát [Mon, 24 Nov 2025 09:30:02 +0000 (10:30 +0100)]
doc/dev: reinstante the config-debugging section
It apparently got forgotten when splitting the doc/ into doc/{user,dev}/
And as we now removed this from YAML (and doc/user) in 9fbacef1709,
these options completely disappeared from our 6.x docs.
So this PR puts it back into doc/dev on the place where it's in 5.x docs.
Vladimír Čunát [Fri, 7 Nov 2025 13:36:21 +0000 (14:36 +0100)]
doc/user: misc nits
config-fallback: I forgot the config-serve-stale label in there,
now reported as duplicate. I'm still getting reports of
> WARNING: undefined label: 'config-serve-stale' [ref.ref]
in 3 places (config-cache.rst:170, config-rfc7706.rst:9, rfc-list.rst:337)
but I have no idea why that happens.
Vladimír Čunát [Thu, 6 Nov 2025 17:25:52 +0000 (18:25 +0100)]
doc/user: correct the default for /network/listen
I looked into the model, and we do not enable DoT by default.
Which seems fine, as encryption of localhost-only communication
doesn't make much sense anyway.