]> git.ipfire.org Git - thirdparty/knot-resolver.git/log
thirdparty/knot-resolver.git
4 years agoMerge branch 'no-doh' into 'master' obs-knot-resolver-es11k1/deployments/1809 obs-knot-resolver-es11k1/deployments/1810 obs-knot-resolver-es11k1/deployments/1811 obs-knot-resolver-es11k1/deployments/1812 obs-knot-resolver-es11k1/deployments/1813 obs-knot-resolver-es11k1/deployments/1814
Tomas Krizek [Fri, 30 Jul 2021 11:52:14 +0000 (11:52 +0000)] 
Merge branch 'no-doh' into 'master'

fix build without doh2 support

See merge request knot/knot-resolver!1197

4 years agofix build without doh2 support
Vladimír Čunát [Fri, 30 Jul 2021 07:49:04 +0000 (09:49 +0200)] 
fix build without doh2 support

4 years agoMerge branch 'release-5-4-0' into 'master' obs-knot-resolver-8xyvhu/deployments/1807 obs-knot-resolver-es11k1/deployments/1808 obs-knot-resolver-kv62s6/deployments/1806 v5.4.0
Tomas Krizek [Thu, 29 Jul 2021 14:25:42 +0000 (14:25 +0000)] 
Merge branch 'release-5-4-0' into 'master'

release 5.4.0

See merge request knot/knot-resolver!1196

4 years agorelease 5.4.0
Tomas Krizek [Wed, 28 Jul 2021 14:31:03 +0000 (16:31 +0200)] 
release 5.4.0

4 years agodistro/tests: switch to a more reliable domain with broken DNSSEC
Tomas Krizek [Thu, 29 Jul 2021 13:09:19 +0000 (15:09 +0200)] 
distro/tests: switch to a more reliable domain with broken DNSSEC

4 years agoMerge branch 'doh-free-headers' into 'master'
Tomas Krizek [Thu, 29 Jul 2021 12:25:31 +0000 (12:25 +0000)] 
Merge branch 'doh-free-headers' into 'master'

daemon/http: ensure HTTP headers are freed

See merge request knot/knot-resolver!1191

4 years agodaemon/http: fix crash on large buffers and document logic issues
Tomas Krizek [Fri, 23 Jul 2021 15:21:07 +0000 (17:21 +0200)] 
daemon/http: fix crash on large buffers and document logic issues

4 years agodaemon/http: add more info to debug messagess
Tomas Krizek [Wed, 21 Jul 2021 11:36:17 +0000 (13:36 +0200)] 
daemon/http: add more info to debug messagess

4 years agodaemon/http: add helper assert to detect potential memleak
Tomas Krizek [Fri, 2 Jul 2021 09:46:45 +0000 (11:46 +0200)] 
daemon/http: add helper assert to detect potential memleak

4 years agodaemon/worker: ensure HTTP headers are freed on ignored queries
Tomas Krizek [Fri, 2 Jul 2021 08:48:32 +0000 (10:48 +0200)] 
daemon/worker: ensure HTTP headers are freed on ignored queries

Ignored queries never call create_request() where ownership of headers
is taken care of. They need to be explicitly cleared instead, because
we're the owners of the pointer here.

4 years agodaemon/http: refactor submitting to wirebuffer
Tomas Krizek [Wed, 30 Jun 2021 20:47:38 +0000 (22:47 +0200)] 
daemon/http: refactor submitting to wirebuffer

4 years agodaemon/http: ensure missing variable in URI is treated as error
Tomas Krizek [Wed, 30 Jun 2021 20:43:11 +0000 (22:43 +0200)] 
daemon/http: ensure missing variable in URI is treated as error

4 years agodaemon/http: ensure headers are freed
Tomas Krizek [Wed, 30 Jun 2021 14:20:21 +0000 (16:20 +0200)] 
daemon/http: ensure headers are freed

4 years agodaemon/http: refactor freeing headers into function
Tomas Krizek [Wed, 30 Jun 2021 14:18:54 +0000 (16:18 +0200)] 
daemon/http: refactor freeing headers into function

4 years agoMerge branch 'fine-grained-logging' into 'master'
Tomas Krizek [Thu, 29 Jul 2021 12:01:05 +0000 (12:01 +0000)] 
Merge branch 'fine-grained-logging' into 'master'

Fine grained logging

See merge request knot/knot-resolver!1181

4 years agologging: update kres-gen-31.lua
Tomas Krizek [Thu, 29 Jul 2021 11:44:58 +0000 (13:44 +0200)] 
logging: update kres-gen-31.lua

4 years agolua logging: expand the printf in lua already
Vladimír Čunát [Thu, 29 Jul 2021 10:55:42 +0000 (12:55 +0200)] 
lua logging: expand the printf in lua already

- we've been using lua's formatting so far, so avoid changing that
- some lua values would be harder to format with the C style

4 years agolib/utils logging nit: use another logging group
Vladimír Čunát [Wed, 28 Jul 2021 19:49:59 +0000 (21:49 +0200)] 
lib/utils logging nit: use another logging group

Our randomness utils have nothing to do with TLS, so let's use SYSTEM.

4 years agolib/log.h: improve readability (hopefully)
Vladimír Čunát [Wed, 28 Jul 2021 19:00:07 +0000 (21:00 +0200)] 
lib/log.h: improve readability (hopefully)

* improve order
  - follow grouping of topics more closely (targets, groups, levels)
  - order kr_log_LEVEL by severity
* move unneeded <stdarg.h>
* improve doc-comments
  - some claims there were even wrong now
  - describe some log levels at kr_log_LEVEL

4 years agolib/log kr_log_name2grp(): return -1 on failures
Vladimír Čunát [Wed, 28 Jul 2021 17:39:22 +0000 (19:39 +0200)] 
lib/log kr_log_name2grp(): return -1 on failures

Let's be consistent witk kr_log_name2level()
and even generally we tend to use negative numbers for errors.

4 years agolib/log level names: disregard SYSLOG_NAMES
Vladimír Čunát [Wed, 28 Jul 2021 17:29:51 +0000 (19:29 +0200)] 
lib/log level names: disregard SYSLOG_NAMES

It's a non-standard feature of syslog.h and I don't think it's worth
the trouble.

We didn't really utilize it; someone would have to #define it,
and moreover we would get into problems if this wasn't being done
the same on all places including log.h.
Making the names adapt to the platform would also mean that
config files and docs wouldn't be portable.

Also make kr_log_level2name() return const.

4 years agolib/log.h nit: tweak macro for __LINE__
Vladimír Čunát [Wed, 28 Jul 2021 16:26:59 +0000 (18:26 +0200)] 
lib/log.h nit: tweak macro for __LINE__

- we don't need doubling the layer in this case,
  as the SD_JOURNAL_METADATA macro adds a layer already
- `TO_STR` was perhaps a too short name and could collide

4 years agodoc: add changes revelant for custom modules
Tomas Krizek [Wed, 28 Jul 2021 11:48:53 +0000 (13:48 +0200)] 
doc: add changes revelant for custom modules

4 years agologging: linter nitpicks
Tomas Krizek [Tue, 27 Jul 2021 21:56:59 +0000 (23:56 +0200)] 
logging: linter nitpicks

4 years agologging: add lua API test coverage
Tomas Krizek [Tue, 27 Jul 2021 21:34:26 +0000 (23:34 +0200)] 
logging: add lua API test coverage

4 years agologging: use log_groups() lua API
Tomas Krizek [Tue, 27 Jul 2021 21:12:03 +0000 (23:12 +0200)] 
logging: use log_groups() lua API

Use a single call as a setter and getter for log groups.

4 years agologging: use log_target() lua API
Tomas Krizek [Tue, 27 Jul 2021 20:12:12 +0000 (22:12 +0200)] 
logging: use log_target() lua API

Refactor into more consistent lua API.

4 years agolog: use log_level() lua API
Tomas Krizek [Tue, 27 Jul 2021 20:08:01 +0000 (22:08 +0200)] 
log: use log_level() lua API

Using a single function to get/set values is more consistent with our
existing lua API rather than having two separate set and get functions.

4 years agotreewide: avoid using the deprecated verbose()
Vladimír Čunát [Tue, 27 Jul 2021 08:29:22 +0000 (10:29 +0200)] 
treewide: avoid using the deprecated verbose()

It's mainly in tests.

4 years agolib/log: redesign startup and target selection
Vladimír Čunát [Mon, 26 Jul 2021 18:58:50 +0000 (20:58 +0200)] 
lib/log: redesign startup and target selection

- add lua set_log_target() + docs
- default to 'stderr' (manual runs)
- switch to 'syslog' in distro-preconfig.lua
- a few minor tweaks

4 years agolib/log detail: avoid a bit of duplication
Vladimír Čunát [Mon, 26 Jul 2021 18:56:43 +0000 (20:56 +0200)] 
lib/log detail: avoid a bit of duplication

4 years agolib/log.h: avoid defining types without kr_ prefix
Vladimír Čunát [Mon, 26 Jul 2021 17:21:50 +0000 (19:21 +0200)] 
lib/log.h: avoid defining types without kr_ prefix

Probably, it seems "more consistent".
Some defines still don't have it, but I left those.

4 years agolog: use kr_log_crit instead of kr_log_fatal
Lukáš Ježek [Mon, 26 Jul 2021 12:55:58 +0000 (14:55 +0200)] 
log: use kr_log_crit instead of kr_log_fatal

4 years agolib/log: slightly improve log group description and their ordering
Tomas Krizek [Fri, 23 Jul 2021 11:53:17 +0000 (13:53 +0200)] 
lib/log: slightly improve log group description and their ordering

4 years agodoc: logging
Lukáš Ježek [Thu, 22 Jul 2021 09:48:35 +0000 (11:48 +0200)] 
doc: logging

4 years agodoc: log() functions
Lukáš Ježek [Wed, 21 Jul 2021 11:31:24 +0000 (13:31 +0200)] 
doc: log() functions

4 years agoetc/config: Remove log functions
Lukáš Ježek [Wed, 21 Jul 2021 10:50:04 +0000 (12:50 +0200)] 
etc/config: Remove log functions

4 years agolog: add log functions and LOG_GRP_MODULE group for users's modules
Lukáš Ježek [Wed, 21 Jul 2021 09:40:29 +0000 (11:40 +0200)] 
log: add log functions and LOG_GRP_MODULE group for users's modules
logging

4 years agolib/utils: drop a pair of unused macros
Vladimír Čunát [Tue, 13 Jul 2021 11:18:18 +0000 (13:18 +0200)] 
lib/utils: drop a pair of unused macros

4 years agotreewide: replace VERBOSE_STATUS, WITH_VERBOSE, etc.
Vladimír Čunát [Tue, 13 Jul 2021 11:05:40 +0000 (13:05 +0200)] 
treewide: replace VERBOSE_STATUS, WITH_VERBOSE, etc.

The main problem there was ignoring the log groups,
and VERBOSE_STATUS also ignores trace-logging.
Typically the new kr_log_is_debug*() are the best choice.

In a couple places with heavy WITH_VERBOSE usage it's
instead locally redefined to consider the right group.

4 years agovalidate: add kr_rrset_validation_ctx_t::log_qry
Vladimír Čunát [Tue, 13 Jul 2021 10:06:28 +0000 (12:06 +0200)] 
validate: add kr_rrset_validation_ctx_t::log_qry

... so we can use it for more precise logging.  Some calls get simpler.
In particular, without the associated request, we can't produce anything
into trace-logs, which could be confusing.  Normal logs will benefit, too.
(more precise replacement of WITH_VERBOSE will come in a subsequent commit)

4 years agolib/log: add kr_log_is_debug*()
Vladimír Čunát [Mon, 12 Jul 2021 20:19:20 +0000 (22:19 +0200)] 
lib/log: add kr_log_is_debug*()

... and optimize a suspect hot path (through VERBOSE_MSG)

4 years agolib/log: make trace-logging not prevent normal logging
Vladimír Čunát [Mon, 12 Jul 2021 19:37:52 +0000 (21:37 +0200)] 
lib/log: make trace-logging not prevent normal logging

I think it's an old issue, but why not fix it now.
I believe it's better when these two are "independent".

Removed comment: once upon a time it belonged to auto_free
and similar macros, but somehow it survived various moves.

4 years agorework logging from control sockets (+simplify)
Vladimír Čunát [Mon, 12 Jul 2021 18:02:12 +0000 (20:02 +0200)] 
rework logging from control sockets (+simplify)

- unify interactive mode to stdout
- use its own logging group
- elevated log level when the command throws an exception
- don't try detecting that the logs go back into the same console
  (yes, in that case you can see some lines twice)
- don't make the binary mode turn off logging

4 years agoQRVERBOSE: fix ignoring the log groups
Vladimír Čunát [Mon, 12 Jul 2021 20:00:15 +0000 (22:00 +0200)] 
QRVERBOSE: fix ignoring the log groups

It would be yet another condition to check; overall I think the
necessary checks would get too complex to be done in a macro
and therefore copied all over the place.

Note: it's interesting that such a change reduces binary size
by about 3% (on master), and I suspect that speed won't suffer at all
(after that TODO is done).

4 years agolib/log: typing improvements
Vladimír Čunát [Mon, 12 Jul 2021 09:27:17 +0000 (11:27 +0200)] 
lib/log: typing improvements

- const for names of log groups
- enum kr_log_group for a single log group
- the kr_log_groups bitmap doesn't need to be exposed or even exported
- return bool instead of int

4 years agologging: fix GNUTLS logging
Tomas Krizek [Thu, 8 Jul 2021 15:49:29 +0000 (17:49 +0200)] 
logging: fix GNUTLS logging

- ensure gnutls logging can be turned on/off by using GNUTLS log group
- keep TLS / TLSCLIENT as log groups for our TLS logs and use GNUTLS
  instead

4 years agologging: use LOG_GRP_HTTP for http lua module
Tomas Krizek [Thu, 8 Jul 2021 15:07:10 +0000 (17:07 +0200)] 
logging: use LOG_GRP_HTTP for http lua module

It's better to use separate log group, to separate between logs that
come from the lua module vs native C implementation. It is also more
descriptive, since http modules is used for other stuff besides its
deprecated DoH.

4 years agologging: nitpicks
Tomas Krizek [Thu, 8 Jul 2021 14:40:42 +0000 (16:40 +0200)] 
logging: nitpicks

4 years agologging: use dedicated DOTAUTH log for experimental auth DoT
Tomas Krizek [Thu, 8 Jul 2021 14:40:32 +0000 (16:40 +0200)] 
logging: use dedicated DOTAUTH log for experimental auth DoT

4 years agologging: rename *_log_groups() function to plural
Tomas Krizek [Thu, 8 Jul 2021 14:31:27 +0000 (16:31 +0200)] 
logging: rename *_log_groups() function to plural

Plural makes more sense to me here, since it can take a table with
multiple entries as input.

4 years agologging: add test for log groups
Tomas Krizek [Thu, 8 Jul 2021 11:32:37 +0000 (13:32 +0200)] 
logging: add test for log groups

Besides testing the API, running this test also ensures all log groups
have been properly defined (as long as kr_assertions are turned on).

4 years agologging: add missing LOG_GRP_PLAN
Tomas Krizek [Wed, 7 Jul 2021 15:17:55 +0000 (17:17 +0200)] 
logging: add missing LOG_GRP_PLAN

4 years agologging: fix get_log_group()
Tomas Krizek [Thu, 8 Jul 2021 11:30:22 +0000 (13:30 +0200)] 
logging: fix get_log_group()

To ensure all log groups have been properly defined, iterate over the
entire enum. If a value is missing, assert will be triggered.

Also fixes groups with number >=32 (32bit value was used to test
whether group is set before).

4 years agologging: add LOG_GRP_DEVEL
Tomas Krizek [Thu, 8 Jul 2021 11:28:11 +0000 (13:28 +0200)] 
logging: add LOG_GRP_DEVEL

This serves two purposes:

1. As a utility logger during development.
2. As the last entry in enum - to make iteration over the values
   possible. Changing the value of LOG_GRP_DEVEL shouldn't be an issue,
   since it shouldn't be used in production code.

4 years agologging: print group name padded to 6 characters
Tomas Krizek [Thu, 8 Jul 2021 01:37:43 +0000 (03:37 +0200)] 
logging: print group name padded to 6 characters

Add space padding when printing the group name to allow usage of
regular group names in lua code (e.g. "io" instead of "io    ").

4 years agologging: add get_log_group() with better API
Tomas Krizek [Wed, 7 Jul 2021 15:15:08 +0000 (17:15 +0200)] 
logging: add get_log_group() with better API

The function returns a table where key is the group name and the value
is either true (when logging selected group), or nil (when group isn't
selected).

This replaces the list_log_group() which didn't really work.

4 years agologging: ensure get/set_log_level behaves consistently
Tomas Krizek [Wed, 7 Jul 2021 13:45:26 +0000 (15:45 +0200)] 
logging: ensure get/set_log_level behaves consistently

Ensure both these functions return string that represents the log level.

Also avoid using printf - it'd probably break API when using map().

4 years agolib: make NOTICE the default log level
Tomas Krizek [Wed, 7 Jul 2021 13:22:01 +0000 (15:22 +0200)] 
lib: make NOTICE the default log level

I think notice is a good default - it should be used for scarce messages
that the user should see, while info level provides more low level info.

It could make sense to increase the log level to info if running with
journalctl (but it might be overkill).

4 years agodaemon/main: log interactive message properly
Tomas Krizek [Wed, 7 Jul 2021 13:21:41 +0000 (15:21 +0200)] 
daemon/main: log interactive message properly

4 years agolog: fix kr_log_fmt SIGSEGV crash
Lukáš Ježek [Fri, 2 Jul 2021 13:15:01 +0000 (15:15 +0200)] 
log: fix kr_log_fmt SIGSEGV crash

4 years agolog: use kr_log_debug instead kr_log_verbose
Lukáš Ježek [Fri, 2 Jul 2021 13:09:29 +0000 (15:09 +0200)] 
log: use kr_log_debug instead kr_log_verbose

4 years agolog: fix CI tests
Lukáš Ježek [Fri, 2 Jul 2021 07:32:51 +0000 (09:32 +0200)] 
log: fix CI tests

4 years agolog: lua logging
Lukáš Ježek [Thu, 24 Jun 2021 11:53:22 +0000 (13:53 +0200)] 
log: lua logging

4 years agolog: fix CI tests
Lukáš Ježek [Tue, 22 Jun 2021 12:25:42 +0000 (14:25 +0200)] 
log: fix CI tests

4 years agolog: shortening LOG_GRP_<SOMETHING> to <SOMETHING>
Lukáš Ježek [Fri, 18 Jun 2021 13:02:17 +0000 (15:02 +0200)] 
log: shortening LOG_GRP_<SOMETHING> to <SOMETHING>

4 years agolog: remove hard-coded prefix from log messages
Lukáš Ježek [Fri, 18 Jun 2021 08:14:56 +0000 (10:14 +0200)] 
log: remove hard-coded prefix from log messages

4 years agolog: add level prefix to each message
Lukáš Ježek [Tue, 15 Jun 2021 10:35:53 +0000 (12:35 +0200)] 
log: add level prefix to each message

4 years agolog: remove NOVERBOSELOG option
Lukáš Ježek [Thu, 10 Jun 2021 12:00:28 +0000 (14:00 +0200)] 
log: remove NOVERBOSELOG option

4 years agolog: lua: add list_log_group
Lukáš Ježek [Wed, 9 Jun 2021 11:32:34 +0000 (13:32 +0200)] 
log: lua: add list_log_group

4 years agolog: groups lua interface
Lukáš Ježek [Fri, 28 May 2021 13:18:11 +0000 (15:18 +0200)] 
log: groups lua interface

4 years agolog: fix journal metadata
Lukáš Ježek [Tue, 25 May 2021 14:15:44 +0000 (16:15 +0200)] 
log: fix journal metadata

4 years agolog: split to groups
Lukáš Ježek [Mon, 24 May 2021 09:13:53 +0000 (11:13 +0200)] 
log: split to groups

4 years agolog: lua interface
Lukáš Ježek [Tue, 18 May 2021 06:42:13 +0000 (08:42 +0200)] 
log: lua interface

4 years agolog: add syslog target, systemd
Lukáš Ježek [Thu, 13 May 2021 08:50:57 +0000 (10:50 +0200)] 
log: add syslog target, systemd

4 years agolog: remove kr_verbose_status
Lukáš Ježek [Tue, 4 May 2021 10:03:26 +0000 (12:03 +0200)] 
log: remove kr_verbose_status

4 years agolog: remove kr_verbose_set
Lukáš Ježek [Tue, 4 May 2021 08:39:33 +0000 (10:39 +0200)] 
log: remove kr_verbose_set

4 years agolog: add log levels
Lukáš Ježek [Fri, 30 Apr 2021 07:39:23 +0000 (09:39 +0200)] 
log: add log levels

4 years agoMerge branch 'uv_timer_t-corruption' into 'master' obs-knot-resolver-es11k1/deployments/1801
Tomas Krizek [Wed, 28 Jul 2021 18:18:56 +0000 (18:18 +0000)] 
Merge branch 'uv_timer_t-corruption' into 'master'

daemon/session: fix an issue with timers

See merge request knot/knot-resolver!1195

4 years agodaemon/session: fix an issue with timers
Vladimír Čunát [Thu, 22 Jul 2021 16:23:37 +0000 (18:23 +0200)] 
daemon/session: fix an issue with timers

The practical problem was also mitigated by libuv >= 1.32.0 (2ee2d46)

4 years agoMerge branch 'knot-master' into 'master' obs-knot-resolver-es11k1/deployments/1800
Tomas Krizek [Tue, 27 Jul 2021 08:47:34 +0000 (08:47 +0000)] 
Merge branch 'knot-master' into 'master'

utils/cache_gc nit: use dynarray from libknot 3.1

See merge request knot/knot-resolver!1194

4 years agoutils/cache_gc nit: use dynarray from libknot 3.1
Vladimír Čunát [Mon, 26 Jul 2021 19:36:31 +0000 (21:36 +0200)] 
utils/cache_gc nit: use dynarray from libknot 3.1

It's compatible, so the only real effect is avoiding compiler:
warning: "DYNARRAY_VISIBILITY_PUBLIC" redefined

4 years agoMerge branch 'knot-master' into 'master' obs-knot-resolver-es11k1/deployments/1786 obs-knot-resolver-es11k1/deployments/1787 obs-knot-resolver-es11k1/deployments/1788 obs-knot-resolver-es11k1/deployments/1789 obs-knot-resolver-es11k1/deployments/1790 obs-knot-resolver-es11k1/deployments/1792 obs-knot-resolver-es11k1/deployments/1794 obs-knot-resolver-es11k1/deployments/1796 obs-knot-resolver-es11k1/deployments/1797 obs-knot-resolver-es11k1/deployments/1798 obs-knot-resolver-es11k1/deployments/1799
Tomas Krizek [Fri, 16 Jul 2021 11:21:13 +0000 (11:21 +0000)] 
Merge branch 'knot-master' into 'master'

support Knot DNS master (3.1)

See merge request knot/knot-resolver!1192

4 years agodaemon/lua/kres-gen: support two versions based on Knot obs-knot-dns-deve-jq0xxt/deployments/1785 obs-knot-resolver-bs4hbr/deployments/1784
Vladimír Čunát [Fri, 16 Jul 2021 09:38:58 +0000 (11:38 +0200)] 
daemon/lua/kres-gen: support two versions based on Knot

4 years agoci/debian-*/Dockerfile: fix build with KNOT_BRANCH=master
Vladimír Čunát [Thu, 15 Jul 2021 17:27:12 +0000 (19:27 +0200)] 
ci/debian-*/Dockerfile: fix build with KNOT_BRANCH=master

The go stuff probably never worked on buster and we just forgot to test.

4 years agodaemon: fix XDP includes for libknot master
Vladimír Čunát [Tue, 13 Jul 2021 08:02:27 +0000 (10:02 +0200)] 
daemon: fix XDP includes for libknot master

This part is fully compatible with 3.0, fortunately.
It was insufficient inclusion on our side anyway, working by accident.

4 years agoMerge branch 'p/kres_gen_test' into 'master'
Tomas Krizek [Fri, 16 Jul 2021 09:35:14 +0000 (09:35 +0000)] 
Merge branch 'p/kres_gen_test' into 'master'

meson.build: add a simple sanity check of kres-gen result

See merge request knot/knot-resolver!1190

4 years agomeson.build: add a simple sanity check of kres-gen result
Vladimír Čunát [Wed, 7 Jul 2021 15:14:44 +0000 (17:14 +0200)] 
meson.build: add a simple sanity check of kres-gen result

4 years agodaemon/lua/kres-gen.lua: make it self-contained
Vladimír Čunát [Thu, 15 Jul 2021 10:06:35 +0000 (12:06 +0200)] 
daemon/lua/kres-gen.lua: make it self-contained

Now those type definitions can be simply loaded without any error, e.g.
luajit daemon/lua/kres-gen.lua
That will be useful for checking them without regenerating them.

4 years agoMerge branch 'ci-rocky-8' into 'master' obs-knot-resolver-es11k1/deployments/1783
Tomas Krizek [Thu, 15 Jul 2021 15:38:58 +0000 (15:38 +0000)] 
Merge branch 'ci-rocky-8' into 'master'

ci: packaging test for RockyLinux 8

See merge request knot/knot-resolver!1187

4 years agoci/pkgtest: omit installing debug and devel packages
Tomas Krizek [Thu, 24 Jun 2021 15:17:21 +0000 (17:17 +0200)] 
ci/pkgtest: omit installing debug and devel packages

4 years agoci: add rocky-8 pkgtest
Tomas Krizek [Wed, 23 Jun 2021 13:38:41 +0000 (15:38 +0200)] 
ci: add rocky-8 pkgtest

4 years agoMerge branch 'apkg-nix' into 'master' obs-knot-resolver-es11k1/deployments/1772 obs-knot-resolver-es11k1/deployments/1773 obs-knot-resolver-es11k1/deployments/1774 obs-knot-resolver-es11k1/deployments/1775 obs-knot-resolver-es11k1/deployments/1776 obs-knot-resolver-es11k1/deployments/1777 obs-knot-resolver-es11k1/deployments/1779 obs-knot-resolver-es11k1/deployments/1782
Tomas Krizek [Wed, 7 Jul 2021 05:40:49 +0000 (05:40 +0000)] 
Merge branch 'apkg-nix' into 'master'

add nix: apkg + CI

See merge request knot/knot-resolver!1189

4 years agoci/pkgtest: add nix
Vladimír Čunát [Thu, 1 Jul 2021 18:33:54 +0000 (20:33 +0200)] 
ci/pkgtest: add nix

For now just a simple docker-based build, atop nixos-unstable
(for now my nixpkgs branch that also adds apkg itself).

4 years agodistro/pkg/nix: add
Vladimír Čunát [Mon, 21 Jun 2021 14:44:33 +0000 (16:44 +0200)] 
distro/pkg/nix: add

- Support is in apkg master now.
- The generated default.nix is exactly as in the distro:
  https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/dns/knot-resolver/default.nix
  (except for new version+hash, and one test needed a tweak since 5.3.2)

4 years agoMerge branch 'ci-arm' into 'master'
Tomas Krizek [Wed, 7 Jul 2021 04:57:10 +0000 (04:57 +0000)] 
Merge branch 'ci-arm' into 'master'

ci: test on armhf and arm64

See merge request knot/knot-resolver!1186

4 years agoci: attempt to make CI more robust by reducing paralelism
Tomas Krizek [Mon, 21 Jun 2021 14:45:09 +0000 (16:45 +0200)] 
ci: attempt to make CI more robust by reducing paralelism

Some tests (typically those using network) ocassionally fail due to
timeouts, which is probably due to increased CI load - perhaps reducing
it could make the tests more stable.

4 years agoci: disable ta_bootstrap on 32bit ARM
Tomas Krizek [Mon, 21 Jun 2021 14:23:41 +0000 (16:23 +0200)] 
ci: disable ta_bootstrap on 32bit ARM

The test attempts to use the timestamp 2050-12-31T23:59:59, which can't
be represented with 32bit time_t due to Year 2038 problem.

4 years agoprintf: use platform independent length modifiers
Tomas Krizek [Mon, 21 Jun 2021 12:51:28 +0000 (14:51 +0200)] 
printf: use platform independent length modifiers

Make sure we use the correct lemgth modifiers to support both 32b and
64b architectures.

4 years agoci: test on armhf and arm64
Tomas Krizek [Mon, 21 Jun 2021 12:06:47 +0000 (14:06 +0200)] 
ci: test on armhf and arm64