]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
Create branch 6.0 by merging master and manager
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 9 Jun 2023 17:12:39 +0000 (19:12 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 9 Jun 2023 17:12:39 +0000 (19:12 +0200)
1  2 
.gitignore
.gitlab-ci.yml
NEWS
meson.build

diff --cc .gitignore
Simple merge
diff --cc .gitlab-ci.yml
index 641de80a7a60782e51a8e9e925de7aa140617132,668f116285bc84dec9d83646855f4d41b910f21c..f3b947812563f29cd029339917283f08b34caf91
@@@ -573,190 -577,94 +577,94 @@@ obs:odvr
    when: manual
  # }}}
  
- # pkgtest {{{
- .deploytest: &deploytest
-   stage: pkgtest
-   only:
-     variables:
-       - $OBS_REPO =~ /^knot-resolver-devel|knot-dns-devel|knot-resolver-testing$/
-       - $CI_COMMIT_TAG
-   dependencies: []  # wait for previous stages to finish
-   variables:
-     OBS_REPO: knot-resolver-latest
-   when: delayed
-   start_in: 3 minutes  # give OBS build some time
-   tags:
-     - condor
+ # pkg {{{
+ .pkg_deb_extras: &pkg_deb_extras
+   before_script:
+     - apt update
  
- obs:build:all:
-   <<: *deploytest
-   only:
-     variables:
-       - $OBS_REPO =~ /^knot-resolver-devel|knot-dns-devel|knot-resolver-testing|knot-resolver-odvr$/
-       - $CI_COMMIT_TAG
-   allow_failure: true
-   script:
-     - "osc results home:CZ-NIC:$OBS_REPO knot-resolver -w"
-     - version=$(sed 's/^v//' <(git describe --exact-match HEAD || git rev-parse --short HEAD) )
-     - > # check version only for one (reliable) repo to avoid false negatives
-       ! osc ls -b home:CZ-NIC:$OBS_REPO knot-resolver Debian_9.0 x86_64 | \
-         grep -E '(rpm|deb|tar\.xz)$' | grep -v $version || \
-         (echo "ERROR: version mismatch"; exit 1)
-     - >
-       ! osc results home:CZ-NIC:$OBS_REPO knot-resolver --csv | \
-         grep -Ev 'disabled|excluded|Rawhide|CentOS_8_EPEL' | grep -v 'succeeded' -q || \
-         (echo "ERROR: build(s) failed"; exit 1)
- .distrotest: &distrotest
-   <<: *deploytest
-   # Description of the distrotest script workflow:
-   # 1. wait for OBS package build to complete
-   # 2. check the OBS build suceeded
-   # 3. set up some variables, dir names etc.
-   # 4. create a symlink with predictable name to export artifacts afterwards
-   # 5. create an HTCondor job and submit it to a HTCondor cluster
-   # 6. check exit code from condor, optionally display one of the logs and end the job with same exit code
+ .enable_repo_build: &enable_repo_build
+   before_script:
+     - ./scripts/enable-repo.py build
+ .pkg_test: &pkg_test
+   stage: pkg
+   needs:
+     - pkg:make-archive
+   tags:
+     - lxc
+     - amd64
    script:
-     - "osc results home:CZ-NIC:$OBS_REPO knot-resolver -a x86_64 -r $DISTROTEST_REPO -w"
-     - >
-       osc results home:CZ-NIC:$OBS_REPO knot-resolver -a x86_64 -r $DISTROTEST_REPO --csv | grep 'succeeded|$' -q || \
-         (echo "ERROR: build failed"; exit 1)
-     - export LABEL="gl$(date +%s)_$OBS_REPO"
-     - export COMMITDIR="/var/tmp/respdiff-jobs/$(git rev-parse --short HEAD)-$LABEL"
-     - export TESTDIR="$COMMITDIR/distrotest.$DISTROTEST_NAME"
-     - ln -s $COMMITDIR distrotest_commitdir
-     - sudo -u respdiff /var/opt/respdiff/contrib/job_manager/submit.py -w
-       -p $DISTROTEST_PRIORITY
-       $(sudo -u respdiff /var/opt/respdiff/contrib/job_manager/create.py
-         "$(git rev-parse --short HEAD)" -l $LABEL -t distrotest.$DISTROTEST_NAME
-         --obs-repo $OBS_REPO)
-     - export EXITCODE=$(cat $TESTDIR/j*_exitcode)
-     - if [[ "$EXITCODE" != "0" ]]; then cat $TESTDIR/j*_{vagrant.log.txt,stdout.txt}; fi
-     - exit $EXITCODE
-   after_script:
-     - 'cp -t . distrotest_commitdir/distrotest.$DISTROTEST_NAME/j* ||:'
+     # make sure the archive from pkg:make-archive is available
+     - apkg info cache | grep archive/dev
+     - apkg install --build-dep
+     - apkg test --test-dep
+ .pkg_test_deb: &pkg_test_deb
+   <<: *pkg_test
+   <<: *pkg_deb_extras
+ pkg:make-archive:
+   # archive is created once and reused in other pkg jobs
+   <<: *pkg_deb_extras
+   stage: pkg
+   image: $CI_REGISTRY/packaging/apkg/full/debian-11
+   tags:
+     - lxc
+     - amd64
+   needs: []
    artifacts:
-     when: always
-     expire_in: 1 week
      paths:
-       - ./j*
-   retry:
-     max: 1
-     when:
-       - script_failure
- obs:rocky8:x86_64:
-   <<: *distrotest
-   allow_failure: true
-   variables:
-     OBS_REPO: knot-resolver-latest
-     DISTROTEST_NAME: rocky8
-     DISTROTEST_REPO: CentOS_8_EPEL
- obs:debian10:x86_64:
-   <<: *distrotest
-   only:
-     variables:
-       - $OBS_REPO =~ /^knot-resolver-devel|knot-dns-devel|knot-resolver-testing|knot-resolver-odvr$/
-       - $CI_COMMIT_TAG
-   variables:
-     OBS_REPO: knot-resolver-latest
-     DISTROTEST_NAME: debian10
-     DISTROTEST_REPO: Debian_10
+       - pkg/
+   script:
+     - apkg build-dep
+     - apkg make-archive
 -
+ pkg:debian-11:
+   <<: *pkg_test_deb
+   image: $CI_REGISTRY/packaging/apkg/full/debian-11
  
- obs:debian11:x86_64:
-   <<: *distrotest
-   only:
-     variables:
-       - $OBS_REPO =~ /^knot-resolver-devel|knot-dns-devel|knot-resolver-testing|knot-resolver-odvr$/
-       - $CI_COMMIT_TAG
-   variables:
-     OBS_REPO: knot-resolver-latest
-     DISTROTEST_NAME: debian11
-     DISTROTEST_REPO: Debian_11
+ pkg:ubuntu-22.04:
+   <<: *pkg_test_deb
+   image: $CI_REGISTRY/packaging/apkg/full/ubuntu-22.04
  
- obs:fedora35:x86_64:
-   <<: *distrotest
-   allow_failure: true
-   variables:
-     OBS_REPO: knot-resolver-latest
-     DISTROTEST_NAME: fedora35
-     DISTROTEST_REPO: Fedora_35
+ pkg:ubuntu-20.04:
+   <<: *pkg_test_deb
+   <<: *enable_repo_build
+   image: $CI_REGISTRY/packaging/apkg/full/ubuntu-20.04
  
- obs:fedora36:x86_64:
-   <<: *distrotest
-   allow_failure: true
-   variables:
-     OBS_REPO: knot-resolver-latest
-     DISTROTEST_NAME: fedora36
-     DISTROTEST_REPO: Fedora_36
+ pkg:fedora-37:
+   <<: *pkg_test
+   image: $CI_REGISTRY/packaging/apkg/full/fedora-37
  
- obs:leap15:x86_64:
-   <<: *distrotest
-   allow_failure: true
-   variables:
-     OBS_REPO: knot-resolver-latest
-     DISTROTEST_NAME: leap15
-     DISTROTEST_REPO: openSUSE_Leap_15.4
+ pkg:fedora-36:
+   <<: *pkg_test
+   image: $CI_REGISTRY/packaging/apkg/full/fedora-36
  
- obs:ubuntu1804:x86_64:
-   <<: *distrotest
-   variables:
-     OBS_REPO: knot-resolver-latest
-     DISTROTEST_NAME: ubuntu1804
-     DISTROTEST_REPO: xUbuntu_18.04
+ pkg:alma-9:
+   <<: *pkg_test
+   image: $CI_REGISTRY/packaging/apkg/full/alma-9
  
- obs:ubuntu2004:x86_64:
-   <<: *distrotest
-   only:
-     variables:
-       - $OBS_REPO =~ /^knot-resolver-devel|knot-dns-devel|knot-resolver-testing|knot-resolver-odvr$/
-       - $CI_COMMIT_TAG
-   variables:
-     OBS_REPO: knot-resolver-latest
-     DISTROTEST_NAME: ubuntu2004
-     DISTROTEST_REPO: xUbuntu_20.04
+ pkg:opensuse-15.4:
+   <<: *pkg_test
+   <<: *enable_repo_build
+   image: $CI_REGISTRY/packaging/apkg/full/opensuse-15.4
+   allow_failure: true  # SUSE is always special
  
- obs:ubuntu2204:x86_64:
-   <<: *distrotest
+ # }}}
 +  allow_failure: true
-   variables:
-     OBS_REPO: knot-resolver-latest
-     DISTROTEST_NAME: ubuntu2204
-     DISTROTEST_REPO: xUbuntu_22.04
  
- .packagingtest: &packagingtest
-   stage: pkgtest
-   only:
-     refs:
-       - nightly@knot/knot-resolver
+ pages:
+   image: $CI_REGISTRY/packaging/apkg/lxc/fedora-36
+   stage: deploy
    needs: []
-   tags:
-     - dind
-     - amd64
-   variables:
-     DISTRO: debian_10
    script:
-     - pytest -r fEsxX tests/packaging -k $DISTRO
- packaging:centos_8:
-   <<: *packagingtest
-   variables:
-     DISTRO: centos_8
- packaging:centos_7:
-   <<: *packagingtest
-   variables:
-     DISTRO: centos_7
- packaging:fedora_31:
-   <<: *packagingtest
-   variables:
-     DISTRO: fedora_31
- packaging:fedora_32:
-   <<: *packagingtest
-   variables:
-     DISTRO: fedora_32
- # }}}
+     - git submodule update --init --recursive
+     - apkg build-dep -y
+     - dnf install -y python3-sphinx texinfo doxygen
+     - pip3 install -r doc/requirements.txt
+     - pip3 install sphinx_rtd_theme
+     - meson build_doc -Ddoc=enabled
+     - ninja -C build_doc doc
+     - mv doc/html public
+   artifacts:
+     paths:
+       - public
diff --cc NEWS
index c9a1c73be2b6c054790a30ac95d84ecd6d881adb,3a58af753b632b4d0c5a1314685adafea188a579..e2e23006f8565491fef95d7d86fd91caebc32b7f
--- 1/NEWS
--- 2/NEWS
+++ b/NEWS
@@@ -1,17 -1,12 +1,26 @@@
+ Knot Resolver 6.0.0 (2023-mm-dd)
+ ================================
+ Improvements
+ ------------
+ - Knot Resolver v6 alpha starts
+ - 6.0.x versions are dedicated to alpha cycle
 +Knot Resolver 5.7.0 (2023-0m-dd)
 +================================
 +
 +Improvements
 +------------
 +- forwarding mode: tweak dealing with failures from forwarders,
 +  in particular prefer sending CD=0 upstream (!1392)
 +
 +Bugfixes
 +--------
 +- fix unusual timestamp format in debug dumps of records (!1386)
 +- adjust linker options; it should help less common platforms (!1384)
 +
 +
  Knot Resolver 5.6.0 (2023-01-26)
  ================================
  
diff --cc meson.build
index 3f301e5a7eb1bf01a70f6b22f630a8b57d8091f5,3ae4a69ae2971e259616fd255428632cee3b7b2b..21a89e3eb1c07b5cca919846808a3e4a9d47e4ad
@@@ -58,6 -60,8 +59,7 @@@ systemd_cache_dir = prefix / get_option
  systemd_unit_dir = prefix / 'lib' / 'systemd' / 'system'
  systemd_tmpfiles_dir = prefix / 'lib' / 'tmpfiles.d'
  systemd_sysusers_dir = prefix / 'lib' / 'sysusers.d'
 -mod_inc_dir = include_directories('.', 'contrib/')
+ completion_dir = prefix / 'share'
  
  ## Trust anchors
  managed_ta = get_option('managed_ta') == 'enabled'