From b8888e1d2e12712ac8fad95c91c562e327f52a91 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Mon, 26 Jun 2023 14:27:11 -0700 Subject: [PATCH] Workaround not needed anymore --- .github/actions/setup-size-reports/action.yaml | 15 +++++++++++++++ .github/actions/upload-size-reports/action.yaml | 17 +++++++++++++++++ .github/workflows/build.yaml | 4 +--- .github/workflows/chef.yaml | 4 +--- .github/workflows/cirque.yaml | 4 +--- .github/workflows/darwin-tests.yaml | 4 +--- .github/workflows/darwin.yaml | 4 +--- .github/workflows/examples-ameba.yaml | 4 +--- .github/workflows/examples-asr.yaml | 4 +--- .github/workflows/examples-bouffalolab.yaml | 2 -- .github/workflows/examples-cc13x2x7_26x2x7.yaml | 4 +--- .github/workflows/examples-cc32xx.yaml | 4 +--- .github/workflows/examples-efr32.yaml | 14 +++++--------- .github/workflows/examples-esp32.yaml | 15 ++++++--------- .github/workflows/examples-infineon.yaml | 16 ++++++---------- .github/workflows/examples-k32w.yaml | 16 ++++++---------- .github/workflows/examples-linux-arm.yaml | 16 ++++++---------- .github/workflows/examples-linux-imx.yaml | 4 +--- .../workflows/examples-linux-standalone.yaml | 16 ++++++---------- .github/workflows/examples-mbed.yaml | 16 ++++++---------- .github/workflows/examples-mw320.yaml | 16 ++++++---------- .github/workflows/examples-nrfconnect.yaml | 16 ++++++---------- .github/workflows/examples-openiotsdk.yaml | 10 ++++------ .github/workflows/examples-qpg.yaml | 17 ++++++----------- .github/workflows/examples-telink.yaml | 16 ++++++---------- .github/workflows/examples-tizen.yaml | 4 +--- .github/workflows/full-android.yaml | 4 +--- .github/workflows/fuzzing-build.yaml | 4 +--- .github/workflows/java-tests.yaml | 4 +--- .github/workflows/lint.yml | 4 +--- .github/workflows/qemu.yaml | 4 +--- .github/workflows/release_artifacts.yaml | 4 +--- .github/workflows/smoketest-android.yaml | 4 +--- .github/workflows/tests.yaml | 4 +--- .github/workflows/zap_regeneration.yaml | 4 +--- .github/workflows/zap_templates.yaml | 4 +--- 36 files changed, 122 insertions(+), 180 deletions(-) create mode 100644 .github/actions/setup-size-reports/action.yaml create mode 100644 .github/actions/upload-size-reports/action.yaml diff --git a/.github/actions/setup-size-reports/action.yaml b/.github/actions/setup-size-reports/action.yaml new file mode 100644 index 00000000000000..511a434242d2e6 --- /dev/null +++ b/.github/actions/setup-size-reports/action.yaml @@ -0,0 +1,15 @@ +name: Setup size reports +description: Setup size reports +inputs: + gh-context: + description: "GH Context" + required: true + +runs: + using: "composite" + steps: + - name: Set up environment for size reports + shell: bash + env: + GH_CONTEXT: ${{ inputs.gh-context }} + run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" diff --git a/.github/actions/upload-size-reports/action.yaml b/.github/actions/upload-size-reports/action.yaml new file mode 100644 index 00000000000000..c71312ae6578ee --- /dev/null +++ b/.github/actions/upload-size-reports/action.yaml @@ -0,0 +1,17 @@ +name: upload-size-reports +description: upload-size-reports +inputs: + platform-name: + description: "Platform name Name" + required: true + +runs: + using: "composite" + steps: + - name: Uploading Size Reports + uses: actions/upload-artifact@v3 + if: ${{ !env.ACT }} + with: + name: Size,${{ inputs.platform-name }}-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} + path: | + /tmp/bloat_reports/ diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 078b47d4319602..2cf7dc01d8f5ae 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,9 +31,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: build_linux_gcc_debug: name: Build on Linux (gcc_debug) diff --git a/.github/workflows/chef.yaml b/.github/workflows/chef.yaml index 211bca208ff5e0..183c115555f0e2 100644 --- a/.github/workflows/chef.yaml +++ b/.github/workflows/chef.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: chef_linux: name: Chef - Linux CI Examples diff --git a/.github/workflows/cirque.yaml b/.github/workflows/cirque.yaml index 90a06dd1791b02..321b450f8799de 100644 --- a/.github/workflows/cirque.yaml +++ b/.github/workflows/cirque.yaml @@ -26,9 +26,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: cirque: name: Cirque diff --git a/.github/workflows/darwin-tests.yaml b/.github/workflows/darwin-tests.yaml index 21314770044e2d..0920d90438c979 100644 --- a/.github/workflows/darwin-tests.yaml +++ b/.github/workflows/darwin-tests.yaml @@ -28,9 +28,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: test_suites_chip_tool_darwin: name: Test Suites - Darwin diff --git a/.github/workflows/darwin.yaml b/.github/workflows/darwin.yaml index 80793bc7f8cc9b..a422c2066a8d98 100644 --- a/.github/workflows/darwin.yaml +++ b/.github/workflows/darwin.yaml @@ -26,9 +26,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: darwin: name: Build Darwin diff --git a/.github/workflows/examples-ameba.yaml b/.github/workflows/examples-ameba.yaml index d75d2e409f67fa..ef5947ec4adbbe 100644 --- a/.github/workflows/examples-ameba.yaml +++ b/.github/workflows/examples-ameba.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: ameba: name: Ameba diff --git a/.github/workflows/examples-asr.yaml b/.github/workflows/examples-asr.yaml index 3437d6ba70e856..b826fcbe88c16c 100644 --- a/.github/workflows/examples-asr.yaml +++ b/.github/workflows/examples-asr.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: asr: name: ASR diff --git a/.github/workflows/examples-bouffalolab.yaml b/.github/workflows/examples-bouffalolab.yaml index c4e8dee29bc45f..fcdfcb7ba14fea 100644 --- a/.github/workflows/examples-bouffalolab.yaml +++ b/.github/workflows/examples-bouffalolab.yaml @@ -26,8 +26,6 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 jobs: bouffalolab: diff --git a/.github/workflows/examples-cc13x2x7_26x2x7.yaml b/.github/workflows/examples-cc13x2x7_26x2x7.yaml index d654943dff37d3..7d9ec65e5aac25 100644 --- a/.github/workflows/examples-cc13x2x7_26x2x7.yaml +++ b/.github/workflows/examples-cc13x2x7_26x2x7.yaml @@ -24,9 +24,7 @@ concurrency: cancel-in-progress: true env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: cc26x2x7: name: cc26x2x7 diff --git a/.github/workflows/examples-cc32xx.yaml b/.github/workflows/examples-cc32xx.yaml index e284c7e5973a8c..66c0f47e41d526 100644 --- a/.github/workflows/examples-cc32xx.yaml +++ b/.github/workflows/examples-cc32xx.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: cc32xx: name: cc32xx diff --git a/.github/workflows/examples-efr32.yaml b/.github/workflows/examples-efr32.yaml index 533eda78a9473b..5f384b4542d899 100644 --- a/.github/workflows/examples-efr32.yaml +++ b/.github/workflows/examples-efr32.yaml @@ -25,8 +25,6 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 jobs: efr32: @@ -52,10 +50,10 @@ jobs: platform: silabs_docker - name: Set up environment for size reports + uses: ./.github/actions/setup-size-reports if: ${{ !env.ACT }} - env: - GH_CONTEXT: ${{ toJson(github) }} - run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" + with: + gh-context: ${{ toJson(github) }} # - name: Test SLC gen # timeout-minutes: 30 @@ -105,9 +103,7 @@ jobs: - name: Clean out build output run: rm -rf ./out - name: Uploading Size Reports - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-size-reports if: ${{ !env.ACT }} with: - name: Size,EFR32-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} - path: | - /tmp/bloat_reports/ + platform-name: EFR32 diff --git a/.github/workflows/examples-esp32.yaml b/.github/workflows/examples-esp32.yaml index 28ecb6783e9122..f795cd4863ae5c 100644 --- a/.github/workflows/examples-esp32.yaml +++ b/.github/workflows/examples-esp32.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: esp32: name: ESP32 @@ -49,10 +47,10 @@ jobs: platform: esp32 - name: Set up environment for size reports + uses: ./.github/actions/setup-size-reports if: ${{ !env.ACT }} - env: - GH_CONTEXT: ${{ toJson(github) }} - run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" + with: + gh-context: ${{ toJson(github) }} - name: Build some M5Stack variations run: | @@ -117,11 +115,10 @@ jobs: run: scripts/examples/esp_example.sh lock-app sdkconfig.defaults - name: Uploading Size Reports - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-size-reports if: ${{ !env.ACT }} with: - name: Size,ESP32-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} - path: /tmp/bloat_reports/ + platform-name: ESP32 esp32_1: name: ESP32_1 diff --git a/.github/workflows/examples-infineon.yaml b/.github/workflows/examples-infineon.yaml index 6f1ea43f6230c3..b798ae148c58cd 100644 --- a/.github/workflows/examples-infineon.yaml +++ b/.github/workflows/examples-infineon.yaml @@ -26,9 +26,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: infineon: name: Infineon examples building @@ -49,10 +47,10 @@ jobs: platform: infineon - name: Set up environment for size reports + uses: ./.github/actions/setup-size-reports if: ${{ !env.ACT }} - env: - GH_CONTEXT: ${{ toJson(github) }} - run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" + with: + gh-context: ${{ toJson(github) }} - name: Build PSoC6 lock-app example run: | @@ -143,9 +141,7 @@ jobs: out/artifacts/cyw30739-cyw930739m2evb_01-switch/chip-cyw30739-light-switch-example.elf \ /tmp/bloat_reports/ - name: Uploading Size Reports - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-size-reports if: ${{ !env.ACT }} with: - name: Size,Infineon-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} - path: | - /tmp/bloat_reports/ + platform-name: Infineon \ No newline at end of file diff --git a/.github/workflows/examples-k32w.yaml b/.github/workflows/examples-k32w.yaml index 03a24c69024ec2..fa80b0d146e725 100644 --- a/.github/workflows/examples-k32w.yaml +++ b/.github/workflows/examples-k32w.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: k32w: name: K32W @@ -51,10 +49,10 @@ jobs: platform: k32w0 - name: Set up environment for size reports + uses: ./.github/actions/setup-size-reports if: ${{ !env.ACT }} - env: - GH_CONTEXT: ${{ toJson(github) }} - run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" + with: + gh-context: ${{ toJson(github) }} - name: Build examples run: | @@ -88,9 +86,7 @@ jobs: out/artifacts/k32w-contact-crypto-platform-tokenizer/chip-k32w0x-contact-example \ /tmp/bloat_reports/ - name: Uploading Size Reports - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-size-reports if: ${{ !env.ACT }} with: - name: Size,K32W-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} - path: | - /tmp/bloat_reports/ + platform-name: K32W diff --git a/.github/workflows/examples-linux-arm.yaml b/.github/workflows/examples-linux-arm.yaml index 2cbdae6c6b84e6..15a55fbb604b36 100644 --- a/.github/workflows/examples-linux-arm.yaml +++ b/.github/workflows/examples-linux-arm.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: arm_crosscompile: name: Linux ARM Cross compile @@ -49,10 +47,10 @@ jobs: platform: linux - name: Set up environment for size reports + uses: ./.github/actions/setup-size-reports if: ${{ !env.ACT }} - env: - GH_CONTEXT: ${{ toJson(github) }} - run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" + with: + gh-context: ${{ toJson(github) }} - name: Build Some samples run: | @@ -80,9 +78,7 @@ jobs: out/linux-arm64-thermostat-no-ble-clang/thermostat-app \ /tmp/bloat_reports/ - name: Uploading Size Reports - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-size-reports if: ${{ !env.ACT }} with: - name: Size,Linux-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} - path: | - /tmp/bloat_reports/ + platform-name: Linux diff --git a/.github/workflows/examples-linux-imx.yaml b/.github/workflows/examples-linux-imx.yaml index f53456d924f28e..476d94793023a1 100644 --- a/.github/workflows/examples-linux-imx.yaml +++ b/.github/workflows/examples-linux-imx.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: imx: name: Linux i.MX Build diff --git a/.github/workflows/examples-linux-standalone.yaml b/.github/workflows/examples-linux-standalone.yaml index 481a5e00bb7351..3bd48a1960b8ba 100644 --- a/.github/workflows/examples-linux-standalone.yaml +++ b/.github/workflows/examples-linux-standalone.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: linux_standalone: name: Linux Standalone @@ -49,10 +47,10 @@ jobs: platform: linux - name: Set up environment for size reports + uses: ./.github/actions/setup-size-reports if: ${{ !env.ACT }} - env: - GH_CONTEXT: ${{ toJson(github) }} - run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" + with: + gh-context: ${{ toJson(github) }} - name: Build Standalone cert tool run: | @@ -183,9 +181,7 @@ jobs: --target linux-x64-contact-sensor-no-ble-with-ui \ build" - name: Uploading Size Reports - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-size-reports if: ${{ !env.ACT }} with: - name: Size,Linux-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} - path: | - /tmp/bloat_reports/ + platform-name: Linux-Standalone diff --git a/.github/workflows/examples-mbed.yaml b/.github/workflows/examples-mbed.yaml index 5b57fb85f55518..e1fb72d40301f3 100644 --- a/.github/workflows/examples-mbed.yaml +++ b/.github/workflows/examples-mbed.yaml @@ -26,9 +26,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: mbedos: name: Mbed OS examples building @@ -65,10 +63,10 @@ jobs: - 'examples/pigweed-app/mbed/**' - name: Set up environment for size reports + uses: ./.github/actions/setup-size-reports if: ${{ !env.ACT }} - env: - GH_CONTEXT: ${{ toJson(github) }} - run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" + with: + gh-context: ${{ toJson(github) }} - name: Build lock-app example run: | @@ -145,9 +143,7 @@ jobs: run: scripts/tests/mbed/mbed_unit_tests.sh -b=$APP_TARGET -p=$APP_PROFILE - name: Uploading Size Reports - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-size-reports if: ${{ !env.ACT }} with: - name: Size,Mbed-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} - path: | - /tmp/bloat_reports/ + platform-name: Mbed diff --git a/.github/workflows/examples-mw320.yaml b/.github/workflows/examples-mw320.yaml index 3663f6bb13d4d3..d685fb26cd384b 100755 --- a/.github/workflows/examples-mw320.yaml +++ b/.github/workflows/examples-mw320.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: mw320: name: MW320 @@ -51,10 +49,10 @@ jobs: platform: mw320 - name: Set up environment for size reports + uses: ./.github/actions/setup-size-reports if: ${{ !env.ACT }} - env: - GH_CONTEXT: ${{ toJson(github) }} - run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" + with: + gh-context: ${{ toJson(github) }} - name: Build MW320 all clusters example app run: | @@ -65,9 +63,7 @@ jobs: --copy-artifacts-to out/artifacts \ " - name: Uploading Size Reports - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-size-reports if: ${{ !env.ACT }} with: - name: Size,MW320-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} - path: | - /tmp/bloat_reports/ + platform-name: MW320 diff --git a/.github/workflows/examples-nrfconnect.yaml b/.github/workflows/examples-nrfconnect.yaml index 5edec99424086e..985f3b5c7fff82 100644 --- a/.github/workflows/examples-nrfconnect.yaml +++ b/.github/workflows/examples-nrfconnect.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: nrfconnect: name: nRF Connect SDK @@ -64,10 +62,10 @@ jobs: shell: - 'examples/shell/nrfconnect/**' - name: Set up environment for size reports + uses: ./.github/actions/setup-size-reports if: ${{ !env.ACT }} - env: - GH_CONTEXT: ${{ toJson(github) }} - run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" + with: + gh-context: ${{ toJson(github) }} - name: Check nRF Connect SDK revision. run: scripts/run_in_build_env.sh "python3 scripts/setup/nrfconnect/update_ncs.py --check" @@ -205,9 +203,7 @@ jobs: src/test_driver/nrfconnect/build/Testing/Temporary/LastTest.log - name: Uploading Size Reports - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-size-reports if: ${{ !env.ACT }} with: - name: Size,nRFConnect-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} - path: | - /tmp/bloat_reports/ + platform-name: nRFConnect diff --git a/.github/workflows/examples-openiotsdk.yaml b/.github/workflows/examples-openiotsdk.yaml index eec8d0d4082858..b875185a948d7f 100644 --- a/.github/workflows/examples-openiotsdk.yaml +++ b/.github/workflows/examples-openiotsdk.yaml @@ -26,9 +26,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: openiotsdk: name: Open IoT SDK examples building @@ -54,10 +52,10 @@ jobs: platform: openiotsdk - name: Set up environment for size reports + uses: ./.github/actions/setup-size-reports if: ${{ !env.ACT }} - env: - GH_CONTEXT: ${{ toJson(github) }} - run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" + with: + gh-context: ${{ toJson(github) }} - name: Build and install Python controller run: | diff --git a/.github/workflows/examples-qpg.yaml b/.github/workflows/examples-qpg.yaml index 1856725d45c2a4..0f426d8286999b 100644 --- a/.github/workflows/examples-qpg.yaml +++ b/.github/workflows/examples-qpg.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: qpg: name: QPG @@ -51,10 +49,10 @@ jobs: platform: qpg - name: Set up environment for size reports + uses: ./.github/actions/setup-size-reports if: ${{ !env.ACT }} - env: - GH_CONTEXT: ${{ toJson(github) }} - run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" + with: + gh-context: ${{ toJson(github) }} - name: Build QPG6105 example apps run: | @@ -82,11 +80,8 @@ jobs: qpg qpg6105+debug lock-app \ out/qpg-qpg6105-lock/chip-qpg6105-lock-example.out \ /tmp/bloat_reports/ - - name: Uploading Size Reports - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-size-reports if: ${{ !env.ACT }} with: - name: Size,QPG-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} - path: | - /tmp/bloat_reports/ + platform-name: QPG \ No newline at end of file diff --git a/.github/workflows/examples-telink.yaml b/.github/workflows/examples-telink.yaml index 5a79ff6f10e16c..05c0adcccff319 100644 --- a/.github/workflows/examples-telink.yaml +++ b/.github/workflows/examples-telink.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: telink: name: Telink @@ -51,10 +49,10 @@ jobs: platform: telink - name: Set up environment for size reports + uses: ./.github/actions/setup-size-reports if: ${{ !env.ACT }} - env: - GH_CONTEXT: ${{ toJson(github) }} - run: scripts/tools/memory/gh_sizes_environment.py "${GH_CONTEXT}" + with: + gh-context: ${{ toJson(github) }} - name: Build example Telink All Clusters App run: | @@ -252,9 +250,7 @@ jobs: run: rm -rf ./out - name: Uploading Size Reports - uses: actions/upload-artifact@v3 + uses: ./.github/actions/upload-size-reports if: ${{ !env.ACT }} with: - name: Size,Telink-Examples,${{ env.GH_EVENT_PR }},${{ env.GH_EVENT_HASH }},${{ env.GH_EVENT_PARENT }},${{ github.event_name }} - path: | - /tmp/bloat_reports/ + platform-name: Telink diff --git a/.github/workflows/examples-tizen.yaml b/.github/workflows/examples-tizen.yaml index e1bcd4d4b9bdbd..655b6a092f7f81 100644 --- a/.github/workflows/examples-tizen.yaml +++ b/.github/workflows/examples-tizen.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: tizen: name: Tizen diff --git a/.github/workflows/full-android.yaml b/.github/workflows/full-android.yaml index bb0c34ea84d7e8..1a0c03ab2316ca 100644 --- a/.github/workflows/full-android.yaml +++ b/.github/workflows/full-android.yaml @@ -24,9 +24,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: full_android: name: Run diff --git a/.github/workflows/fuzzing-build.yaml b/.github/workflows/fuzzing-build.yaml index ab6f50593e32ad..aabb379e8a8deb 100644 --- a/.github/workflows/fuzzing-build.yaml +++ b/.github/workflows/fuzzing-build.yaml @@ -24,9 +24,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: build_linux_fuzzing: name: Build on Linux diff --git a/.github/workflows/java-tests.yaml b/.github/workflows/java-tests.yaml index b1a11041688905..f56b1c42d77c5c 100644 --- a/.github/workflows/java-tests.yaml +++ b/.github/workflows/java-tests.yaml @@ -28,9 +28,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: java_tests_linux: name: Linux diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b512d933a14c44..a0f327ce2d718b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,9 +24,7 @@ concurrency: cancel-in-progress: true env: - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: code-lints: runs-on: ubuntu-latest diff --git a/.github/workflows/qemu.yaml b/.github/workflows/qemu.yaml index 47d200f308a74a..43faed9920953d 100644 --- a/.github/workflows/qemu.yaml +++ b/.github/workflows/qemu.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: qemu-esp32: diff --git a/.github/workflows/release_artifacts.yaml b/.github/workflows/release_artifacts.yaml index ea11e79864a364..9e2c26166fef7f 100644 --- a/.github/workflows/release_artifacts.yaml +++ b/.github/workflows/release_artifacts.yaml @@ -23,9 +23,7 @@ on: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: esp32: name: ESP32 diff --git a/.github/workflows/smoketest-android.yaml b/.github/workflows/smoketest-android.yaml index 4d2f3d5aa16863..8a095f0e604173 100644 --- a/.github/workflows/smoketest-android.yaml +++ b/.github/workflows/smoketest-android.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: android: name: Smoke Run - Android diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 16b22250434a25..27c5ac86a1c1e6 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -28,9 +28,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: test_suites_linux: name: Test Suites - Linux diff --git a/.github/workflows/zap_regeneration.yaml b/.github/workflows/zap_regeneration.yaml index bc8be6a06f48ad..2d7bb344e674b2 100644 --- a/.github/workflows/zap_regeneration.yaml +++ b/.github/workflows/zap_regeneration.yaml @@ -23,9 +23,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: zap_regeneration: name: ZAP Regeneration diff --git a/.github/workflows/zap_templates.yaml b/.github/workflows/zap_templates.yaml index 3ccaeb921a1611..4ab45952330bae 100644 --- a/.github/workflows/zap_templates.yaml +++ b/.github/workflows/zap_templates.yaml @@ -25,9 +25,7 @@ concurrency: env: CHIP_NO_LOG_TIMESTAMPS: true - # XXX: Workaround for https://github.com/actions/cache/issues/1141 - SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 - + jobs: zap_templates: name: ZAP templates generation