Lava: install step is deprecated in lava 2
[lttng-ci.git] / lava / system-tests / lttng-test-filter.yml
index a8f288da38bb48155e208b093377c9c1db24b4ac..5a258157b7649d1532192b729944cfb926f1c3f6 100644 (file)
@@ -3,36 +3,26 @@ metadata:
         name: benchmark-lttng-test-filter
         description: "Perform syscall tracing benchmark of the lttng-test-filter"
 params:
-    JENKINS_JOBNAME: "default jobname"
-
-install:
-        deps:
-                - python3-pandas
-                - python3-numpy
-        git-repos:
-                - url: https://github.com/lttng/lttng-ci
-                  destination: ci
-                  branch: master
+    JENKINS_BUILD_ID: "invalid_jenkins_build_id"
+run:
         steps:
+                - apt install -y python3-pandas python3-numpy curl
+                - git clone https://github.com/lttng/lttng-ci ci
                 - export TMPDIR="/tmp"
-                - ulimit -c unlimited
                 - mkdir -p coredump
                 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
-run:
-        steps:
+                - ulimit -c unlimited
                 - source /root/lttngvenv/activate
                 - export BENCHMARK_DIR=$(mktemp --directory)/bm
                 - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
-                - cd $BENCHMARK_DIR
+                - pushd $BENCHMARK_DIR
                 - modprobe lttng-test
                 - lava-test-case build-benchmarks --shell "make"
                 - lava-test-case run-benchmarks --shell "./run.sh lttng-test-filter lttng_test_filter_event"
-                - lava-test-case-attach run-benchmarks "./results.csv"
-                - cd -
-                - cd ci
-                - python3 ./scripts/system-tests/parse-results.py $BENCHMARK_DIR/results.csv
-                - mv ./processed_results.csv ../processed_results_lttng_test_filter.csv
-                - cd -
+                - popd
+                - python3 ./ci/scripts/system-tests/parse-results.py $BENCHMARK_DIR/results.csv
+                - mv ./processed_results.csv ./processed_results_lttng_test_filter.csv
                 - tar czf coredump.tar.gz coredump
-                - lava-test-case-attach run-benchmarks coredump.tar.gz
-                - lava-test-case-attach run-benchmarks "./processed_results_lttng_test_filter.csv"
+                - ./ci/lava/upload_artifact.sh coredump.tar.gz "results/${JENKINS_BUILD_ID}/${TESTRUN_ID}-coredump.tar.gz"
+                - ./ci/lava/upload_artifact.sh "${BENCHMARK_DIR}/results.csv" "results/${JENKINS_BUILD_ID}/results_lttng_test_filter.csv"
+                - ./ci/lava/upload_artifact.sh processed_results_lttng_test_filter.csv "results/${JENKINS_BUILD_ID}/processed_results_lttng_test_filter.csv"
This page took 0.023467 seconds and 4 git commands to generate.