Skip to content

Commit 0feb3c8

Browse files
committed
ci: Create an artifacts of traffic log.
Create and upload the archive of traffic logs so that developers can down traffic logs if necessary. Signed-off-by: Kui-Feng Lee <[email protected]>
1 parent d5cc500 commit 0feb3c8

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/kernel-test.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ jobs:
6666
vmlinuz: '${{ github.workspace }}/vmlinuz'
6767
kernel-root: '.'
6868
max-cpu: 8
69-
kernel-test: ${{ inputs.test }}
69+
kernel-test: ${{ inputs.test }}
70+
toolchain: ${{ inputs.toolchain_full }}

.github/workflows/kernel-veristat.yml

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ jobs:
8181
# Don't run meta's veristat from forked repo.
8282
kernel-test: ${{ github.event.pull_request.head.repo.full_name == github.repository && 'run_veristat_kernel,run_veristat_meta' || 'run_veristat_kernel' }}
8383
output-dir: '${{ github.workspace }}'
84+
toolchain: ${{ inputs.toolchain }}
8485

8586
- name: Compare and save veristat.kernel.csv
8687
uses: ./.github/actions/veristat_baseline_compare

ci/vmtest/vmtest_selftests.sh

+10
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ WORKING_DIR="/${PROJECT_NAME}"
2222
BPF_SELFTESTS_DIR="${WORKING_DIR}/selftests/bpf"
2323
VMTEST_CONFIGS_PATH="${WORKING_DIR}/ci/vmtest/configs"
2424
PKG_CONFIG=pkg-config
25+
TMON_DIR=/tmp/tmon_pcap
2526

2627
read_lists() {
2728
(for path in "$@"; do
@@ -190,6 +191,10 @@ echo "TMONLIST: ${TMONLIST}"
190191
191192
cd ${PROJECT_NAME}/selftests/bpf
192193
194+
if [ -d "${TMON_DIR}" ]; then
195+
rm -rf "${TMON_DIR}"
196+
fi
197+
193198
# populate TEST_NAMES
194199
read_test_names "$@"
195200
# if we don't have any test name provided to the script, we run all tests.
@@ -206,3 +211,8 @@ else
206211
"${test_name}"
207212
done
208213
fi
214+
215+
if [ -d "${TMON_DIR}" ]; then
216+
rm -rf "${OUTPUT_DIR}/tmon-logs"
217+
mv "${TMON_DIR}" "${OUTPUT_DIR}/tmon-logs"
218+
fi

0 commit comments

Comments
 (0)