]> git.ipfire.org Git - thirdparty/bind9.git/commit
Limit logging for verbose system tests
authorMichał Kępień <michal@isc.org>
Wed, 28 Apr 2021 05:56:47 +0000 (07:56 +0200)
committerMichał Kępień <michal@isc.org>
Wed, 28 Apr 2021 06:36:56 +0000 (08:36 +0200)
commit966ab29e324eac6d47a883e6cfb7bede4941c8ec
treeea4dfe1d2cd08e01d83cc2a3650f7e03575911c7
parentdaf5f2becb086e9fbbdca261036f77e1621eb698
Limit logging for verbose system tests

The system test framework starts all named instances with the "-d 99"
command line option (unless it is overridden by a named.args file in a
given instance's working directory).  This causes a lot of log messages
to be written to named.run files - currently over 5 million lines for a
single test suite run.  While debugging information preserved in the log
files is essential for troubleshooting intermittent test failures, some
system tests involve sending hundreds or even thousands of queries,
which causes the relevant log files to explode in size.  When multiple
tests (or even multiple test suites) are run in parallel, excessive
logging contributes considerably to the I/O load on the test host,
increasing the odds of intermittent test failures getting triggered.

Decrease the debug level for the seven most verbose named instances:

  - use "-d 3" for ns2 in the "cacheclean" system test (it is the lowest
    logging level at which the test still passes without the need to
    apply any changes to tests.sh),

  - use "-d 1" for the other six named instances.

This roughly halves the number of lines logged by each test suite run
while still leaving enough information in the logs to allow at least
basic troubleshooting in case of test failures.

This approach was chosen as it results in a greater decrease in the
number of lines logged than running all named instances with "-d 3",
without causing any test failures.

(cherry picked from commit 4a8d404876f88e6f9f030c4b80db77cadfb783a8)
bin/tests/system/cacheclean/ns1/named.args [new file with mode: 0644]
bin/tests/system/cacheclean/ns2/named.args [new file with mode: 0644]
bin/tests/system/fetchlimit/ns3/named.args [new file with mode: 0644]
bin/tests/system/timeouts/ns1/named.args [new file with mode: 0644]
bin/tests/system/zero/ns2/named.args [new file with mode: 0644]
bin/tests/system/zero/ns3/named.args [new file with mode: 0644]
bin/tests/system/zero/ns4/named.args [new file with mode: 0644]
util/copyrights