From 78ad28b088155d6c46092ac0e69fcd3302ac68ed Mon Sep 17 00:00:00 2001 From: andrewdavidmackenzie Date: Fri, 28 Feb 2025 11:37:55 +0100 Subject: [PATCH 1/5] Add running hw tests on self-hosted runner to the workflow --- .github/workflows/build_and_test.yml | 9 +++++++++ Makefile | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 9fb6dad8..39a15265 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -151,6 +151,15 @@ jobs: - name: Build porky and porky_w and their UF2 files run: cd porky && RUSTFLAGS= make uf2 + hw_tests: + runs-on: pigg_hw_tests + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run HW Tests + run: make hw_tests + clippy-build-and-test-matrix: runs-on: ${{ matrix.os }} strategy: diff --git a/Makefile b/Makefile index 0ba6bb23..5eecbd61 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,6 @@ build-porky: test: cargo test - .PHONY: hw_tests hw_tests: cargo test --package hw_tests From fd8c0d84bba20c8a94d504b5d797e60e332ae465 Mon Sep 17 00:00:00 2001 From: andrewdavidmackenzie Date: Fri, 28 Feb 2025 12:17:06 +0100 Subject: [PATCH 2/5] Set a timeout and allow to fail --- .github/workflows/build_and_test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 39a15265..d2b5dd53 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -153,12 +153,14 @@ jobs: hw_tests: runs-on: pigg_hw_tests + timeout-minutes: 15 steps: - name: Checkout uses: actions/checkout@v4 - name: Run HW Tests run: make hw_tests + continue-on-error: true clippy-build-and-test-matrix: runs-on: ${{ matrix.os }} From ae918d378f09207bb5e5042ff7f2a88d86938abf Mon Sep 17 00:00:00 2001 From: andrewdavidmackenzie Date: Fri, 28 Feb 2025 12:27:58 +0100 Subject: [PATCH 3/5] Try using labels to select self-hosted runner --- .github/workflows/build_and_test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index d2b5dd53..c8f28cad 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -152,7 +152,8 @@ jobs: run: cd porky && RUSTFLAGS= make uf2 hw_tests: - runs-on: pigg_hw_tests + #runs-on: pigg_hw_tests + runs-on: [ self-hosted, macOS, ARM64, pigg ] timeout-minutes: 15 steps: - name: Checkout From b24d1b28a6a1c8b5adb4a9f0c0ac218ab147f8cd Mon Sep 17 00:00:00 2001 From: andrewdavidmackenzie Date: Fri, 28 Feb 2025 12:30:56 +0100 Subject: [PATCH 4/5] Correct typo --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5eecbd61..c53ccffc 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ test: .PHONY: hw_tests hw_tests: - cargo test --package hw_tests + cargo test --package hw_test .PHONY: features features: From 028363280bfcdc1983be7b44d8dbf85daedc28d7 Mon Sep 17 00:00:00 2001 From: andrewdavidmackenzie Date: Fri, 28 Feb 2025 12:49:48 +0100 Subject: [PATCH 5/5] Correct typo --- .github/workflows/build_and_test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index c8f28cad..55021b78 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -152,9 +152,8 @@ jobs: run: cd porky && RUSTFLAGS= make uf2 hw_tests: - #runs-on: pigg_hw_tests runs-on: [ self-hosted, macOS, ARM64, pigg ] - timeout-minutes: 15 + timeout-minutes: 10 # test it times out steps: - name: Checkout uses: actions/checkout@v4