Commit Graph

35581 Commits

Author SHA1 Message Date
Arаm Sаrgsyаn
2ffc27f76e Merge branch '4477-tests-statschannel-loadtime-bugfix-9.16' into 'bind-9.16'
[9.16] Resolve "statschannel test intermittently fails with incorrect zone loadtime"

See merge request isc-projects/bind9!8584
2023-12-18 10:57:20 +00:00
Aram Sargsyan
13dab06f60 Fix a statschannel system test zone loadtime issue
The check_loaded() function compares the zone's loadtime value and
an expected loadtime value, which is based on the zone file's mtime
extracted from the filesystem.

For the secondary zones there may be cases, when the zone file isn't
ready yet before the zone transfer is complete and the zone file is
dumped to the disk, so a so zero value mtime is retrieved.

In such cases wait one second and retry until timeout. Also modify
the affected check to allow a possible difference of the same amount
of seconds as the chosen timeout value.

(cherry picked from commit 4e94ff2541)
2023-12-18 09:39:11 +00:00
Michal Nowak
0e282066fb Merge branch 'mnowak/do-not-consider-bind9.xsl.h-in-docs-job-check' into 'bind-9.16'
Do not consider bin/named/bind9.xsl.h in docs job check

See merge request isc-projects/bind9!8568
2023-12-12 12:46:43 +00:00
Michal Nowak
eb5ae97083 Do not consider bin/named/bind9.xsl.h in docs job check
The BIND 9.16 build system occasionally produces a bin/named/bind9.xsl.h
file that differs slightly from the version in the bind-9.16 branch due
to a race condition. This poses an issue for the "docs" CI job, which
executes the "maintainer-clean" make target, regenerates the
bin/named/bind9.xsl.h file, and checks for differences with the
committed file. The race condition causes discrepancies in this check.

Since this problem doesn't occur in BIND 9.18+, we can hide it by adding
bin/named/bind9.xsl.h to the list of files excluded from the check.
2023-12-12 11:43:15 +01:00
Michal Nowak
11310cca77 Merge branch 'mnowak/alpine-3.19-9.16' into 'bind-9.16'
[9.16] Add Alpine Linux 3.19

See merge request isc-projects/bind9!8567
2023-12-12 10:43:04 +00:00
Michal Nowak
e34a8141a0 Add Alpine Linux 3.19
(cherry picked from commit 1fc56d705e)
2023-12-12 11:13:17 +01:00
Michal Nowak
7e033d1d28 Merge branch 'mnowak/replace-danger-python-with-hazard-9.16' into 'bind-9.16'
[9.16] Replace danger-python with Hazard

See merge request isc-projects/bind9!8564
2023-12-11 17:24:39 +00:00
Tom Krizek
d37c4d6380 Handle empty MR description in dangerfile
A merge request might have no description at all (i.e. None, rather than
an empty string). This might happen when the MR is created via an API.
Check a description is present before trying to find a backport string
in it.

(cherry picked from commit 4f70f5bd7c)
2023-12-11 17:52:20 +01:00
Michał Kępień
c2d041f1fd Improve determining the lines added by a branch
Since the list of lines added to Git-tracked text files in a given
branch is not part of the Danger DSL [1], it is determined using custom
code in dangerfile.py.  The current implementation of that logic is less
than perfect as it examines the diff between the current tip of the
target branch and the source branch rather than the diff between the
merge base of the two branches and the source branch.  Consider a Git
history like this:

    *   F (target)
    ...
    *   E
    *   D
    *   C
    | * B (source)
    |/
    *   A (merge base)

If danger-python or Hazard are run for commit B, the current logic for
determining the list of added lines in dangerfile.py examines the diff
between commits F and B rather than between commits A and B.  Therefore,
the added_lines() function returns not just the lines added by commit B
on top of commit A, but also the list of lines that were removed between
commits A and F, which leads to confusing results.

Fix by using the triple-dot diff operator in the Git invocation whose
output is used as the source of information for determining the list of
lines added by a given branch.

Since Hazard fetches the target branch itself when it is run, remove the
explicit "git fetch" invocation that fetches the target branch from
GitLab (shortening its local history to a single commit in the process)
before "git diff" is invoked.

[1] https://danger.systems/js/reference.html#GitDSL

(cherry picked from commit 43126e81e6)
2023-12-11 17:52:18 +01:00
Michal Nowak
f9115f00bc Replace danger-python with Hazard
Hazard is a minimal danger-python replacement.

(cherry picked from commit 08ce1bc45f)
2023-12-11 17:52:11 +01:00
Evan Hunt
fdabdc158e Merge branch '3498-glue-rehash-overflow-bind-9.16' into 'bind-9.16'
[9.16] correctly limit hash resize to RBTDB_GLUE_TABLE_MAX_BITS

See merge request isc-projects/bind9!8552
2023-12-06 20:15:31 +00:00
Evan Hunt
0361d6ab70 correctly limit hash resize to RBTDB_GLUE_TABLE_MAX_BITS
Use < instead of <= when testing the new new hash bits size,
otherwise it can exceed the limit.

(cherry picked from commit 8f73814469)
2023-12-06 11:45:19 -08:00
Mark Andrews
c7786ea1e2 Merge branch '4433-supplied-buffer-too-large-in-wire_test-c-bind-9.16' into 'bind-9.16'
[9.16] Resolve "Supplied Buffer Too Large in wire_test.c"

See merge request isc-projects/bind9!8545
2023-12-05 22:33:48 +00:00
Mark Andrews
e5e8e3f226 Adjust comment to have correct message limit value
(cherry picked from commit 560c245971)
2023-12-06 09:06:31 +11:00
Mark Andrews
c9147530fd Adjust message buffer sizes in test code
(cherry picked from commit cbfcdbc199)
2023-12-06 09:06:31 +11:00
Mark Andrews
057c12d29a Check that buffer length in dns_message_renderbegin
The maximum DNS message size is 65535 octets. Check that the buffer
being passed to dns_message_renderbegin does not exceed this as the
compression code assumes that all offsets are no bigger than this.

(cherry picked from commit a069513234)
2023-12-06 09:06:31 +11:00
Michal Nowak
ad4b76921a Merge branch 'mnowak/drop-openbsd-system-test-job-9.16' into 'bind-9.16'
[9.16] Drop OpenBSD system test CI job

See merge request isc-projects/bind9!8541
2023-12-05 16:51:16 +00:00
Michal Nowak
4a6398501e Drop OpenBSD system test CI job
The system tests on OpenBSD consistently exhibit lower stability
compared to our other CI platforms. Some of these challenges are
intrinsic to the system test itself and require attention. However,
there are OpenBSD issues, which seem to be more widespread on this
platform than others. In our daily CI pipelines, OpenBSD system tests
often bear the brunt of all failed CI jobs.

It's possible that our OpenBSD CI image could be optimized, but we
currently lack the domain-specific knowledge needed to make
improvements.

(cherry picked from commit 2ab292c169)
2023-12-05 17:46:20 +01:00
Tom Krizek
ec0a756f6c Merge branch '4421-deprecate-AES-based-DNS-cookies-9.16' into 'bind-9.16'
[9.16] Deprecate AES algorithm for DNS cookies

See merge request isc-projects/bind9!8487
2023-12-05 12:35:39 +00:00
Ondřej Surý
f2a2ec92b9 Add CHANGES and release note for [GL #4421]
(cherry picked from commit 2a3b3beaf1)
2023-12-05 10:57:00 +01:00
Ondřej Surý
62cf6b2e7f Deprecate AES algorithm for DNS cookies
The AES algorithm for DNS cookies was being kept for legacy reasons,
and it can be safely removed in the next major release.  Mark is as
deprecated, so the `named-checkconf` prints a warning when in use.

(cherry picked from commit 67d14b0ee5)
2023-12-05 10:56:19 +01:00
Michal Nowak
6111f27669 Merge branch '3198-add-rr-record-9.16' into 'bind-9.16'
[9.16] Add support for recording named with rr

See merge request isc-projects/bind9!8537
2023-12-04 21:14:14 +00:00
Michał Kępień
57f7abdd9f Do not daemonize named instances with custom args
This enables the "logfileconfig" and "rpzextra" system tests to pass
when named is started under the supervision of rr (USE_RR=1).

(cherry picked from commit 422286e9c2)
2023-12-04 20:10:17 +01:00
Michal Nowak
5bcce417b7 Add support for recording named runtime with rr
The traces of the named process are stored in the directory
$system_test/nsX/named-Y/.

(cherry picked from commit e088e8a992)
2023-12-04 20:08:18 +01:00
Ondřej Surý
7099e60b1d Remove support for running system tests under Valgrind
Valgrind support has been scarcely used.

(cherry picked from commit 658d62a6f4)
2023-12-04 20:05:19 +01:00
Michal Nowak
17428c63f8 Merge branch 'mnowak/freebsd-14.0-9.16' into 'bind-9.16'
[9.16] Add FreeBSD 14.0

See merge request isc-projects/bind9!8534
2023-12-04 16:03:51 +00:00
Michal Nowak
f8f6a98faf Add FreeBSD 14.0
(cherry picked from commit 9152fc40a8)
2023-12-04 16:29:23 +01:00
Michał Kępień
161d69aba3 Merge branch 'michal/minor-gitlab-ci-cleanup-9.16' into 'bind-9.16'
[9.16] Minor GitLab CI cleanup

See merge request isc-projects/bind9!8513
2023-11-21 09:34:07 +00:00
Michał Kępień
d876d2a61d Move job definition to the proper place
The definition of the "cross-version-config-tests" GitLab CI job was
accidentally added in the .gitlab-ci.yml section that claims to only
contain job templates.  Move the definition of that job to a more
appropriate location in .gitlab-ci.yml, without changing the job
definition itself.

(cherry picked from commit 192cceba5a)
2023-11-21 10:31:39 +01:00
Michał Kępień
3a147a6e96 Drop the TARBALL_{COMPRESSOR,EXTENSION} variables
All currently supported BIND 9 branches use xz-packed tarballs for
source code distribution.  Having variables with lengthy names that only
hold two characters does not improve readability - it was only useful
for maintaining .gitlab-ci.yml consistency between BIND 9.11 and all the
newer branches, but that era has come to an end a while ago.

Replace all occurrences of the TARBALL_COMPRESSOR and TARBALL_EXTENSION
variables in .gitlab-ci.yml with a fixed string ("xz") to simplify the
contents of that file.

(cherry picked from commit 832c7d4396)
2023-11-21 10:31:39 +01:00
Evan Hunt
7b820b3967 Merge branch '3983-secondary-loadtime-bind-9.16' into 'bind-9.16'
[9.16] set loadtime during initial transfer of a secondary zone

See merge request isc-projects/bind9!8507
2023-11-20 18:46:44 +00:00
Evan Hunt
12c60e9a26 set loadtime during initial transfer of a secondary zone
when transferring in a non-inline-signing secondary for the first time,
we previously never set the value of zone->loadtime, so it remained
zero. this caused a test failure in the statschannel system test,
and that test case was temporarily disabled.  the value is now set
correctly and the test case has been reinstated.

(cherry picked from commit 9643281453)
2023-11-20 09:56:50 -08:00
Michał Kępień
6e32e189f0 Merge tag 'v9.16.45' into bind-9.16 2023-11-15 15:00:44 +01:00
Michal Nowak
2620f54ad3 Merge branch 'mnowak/fedora-39-9.16' into 'bind-9.16'
[9.16] Add Fedora 39

See merge request isc-projects/bind9!8492
2023-11-15 06:41:56 +00:00
Michal Nowak
a8a62cc38c Add Fedora 39
(cherry picked from commit cdb4b97b28)
2023-11-14 19:45:50 +01:00
Ondřej Surý
ca52906070 Merge branch 'ondrej-clang-format-17-bind-9.16' into 'bind-9.16'
[9.16] Reformat sources with up-to-date clang-format-17

See merge request isc-projects/bind9!8490
2023-11-13 16:22:31 +00:00
Ondřej Surý
35630c9210 Reformat sources with up-to-date clang-format-17 2023-11-13 17:15:55 +01:00
Petr Špaček
6fe6e34e31 Merge branch 'pspacek/set-up-version-and-release-notes-for-bind-9.16.46' into 'bind-9.16'
Set up version and release notes for BIND 9.16.46

See merge request isc-projects/bind9!8484
2023-11-10 13:27:04 +00:00
Petr Špaček
5bd6ce99ff Set up release notes for BIND 9.16.46 2023-11-10 14:05:53 +01:00
Petr Špaček
a1c92efc53 Update BIND version to 9.16.46-dev 2023-11-10 14:05:53 +01:00
Michał Kępień
353fb4b9d3 Merge branch 'prep-release' into v9.16.45-release v9.16.45 2023-11-09 13:48:58 +01:00
Michał Kępień
22c3b0fb67 prep 9.16.45 2023-11-09 13:48:43 +01:00
Michał Kępień
d178925c84 Merge branch 'michal/prepare-documentation-for-bind-9.16.45' into 'v9.16.45-release'
Prepare documentation for BIND 9.16.45

See merge request isc-private/bind9!593
2023-11-09 12:47:11 +00:00
Michał Kępień
c620a36dcc Tweak and reword release notes 2023-11-09 13:22:37 +01:00
Michał Kępień
ac42de7af7 Prepare release notes for BIND 9.16.45 2023-11-09 13:22:37 +01:00
Mark Andrews
70a99fa770 Merge branch '4101-update-b-root-server-net-addresses-bind-9.16' into 'bind-9.16'
[9.16] Resolve "Update b.root-server.net addresses"

See merge request isc-projects/bind9!8463
2023-11-02 17:18:06 +00:00
Mark Andrews
eda6bbc6cf Add release note for [GL #4101]
(cherry picked from commit c7a06b1fa1)
2023-11-03 03:45:25 +11:00
Mark Andrews
1448a2c321 Add CHANGES note for [GL #4101]
(cherry picked from commit b9bba29c5e)
2023-11-03 03:45:24 +11:00
Mark Andrews
066de399bd Suppress reporting upcoming changes in root hints
To reduce the amount of log spam when root servers change their
addresses keep a table of upcoming changes by expected date and time
and suppress reporting differences for them until then.

Add initial entry for B.ROOT-SERVERS.NET, Nov 27, 2023.

(cherry picked from commit b69100b747)
2023-11-03 03:44:43 +11:00
Mark Andrews
8924adca61 Update b.root-servers.net IP addresses
This covers both root hints and the default primaries for the root
zone mirror.  The official change date is Nov 27, 2023.

(cherry picked from commit 2ca2f7e985)
2023-11-03 03:44:43 +11:00