jjb: lava: clone benchmarking code to temporary directory
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 29 Aug 2017 16:09:01 +0000 (12:09 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 29 Aug 2017 16:09:01 +0000 (12:09 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
lava/baremetal-tests/failing-close.yml
lava/baremetal-tests/failing-ioctl.yml
lava/baremetal-tests/failing-open-efault.yml
lava/baremetal-tests/failing-open-enoent.yml
lava/baremetal-tests/raw-syscall-getpid.yml
lava/baremetal-tests/success-dup-close.yml

index 9094128e844c9dc268d3e07e399f46fe35d98cf2..5273a2ccad109e6c9e4b07341d16bbc3db8fad1d 100644 (file)
@@ -10,27 +10,26 @@ install:
                 - python3-pandas
                 - python3-numpy
         git-repos:
-                - url: https://github.com/frdeso/syscall-bench-it.git
-                  destination: /tmp/benchmarks
-                  branch: master
                 - url: https://github.com/lttng/lttng-ci
                   destination: ci
                   branch: master
         steps:
                 - export TMPDIR="/tmp"
+                - export BENCHMARK_DIR=$(mktemp --directory)
                 - ulimit -c unlimited
                 - mkdir -p coredump
                 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
 run:
         steps:
                 - source /root/lttngvenv/activate
-                - cd /tmp/benchmarks
+                - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+                - cd $BENCHMARK_DIR
                 - lava-test-case build-benchmarks --shell "make"
                 - lava-test-case run-benchmarks --shell "./run.sh failing-close sys_close"
                 - lava-test-case-attach run-benchmarks "./results.csv"
                 - cd -
                 - cd ci
-                - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+                - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
                 - mv ./processed_results.csv ../processed_results_close.csv
                 - cd -
                 - tar czf coredump.tar.gz coredump
index 0002cbe68475a3172784637bb7072fa713fd4151..b009ed948c02658bf746010a74ec76a2095acf6a 100644 (file)
@@ -10,27 +10,26 @@ install:
                 - python3-pandas
                 - python3-numpy
         git-repos:
-                - url: https://github.com/frdeso/syscall-bench-it.git
-                  destination: /tmp/benchmarks
-                  branch: master
                 - url: https://github.com/lttng/lttng-ci
                   destination: ci
                   branch: master
         steps:
                 - export TMPDIR="/tmp"
+                - export BENCHMARK_DIR=$(mktemp --directory)
                 - ulimit -c unlimited
                 - mkdir -p coredump
                 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
 run:
         steps:
                 - source /root/lttngvenv/activate
-                - cd /tmp/benchmarks
+                - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+                - cd $BENCHMARK_DIR
                 - lava-test-case build-benchmarks --shell "make"
                 - lava-test-case run-benchmarks --shell "./run.sh failing-ioctl sys_ioctl"
                 - lava-test-case-attach run-benchmarks "./results.csv"
                 - cd -
                 - cd ci
-                - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+                - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
                 - mv ./processed_results.csv ../processed_results_ioctl.csv
                 - cd -
                 - tar czf coredump.tar.gz coredump
index 8dc3c513b77bf5ad857635f10ac4f0a4ace2c5be..6159835299326ec54b46bf341ba9b02352601dda 100644 (file)
@@ -10,27 +10,26 @@ install:
                 - python3-pandas
                 - python3-numpy
         git-repos:
-                - url: https://github.com/frdeso/syscall-bench-it.git
-                  destination: /tmp/benchmarks
-                  branch: master
                 - url: https://github.com/lttng/lttng-ci
                   destination: ci
                   branch: master
         steps:
                 - export TMPDIR="/tmp"
+                - export BENCHMARK_DIR=$(mktemp --directory)
                 - ulimit -c unlimited
                 - mkdir -p coredump
                 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
 run:
         steps:
                 - source /root/lttngvenv/activate
-                - cd /tmp/benchmarks
+                - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+                - cd $BENCHMARK_DIR
                 - lava-test-case build-benchmarks --shell "make"
                 - lava-test-case run-benchmarks --shell "./run.sh failing-open-efault sys_open"
                 - lava-test-case-attach run-benchmarks "./results.csv"
                 - cd -
                 - cd ci
-                - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+                - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
                 - mv ./processed_results.csv ../processed_results_open_efault.csv
                 - cd -
                 - tar czf coredump.tar.gz coredump
index adcf861133250e20d1c7d9f8184d3bb7ec8135bf..c0912a50e98a15c33ea653fa8061560febbf2c74 100644 (file)
@@ -10,27 +10,26 @@ install:
                 - python3-pandas
                 - python3-numpy
         git-repos:
-                - url: https://github.com/frdeso/syscall-bench-it.git
-                  destination: /tmp/benchmarks
-                  branch: master
                 - url: https://github.com/lttng/lttng-ci
                   destination: ci
                   branch: master
         steps:
                 - export TMPDIR="/tmp"
+                - export BENCHMARK_DIR=$(mktemp --directory)
                 - ulimit -c unlimited
                 - mkdir -p coredump
                 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
 run:
         steps:
                 - source /root/lttngvenv/activate
-                - cd /tmp/benchmarks
+                - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+                - cd $BENCHMARK_DIR
                 - lava-test-case build-benchmarks --shell "make"
                 - lava-test-case run-benchmarks --shell "./run.sh failing-open-enoent sys_open"
                 - lava-test-case-attach run-benchmarks "./results.csv"
                 - cd -
                 - cd ci
-                - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+                - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
                 - mv ./processed_results.csv ../processed_results_open_enoent.csv
                 - cd -
                 - tar czf coredump.tar.gz coredump
index 6d6e96dce2cee6819c86f203ca745dd431ab74fb..ef4057f7fc85d044d4ad728e800ea59881f25b2e 100644 (file)
@@ -10,27 +10,26 @@ install:
                 - python3-pandas
                 - python3-numpy
         git-repos:
-                - url: https://github.com/frdeso/syscall-bench-it.git
-                  destination: /tmp/benchmarks
-                  branch: master
                 - url: https://github.com/lttng/lttng-ci
                   destination: ci
                   branch: master
         steps:
                 - export TMPDIR="/tmp"
+                - export BENCHMARK_DIR=$(mktemp --directory)
                 - ulimit -c unlimited
                 - mkdir -p coredump
                 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
 run:
         steps:
                 - source /root/lttngvenv/activate
-                - cd /tmp/benchmarks
+                - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+                - cd $BENCHMARK_DIR
                 - lava-test-case build-benchmarks --shell "make"
                 - lava-test-case run-benchmarks --shell "./run.sh raw-syscall-getpid sys_getpid"
                 - lava-test-case-attach run-benchmarks "./results.csv"
                 - cd -
                 - cd ci
-                - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+                - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
                 - mv ./processed_results.csv ../processed_results_raw_syscall_getpid.csv
                 - cd -
                 - tar czf coredump.tar.gz coredump
index fe83da0e7aaa83b39f72b7175c9a43c934047954..103ea4457ffb88b79cfd0d1d322bb6214b2e598c 100644 (file)
@@ -10,27 +10,26 @@ install:
                 - python3-pandas
                 - python3-numpy
         git-repos:
-                - url: https://github.com/frdeso/syscall-bench-it.git
-                  destination: /tmp/benchmarks
-                  branch: master
                 - url: https://github.com/lttng/lttng-ci
                   destination: ci
                   branch: master
         steps:
                 - export TMPDIR="/tmp"
+                - export BENCHMARK_DIR=$(mktemp --directory)
                 - ulimit -c unlimited
                 - mkdir -p coredump
                 - echo "$(pwd)/coredump/core.%e.%p.%h.%t" > /proc/sys/kernel/core_pattern
 run:
         steps:
                 - source /root/lttngvenv/activate
-                - cd /tmp/benchmarks
+                - git clone https://github.com/frdeso/syscall-bench-it.git $BENCHMARK_DIR
+                - cd $BENCHMARK_DIR
                 - lava-test-case build-benchmarks --shell "make"
                 - lava-test-case run-benchmarks --shell "./run.sh success-dup-close sys_close,sys_dup"
                 - lava-test-case-attach run-benchmarks "./results.csv"
                 - cd -
                 - cd ci
-                - python3 ./scripts/lttng-baremetal-tests/parse-results.py /tmp/benchmarks/results.csv
+                - python3 ./scripts/lttng-baremetal-tests/parse-results.py $BENCHMARK_DIR/results.csv
                 - mv ./processed_results.csv ../processed_results_dup_close.csv
                 - cd -
                 - tar czf coredump.tar.gz coredump
This page took 0.039549 seconds and 4 git commands to generate.