From c17d04aa50942e09dfe0b19222a93527bde94f6f Mon Sep 17 00:00:00 2001 From: Kui-Feng Lee Date: Wed, 14 Aug 2024 08:21:40 -0700 Subject: [PATCH 1/2] ci: Install libpcap for upcoming traffic monitor feature. Traffic monitor is going to be landed on upstream, capturing network traffic in the background for selected test cases. libpcap is required to enable this feature. Signed-off-by: Kui-Feng Lee --- run-vmtest/action.yml | 2 +- setup-build-env/action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run-vmtest/action.yml b/run-vmtest/action.yml index 40c464c..abd78b4 100644 --- a/run-vmtest/action.yml +++ b/run-vmtest/action.yml @@ -47,7 +47,7 @@ runs: # need gawk to support `--field-separator` sudo apt-get update && sudo apt-get install -y cpu-checker qemu-kvm qemu-utils qemu-system-x86 qemu-system-s390x qemu-system-arm qemu-guest-agent \ ethtool keyutils iptables \ - gawk + gawk libpcap-dev foldable end install_qemu - name: Configure KVM group perms shell: bash diff --git a/setup-build-env/action.yml b/setup-build-env/action.yml index 123f677..42e2909 100644 --- a/setup-build-env/action.yml +++ b/setup-build-env/action.yml @@ -24,7 +24,7 @@ runs: run: | echo "::group::Setup" sudo apt-get update - sudo apt-get install -y cmake flex bison build-essential libssl-dev ncurses-dev xz-utils bc rsync libguestfs-tools qemu-kvm qemu-utils linux-image-generic zstd binutils-dev elfutils libcap-dev libelf-dev libdw-dev python3-docutils + sudo apt-get install -y cmake flex bison build-essential libssl-dev ncurses-dev xz-utils bc rsync libguestfs-tools qemu-kvm qemu-utils linux-image-generic zstd binutils-dev elfutils libcap-dev libelf-dev libdw-dev libpcap0.8-dev python3-docutils echo "::endgroup::" - name: Install clang shell: bash From c124d008d854222c6a642b0be9395261f6f66d1d Mon Sep 17 00:00:00 2001 From: Kui-Feng Lee Date: Wed, 14 Aug 2024 15:45:25 -0700 Subject: [PATCH 2/2] Upload traffic log archives. Create and upload the archives of traffic log files so that developers can download traffic log if necessary. Signed-off-by: Kui-Feng Lee --- run-vmtest/action.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/run-vmtest/action.yml b/run-vmtest/action.yml index abd78b4..d635299 100644 --- a/run-vmtest/action.yml +++ b/run-vmtest/action.yml @@ -24,6 +24,10 @@ inputs: Some sub-commands produce output dir within VM file system (/command_output/). If this option is set that dir's content would be copied to corresponding location. default: '' + toolchain: + required: true + type: string + description: The toolchain, e.g gcc, llvm runs: using: "composite" steps: @@ -74,4 +78,9 @@ runs: PROJECT_NAME: "/mnt/vmtest" run: | ${GITHUB_ACTION_PATH}/run.sh + - uses: actions/upload-artifact@v4 + with: + name: tmon-logs-${{ inputs.arch }}-${{ inputs.toolchain }}-${{ inputs.kernel-test }} + if-no-files-found: ignore + path: tmon-logs