Skip to content

Commit

Permalink
Updating Wretry, and adding Wretry to build cache (#27356)
Browse files Browse the repository at this point in the history
  • Loading branch information
woody-apple authored and pull[bot] committed Jul 11, 2023
1 parent 33d8774 commit 0994a4f
Show file tree
Hide file tree
Showing 43 changed files with 597 additions and 417 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bloat_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
image: connectedhomeip/chip-build:0.7.3

steps:
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand Down
100 changes: 60 additions & 40 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
env:
CONCURRENCY_CONTEXT: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
run: echo "$CONCURRENCY_CONTEXT"
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand All @@ -69,14 +69,18 @@ jobs:
mkdir /tmp/cores || true
sysctl -w kernel.core_pattern=/tmp/cores/core.%u.%p.%t || true
- name: Bootstrap cache
uses: buildjet/cache@v3
timeout-minutes: 10
- uses: Wandalen/[email protected]
name: Bootstrap cache
timeout-minutes: 20
with:
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
action: buildjet/cache@v3
attempt_limit: 3
attempt_delay: 2000
with: |
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: bash scripts/bootstrap.sh
Expand Down Expand Up @@ -165,7 +169,7 @@ jobs:
env:
CONCURRENCY_CONTEXT: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
run: echo "$CONCURRENCY_CONTEXT"
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand All @@ -186,14 +190,18 @@ jobs:
mkdir /tmp/cores || true
sysctl -w kernel.core_pattern=/tmp/cores/core.%u.%p.%t || true
- name: Bootstrap cache
uses: buildjet/cache@v3
timeout-minutes: 10
- uses: Wandalen/[email protected]
name: Bootstrap cache
timeout-minutes: 20
with:
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
action: buildjet/cache@v3
attempt_limit: 3
attempt_delay: 2000
with: |
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: bash scripts/bootstrap.sh
Expand Down Expand Up @@ -337,7 +345,7 @@ jobs:
env:
CONCURRENCY_CONTEXT: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
run: echo "$CONCURRENCY_CONTEXT"
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand All @@ -348,14 +356,18 @@ jobs:
- name: Checkout submodules
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux

- name: Bootstrap cache
uses: buildjet/cache@v3
timeout-minutes: 10
- uses: Wandalen/[email protected]
name: Bootstrap cache
timeout-minutes: 20
with:
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
action: buildjet/cache@v3
attempt_limit: 3
attempt_delay: 2000
with: |
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: bash scripts/bootstrap.sh
Expand Down Expand Up @@ -388,7 +400,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

steps:
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand All @@ -407,14 +419,18 @@ jobs:
run: |
mkdir -p ~/Library/Logs/DiagnosticReports || true
- name: Bootstrap cache
uses: buildjet/cache@v3
timeout-minutes: 10
- uses: Wandalen/[email protected]
name: Bootstrap cache
timeout-minutes: 20
with:
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
action: buildjet/cache@v3
attempt_limit: 3
attempt_delay: 2000
with: |
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 25
run: bash scripts/bootstrap.sh
Expand Down Expand Up @@ -496,7 +512,7 @@ jobs:
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"

steps:
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand All @@ -507,14 +523,18 @@ jobs:
- name: Checkout submodules
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux

- name: Bootstrap cache
uses: buildjet/cache@v3
timeout-minutes: 10
- uses: Wandalen/[email protected]
name: Bootstrap cache
timeout-minutes: 20
with:
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
action: buildjet/cache@v3
attempt_limit: 3
attempt_delay: 2000
with: |
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: bash scripts/bootstrap.sh
Expand Down
60 changes: 36 additions & 24 deletions .github/workflows/chef.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
options: --user root

steps:
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand All @@ -49,14 +49,18 @@ jobs:
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform linux
- name: Bootstrap cache
uses: buildjet/cache@v3
timeout-minutes: 10
- uses: Wandalen/[email protected]
name: Bootstrap cache
timeout-minutes: 20
with:
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
action: buildjet/cache@v3
attempt_limit: 3
attempt_delay: 2000
with: |
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: bash scripts/bootstrap.sh
Expand All @@ -75,7 +79,7 @@ jobs:
options: --user root

steps:
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand All @@ -85,14 +89,18 @@ jobs:
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform esp32
- name: Bootstrap cache
uses: buildjet/cache@v3
timeout-minutes: 10
- uses: Wandalen/[email protected]
name: Bootstrap cache
timeout-minutes: 20
with:
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
action: buildjet/cache@v3
attempt_limit: 3
attempt_delay: 2000
with: |
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: bash scripts/bootstrap.sh
Expand All @@ -111,7 +119,7 @@ jobs:
options: --user root

steps:
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand All @@ -121,14 +129,18 @@ jobs:
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform nrfconnect
- name: Bootstrap cache
uses: buildjet/cache@v3
timeout-minutes: 10
- uses: Wandalen/[email protected]
name: Bootstrap cache
timeout-minutes: 20
with:
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
action: buildjet/cache@v3
attempt_limit: 3
attempt_delay: 2000
with: |
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 10
run: bash scripts/bootstrap.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cirque.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
# options: "--privileged"

steps:
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/darwin-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
runs-on: macos-latest

steps:
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand All @@ -68,14 +68,18 @@ jobs:
mkdir -p ~/Library/Logs/DiagnosticReports || true
mkdir objdir-clone || true
- name: Bootstrap cache
uses: buildjet/cache@v3
timeout-minutes: 10
- uses: Wandalen/[email protected]
name: Bootstrap cache
timeout-minutes: 20
with:
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
action: buildjet/cache@v3
attempt_limit: 3
attempt_delay: 2000
with: |
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 25
run: bash scripts/bootstrap.sh
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
runs-on: macos-latest

steps:
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand All @@ -51,14 +51,18 @@ jobs:
- name: Setup Environment
run: brew install [email protected]

- name: Bootstrap cache
uses: buildjet/cache@v3
timeout-minutes: 10
- uses: Wandalen/[email protected]
name: Bootstrap cache
timeout-minutes: 20
with:
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
action: buildjet/cache@v3
attempt_limit: 3
attempt_delay: 2000
with: |
key: ${{ runner.os }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
path: |
.environment
build_overrides/pigweed_environment.gni
- name: Bootstrap
timeout-minutes: 25
run: bash scripts/bootstrap.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_img.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
# NOTE: vscode image consumes ~52 GB disk space but GitHub-hosted runners provide ~10 GB free disk space(https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources)
#- "-vscode"
steps:
- uses: Wandalen/[email protected].36
- uses: Wandalen/[email protected].41
name: Checkout
with:
action: actions/[email protected]
Expand Down
Loading

0 comments on commit 0994a4f

Please sign in to comment.