jjb/lava: Update system tests to use Debian bookworm rootfs
authorKienan Stewart <kstewart@efficios.com>
Thu, 21 Dec 2023 14:52:24 +0000 (09:52 -0500)
committerKienan Stewart <kstewart@efficios.com>
Fri, 12 Jan 2024 18:56:10 +0000 (13:56 -0500)
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Change-Id: If40992f99c7b484351b2f54255fc37c4d89eed8b

jobs/system-tests.yaml
lava/rootfs/vmdeboostrap/generate-root.py
lava/system-tests/kernel-tests.yml
lava/system-tests/perf-tests.yml
lava/system-tests/setup.yml
scripts/system-tests/lava2-submit.py
scripts/system-tests/run-test-suites.sh
scripts/system-tests/template_lava_job.jinja2

index 9e9e99e94c6600c02b4f34629abced3f7904d465..eb6434263c49b66ab9dd0b153a8471bee40f34cb 100644 (file)
@@ -37,7 +37,7 @@
           description: 'LTTng-UST git repo to checkout the UST id'
       - string:
           name: 'ROOTFS_URL'
-          default: 'https://obj.internal.efficios.com/lava/rootfs/rootfs_amd64_jammy_2023-05-18.tar.gz'
+          default: 'https://obj.internal.efficios.com/lava/rootfs_amd64_bookworm_2024-01-12.tar.gz'
           description: 'The URL at which the system root FS can be downloaded'
       - string:
           name: 'LTTNG_CI_REPO'
index 4023adbd3e4aa87a355ae86f6e1e09449e73c6c9..f68678d84cc5ab7ff070348456d97d2445a65896 100755 (executable)
@@ -75,8 +75,11 @@ packages = [
     'python3-pip',
     'python3-setuptools',
     'python3-sphinx',
+    'rsync',
     'stress',
     'swig',
+    'systemd-timesyncd',
+    'systemtap-sdt-dev',
     'texinfo',
     'tree',
     'uuid-dev',
@@ -88,10 +91,10 @@ packages = [
 def main():
     parser = argparse.ArgumentParser(description='Generate lava lttng rootfs')
     parser.add_argument("--arch", default='amd64')
-    parser.add_argument("--distribution", default='jammy')
-    parser.add_argument("--mirror", default='http://archive.ubuntu.com/ubuntu')
+    parser.add_argument("--distribution", default='bookworm')
+    parser.add_argument("--mirror", default='https://deb.debian.org/debian')
     parser.add_argument(
-        "--component", default='universe,multiverse,main,restricted')
+        "--component", default='main')
     args = parser.parse_args()
 
     name = "rootfs_{}_{}_{}".format(args.arch, args.distribution,
index 9610587dcfda86e82454a399e9845a4880cf3402..94dbac0d1a5550e3be33024a15d9651cb2d2cb02 100644 (file)
@@ -7,7 +7,6 @@ params:
     LTTNG_VERSION_STRING: "invalid_version_string"
 run:
         steps:
-                - apt install -y curl
                 - git clone "${CI_REPO}" --branch="${CI_BRANCH}" ci
                 - export TMPDIR="/tmp"
                 - mkdir -p /tmp/coredump
@@ -16,7 +15,5 @@ run:
                 - source /root/lttngvenv/activate
                 - pushd /root/lttngvenv/src/lttng-tools
                 - lava-test-case build-test-suite --shell "make"
-                - systemctl stop systemd-timesyncd.service
                 - lava-test-case run-tests --shell "$(dirs -l +1)/ci/scripts/system-tests/run-test-suites.sh ${LTTNG_VERSION_STRING}"
-                - systemctl start systemd-timesyncd.service
                 - popd
index a4e1068348c2b3e798982fd7055bc1048c52c641..f869ff00286e52e146d4876bd264705c39e36b56 100644 (file)
@@ -7,7 +7,6 @@ params:
     LTTNG_VERSION_STRING: "invalid_version_string"
 run:
         steps:
-                - apt install -y libpfm4-dev curl
                 - git clone "${CI_REPO}" --branch="${CI_BRANCH}" ci
                 - export TMPDIR="/tmp"
                 - mkdir -p /tmp/coredump
index 597d856820e07810d6fd812e758c26b06b43cc00..ac57d9fe5ce8619cc6d0e3f2babf67f28f728e0a 100644 (file)
@@ -3,24 +3,21 @@ metadata:
     name: x86-env-setup
     description: "Basic environment setup for x86 board"
     os:
+      - debian
       - ubuntu
     devices:
       - x86
 run:
   steps:
     - chmod 755 /
-    - systemctl start systemd-timesyncd
     - echo nameserver 172.18.0.13 > /etc/resolv.conf
     - ip a
     - groupadd tracing
     - depmod -a
-    - locale-gen en_US.UTF-8
     - apt-get update
     - apt-get upgrade
-    - apt-get install -y systemtap-sdt-dev openssh-server
-    - pip3 install 'pip==20.3'
+    - pip3 install vlttng --break-system-packages
     - hash -r
-    - pip3 install vlttng
     - git clone "${CI_REPO}" --branch="${CI_BRANCH}" ci
     - mkdir -p /root/.ssh
     - chmod 700 /root/.ssh
index dfd7ad4daa11b895deaf09ed6b0095df246e11a1..7ddcbd1a77d585f80af7b4827a869ef0b176e38e 100644 (file)
@@ -198,7 +198,7 @@ def main():
     parser.add_argument('-d', '--debug', required=False, action='store_true')
     parser.add_argument(
         '-r', '--rootfs-url', required=False,
-        default="https://obj.internal.efficios.com/lava/rootfs/rootfs_amd64_jammy_2023-05-18.tar.gz"
+        default="https://obj.internal.efficios.com/lava/rootfs_amd64_bookworm_2024-01-12.tar.gz"
     )
     parser.add_argument('--ci-repo', required=False, default='https://github.com/lttng/lttng-ci.git')
     parser.add_argument('--ci-branch', required=False, default='master')
index 90c4754e90ae7f9b1b985bd54af704cc4cd06c81..62ab7d24dcca4abccb6ee03ebb104620d5083a10 100755 (executable)
@@ -68,16 +68,28 @@ verne() {
     [ "$res" -ne "0" ]
 }
 
+function cleanup
+{
+    timedatectl set-ntp true
+}
+
+trap cleanup EXIT SIGINT SIGTERM
+
 lttng_version="$1"
 failed_tests=0
 
 export LTTNG_ENABLE_DESTRUCTIVE_TESTS="will-break-my-system"
+timedatectl set-ntp false
 
+# When make check is interrupted, the default test driver
+# (`config/test-driver`) will still delete the log and trs
+# files for the currently running test.
+#
 timeout 90m make --keep-going check || failed_tests=1
 
 if [ -f "./tests/root_regression" ]; then
     cd "./tests" || exit 1
-    prove --nocolor --verbose --merge --exec '' - < root_regression || failed_tests=1
+    prove --nocolor --verbose --merge --exec '' - < root_regression || failed_tests=2
     cd ..
 fi
 
@@ -85,7 +97,7 @@ fi
 # should be retained until lttng-tools 2.13 is no longer supported
 if [ -f "./tests/root_destructive_tests" ]; then
     cd "./tests" || exit 1
-    prove --nocolor --verbose --merge --exec '' - < root_destructive_tests || failed_tests=2
+    prove --nocolor --verbose --merge --exec '' - < root_destructive_tests || failed_tests=3
     cd ..
 else
     echo 'root_destructive_tests not found'
@@ -95,4 +107,5 @@ if [[ "${failed_tests}" != "0" ]] ; then
     find tests/ -iname '*.trs' -print0 -or -iname '*.log' -print0 | tar czf /tmp/coredump/logs.tgz --null -T -
 fi
 
+timedatectl set-ntp true
 exit $failed_tests
index 865cf1a6b579676d402b16492cfd079d68b7f482..72a3c6eba959c4478990737bc91878a48c0e973e 100644 (file)
@@ -78,6 +78,7 @@ actions:
                     name: vlttng-env-setup
                     description: "Configure virtualenv for vlttng"
                     os:
+                      - debian
                       - ubuntu
                     devices:
                       - x86
This page took 0.026889 seconds and 4 git commands to generate.