Commit Graph
28632 Commits
Author SHA1 Message Date
Michał KępieńandOndřej Surý 5190c42841 Add Danger Python to GitLab CI
Certain rules of the BIND development process are not codified anywhere
and/or are used inconsistently.  In an attempt to improve this
situation, add a GitLab CI job which uses Danger Python to add comments
to merge requests when certain expectations are not met.  Two categories
of feedback are used, only one of which - fail() - causes the GitLab CI
job to fail.  Exclude dangerfile.py from Python QA checks as the way the
contents of that file are evaluated triggers a lot of Flake8 and PyLint
warnings.

(cherry picked from commit 36bb45a8b6)
2020-06-01 13:49:05 +02:00
Mark Andrews 97cdeb2c41 Merge branch '1858-silence-tsan-in-bin-nsupdate-nsupdate-c-v9_11' into 'v9_11'
Lock access to 'answer' to silence TSAN

See merge request isc-projects/bind9!3598
2020-05-28 03:46:29 +00:00
Mark Andrews 919ea623aa Lock access to 'answer' to silence TSAN
(cherry picked from commit b3bd8a270b)
2020-05-28 11:13:37 +10:00
Mark Andrews 9bf9b3ca0c Merge branch '1853-force-promotion-to-unsigned-int' into 'v9_11'
Resolve "Force promotion to unsigned int."

See merge request isc-projects/bind9!3547
2020-05-28 00:37:41 +00:00
Mark Andrews 20e848bc3b Force promotion to unsigned int then shift the result 2020-05-28 09:59:40 +10:00
Mark Andrews d8343f9f15 Merge branch '1861-named_checknames_get-missing-dbc-v9_11' into 'v9_11'
Resolve "named_checknames_get missing DBC"

See merge request isc-projects/bind9!3582
2020-05-25 03:25:39 +00:00
Mark Andrews 2f75aa8120 Add DBC checks to named_checknames_get
(cherry picked from commit 20c07da49b)
2020-05-25 11:56:15 +10:00
Mark Andrews 35964017d0 Set obj to NULL so INSIST makes sense
(cherry picked from commit ac9e266749)
2020-05-25 11:56:14 +10:00
Michał Kępień 15426151af Merge branch 'michal/do-not-install-python-packages-in-gitlab-ci-jobs-v9_11' into 'v9_11'
[v9_11] Do not install Python packages in GitLab CI jobs

See merge request isc-projects/bind9!3574
2020-05-21 10:02:05 +00:00
Michał Kępień 513378a11a Do not install Python packages in GitLab CI jobs
As Python QA tools, BIND system test prerequisites, and documentation
building utilities are now all included in operating system images used
in GitLab CI, do not use pip for installing them in each CI job any
more.

(cherry picked from commit e3c217296d)
2020-05-21 11:43:57 +02:00
Michał Kępień 2b28dd5d40 Merge branch 'v9_11_19-release' into 'v9_11'
[CVE-2020-8616] [CVE-2020-8617] Merge 9.11.19 release branch

See merge request isc-projects/bind9!3565
2020-05-19 13:19:06 +00:00
Michał Kępień 4a33456f2e Set up release notes for BIND 9.11.20 2020-05-19 14:29:56 +02:00
Michał Kępień b4b5540a8b Bump BIND_BASELINE_VERSION for ABI checks 2020-05-19 14:29:56 +02:00
Michał Kępień afe9c72c92 Fix UTF-8 characters in doc/arm/notes.txt 2020-05-19 14:25:06 +02:00
Tinderbox UserandMichał Kępień d0f8a9d2b9 Merge branch 'prep-release' into v9_11 2020-05-19 14:25:06 +02:00
Tinderbox UserandMichał Kępień 85a5d7392e prep 9.11.19 2020-05-19 14:25:05 +02:00
Mark AndrewsandMichał Kępień 2e25875dbf Merge branch '1388-confidential-issue-security-v9_11' into 'security-v9_11'
1388 confidential issue security v9 11

See merge request isc-private/bind9!153
2020-05-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień 7fbcb53a4d Merge branch '1703-tsig-verify-failure-security-v9_11' into 'security-v9_11'
1703 tsig verify failure security v9 11

See merge request isc-private/bind9!150
2020-05-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień ea328d7f77 Add release notes entry 2020-05-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień fedb32b281 Add CHANGES entry 2020-05-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień 3507a927d5 Update the ARM to reflect that TLD and root servers are no longer exempt
from max-recursion-queries limits.
2020-05-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień 8b93271edc Count queries to the root and TLD servers as well 2020-05-19 14:24:53 +02:00
Stephen MorrisandMichał Kępień 5fb65f4544 Add test for reduction in number of fetches
Add a system test that counts how many address fetches are made
for different numbers of NS records and checks that the number
are successfully limited.
2020-05-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień 850ca8498c Reduce the number of fetches we make when looking up addresses
If there are more that 5 NS record for a zone only perform a
maximum of 4 address lookups for all the name servers.  This
limits the amount of remote lookup performed for server
addresses at each level for a given query.
2020-05-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień e244b73975 Add release note entry 2020-05-19 14:24:52 +02:00
Mark AndrewsandMichał Kępień 93e312cbd8 Add CHANGES entry 2020-05-19 14:24:52 +02:00
Mark AndrewsandMichał Kępień 086b0e4f1c Only look at tsig.error in responses 2020-05-19 14:24:52 +02:00
Mark AndrewsandMichał Kępień 67ba3f8f3a Check that a 'BADTIME' response with 'QR=0' is handled as a request 2020-05-19 14:24:52 +02:00
Mark Andrews 68881f49b9 Merge branch '1856-race-in-clear-signing-records-in-dnssec-system-test-v9_11' into 'v9_11'
Resolve "Race in 'clear signing records' in dnssec system test."

See merge request isc-projects/bind9!3560
2020-05-19 06:09:34 +00:00
Mark Andrews 016cea35f4 Add CHANGES
(cherry picked from commit 3405ee9eb2)
2020-05-19 13:51:45 +10:00
Mark Andrews 809d55226b Address race in dnssec system test. 'clear signing records' can fail
as the update triggers by the rndc command to clear the signing records
may not have completed by the time the subsequent rndc command to test
that the records have been removed is commenced.  Loop several times to
prevent false negative.

(cherry picked from commit 353018c0e5)
2020-05-19 13:50:51 +10:00
Michał Kępień 90bf2b10b2 Merge branch 'michal/misc-cppcheck-tweaks-v9_11' into 'v9_11'
[v9_11] Miscellaneous cppcheck tweaks

See merge request isc-projects/bind9!3553
2020-05-18 08:45:36 +00:00
Michał Kępień 41b4af5d20 Work around cppcheck 2.0 uninitvar false positives
cppcheck 2.0 reports false positives about uninitialized variables in a
lot of places throughout BIND source code, e.g.:

    bin/dig/host.c:386:24: error: Uninitialized variable: length [uninitvar]
     printf("%.*s", (int)r.length, (char *)r.base);
                           ^

Apparently cppcheck 2.0 has issues with processing (&var)->field syntax,
which is what the macros from lib/isc/include/isc/buffer.h are evaluated
to.  This issue was reported upstream [1] and will hopefully be
addressed in a future cppcheck release.

In the meantime, to avoid modifying BIND source code in multiple places
just because of a static checker false positive, work around the issue
by adding intermediate variables to buffer macro definitions using a sed
invocation in the cppcheck job script.

[1] https://sourceforge.net/p/cppcheck/discussion/general/thread/122153e3c1/

(cherry picked from commit 481fa34e50)
2020-05-18 10:41:41 +02:00
Michał Kępień b5608306d4 Make GCC version extraction work with GCC 10
Add whitespace to the regular expression used for extracting the GCC
version from "gcc --version" output so that it works properly with
multi-digit major version numbers.

(cherry picked from commit 3b48eec79f)
2020-05-18 10:41:41 +02:00
Michał Kępień 90a20ad8ef Ensure cppcheck creates a HTML report upon failure
Commit 00f12220c0 broke the cppcheck job
in GitLab CI: when cppcheck fails, the script is immediately
interrupted, preventing cppcheck-htmlreport from being run.  To ensure
the HTML report is generated when cppcheck fails, revert to invoking
cppcheck-htmlreport in the "after_script" part of the job.

(cherry picked from commit cb2037ee9d)
2020-05-18 10:41:06 +02:00
Mark Andrews 3b52372f3c Merge branch '1852-race-in-autosign-system-test-v9_11' into 'v9_11'
Resolve "race in autosign system test."

See merge request isc-projects/bind9!3550
2020-05-18 07:00:36 +00:00
Mark Andrews 7507971413 Add CHANGES
(cherry picked from commit 07e335138b)
2020-05-18 16:00:55 +10:00
Mark Andrews ae4f31e434 Retry checks that records are present and signed
There a race between when the delta is logged and when the
server returns signed record.  Retry the queries if the
lookups fail to meet expectations.

(cherry picked from commit 46c4e5d96f)
2020-05-18 16:00:51 +10:00
Mark Andrews fd5a55f924 Merge branch '1714-provide-ixfr-no-should-still-send-up-to-date-responses-v9_16-v9_11' into 'v9_11'
Resolve "'provide-ixfr no;' should still send up-to-date responses."

See merge request isc-projects/bind9!3540
2020-05-18 02:54:45 +00:00
Mark Andrews 6ca026b313 Add CHANGES entry
(cherry picked from commit 11b1cbecb0)
(cherry picked from commit 5b5bebee05)
2020-05-18 09:40:13 +10:00
Mark Andrews 7c1043ae73 move provide-ixfr testing after the serial has been checked
(cherry picked from commit c7cdc47cc5)
(cherry picked from commit 89c1bc58e4)
2020-05-18 09:40:13 +10:00
Michał Kępień f9e81cf40d Merge branch 'michal/generate-text-documentation-in-utf-8' into 'v9_11'
Generate text documentation in UTF-8

See merge request isc-projects/bind9!3518
2020-05-15 10:03:21 +00:00
Michał Kępień 5876e31960 Generate text documentation in UTF-8
Modify all invocations of "w3m -O ascii ..."  with their UTF-8
counterparts to ensure all text documentation generated from UTF-8
source files is also in UTF-8.
2020-05-15 12:00:54 +02:00
Michal Nowak 4ed9745e7a Merge branch 'mnowak/abi-check-artifacts-v9_11' into 'v9_11'
[v9_11] Collect TXT and HTML reports produced by ABI checker

See merge request isc-projects/bind9!3543
2020-05-15 09:37:58 +00:00
Michal Nowak db09c63003 Collect TXT and HTML reports produced by ABI checker
Although in util/api-checker.sh we create textual reports, we don't
preserve them in job artifacts, but we should.

We don't want to keep all HTML pages present in the project root, but
just those produced by ABI checker.

(cherry picked from commit b5ccf95b0a)
2020-05-15 11:32:57 +02:00
Mark Andrews 166199ce90 Merge branch '1835-add-the-ability-to-parse-and-display-extended-dns-error-code-ede-v9_16-v9_11' into 'v9_11'
Resolve "Add the ability to parse and display Extended DNS Error code (EDE)."

See merge request isc-projects/bind9!3530
2020-05-13 02:51:28 +00:00
Mark Andrews fc4626c124 Add release note entry
(cherry picked from commit 88615006c5)
(cherry picked from commit 2e02c6f9a7)
2020-05-13 12:18:55 +10:00
Mark Andrews e692d460a1 Add CHANGES entry
(cherry picked from commit 79729c0e19)
(cherry picked from commit e196c7f9fa)
2020-05-13 12:18:55 +10:00
Mark Andrews ee49cc6201 Check display of EDE option
(cherry picked from commit e6b0153f8a)
(cherry picked from commit 88e11a9971)
2020-05-13 12:18:55 +10:00
Mark Andrews 0339907d19 Also print out valid printable utf8
(cherry picked from commit 1c8f9d06e2)
(cherry picked from commit c13fb2c67f)
2020-05-13 12:18:55 +10:00