From 64b5235fc9a3b996d6ccdf8aef7fbe5e04cc02db Mon Sep 17 00:00:00 2001 From: zhanglinjing Date: Tue, 12 May 2026 17:37:57 +0200 Subject: [PATCH 1/3] .github/workflows/hil_checks.yml: Add uhubctl all on and off for muc lab. Signed-off-by: zhanglinjing --- .github/workflows/hil_checks.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hil_checks.yml b/.github/workflows/hil_checks.yml index 59de95a..28d84f6 100644 --- a/.github/workflows/hil_checks.yml +++ b/.github/workflows/hil_checks.yml @@ -73,6 +73,11 @@ jobs: - name: Setup makers-hil deploy environment run: | switch_makers_hil.sh deploy + + - name: Power on USB hubs for MUC runner + if: ${{ contains(runner.name, 'MUC') }} + run: | + switch_device.py --uhubctl-switch-all on hilChecks: runs-on: @@ -103,7 +108,7 @@ jobs: ${{ needs.setup.outputs.decrypt-secrets }} env: LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }} - + - name: Run HIL check (${{ matrix.checks }}) timeout-minutes: 10 run: | @@ -134,3 +139,16 @@ jobs: awk '/Unity test run 1 of 1/,/Number of ignored tests/' output.log >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY + + teardownHilEnv: + runs-on: + - self-hosted + - X64 + - Linux + needs: hilChecks + if: ${{ always() }} + steps: + - name: Power off USB hubs for MUC runner + if: ${{ contains(runner.name, 'MUC') }} + run: | + switch_device.py --uhubctl-switch-all off From 550613417c3c2171e7e6b3b8353b3c34f30248cf Mon Sep 17 00:00:00 2001 From: zhanglinjing Date: Tue, 12 May 2026 19:35:03 +0200 Subject: [PATCH 2/3] .github/workflows/hil_checks.yml: Add always turn on step. Signed-off-by: zhanglinjing --- .github/workflows/hil_checks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/hil_checks.yml b/.github/workflows/hil_checks.yml index 28d84f6..c359330 100644 --- a/.github/workflows/hil_checks.yml +++ b/.github/workflows/hil_checks.yml @@ -69,6 +69,7 @@ jobs: - Linux - makers needs: setup + if: ${{ always() }} steps: - name: Setup makers-hil deploy environment run: | From 62879841e19bc98e6e01aef1b0827b19ed7f2ddd Mon Sep 17 00:00:00 2001 From: zhanglinjing Date: Mon, 1 Jun 2026 13:13:55 +0200 Subject: [PATCH 3/3] .github/workflows/hil_checks.yml: Remove teardown to keep all boards on. Signed-off-by: zhanglinjing --- .github/workflows/hil_checks.yml | 44 ++++++++------------------------ 1 file changed, 11 insertions(+), 33 deletions(-) diff --git a/.github/workflows/hil_checks.yml b/.github/workflows/hil_checks.yml index c359330..9bf962d 100644 --- a/.github/workflows/hil_checks.yml +++ b/.github/workflows/hil_checks.yml @@ -62,31 +62,13 @@ jobs: checks: ${{ steps.set-matrix.outputs.checks }} decrypt-secrets: ${{ inputs.decrypt-secrets }} - setupHilEnv: - runs-on: - - self-hosted - - X64 - - Linux - - makers - needs: setup - if: ${{ always() }} - steps: - - name: Setup makers-hil deploy environment - run: | - switch_makers_hil.sh deploy - - - name: Power on USB hubs for MUC runner - if: ${{ contains(runner.name, 'MUC') }} - run: | - switch_device.py --uhubctl-switch-all on - hilChecks: runs-on: - self-hosted - X64 - Linux - makers - needs: [setup, setupHilEnv] + needs: setup strategy: fail-fast: false @@ -96,6 +78,15 @@ jobs: checks: ${{ fromJson(needs.setup.outputs.checks) }} steps: + - name: Setup makers-hil deploy environment + run: | + switch_makers_hil.sh deploy + + - name: Power on USB hubs for MUC runner + if: ${{ contains(runner.name, 'MUC') }} + run: | + switch_device.py --uhubctl-switch-all on + - name: Checkout repository (recursive submodules) uses: actions/checkout@v4 with: @@ -139,17 +130,4 @@ jobs: echo '```' >> $GITHUB_STEP_SUMMARY awk '/Unity test run 1 of 1/,/Number of ignored tests/' output.log >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY - echo "" >> $GITHUB_STEP_SUMMARY - - teardownHilEnv: - runs-on: - - self-hosted - - X64 - - Linux - needs: hilChecks - if: ${{ always() }} - steps: - - name: Power off USB hubs for MUC runner - if: ${{ contains(runner.name, 'MUC') }} - run: | - switch_device.py --uhubctl-switch-all off + echo "" >> $GITHUB_STEP_SUMMARY \ No newline at end of file