From 0076e9fde2b2ad0778499e37c63abdadba08b290 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Thu, 22 May 2025 15:50:21 +0200 Subject: [PATCH 1/2] ci: github: Fix change status of head of failed run Currently it touched the commit of the workflow (head of main) It was tested with related PR: Origin: https://github.com/SiliconLabsSoftware/z-wave-protocol-controller/pull/106 Relate-to: https://github.com/rzr/z-wave-protocol-controller/pull/4 Relate-to: https://github.com/SiliconLabsSoftware/z-wave-protocol-controller/issues/67 Relate-to: https://github.com/SiliconLabsSoftware/z-wave-protocol-controller/settings/actions Signed-off-by: Philippe Coval --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 98d5b64d0..78c1f761a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -91,7 +91,7 @@ jobs: await github.rest.repos.createCommitStatus({ owner: context.repo.owner, repo: context.repo.repo, - sha: context.sha, + sha: process.env.sha, state: process.env.status }) process.exit(process.env.status == 'success' ? 0 : 1); From cc85571e5b5621695c9577275077903b58cf5f5e Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Fri, 16 May 2025 19:11:13 +0200 Subject: [PATCH 2/2] WIP: mod: scripts/tests/z-wave-stack-binaries-test.sh (phcoval/bad/main) Relate-to: https://github.com/SiliconLabsSoftware/z-wave-protocol-controller/issues/67 Signed-off-by: Philippe Coval --- scripts/tests/z-wave-stack-binaries-test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tests/z-wave-stack-binaries-test.sh b/scripts/tests/z-wave-stack-binaries-test.sh index 3b1c3edbc..110dded34 100755 --- a/scripts/tests/z-wave-stack-binaries-test.sh +++ b/scripts/tests/z-wave-stack-binaries-test.sh @@ -109,7 +109,7 @@ exit_() echo $code > $code_log screen -S "$name" -X "quit" ||: ls -l *.log.tmp && more *.log.tmp | cat - exit $code + exit 42$code # bad code here for testing }