lava: Upload artifacts as a separate test
authorKienan Stewart <kstewart@efficios.com>
Tue, 9 Jan 2024 19:19:06 +0000 (14:19 -0500)
committerKienan Stewart <kstewart@efficios.com>
Fri, 12 Jan 2024 18:56:10 +0000 (13:56 -0500)
Change-Id: I6736aa3d1e807ef26451008cc5e2ec2f6aa93de8
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
lava/system-tests/kernel-tests.yml
lava/system-tests/perf-tests.yml
lava/system-tests/upload-artifacts.yml [new file with mode: 0644]
scripts/system-tests/run-test-suites.sh
scripts/system-tests/template_lava_job.jinja2

index 07275eb6cd396b1a32323c89c55288645062cefe..9610587dcfda86e82454a399e9845a4880cf3402 100644 (file)
@@ -20,5 +20,3 @@ run:
                 - 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
-                - tar czf coredump.tar.gz /tmp/coredump
-                - ./ci/lava/upload_artifact.sh coredump.tar.gz coredump.tar.gz "results/${JENKINS_BUILD_ID}/${TESTRUN_ID}-coredump.tar.gz"
index 6cd2e4ee45a7fb09e539eea860e48c301c816cb3..a4e1068348c2b3e798982fd7055bc1048c52c641 100644 (file)
@@ -20,5 +20,3 @@ run:
                 #Need to check if the file is present for branches where the testcase was not backported
                 - lava-test-case run-tests --shell "if [ -e perf_regression ]; then prove --nocolor --verbose --merge --exec '' - < perf_regression; else echo 'perf_regression not found'; fi"
                 - popd
-                - tar czf coredump.tar.gz /tmp/coredump
-                - ./ci/lava/upload_artifact.sh coredump.tar.gz coredump.tar.gz "results/${JENKINS_BUILD_ID}/${TESTRUN_ID}-coredump.tar.gz"
diff --git a/lava/system-tests/upload-artifacts.yml b/lava/system-tests/upload-artifacts.yml
new file mode 100644 (file)
index 0000000..f03ffac
--- /dev/null
@@ -0,0 +1,11 @@
+metadata:
+  format: Lava-Test Test Definition 1.0
+  name: lttng-upload-artifacts
+  description: "Upload build artifacts"
+params:
+  JENKINS_BUILD_ID: "invalid_jenkins_build_id"
+run:
+  steps:
+    - git clone "${CI_REPO}" --branch="${CI_BRANCH}" ci
+    - tar czf coredump.tar.gz /tmp/coredump
+    - ./ci/lava/upload_artifact.sh coredump.tar.gz "results/${JENKINS_BUILD_ID}/${TESTRUN_ID}-coredump.tar.gz"
index 2637bc44c1efc018fe6346b90a7c5c0e17ddce47..90c4754e90ae7f9b1b985bd54af704cc4cd06c81 100755 (executable)
@@ -73,7 +73,7 @@ failed_tests=0
 
 export LTTNG_ENABLE_DESTRUCTIVE_TESTS="will-break-my-system"
 
-make --keep-going check || failed_tests=1
+timeout 90m make --keep-going check || failed_tests=1
 
 if [ -f "./tests/root_regression" ]; then
     cd "./tests" || exit 1
index ed60cf1fbe5ad68e9a3581e98ef13feb2ffb4cb4..865cf1a6b579676d402b16492cfd079d68b7f482 100644 (file)
@@ -119,3 +119,13 @@ actions:
                 CI_REPO: {{ ci_repo }}
                 CI_BRANCH: {{ ci_branch }}
           {% endif %}
+            - repository: {{ ci_repo }}
+              from: git
+              branch: {{ ci_branch }}
+              path: lava/system-tests/upload-artifacts.yml
+              name: upload-artifacts
+              params:
+                LTTNG_VERSION_STRING: {{ lttng_version_string }}
+                JENKINS_BUILD_ID: {{ jenkins_build_id }}
+                CI_REPO: {{ ci_repo }}
+                CI_BRANCH: {{ ci_branch }}
This page took 0.02529 seconds and 4 git commands to generate.