From 586205b422793f0bc4f797ba005573896ddbb6d8 Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Wed, 24 Jul 2024 19:25:51 +0700 Subject: [PATCH 01/16] Update manual_test.yml --- .github/workflows/manual_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index 01f4163f..37cfe00c 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -42,7 +42,7 @@ on: description: 'NON_SECURE_EN= true "CRC_32=1%20NON_SECURE_EN=false%20N_CRC_DEBUG=1%20APP_SECURE=false"' type: string default: 'APP_SECURE=false' - task: + commandcommand: type: choice options: - gen-only From f8e2d6a6af892119353532f0cf9c98212296494f Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Wed, 24 Jul 2024 19:28:37 +0700 Subject: [PATCH 02/16] Update manual_test.yml --- .github/workflows/manual_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index 37cfe00c..e4fe3d1f 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -42,7 +42,7 @@ on: description: 'NON_SECURE_EN= true "CRC_32=1%20NON_SECURE_EN=false%20N_CRC_DEBUG=1%20APP_SECURE=false"' type: string default: 'APP_SECURE=false' - commandcommand: + command: type: choice options: - gen-only From 43bc103bfc1679d64229bf19ed57fa0a3d3cd8fd Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Wed, 24 Jul 2024 19:29:53 +0700 Subject: [PATCH 03/16] Update manual_test.yml --- .github/workflows/manual_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index e4fe3d1f..4690c465 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -45,9 +45,9 @@ on: command: type: choice options: + - all - gen-only - run-only - - all component: type: choice options: From 22510cd7a921c24dbd9f211c341c714e14efd8fd Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Wed, 24 Jul 2024 19:30:38 +0700 Subject: [PATCH 04/16] Update manual_test.yml --- .github/workflows/manual_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index 4690c465..d8f9801f 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -122,7 +122,7 @@ jobs: export COMPONENT=${{ github.event.inputs.component }} && cd Test/ && ls -la && - echo "./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY" + echo "./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY" && ./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY - name: Generate test report From 9c240d118dff25588b727cccf346fc0b4cc3b05f Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Wed, 24 Jul 2024 19:41:49 +0700 Subject: [PATCH 05/16] Update manual_test.yml --- .github/workflows/manual_test.yml | 56 ++++++++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index d8f9801f..f7919a6d 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -131,12 +131,24 @@ jobs: ls -la && python test_script/get_report.py - - name: Upload results and logs + - name: Upload result uses: actions/upload-artifact@v4.3.4 with: path: result/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload artifact + uses: actions/upload-artifact@v4.3.4 + with: + path: artifact/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload log + uses: actions/upload-artifact@v4.3.4 + with: + path: log/ warn: Output a warning but do not fail the action retention-days: 90 @@ -185,12 +197,24 @@ jobs: ls -la && python test_script/get_report.py - - name: Upload results and logs + - name: Upload result uses: actions/upload-artifact@v4.3.4 with: path: result/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload artifact + uses: actions/upload-artifact@v4.3.4 + with: + path: artifact/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload log + uses: actions/upload-artifact@v4.3.4 + with: + path: log/ warn: Output a warning but do not fail the action retention-days: 90 @@ -239,12 +263,24 @@ jobs: ls -la && python test_script/get_report.py - - name: Upload results and logs + - name: Upload result uses: actions/upload-artifact@v4.3.4 with: path: result/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload artifact + uses: actions/upload-artifact@v4.3.4 + with: + path: artifact/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload log + uses: actions/upload-artifact@v4.3.4 + with: + path: log/ warn: Output a warning but do not fail the action retention-days: 90 @@ -295,12 +331,24 @@ jobs: ls -la && python test_script/get_report.py - - name: Upload results and logs + - name: Upload result uses: actions/upload-artifact@v4.3.4 with: path: result/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload artifact + uses: actions/upload-artifact@v4.3.4 + with: + path: artifact/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload log + uses: actions/upload-artifact@v4.3.4 + with: + path: log/ warn: Output a warning but do not fail the action retention-days: 90 From 41abe8d80b51bae2ca0539e57357688a3651f23f Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Wed, 24 Jul 2024 20:01:01 +0700 Subject: [PATCH 06/16] Update manual_test.yml --- .github/workflows/manual_test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index f7919a6d..a891d3da 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -134,6 +134,7 @@ jobs: - name: Upload result uses: actions/upload-artifact@v4.3.4 with: + name: gcc_mg12_result path: result/ warn: Output a warning but do not fail the action @@ -141,6 +142,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4.3.4 with: + name: gcc_mg12_artifact path: artifact/ warn: Output a warning but do not fail the action @@ -148,6 +150,7 @@ jobs: - name: Upload log uses: actions/upload-artifact@v4.3.4 with: + name: gcc_mg12_loglog path: log/ warn: Output a warning but do not fail the action @@ -200,6 +203,7 @@ jobs: - name: Upload result uses: actions/upload-artifact@v4.3.4 with: + name: gcc_mg24_result path: result/ warn: Output a warning but do not fail the action @@ -207,6 +211,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4.3.4 with: + name: gcc_mg24_artifact path: artifact/ warn: Output a warning but do not fail the action @@ -214,6 +219,7 @@ jobs: - name: Upload log uses: actions/upload-artifact@v4.3.4 with: + name: gcc_mg24_log path: log/ warn: Output a warning but do not fail the action @@ -266,6 +272,7 @@ jobs: - name: Upload result uses: actions/upload-artifact@v4.3.4 with: + name: iar_mg12_result path: result/ warn: Output a warning but do not fail the action @@ -273,6 +280,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4.3.4 with: + name: iar_mg12_artifact path: artifact/ warn: Output a warning but do not fail the action @@ -280,6 +288,7 @@ jobs: - name: Upload log uses: actions/upload-artifact@v4.3.4 with: + name: iar_mg12_log path: log/ warn: Output a warning but do not fail the action @@ -334,6 +343,7 @@ jobs: - name: Upload result uses: actions/upload-artifact@v4.3.4 with: + name: iar_mg24_result path: result/ warn: Output a warning but do not fail the action @@ -341,6 +351,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4.3.4 with: + name: iar_mg24_artifact path: artifact/ warn: Output a warning but do not fail the action @@ -348,6 +359,7 @@ jobs: - name: Upload log uses: actions/upload-artifact@v4.3.4 with: + name: iar_mg24_log path: log/ warn: Output a warning but do not fail the action From 3644e3c9f2d18a56cf58f0fdac7c6ac9b99b8c37 Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Wed, 24 Jul 2024 22:01:31 +0700 Subject: [PATCH 07/16] Update manual_test.yml --- .github/workflows/manual_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index a891d3da..6f520a9e 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -26,7 +26,7 @@ on: mg12_serialnum: description: 'Serial number of target board to test for GCC MG12' type: string - default: '440111030' + default: '440189400' mg12_hostip: type: string default: '192.168.1.69' From 6b4025f7028162c7a94159efc0b812faf188e93d Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Wed, 24 Jul 2024 22:10:42 +0700 Subject: [PATCH 08/16] Update manual_test.yml --- .github/workflows/manual_test.yml | 47 +++++-------------------------- 1 file changed, 7 insertions(+), 40 deletions(-) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index 6f520a9e..833f858d 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -1,10 +1,3 @@ -# This workflow will triage pull requests and apply a label based on the -# paths that are modified in the pull request. -# -# To use this workflow, you will need to set up a .github/labeler.yml -# file with configuration. For more information, see: -# https://github.com/actions/labeler - name: Manual Regression Test on: workflow_dispatch: @@ -64,33 +57,7 @@ on: - integrated jobs: job1: - name: Generate Documents - runs-on: [self-hosted, sqa-ds-hn-003] - permissions: - contents: read - pull-requests: write - steps: - - name: Checkout - uses: actions/checkout@v4.1.7 - with: - ref: "${{ github.event.inputs.branch }}" - - name: Remove Libraries - run: rm -rf EFR32_ICE60730_Libraries - - name: Create directory for Libraries - run: mkdir EFR32_ICE60730_Libraries - - name: Generate Documents with Doxygen - run: doxygen qat.doxygen - - name: Upload Documents - uses: actions/upload-artifact@v4.3.4 - with: - path: - Doc/html/EFR32_ICE60730_Libraries/ - warn: Output a warning but do not fail the action - retention-days: 90 - - job2: - if: (success() || failure()) && github.event.inputs.test_mg12 == 'true' - needs: [job1] + if: github.event.inputs.test_mg12 == 'true' name: GCC-MG12 regression test runs-on: [self-hosted, sqa-ds-hn-006] permissions: @@ -156,9 +123,9 @@ jobs: warn: Output a warning but do not fail the action retention-days: 90 - job3: + job2: if: (success() || failure()) && github.event.inputs.test_mg24 == 'true' - needs: [job1, job2] + needs: [job1] name: GCC-MG24 regression test runs-on: [self-hosted, sqa-ds-hn-006] permissions: @@ -225,9 +192,9 @@ jobs: warn: Output a warning but do not fail the action retention-days: 90 - job4: + job3: if: (success() || failure()) && github.event.inputs.test_mg12 == 'true' - needs: [job1, job2, job3] + needs: [job1, job2] name: IAR-MG12 regression test runs-on: [self-hosted, sqa-ds-hn-006] permissions: @@ -294,9 +261,9 @@ jobs: warn: Output a warning but do not fail the action retention-days: 90 - job5: + job4: if: (success() || failure()) && github.event.inputs.test_mg24 == 'true' - needs: [job1, job2, job3, job4] + needs: [job1, job2, job3] name: IAR-MG24 regression test runs-on: [self-hosted, sqa-ds-hn-006] permissions: From 57d18571ff874119bc063622a74a322d498cba6c Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Wed, 24 Jul 2024 22:43:48 +0700 Subject: [PATCH 09/16] Update test.yml --- .github/workflows/test.yml | 285 +++++++++++-------------------------- 1 file changed, 84 insertions(+), 201 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5421aeaa..0b1eb032 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,129 +9,28 @@ name: Regression Test on: pull_request: types: [opened, edited, review_requested, synchronize, review_request_removed, reopened] - - workflow_dispatch: - inputs: - branch: - description: 'Branch to test' - type: string - default: 'iec_efr32' - - test_mg12: - description: 'Run test with MG12?' - type: boolean - default: 'true' - test_mg24: - description: 'Run test with MG24?' - type: boolean - default: 'true' - - mg12_serialnum: - description: 'Serial number of target board to test for GCC MG12' - type: string - default: '440111030' - mg12_hostip: - type: string - default: '192.168.1.69' - mg24_serialnum: - description: 'Serial number of target board to test for GCC MG12' - type: string - default: '440124068' - mg24_hostip: - type: string - default: '192.168.1.100' - security: - description: 'NON_SECURE_EN= true "CRC_32=1%20NON_SECURE_EN=false%20N_CRC_DEBUG=1%20APP_SECURE=false"' - type: string - default: 'APP_SECURE=false' - command: - type: choice - options: - - gen-only - - run-only - - all - component: - type: choice - options: - - all - - cpu_registers - - programme_counter - - invariable_memory - - system_clock - - variable_memory - - watchdog - - bist - - post - - irq - - integrated - env: SECURITY: APP_SECURE=false COMMAND: all COMPONENT: all jobs: job1: - name: Generate Documents - runs-on: [self-hosted, sqa-ds-hn-003] - permissions: - contents: read - pull-requests: write - steps: - - name: Checkout - uses: actions/checkout@v4.1.7 - with: - ref: "${{ github.event.inputs.branch }}" - if: github.event_name == 'workflow_dispatch' - - name: Checkout - uses: actions/checkout@v4.1.7 - if: github.event_name == 'pull_request' - - name: Remove Libraries - run: rm -rf EFR32_ICE60730_Libraries - - name: Create directory for Libraries - run: mkdir EFR32_ICE60730_Libraries - - name: Generate Documents with Doxygen - run: doxygen qat.doxygen - - name: Upload Documents - uses: actions/upload-artifact@v4.3.4 - with: - path: - Doc/html/EFR32_ICE60730_Libraries/ - warn: Output a warning but do not fail the action - retention-days: 90 - - job2: - if: (success() || failure()) && github.event.inputs.test_mg12 == 'true' - needs: [job1] name: GCC-MG12 regression test runs-on: [self-hosted, sqa-ds-hn-006] permissions: contents: read pull-requests: write env: + SERIAL_NUM: 440189400 + HOST_IP: 192.168.1.69 COMPILER: GCC PLATFORM: MG12 - HOST_IP: github.event.inputs.mg12_hostip TOOL_DIRS: /home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/10.3_2021.10/bin APP_TYPE: SecureApp steps: - name: Checkout uses: actions/checkout@v4.1.7 - with: - ref: "${{ github.event.inputs.branch }}" - if: github.event_name == 'workflow_dispatch' - - name: Checkout - uses: actions/checkout@v4.1.7 - if: github.event_name == 'pull_request' - - name: Setup environment variables - run: - export HOST_IP=${{ github.event.inputs.mg12_hostip }} && - export SERIAL_NUM=${{ github.event.inputs.mg12_serialnum }} && - export SECURITY=${{ github.event.inputs.security }} && - export COMMAND=${{ github.event.inputs.command }} && - export COMPONENT=${{ github.event.inputs.component }} - - if: github.event_name == 'workflow_dispatch' - name: Check working directory run: pwd && @@ -139,72 +38,60 @@ jobs: - name: Prepare Test directory run: chmod -R 777 ./Test - - name: Assign environment variables - run: - export TOOL_DIRS=/home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/10.3_2021.10/bin && - whoami && - export HOST_IP=$HOST_IP && - export COMPILER=GCC && - export APP_TYPE=SecureApp - - name: Env set - uses: alsosee/envset@v1.1 - with: - name: SERIAL_NUM - value: github.event.inputs.mg12_serialnum - - name: Testing run: cd Test/ && ls -la && ./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY - - name: Generate test report run: cd Test/ && ls -la && python test_script/get_report.py - - name: Upload results and logs + - name: Upload result uses: actions/upload-artifact@v4.3.4 with: + name: gcc_mg12_result path: result/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload artifact + uses: actions/upload-artifact@v4.3.4 + with: + name: gcc_mg12_artifact + path: artifact/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload log + uses: actions/upload-artifact@v4.3.4 + with: + name: gcc_mg12_log + path: log/ warn: Output a warning but do not fail the action retention-days: 90 - job3: + job2: if: (success() || failure()) && github.event.inputs.test_mg24 == 'true' - needs: [job1, job2] + needs: [job1] name: GCC-MG24 regression test runs-on: [self-hosted, sqa-ds-hn-006] permissions: contents: read pull-requests: write env: + SERIAL_NUM: 440124068 + HOST_IP: 192.168.1.100 COMPILER: GCC PLATFORM: MG24 - + TOOL_DIRS: /home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/10.3_2021.10/bin + APP_TYPE: SecureApp steps: - name: Checkout uses: actions/checkout@v4.1.7 - with: - ref: "${{ github.event.inputs.branch }}" - if: github.event_name == 'workflow_dispatch' - - name: Checkout - uses: actions/checkout@v4.1.7 - if: github.event_name == 'pull_request' - - name: Setup environment variables - run: - export HOST_IP=${{ github.event.inputs.mg24_hostip }} && - export SERIAL_NUM=${{ github.event.inputs.mg24_serialnum }} && - export SECURITY=${{ github.event.inputs.security }} && - export COMMAND=${{ github.event.inputs.command }} && - export COMPONENT=${{ github.event.inputs.component }} - - if: github.event_name == 'workflow_dispatch' - - name: Check working directory run: pwd && @@ -212,20 +99,10 @@ jobs: - name: Prepare Test directory run: chmod -R 777 ./Test - - - name: Assign environment variables - run: - export TOOL_DIRS=/home/sqa/SimplicityStudio-5/SimplicityStudio_v5/developer/toolchains/gnu_arm/10.3_2021.10/bin && - whoami && - export HOST_IP=$HOST_IP && - export COMPILER=GCC && - export APP_TYPE=SecureApp - - name: Testing run: cd Test/ && ls -la && - echo "./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY" ./execute_test.sh $COMMAND $COMPONENT $SERIAL_NUM $PLATFORM $COMPILER $SECURITY - name: Generate test report @@ -234,47 +111,50 @@ jobs: ls -la && python test_script/get_report.py - - name: Upload results and logs + - name: Upload result uses: actions/upload-artifact@v4.3.4 with: + name: gcc_mg24_result path: result/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload artifact + uses: actions/upload-artifact@v4.3.4 + with: + name: gcc_mg24_artifact + path: artifact/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload log + uses: actions/upload-artifact@v4.3.4 + with: + name: gcc_mg24_log + path: log/ warn: Output a warning but do not fail the action retention-days: 90 - job4: + job3: if: (success() || failure()) && github.event.inputs.test_mg12 == 'true' - needs: [job1, job2, job3] + needs: [job1, job2] name: IAR-MG12 regression test runs-on: [self-hosted, sqa-ds-hn-006] permissions: contents: read pull-requests: write env: + SERIAL_NUM: 440189400 + HOST_IP: 192.168.1.69 COMPILER: IAR PLATFORM: MG12 + TOOL_DIRS: /home/sqa/EmbeddedWorkbench8.4/arm/bin + APP_TYPE: SecureApp steps: - name: Checkout uses: actions/checkout@v4.1.7 - with: - ref: "${{ github.event.inputs.branch }}" - if: github.event_name == 'workflow_dispatch' - - name: Checkout - uses: actions/checkout@v4.1.7 - if: github.event_name == 'pull_request' - - name: Setup environment variables - run: - export HOST_IP=${{ github.event.inputs.mg12_hostip }} && - export SERIAL_NUM=${{ github.event.inputs.mg12_serialnum }} && - export SECURITY=${{ github.event.inputs.security }} && - export COMMAND=${{ github.event.inputs.command }} && - export COMPONENT=${{ github.event.inputs.component }} - - if: github.event_name == 'workflow_dispatch' - - name: Check working directory run: pwd && @@ -283,13 +163,6 @@ jobs: run: chmod -R 777 ./Test - - name: Assign environment variables - run: - whoami && - export HOST_IP=$HOST_IP && - export TOOL_DIRS=/home/sqa/EmbeddedWorkbench8.4/arm/bin && - export APP_TYPE=SecureApp - - name: Testing run: cd Test && @@ -302,47 +175,50 @@ jobs: ls -la && python test_script/get_report.py - - name: Upload results and logs + - name: Upload result uses: actions/upload-artifact@v4.3.4 with: + name: iar_mg12_result path: result/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload artifact + uses: actions/upload-artifact@v4.3.4 + with: + name: iar_mg12_artifact + path: artifact/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload log + uses: actions/upload-artifact@v4.3.4 + with: + name: iar_mg12_log + path: log/ warn: Output a warning but do not fail the action retention-days: 90 - job5: + job4: if: (success() || failure()) && github.event.inputs.test_mg24 == 'true' - needs: [job1, job2, job3, job4] + needs: [job1, job2, job3] name: IAR-MG24 regression test runs-on: [self-hosted, sqa-ds-hn-006] permissions: contents: read pull-requests: write env: + SERIAL_NUM: 440124068 + HOST_IP: 192.168.1.100 COMPILER: IAR PLATFORM: MG24 + TOOL_DIRS: /home/sqa/EmbeddedWorkbench8.4/arm/bin + APP_TYPE: SecureApp steps: - name: Checkout uses: actions/checkout@v4.1.7 - with: - ref: "${{ github.event.inputs.branch }}" - if: github.event_name == 'workflow_dispatch' - - name: Checkout - uses: actions/checkout@v4.1.7 - if: github.event_name == 'pull_request' - - name: Setup environment variables - run: - export HOST_IP=${{ github.event.inputs.mg24_hostip }} && - export SERIAL_NUM=${{ github.event.inputs.mg24_serialnum }} && - export SECURITY=${{ github.event.inputs.security }} && - export COMMAND=${{ github.event.inputs.command }} && - export COMPONENT=${{ github.event.inputs.component }} - - if: github.event_name == 'workflow_dispatch' - - name: Check working directory run: pwd && @@ -350,14 +226,6 @@ jobs: - name: Prepare Test directory run: chmod -R 777 ./Test - - - name: Assign environment variables - run: - whoami && - export HOST_IP=$HOST_IP && - export TOOL_DIRS=/home/sqa/EmbeddedWorkbench8.4/arm/bin && - export APP_TYPE=SecureApp - - name: Testing run: cd Test && @@ -370,12 +238,27 @@ jobs: ls -la && python test_script/get_report.py - - name: Upload results and logs + - name: Upload result uses: actions/upload-artifact@v4.3.4 with: + name: iar_mg24_result path: result/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload artifact + uses: actions/upload-artifact@v4.3.4 + with: + name: iar_mg24_artifact + path: artifact/ + warn: Output a warning but do not fail the action + retention-days: 90 + - name: Upload log + uses: actions/upload-artifact@v4.3.4 + with: + name: iar_mg24_log + path: log/ warn: Output a warning but do not fail the action retention-days: 90 From 6f6dc9ab40a3586f64e617722a4a9b40ef5a292e Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Wed, 24 Jul 2024 22:48:30 +0700 Subject: [PATCH 10/16] Update manual_test.yml --- .github/workflows/manual_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index 833f858d..f83d18b2 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -117,7 +117,7 @@ jobs: - name: Upload log uses: actions/upload-artifact@v4.3.4 with: - name: gcc_mg12_loglog + name: gcc_mg12_log path: log/ warn: Output a warning but do not fail the action @@ -193,7 +193,7 @@ jobs: retention-days: 90 job3: - if: (success() || failure()) && github.event.inputs.test_mg12 == 'true' + if: always() && github.event.inputs.test_mg12 == 'true' needs: [job1, job2] name: IAR-MG12 regression test runs-on: [self-hosted, sqa-ds-hn-006] From d02f4568725f7058cdb8b9c9579f327a7caffa95 Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Wed, 24 Jul 2024 22:49:43 +0700 Subject: [PATCH 11/16] Update manual_test.yml --- .github/workflows/manual_test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index f83d18b2..6166af52 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -124,7 +124,7 @@ jobs: retention-days: 90 job2: - if: (success() || failure()) && github.event.inputs.test_mg24 == 'true' + if: (always()) && github.event.inputs.test_mg24 == 'true' needs: [job1] name: GCC-MG24 regression test runs-on: [self-hosted, sqa-ds-hn-006] @@ -193,7 +193,7 @@ jobs: retention-days: 90 job3: - if: always() && github.event.inputs.test_mg12 == 'true' + if: (always()) && github.event.inputs.test_mg12 == 'true' needs: [job1, job2] name: IAR-MG12 regression test runs-on: [self-hosted, sqa-ds-hn-006] @@ -262,7 +262,7 @@ jobs: retention-days: 90 job4: - if: (success() || failure()) && github.event.inputs.test_mg24 == 'true' + if: (always()) && github.event.inputs.test_mg24 == 'true' needs: [job1, job2, job3] name: IAR-MG24 regression test runs-on: [self-hosted, sqa-ds-hn-006] From ea0514e2acef1e2c35e9d71d8249fae239423e56 Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Thu, 25 Jul 2024 16:28:58 +0700 Subject: [PATCH 12/16] Update test.yml --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b1eb032..28eb972a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -83,7 +83,7 @@ jobs: contents: read pull-requests: write env: - SERIAL_NUM: 440124068 + SERIAL_NUM: 440133193 HOST_IP: 192.168.1.100 COMPILER: GCC PLATFORM: MG24 @@ -209,7 +209,7 @@ jobs: contents: read pull-requests: write env: - SERIAL_NUM: 440124068 + SERIAL_NUM: 440133193 HOST_IP: 192.168.1.100 COMPILER: IAR PLATFORM: MG24 From 68f4fdd28ba992ab1922926bf1dfebcad1021209 Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Thu, 25 Jul 2024 16:29:19 +0700 Subject: [PATCH 13/16] Update manual_test.yml --- .github/workflows/manual_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual_test.yml b/.github/workflows/manual_test.yml index 6166af52..c3dc521c 100644 --- a/.github/workflows/manual_test.yml +++ b/.github/workflows/manual_test.yml @@ -26,7 +26,7 @@ on: mg24_serialnum: description: 'Serial number of target board to test for GCC MG12' type: string - default: '440124068' + default: '440133193' mg24_hostip: type: string default: '192.168.1.100' From 5a437b8b7c95195e14fce90f9b0da59ffb0edf71 Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Mon, 29 Jul 2024 16:46:22 +0700 Subject: [PATCH 14/16] Update test.yml --- .github/workflows/test.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 28eb972a..3212e0b8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,14 +1,10 @@ -# This workflow will triage pull requests and apply a label based on the -# paths that are modified in the pull request. -# -# To use this workflow, you will need to set up a .github/labeler.yml -# file with configuration. For more information, see: -# https://github.com/actions/labeler - name: Regression Test on: pull_request: types: [opened, edited, review_requested, synchronize, review_request_removed, reopened] + branches: + - main + - iec_efr32 env: SECURITY: APP_SECURE=false @@ -75,7 +71,7 @@ jobs: retention-days: 90 job2: - if: (success() || failure()) && github.event.inputs.test_mg24 == 'true' + if: (always()) needs: [job1] name: GCC-MG24 regression test runs-on: [self-hosted, sqa-ds-hn-006] @@ -137,7 +133,7 @@ jobs: retention-days: 90 job3: - if: (success() || failure()) && github.event.inputs.test_mg12 == 'true' + if: (always()) needs: [job1, job2] name: IAR-MG12 regression test runs-on: [self-hosted, sqa-ds-hn-006] @@ -201,7 +197,7 @@ jobs: retention-days: 90 job4: - if: (success() || failure()) && github.event.inputs.test_mg24 == 'true' + if: (always()) needs: [job1, job2, job3] name: IAR-MG24 regression test runs-on: [self-hosted, sqa-ds-hn-006] From dc28abfae649dabecbc9f7fe97e3f15beca29285 Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Mon, 29 Jul 2024 16:55:44 +0700 Subject: [PATCH 15/16] Update test.yml --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3212e0b8..efec2f5b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,8 @@ on: branches: - main - iec_efr32 + branches-ignore: + - update-workflows env: SECURITY: APP_SECURE=false From fad533dc770491c8fa5d01e4408a9375520c7dea Mon Sep 17 00:00:00 2001 From: silabs-bingocth Date: Sun, 11 Aug 2024 22:22:38 +0700 Subject: [PATCH 16/16] Update test.yml --- .github/workflows/test.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index efec2f5b..3212e0b8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,8 +5,6 @@ on: branches: - main - iec_efr32 - branches-ignore: - - update-workflows env: SECURITY: APP_SECURE=false