From 6f3cac9a581eb66e96b9baeb31f1d5e40a6419d9 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Thu, 18 May 2023 11:40:24 -0400 Subject: [PATCH] jjb/lava: Parametrize URL for system-test's root FS Change-Id: I75f21e32241b1bfe1d0eefc47433294f0fc10b1c --- jobs/system-tests.yaml | 4 ++++ scripts/system-tests/generate-properties-master.sh | 1 + scripts/system-tests/lava2-submit.py | 7 +++++-- scripts/system-tests/run-baremetal-tests.sh | 3 ++- scripts/system-tests/run-kvm-tests.sh | 3 ++- 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/jobs/system-tests.yaml b/jobs/system-tests.yaml index 1b0f20d..57cba7f 100644 --- a/jobs/system-tests.yaml +++ b/jobs/system-tests.yaml @@ -35,6 +35,10 @@ name: 'LTTNG_UST_REPO' default: 'https://github.com/lttng/lttng-ust.git' description: 'LTTng-UST git repo to checkout the UST id' + - string: + name: 'ROOTFS_URL' + default: 'https://obj.internal.efficios.com/lava/rootfs/rootfs_amd64_xenial_2018-12-05.tar.gz' + description: 'The URL at which the system root FS can be downloaded' - publisher: name: 'system_tests_email_ext_default' diff --git a/scripts/system-tests/generate-properties-master.sh b/scripts/system-tests/generate-properties-master.sh index 449748f..758a488 100644 --- a/scripts/system-tests/generate-properties-master.sh +++ b/scripts/system-tests/generate-properties-master.sh @@ -48,6 +48,7 @@ echo "BUILD_DEVICE=$BUILD_DEVICE" >> properties.txt echo "LTTNG_VERSION=$LTTNG_VERSION" >> properties.txt echo "KGITREPO=$KERNEL_REPO" >> properties.txt echo "LTTNG_MODULES_REPO=$LTTNG_MODULES_REPO" >> properties.txt +echo "ROOTFS_URL=$ROOTFS_URL" >> properties.txt echo "STORAGE_KERNEL_FOLDER=$BASE_STORAGE_FOLDER/kernel" >> properties.txt echo "STORAGE_KERNEL_IMAGE=$BASE_STORAGE_FOLDER/kernel/$KERNEL_COMMIT_ID.$BUILD_DEVICE.bzImage" >> properties.txt echo "STORAGE_LINUX_MODULES=$BASE_STORAGE_FOLDER/modules/linux/$KERNEL_COMMIT_ID.$BUILD_DEVICE.linux.modules.tar.gz" >> properties.txt diff --git a/scripts/system-tests/lava2-submit.py b/scripts/system-tests/lava2-submit.py index 6895cc2..232be5d 100644 --- a/scripts/system-tests/lava2-submit.py +++ b/scripts/system-tests/lava2-submit.py @@ -182,7 +182,6 @@ def get_vlttng_cmd( def main(): send_retry_limit = 10 - nfsrootfs = "https://obj.internal.efficios.com/lava/rootfs/rootfs_amd64_xenial_2018-12-05.tar.gz" test_type = None parser = argparse.ArgumentParser(description='Launch baremetal test using Lava') parser.add_argument('-t', '--type', required=True) @@ -196,6 +195,10 @@ def main(): parser.add_argument('-uu', '--ust-url', required=False) parser.add_argument('-uc', '--ust-commit', required=False) 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_xenial_2018-12-05.tar.gz" + ) args = parser.parse_args() if args.type not in TestType.values: @@ -256,7 +259,7 @@ def main(): context['lttng_version_string'] = lttng_version_string context['kernel_url'] = args.kernel - context['nfsrootfs_url'] = nfsrootfs + context['nfsrootfs_url'] = args.rootfs_url context['lttng_modules_url'] = args.lmodule context['jenkins_build_id'] = args.build_id diff --git a/scripts/system-tests/run-baremetal-tests.sh b/scripts/system-tests/run-baremetal-tests.sh index 5ccc781..32ead9a 100644 --- a/scripts/system-tests/run-baremetal-tests.sh +++ b/scripts/system-tests/run-baremetal-tests.sh @@ -35,7 +35,8 @@ python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava2-submit.py \ -uu "$LTTNG_UST_REPO" \ -tc "$LTTNG_TOOLS_COMMIT_ID" \ -uc "$LTTNG_UST_COMMIT_ID" \ - -id "$BUILD_TAG" + -id "$BUILD_TAG" \ + -r "$ROOTFS_URL" set +eu deactivate diff --git a/scripts/system-tests/run-kvm-tests.sh b/scripts/system-tests/run-kvm-tests.sh index 657810e..7c36757 100644 --- a/scripts/system-tests/run-kvm-tests.sh +++ b/scripts/system-tests/run-kvm-tests.sh @@ -34,7 +34,8 @@ python -u "$LTTNG_CI_PATH"/scripts/system-tests/lava2-submit.py \ -uu "$LTTNG_UST_REPO" \ -tc "$LTTNG_TOOLS_COMMIT_ID" \ -uc "$LTTNG_UST_COMMIT_ID" \ - -id "$BUILD_TAG" + -id "$BUILD_TAG" \ + -r "$ROOTFS_URL" set +eu deactivate -- 2.34.1