From dca6d45eb4f3bc659af1b8aeb432335694966985 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Mon, 7 Oct 2024 17:33:26 -0700 Subject: [PATCH] Add VBox HW metrics on failures --- .github/workflows/build.yml | 7 +++++++ .github/workflows/on-demand_aio.yml | 7 +++++++ .github/workflows/on-demand_noha.yml | 3 ++- .github/workflows/scheduled_aio.yml | 7 +++++++ 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d5f0749f1..f7ea49fa0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -85,3 +85,10 @@ jobs: }} working-directory: ./samples/distributed run: vagrant up registry + - name: Check HW resources + if: failure() + run: | + vm_stat + top -l 1 -n 0 + VBoxManage list runningvms --long + cat ~/VirtualBox\ VMs/*/Logs/*.log diff --git a/.github/workflows/on-demand_aio.yml b/.github/workflows/on-demand_aio.yml index e00f4a4ad..07cd09fbf 100644 --- a/.github/workflows/on-demand_aio.yml +++ b/.github/workflows/on-demand_aio.yml @@ -64,6 +64,13 @@ jobs: MEMORY: 12288 OS_DISTRO: ${{ matrix.distro }} run: ./ci/check_aio.sh + - name: Check HW resources + if: failure() + run: | + vm_stat + top -l 1 -n 0 + VBoxManage list runningvms --long + cat ~/VirtualBox\ VMs/*/Logs/*.log check-aio-baremetal: runs-on: ubuntu-22.04 name: Check All-in-One deployment on Ubuntu Jammy Virtual Environment diff --git a/.github/workflows/on-demand_noha.yml b/.github/workflows/on-demand_noha.yml index 405cc89f8..c2379a527 100644 --- a/.github/workflows/on-demand_noha.yml +++ b/.github/workflows/on-demand_noha.yml @@ -60,8 +60,9 @@ jobs: working-directory: ./samples/noha run: vagrant up controller - name: Check HW resources - if: always() + if: failure() run: | vm_stat top -l 1 -n 0 VBoxManage list runningvms --long + cat ~/VirtualBox\ VMs/*/Logs/*.log diff --git a/.github/workflows/scheduled_aio.yml b/.github/workflows/scheduled_aio.yml index 7ab69ef04..4e807616a 100644 --- a/.github/workflows/scheduled_aio.yml +++ b/.github/workflows/scheduled_aio.yml @@ -54,3 +54,10 @@ jobs: MEMORY: 12288 OS_DISTRO: ${{ matrix.distro }} run: ./ci/check_aio.sh + - name: Check HW resources + if: failure() + run: | + vm_stat + top -l 1 -n 0 + VBoxManage list runningvms --long + cat ~/VirtualBox\ VMs/*/Logs/*.log