diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 340984b3f6e1be..a6880e40f1a464 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -69,6 +69,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -185,6 +186,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -344,6 +346,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -402,6 +405,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -501,6 +505,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/chef.yaml b/.github/workflows/chef.yaml index 91d331e24cc941..9b2c92860a23af 100644 --- a/.github/workflows/chef.yaml +++ b/.github/workflows/chef.yaml @@ -46,6 +46,7 @@ jobs: run: scripts/checkout_submodules.py --shallow --platform linux - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -81,6 +82,7 @@ jobs: run: scripts/checkout_submodules.py --shallow --platform esp32 - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -116,6 +118,7 @@ jobs: run: scripts/checkout_submodules.py --shallow --platform nrfconnect - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/cirque.yaml b/.github/workflows/cirque.yaml index 8f872b254b3d81..f617fe4d164a5e 100644 --- a/.github/workflows/cirque.yaml +++ b/.github/workflows/cirque.yaml @@ -31,7 +31,7 @@ jobs: env: DOCKER_RUN_VERSION: 0.6.35 - GITHUB_CACHE_PATH: /tmp/cirque-cache/ + GITHUB_CACHE_PATH: /tmp/cirque-cache runs-on: ubuntu-latest if: github.actor != 'restyled-io[bot]' @@ -60,33 +60,36 @@ jobs: - name: Checkout submodules run: scripts/checkout_submodules.py --shallow --platform linux - - name: Get cirque cache key - id: cirque-key - run: | - echo "::set-output name=val::$(scripts/tests/cirque_tests.sh cachekeyhash)" - - - name: Cache - uses: actions/cache@v2 + - name: Bootstrap cache + uses: actions/cache@v3 + timeout-minutes: 10 if: ${{ !env.ACT }} - id: cache with: - path: ${{ env.GITHUB_CACHE_PATH }} - key: ${{ runner.os }}-cirque-${{ steps.cirque-key.outputs.val }} - restore-keys: | - ${{ runner.os }}-cirque- - + key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} + path: | + .environment + build_overrides/pigweed_environment.gni - name: Bootstrap timeout-minutes: 15 run: | integrations/docker/images/chip-build-cirque/run.sh \ - --env GITHUB_ACTION_RUN=1 \ - --env GITHUB_CACHE_PATH=${{ env.GITHUB_CACHE_PATH }} \ - --volume /tmp:/tmp \ - -- sh -c '\ - git config --global --add safe.directory "*" \ + -- sh -c " \ + git config --global --add safe.directory '*' \ && scripts/build/gn_bootstrap.sh \ - ' + && chown -R $(id -u):$(id -g) .environment \ + " + - name: Get Cirque Bootstrap cache key + id: cirque-bootstrap-cache-key + run: echo "val=$(scripts/tests/cirque_tests.sh cachekeyhash)" >> $GITHUB_OUTPUT + - name: Cirque Bootstrap cache + uses: actions/cache@v3 + timeout-minutes: 10 + if: ${{ !env.ACT }} + with: + key: ${{ runner.os }}-cirque-${{ steps.cirque-bootstrap-cache-key.outputs.val }} + restore-keys: ${{ runner.os }}-cirque- + path: ${{ env.GITHUB_CACHE_PATH }} - name: Cirque Bootstrap timeout-minutes: 15 run: | @@ -95,6 +98,7 @@ jobs: --env GITHUB_CACHE_PATH=${{ env.GITHUB_CACHE_PATH }} \ --volume /tmp:/tmp \ -- scripts/tests/cirque_tests.sh bootstrap + - name: Artifact suffix id: outsuffix uses: haya14busa/action-cond@v1 @@ -107,13 +111,10 @@ jobs: timeout-minutes: 30 run: | integrations/docker/images/chip-build-cirque/run.sh \ - --env GITHUB_ACTION_RUN=1 \ - --env GITHUB_CACHE_PATH=${{ env.GITHUB_CACHE_PATH }} \ - --volume /tmp:/tmp \ - -- sh -c '\ - git config --global --add safe.directory "*" \ - && scripts/build/gn_gen_cirque.sh - ' + -- sh -c " \ + git config --global --add safe.directory '*' \ + && scripts/build/gn_gen_cirque.sh \ + " - name: Run Tests timeout-minutes: 45 run: | @@ -125,6 +126,7 @@ jobs: --volume /tmp:/tmp \ --volume /dev/pts:/dev/pts \ -- scripts/tests/cirque_tests.sh run_all_tests + - name: Uploading Binaries uses: actions/upload-artifact@v3 if: ${{ always() && !env.ACT }} diff --git a/.github/workflows/darwin-tests.yaml b/.github/workflows/darwin-tests.yaml index 9db5102570a1cb..a0c8642d557d04 100644 --- a/.github/workflows/darwin-tests.yaml +++ b/.github/workflows/darwin-tests.yaml @@ -68,6 +68,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/darwin.yaml b/.github/workflows/darwin.yaml index 645ba8f7ff6082..5f054d177001bb 100644 --- a/.github/workflows/darwin.yaml +++ b/.github/workflows/darwin.yaml @@ -48,6 +48,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-ameba.yaml b/.github/workflows/examples-ameba.yaml index 90882d391b2c24..532df01bb36c0a 100644 --- a/.github/workflows/examples-ameba.yaml +++ b/.github/workflows/examples-ameba.yaml @@ -52,6 +52,7 @@ jobs: run: scripts/checkout_submodules.py --shallow --platform ameba - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-bouffalolab.yaml b/.github/workflows/examples-bouffalolab.yaml index 5f967cd9598408..ca71133efe88ed 100644 --- a/.github/workflows/examples-bouffalolab.yaml +++ b/.github/workflows/examples-bouffalolab.yaml @@ -59,6 +59,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-cc13x2x7_26x2x7.yaml b/.github/workflows/examples-cc13x2x7_26x2x7.yaml index ae8fb5a7673ae9..afbeafb9cb6173 100644 --- a/.github/workflows/examples-cc13x2x7_26x2x7.yaml +++ b/.github/workflows/examples-cc13x2x7_26x2x7.yaml @@ -60,6 +60,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-cc32xx.yaml b/.github/workflows/examples-cc32xx.yaml index b7f31f715a2889..5e47653d04ac1a 100644 --- a/.github/workflows/examples-cc32xx.yaml +++ b/.github/workflows/examples-cc32xx.yaml @@ -57,6 +57,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-efr32.yaml b/.github/workflows/examples-efr32.yaml index 83c7fb3693a504..85b348016cc7ed 100644 --- a/.github/workflows/examples-efr32.yaml +++ b/.github/workflows/examples-efr32.yaml @@ -65,6 +65,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-esp32.yaml b/.github/workflows/examples-esp32.yaml index 52e7d89f8bd6c4..1b56d06b4e8ccf 100644 --- a/.github/workflows/examples-esp32.yaml +++ b/.github/workflows/examples-esp32.yaml @@ -59,6 +59,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -175,6 +176,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-infineon.yaml b/.github/workflows/examples-infineon.yaml index 9594911faf0d36..34c6143d26723d 100644 --- a/.github/workflows/examples-infineon.yaml +++ b/.github/workflows/examples-infineon.yaml @@ -59,6 +59,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-k32w.yaml b/.github/workflows/examples-k32w.yaml index 1d3d812cb91e70..e33fb4d61c99e7 100644 --- a/.github/workflows/examples-k32w.yaml +++ b/.github/workflows/examples-k32w.yaml @@ -61,6 +61,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-linux-arm.yaml b/.github/workflows/examples-linux-arm.yaml index 667a46374ba7b0..668dbcef42f719 100644 --- a/.github/workflows/examples-linux-arm.yaml +++ b/.github/workflows/examples-linux-arm.yaml @@ -59,6 +59,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-linux-imx.yaml b/.github/workflows/examples-linux-imx.yaml index e16fea4460c0a8..4a199fddb70e55 100644 --- a/.github/workflows/examples-linux-imx.yaml +++ b/.github/workflows/examples-linux-imx.yaml @@ -51,6 +51,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-linux-standalone.yaml b/.github/workflows/examples-linux-standalone.yaml index d4e1a18a925755..ca5cc9e79807ee 100644 --- a/.github/workflows/examples-linux-standalone.yaml +++ b/.github/workflows/examples-linux-standalone.yaml @@ -59,6 +59,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-mbed.yaml b/.github/workflows/examples-mbed.yaml index bae9b976434e18..a728f4fb5efc81 100644 --- a/.github/workflows/examples-mbed.yaml +++ b/.github/workflows/examples-mbed.yaml @@ -75,6 +75,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-mw320.yaml b/.github/workflows/examples-mw320.yaml index 1b1fe8ad199ac8..3daad0f76d5a10 100755 --- a/.github/workflows/examples-mw320.yaml +++ b/.github/workflows/examples-mw320.yaml @@ -61,6 +61,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-nrfconnect.yaml b/.github/workflows/examples-nrfconnect.yaml index bbd3b007eefe73..074f750db84a5d 100644 --- a/.github/workflows/examples-nrfconnect.yaml +++ b/.github/workflows/examples-nrfconnect.yaml @@ -76,6 +76,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-openiotsdk.yaml b/.github/workflows/examples-openiotsdk.yaml index 21bacd1881c958..8b48d236d7afdd 100644 --- a/.github/workflows/examples-openiotsdk.yaml +++ b/.github/workflows/examples-openiotsdk.yaml @@ -61,6 +61,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-qpg.yaml b/.github/workflows/examples-qpg.yaml index 7eb25912d80098..55bc83dd453310 100644 --- a/.github/workflows/examples-qpg.yaml +++ b/.github/workflows/examples-qpg.yaml @@ -61,6 +61,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-telink.yaml b/.github/workflows/examples-telink.yaml index d462f539b25dcf..740c471a5d6c0d 100644 --- a/.github/workflows/examples-telink.yaml +++ b/.github/workflows/examples-telink.yaml @@ -60,6 +60,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/examples-tizen.yaml b/.github/workflows/examples-tizen.yaml index f075eb605d6fd1..e34e3b9bf67a84 100644 --- a/.github/workflows/examples-tizen.yaml +++ b/.github/workflows/examples-tizen.yaml @@ -54,6 +54,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/full-android.yaml b/.github/workflows/full-android.yaml index 8177aefd0018b7..60712f625612e2 100644 --- a/.github/workflows/full-android.yaml +++ b/.github/workflows/full-android.yaml @@ -65,6 +65,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/fuzzing-build.yaml b/.github/workflows/fuzzing-build.yaml index bcf3fa24a8151b..ae88a85db799fc 100644 --- a/.github/workflows/fuzzing-build.yaml +++ b/.github/workflows/fuzzing-build.yaml @@ -56,6 +56,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -115,6 +116,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 57faedd89bb710..e825f37bb53e5b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -57,6 +57,7 @@ jobs: run: scripts/checkout_submodules.py --shallow --platform linux - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/qemu.yaml b/.github/workflows/qemu.yaml index aa6fa207572426..4d2e40e58aa7c9 100644 --- a/.github/workflows/qemu.yaml +++ b/.github/workflows/qemu.yaml @@ -56,6 +56,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/release_artifacts.yaml b/.github/workflows/release_artifacts.yaml index 6fd08c4a763a66..32478288d3717e 100644 --- a/.github/workflows/release_artifacts.yaml +++ b/.github/workflows/release_artifacts.yaml @@ -45,6 +45,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -99,6 +100,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/smoketest-android.yaml b/.github/workflows/smoketest-android.yaml index 72db641b8e7a08..0e791b32bedf9c 100644 --- a/.github/workflows/smoketest-android.yaml +++ b/.github/workflows/smoketest-android.yaml @@ -56,6 +56,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b20abce522da11..3db4b2c25c0308 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -82,6 +82,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -321,6 +322,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -422,6 +424,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -507,6 +510,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | @@ -581,7 +585,7 @@ jobs: --tool-cluster "pairing" \ --tool-args "address-paseonly --nodeid 1 --setup-pin-code 20202021 --address ::1 --port 5540 -t 1000" \ --factoryreset \ - ' + ' - name: Uploading core files uses: actions/upload-artifact@v3 if: ${{ failure() && !env.ACT }} @@ -631,6 +635,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/zap_regeneration.yaml b/.github/workflows/zap_regeneration.yaml index df550b33b57464..c811ed091d747e 100644 --- a/.github/workflows/zap_regeneration.yaml +++ b/.github/workflows/zap_regeneration.yaml @@ -49,6 +49,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: | diff --git a/.github/workflows/zap_templates.yaml b/.github/workflows/zap_templates.yaml index 992fa98c4c1da2..e465d9f1ea065e 100644 --- a/.github/workflows/zap_templates.yaml +++ b/.github/workflows/zap_templates.yaml @@ -50,6 +50,7 @@ jobs: - name: Bootstrap cache uses: actions/cache@v3 + timeout-minutes: 10 with: key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }} path: |