Serveur DNS
Find a file
Michał Kępień b4b00748bc chg: ci: Revise merge request pipeline job triggering rules
Over the past few years, some of the initial decisions made about which
GitLab CI jobs to run for all merge requests and which of them to run
just for scheduled/web-triggered pipelines turned out to be less than
ideal in practice: test coverage was found to be too lax in some areas
and on the other hand unnecessarily repetitive in others.  For example,
compilation failures for certain build types that are not exercised for
every merge request (e.g. FIPS-enabled builds) turned out to be much
more common in practice than e.g. test failures happening only on a
subset of releases of a given Linux distribution.

To limit excessive resource use while retaining broad test coverage,
adjust GitLab CI job triggering rules for merge request pipelines as
follows:

- run all possible build jobs for every merge request; compilation
failures triggered for build flavors that were only tested in
scheduled pipelines turned out to be surprisingly commonplace and
became a nuisance over time, particularly given that the run times
of build jobs are much lower than those of test jobs,

- for every merge request, run at least one system & unit test job for
each build flavor (e.g. sanitizer-enabled, FIPS-enabled,
out-of-tree, tarball-based, etc.),

- limit the amount of test jobs run for each distinct operating
system; for example, only run system & unit test jobs for Ubuntu
24.04 Noble Numbat in merge request pipelines, skipping those for
Ubuntu 22.04 Jammy Jellyfish and Ubuntu 20.04 Focal Fossa (while
still running them in other pipeline types, e.g. in scheduled
pipelines),

- ensure every merge request is tested on Oracle Linux 8, which is the
operating system with the oldest package versions out of the systems
that are still supported by this BIND 9 branch,

- decrease the number of test jobs run with sanitizers enabled while
still testing with both ASAN and TSAN and both GCC and Clang for
every merge request.

These changes do not affect the set of jobs created for any other
pipeline type (triggered by a schedule, by a GitLab API call, by the web
interface, etc.); only merge request pipelines are affected.

---

Since understanding the impact of this MR just by looking at the diff is
arguably challenging, I prepared some tables showing which jobs are
currently triggered for every merge request and what the new state of
things will be after this MR gets merged.

**Legend:**

  - 📈 - job was *not* run for every merge
    request before, but will be

  - 📉 - job was run for every merge request
    before, but will *not* be any longer

| Change | Job | Stage | Before | After | cff39d32455 | 2f1995c7136 / 4ad8c86cf2 |
| ------ | --- | ----- | ------ | ----- | ----------- | ----------- |
| | `docs` |  `docs` |  |  |  |  |
| | `docs:tarball` |  `docs` |  |  |  |  |
| | `clang:asan` |  `build` |  |  |  |  |
| | `clang:bookworm:amd64` |  `build` |  |  |  |  |
| | `clang:freebsd13:amd64` |  `build` |  |  |  |  |
| | `clang:freebsd14:amd64` |  `build` |  |  |  |  |
| | `clang:openbsd:amd64` |  `build` |  |  |  |  |
| | `clang:tsan` |  `build` |  |  |  |  |
| 📈| `gcc:8fips:amd64` |  `build` |  |  |  |  |
| 📈| `gcc:9fips:amd64` |  `build` |  |  |  |  |
| | `gcc:alpine3.21:amd64` |  `build` |  |  |  |  |
| | `gcc:asan` |  `build` |  |  |  |  |
| | `gcc:bookworm:amd64` |  `build` |  |  |  |  |
| | `gcc:bookworm:amd64cross32` |  `build` |  |  |  |  |
| | `gcc:bookworm:rbt:amd64` |  `build` |  |  |  |  |
| | `gcc:focal:amd64` |  `build` |  |  |  |  |
| | `gcc:jammy:amd64` |  `build` |  |  |  |  |
| | `gcc:noble:amd64` |  `build` |  |  |  |  |
| | `gcc:oraclelinux8:amd64` |  `build` |  |  |  |  |
| | `gcc:oraclelinux9:amd64` |  `build` |  |  |  |  |
| | `gcc:ossl3:sid:amd64` |  `build` |  |  |  |  |
| | `gcc:out-of-tree` |  `build` |  |  |  |  |
| | `gcc:sid:amd64` |  `build` |  |  |  |  |
| | `gcc:tarball` |  `build` |  |  |  |  |
| | `gcc:tarball:nosphinx` |  `build` |  |  |  |  |
| | `gcc:tsan` |  `build` |  |  |  |  |
| | `gcc:tumbleweed:amd64` |  `build` |  |  |  |  |
| | `cross-version-config-tests` |  `system` |  |  |  |  |
| | `respdiff` |  `system` |  |  |  |  |
| | `respdiff-third-party` |  `system` |  |  |  |  |
| | `respdiff:asan` |  `system` |  |  |  |  |
| | `respdiff:tsan` |  `system` |  |  |  |  |
| 📉| `system:clang:asan` |  `system` |  |  |  |  |
| 📉| `system:clang:bookworm:amd64` |  `system` |  |  |  |  |
| 📉| `system:clang:freebsd13:amd64` |  `system` |  |  |  |  |
| | `system:clang:freebsd14:amd64` |  `system` |  |  |  |  |
| | `system:clang:tsan` |  `system` |  |  |  |  |
| 📈| `system:gcc:8fips:amd64` |  `system` |  |  |  |  |
| | `system:gcc:9fips:amd64` |  `system` |  |  |  |  |
| | `system:gcc:alpine3.21:amd64` |  `system` |  |  |  |  |
| | `system:gcc:asan` |  `system` |  |  |  |  |
| | `system:gcc:bookworm:amd64` |  `system` |  |  |  |  |
| | `system:gcc:bookworm:rbt:amd64` |  `system` |  |  |  |  |
| 📉| `system:gcc:focal:amd64` |  `system` |  |  |  |  |
| 📉| `system:gcc:jammy:amd64` |  `system` |  |  |  |  |
| | `system:gcc:noble:amd64` |  `system` |  |  |  |  |
| 📉| `system:gcc:oraclelinux8:amd64` |  `system` |  |  |  |  |
| | `system:gcc:oraclelinux9:amd64` |  `system` |  |  |  |  |
| | `system:gcc:ossl3:sid:amd64` |  `system` |  |  |  |  |
| 📈| `system:gcc:out-of-tree` |  `system` |  |  |  |  |
| 📉| `system:gcc:sid:amd64` |  `system` |  |  |  |  |
| 📈| `system:gcc:tarball` |  `system` |  |  |  |  |
| 📉| `system:gcc:tsan` |  `system` |  |  |  |  |
| | `system:gcc:tumbleweed:amd64` |  `system` |  |  |  |  |
| 📉| `unit:clang:asan` |  `unit` |  |  |  |  |
| 📉| `unit:clang:bookworm:amd64` |  `unit` |  |  |  |  |
| 📉| `unit:clang:freebsd13:amd64` |  `unit` |  |  |  |  |
| | `unit:clang:freebsd14:amd64` |  `unit` |  |  |  |  |
| | `unit:clang:openbsd:amd64` |  `unit` |  |  |  |  |
| | `unit:clang:tsan` |  `unit` |  |  |  |  |
| 📈| `unit:gcc:8fips:amd64` |  `unit` |  |  |  |  |
| | `unit:gcc:9fips:amd64` |  `unit` |  |  |  |  |
| | `unit:gcc:alpine3.21:amd64` |  `unit` |  |  |  |  |
| | `unit:gcc:asan` |  `unit` |  |  |  |  |
| | `unit:gcc:bookworm:amd64` |  `unit` |  |  |  |  |
| | `unit:gcc:bookworm:rbt:amd64` |  `unit` |  |  |  |  |
| 📉| `unit:gcc:focal:amd64` |  `unit` |  |  |  |  |
| 📉| `unit:gcc:jammy:amd64` |  `unit` |  |  |  |  |
| | `unit:gcc:noble:amd64` |  `unit` |  |  |  |  |
| 📉| `unit:gcc:oraclelinux8:amd64` |  `unit` |  |  |  |  |
| | `unit:gcc:oraclelinux9:amd64` |  `unit` |  |  |  |  |
| | `unit:gcc:ossl3:amd64` |  `unit` |  |  |  |  |
| 📈| `unit:gcc:out-of-tree` |  `unit` |  |  |  |  |
| 📉| `unit:gcc:sid:amd64` |  `unit` |  |  |  |  |
| 📈| `unit:gcc:tarball` |  `unit` |  |  |  |  |
| 📉| `unit:gcc:tsan` |  `unit` |  |  |  |  |
| | `unit:gcc:tumbleweed:amd64` |  `unit` |  |  |  |  |

And a short statistical summary of the changes proposed:

| Stage | Before | After | Diff |
| ----- | ------ | ----- | ---- |
| `docs` | 2 | 2 | **0** |
| `build` | 23 | 25 | **+2** |
| `system` | 23 | 18 | **-5** |
| `unit` | 19 | 14 | **-5** |
| **TOTAL** | **67** | **59** | **-8** |

Mattermost thread (sparked by @pspacek):
https://mattermost.isc.org/isc/pl/z6nymnu4m3dhzr3rxtjkzzgk7a

Merge branch 'michal/revise-ci-job-triggering-rules' into 'main'

See merge request isc-projects/bind9!10349
2025-04-29 16:19:36 +00:00
.github/workflows Update github actions to trigger on correct branches 2023-03-27 17:09:09 +02:00
.gitlab/issue_templates Update CVE checklist 2025-02-11 17:34:52 +01:00
.reuse Remove the CHANGES file 2024-10-31 16:45:35 +00:00
bin Convert kasp inheritance tests 2025-04-25 10:20:46 +02:00
cocci Disable unsigned-int spatch in models.c and sdlz.c 2024-12-13 13:52:52 +01:00
contrib gitchangelog: don't break lines on hyphens in relnotes 2024-12-02 11:10:01 +01:00
doc Implement tcp-primaries-timeout 2025-04-23 17:03:05 +00:00
fuzz Replace isc_mem_destroy() with isc_mem_detach() 2025-03-05 11:17:17 +01:00
lib Call rcu_barrier earlier in the destructor 2025-04-25 13:13:44 +02:00
LICENSES Change exception SPDX to Autoconf-exception-generic 2024-04-24 09:46:58 +00:00
m4 Bump the minimal OpenSSL version to 1.1.1 2024-08-05 10:23:59 +00:00
tests Separate the single setter/getter functions for TCP timeouts 2025-04-23 17:03:05 +00:00
util Add Fedora 42 2025-04-16 20:18:00 +02:00
.clang-format Refactor to use list-like macro for message sections 2025-03-27 03:09:46 +01:00
.clang-format.headers Add new clang-format option to remove redundant semicolons 2024-11-19 12:27:22 +01:00
.dir-locals.el Remove trailing whitespace from all text files 2023-06-13 15:05:40 +02:00
.editorconfig Add editorconfig file for shell style 2023-10-26 10:23:52 +02:00
.git-blame-ignore-revs Ignore clang-format reformatting commit 2024-11-19 12:28:07 +01:00
.gitattributes Include util/dtrace.sh in tarballs 2024-08-07 15:51:34 +02:00
.gitchangelog.rc Add BIND9 configuration for gitchangelog 2024-07-29 13:03:20 +02:00
.gitignore ignore TAGS files 2025-01-22 10:42:35 +00:00
.gitlab-ci.yml Revise merge request pipeline job triggering rules 2025-04-29 18:12:49 +02:00
.mailmap Add full Alessio's name to .mailmap to fix some of the older commits 2024-09-26 11:48:02 +00:00
.pylintrc Disable too-many/too-few pylint checks 2024-10-17 11:01:44 +02:00
.readthedocs.yaml Read the Docs should always source requirements.txt from "main" 2024-10-17 12:11:08 +02:00
.tsan-suppress Suppress FreeBSD-specific TSAN false-positive lock-order-inversion 2025-04-02 11:14:43 +00:00
.uncrustify.cfg fix spelling errors reported by Fossies. 2020-02-21 15:05:08 +11:00
AUTHORS Modify AUTHORS 2022-12-20 22:13:53 +02:00
bind.keys Add the DS for the new root key (38696) 2024-11-15 13:14:30 -08:00
ChangeLog Link ChangeLog to doc/arm/changelog.rst 2025-02-28 11:02:28 +00:00
CODE_OF_CONDUCT.md Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
configure.ac Update BIND version to 9.21.8-dev 2025-04-10 15:21:13 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md and developer doc 2024-12-12 12:45:31 +00:00
COPYING Complete rewrite the BIND 9 build system 2020-04-21 14:19:48 +02:00
COPYRIGHT Remove trailing whitespace from all text files 2023-06-13 15:05:40 +02:00
dangerfile.py Update issue closing regex in dangerfile.py 2025-04-02 13:34:05 +00:00
LICENSE Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
Makefile.am Remove the CHANGES file 2024-10-31 16:45:35 +00:00
Makefile.docs Remove PDF-related bits from the build system 2023-10-12 14:24:42 +02:00
Makefile.dtrace Regenerate the DTrace generated files on configure change 2023-08-23 07:40:20 +02:00
Makefile.tests Link jemalloc again for testing unit build order 2024-01-18 09:34:36 +01:00
Makefile.top Add workaround for jemalloc linking order 2024-01-18 09:34:36 +01:00
NEWS Add new changelog file 2024-07-29 13:03:19 +02:00
OPTIONS.md Remove OpenSSL Engine support 2024-08-06 15:17:48 +02:00
README.md Remove the CHANGES file 2024-10-31 16:45:35 +00:00
SECURITY.md Move security-related information to SECURITY.md 2023-09-04 11:54:57 +02:00
sonar-project.properties Add SonarCloud GitHub Action 2023-02-24 08:53:41 +00:00
suppr-lsan.txt Supress the leak detection in __xmlDefaultBufferSize 2025-02-04 12:34:02 +00:00

BIND 9

Contents

  1. Introduction
  2. Reporting bugs and getting help
  3. Contributing to BIND
  4. Building BIND
  5. Automated testing
  6. Documentation
  7. Acknowledgments

Introduction

BIND (Berkeley Internet Name Domain) is a complete, highly portable implementation of the Domain Name System (DNS) protocol.

The BIND name server, named, can act as an authoritative name server, recursive resolver, DNS forwarder, or all three simultaneously. It implements views for split-horizon DNS, automatic DNSSEC zone signing and key management, catalog zones to facilitate provisioning of zone data throughout a name server constellation, response policy zones (RPZ) to protect clients from malicious data, response rate limiting (RRL) and recursive query limits to reduce distributed denial of service attacks, and many other advanced DNS features. BIND also includes a suite of administrative tools, including the dig and delv DNS lookup tools, nsupdate for dynamic DNS zone updates, rndc for remote name server administration, and more.

BIND 9 began as a complete rewrite of the BIND architecture that was used in versions 4 and 8. Internet Systems Consortium (https://www.isc.org), a 501(c)(3) US public benefit corporation dedicated to providing software and services in support of the Internet infrastructure, developed BIND 9 and is responsible for its ongoing maintenance and improvement. BIND is open source software licensed under the terms of the Mozilla Public License, version 2.0.

For a detailed list of changes made throughout the history of BIND 9, see the changelog.

For up-to-date versions and release notes, see https://www.isc.org/download/.

For information about supported platforms, see the "Supported Platforms" section in the BIND 9 Administrator Reference Manual.

Reporting bugs and getting help

To report non-security-sensitive bugs or request new features, you may open an issue in the BIND 9 project on the ISC GitLab server at https://gitlab.isc.org/isc-projects/bind9.

Please note that, unless you explicitly mark the newly created issue as "confidential," it will be publicly readable. Please do not include any information in bug reports that you consider to be confidential unless the issue has been marked as such. In particular, if submitting the contents of your configuration file in a non-confidential issue, it is advisable to obscure key secrets; this can be done automatically by using named-checkconf -px.

For information about ISC's Security Vulnerability Disclosure Policy and information about reporting potential security issues, please see SECURITY.md.

Professional support and training for BIND are available from ISC. Contact us at https://www.isc.org/contact for more information.

To join the BIND Users mailing list, or view the archives, visit https://lists.isc.org/mailman/listinfo/bind-users.

If you're planning on making changes to the BIND 9 source code, you may also want to join the BIND Workers mailing list, at https://lists.isc.org/mailman/listinfo/bind-workers.

Contributing to BIND

ISC maintains a public git repository for BIND; details can be found at https://www.isc.org/sourceaccess/.

Information for BIND contributors can be found in the following files:

Patches for BIND may be submitted as merge requests on the ISC GitLab server.

By default, external contributors do not have the ability to fork BIND on the GitLab server; if you wish to contribute code to BIND, you may request permission to do so. Thereafter, you can create git branches and directly submit requests that they be reviewed and merged.

If you prefer, you may also submit code by opening a GitLab issue and including your patch as an attachment, preferably generated by git format-patch.

Building BIND 9

For information about building BIND 9, see the "Building BIND 9" section in the BIND 9 Administrator Reference Manual.

Automated testing

A system test suite can be run with make check. The system tests require you to configure a set of virtual IP addresses on your system (this allows multiple servers to run locally and communicate with each other). These IP addresses can be configured by running the command bin/tests/system/ifconfig.sh up as root.

Some tests require Perl and the Net::DNS and/or IO::Socket::IP modules, and are skipped if these are not available. Some tests require Python and the dnspython module and are skipped if these are not available. See bin/tests/system/README for further details.

Unit tests are implemented using the CMocka unit testing framework. To build them, use configure --with-cmocka. Execution of tests is done by the automake parallel test driver; unit tests are also run by make check.

Documentation

The BIND 9 Administrator Reference Manual (ARM) is included with the source distribution, and in .rst format, in the doc/arm directory. The HTML version is automatically generated and can be viewed at https://bind9.readthedocs.io/en/latest/index.html.

The PDF version can be built by running:

cd doc/arm/
sphinx-build -b latex . pdf/
make -C pdf/ all-pdf

The above requires TeX Live in order to work. The PDF will be written to doc/arm/pdf/Bv9ARM.pdf.

Man pages for some of the programs in the BIND 9 distribution are also included in the BIND ARM.

Frequently (and not-so-frequently) asked questions and their answers can be found in the ISC Knowledgebase at https://kb.isc.org.

Additional information on various subjects can be found in other README files throughout the source tree.

Bug report identifiers

Most notes in the ARM Changelog appendix include a reference to a bug report or issue number. Prior to 2018, these were usually of the form [RT #NNN] and referred to entries in the "bind9-bugs" RT database, which was not open to the public. More recent entries use the form [GL #NNN] or, less often, [GL !NNN], which, respectively, refer to issues or merge requests in the GitLab database. Most of these are publicly readable, unless they include information which is confidential or security-sensitive.

To look up a GitLab issue by its number, use the URL https://gitlab.isc.org/isc-projects/bind9/issues/NNN. To look up a merge request, use https://gitlab.isc.org/isc-projects/bind9/merge_requests/NNN.

In rare cases, an issue or merge request number may be followed with the letter "P". This indicates that the information is in the private ISC GitLab instance, which is not visible to the public.

Acknowledgments