- 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"
#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"
--- /dev/null
+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"
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
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 }}