]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci pytests: migrate away from LXC runner
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 26 Oct 2022 15:55:35 +0000 (17:55 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 7 Nov 2022 16:54:38 +0000 (17:54 +0100)
This reverts commit 15c1353544be, with some modifications.
On LXC we've had issues with
  FileExistsError: [Errno 17] File exists: '/tmp/pytest-kresd-portdir'
.. which disappear with this commit.  (I don't know how/why.)

.gitlab-ci.yml

index affeb71d241bee2df6816603554144aca969a393..1a3aef00ae4330e8a78ff340a8c4e3d7bf53b8c4 100644 (file)
@@ -368,21 +368,9 @@ pkgtest:
       - $SKIP_CI == "1"
 
 pytests:
-  # these are executed on LXC runners to increase stability
-  image: $CI_REGISTRY/knot/knot-resolver/ci/lxc-debian-11:knot-$KNOT_VERSION
-  only:
-    refs:
-      - branches@knot/knot-resolver
-  needs: []
-  tags:
-    - lxc
-    - amd64
-  before_script:
-    # build-asan artifacts can't be reused (different container is used)
-    - CC=clang CXX=clang++ CFLAGS=-fno-sanitize-recover=all CXXFLAGS=-fno-sanitize=undefined meson build_ci_asan --default-library=static --prefix=$PREFIX -Db_sanitize=address,undefined -Dextra_tests=enabled
-    - ninja -C build_ci_asan
-    - ninja -C build_ci_asan install >/dev/null
-  # END lxc specific section
+  <<: *test_flaky
+  needs:
+    - build-asan
   artifacts:
     when: always
     paths: