Skip to content

Commit 1297b97

Browse files
authored
Merge branch 'master' into named-pipes-OTA-SU
2 parents d8119af + 1089161 commit 1297b97

File tree

1,644 files changed

+70162
-20714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,644 files changed

+70162
-20714
lines changed

.github/actions/checkout-submodules/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ runs:
1414
- uses: Wandalen/[email protected]
1515
name: Checkout submodules
1616
with:
17-
command: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --jobs 4 --platform ${{ inputs.platform }} ${{ inputs.extra-parameters }}
17+
command: scripts/checkout_submodules.py --allow-changing-global-git-config --shallow --platform ${{ inputs.platform }} ${{ inputs.extra-parameters }}
1818
attempt_limit: 3
1919
attempt_delay: 2000
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: 'Delete Cache'
2+
description: 'Deletes a GitHub Actions cache by key using the GitHub API'
3+
inputs:
4+
cache-key:
5+
required: true
6+
description: 'The cache key to delete'
7+
github-token:
8+
required: true
9+
description: 'GitHub token for API authentication'
10+
runs:
11+
using: "composite"
12+
steps:
13+
- name: Delete cache
14+
uses: actions/github-script@v7
15+
env:
16+
CACHE_KEY: ${{ inputs.cache-key }}
17+
with:
18+
github-token: ${{ inputs.github-token }}
19+
script: |
20+
const owner = context.repo.owner;
21+
const repo = context.repo.repo;
22+
const key = process.env.CACHE_KEY;
23+
const ref = context.ref;
24+
25+
core.info(`Attempting to delete cache: ${key}`);
26+
27+
try {
28+
await github.rest.actions.deleteActionsCacheByKey({
29+
owner: owner,
30+
repo: repo,
31+
key: key,
32+
ref: ref
33+
});
34+
core.info(`Successfully deleted cache`);
35+
} catch (e) {
36+
if (e.status === 404) {
37+
core.info(`Cache not found (first run or already deleted)`);
38+
} else {
39+
core.warning(`Failed to delete cache: ${e.message}`);
40+
}
41+
}

.github/actions/setup-ccache/action.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,23 @@ runs:
2323
using: "composite"
2424
steps:
2525
- name: Configure ccache
26-
shell: bash
27-
run: |
28-
mkdir -p .ccache
29-
echo "CCACHE_BASEDIR=${{ github.workspace }}" >> $GITHUB_ENV
30-
echo "CCACHE_SLOPPINESS=time_macros" >> $GITHUB_ENV
31-
echo "CCACHE_DIR=${{ github.workspace }}/.ccache" >> $GITHUB_ENV
32-
echo "CCACHE_COMPILERCHECK=content" >> $GITHUB_ENV
33-
echo "CCACHE_MAXSIZE=5G" >> $GITHUB_ENV
34-
echo "CCACHE_COMPRESS=1" >> $GITHUB_ENV
35-
echo "CCACHE_COMPRESSLEVEL=6" >> $GITHUB_ENV
26+
uses: pyTooling/Actions/[email protected]
27+
with:
28+
main: |
29+
mkdir -p .ccache
30+
echo "CCACHE_NOHASHDIR=1" >> $GITHUB_ENV
31+
echo "CCACHE_BASEDIR=${{ github.workspace }}" >> $GITHUB_ENV
32+
echo "CCACHE_NODIRECT=1" >> $GITHUB_ENV
33+
echo "CCACHE_PREFIX_CPP=${{ github.workspace }}/scripts/helpers/ccache-prefix-cpp.sh" >> $GITHUB_ENV
34+
echo "CCACHE_SLOPPINESS=time_macros" >> $GITHUB_ENV
35+
echo "CCACHE_DIR=${{ github.workspace }}/.ccache" >> $GITHUB_ENV
36+
echo "CCACHE_COMPILERCHECK=content" >> $GITHUB_ENV
37+
echo "CCACHE_MAXSIZE=5G" >> $GITHUB_ENV
38+
echo "CCACHE_COMPRESS=1" >> $GITHUB_ENV
39+
echo "CCACHE_COMPRESSLEVEL=6" >> $GITHUB_ENV
40+
echo "CHIP_PW_COMMAND_LAUNCHER=ccache" >> $GITHUB_ENV
41+
post: |
42+
ccache --show-stats
3643
- name: Optionally disable ccache
3744
if: ${{ inputs.disable == 'true' }}
3845
shell: bash
@@ -42,14 +49,11 @@ runs:
4249
id: cache-vars
4350
shell: bash
4451
run: |
45-
CACHE_WEEK=$(date +%G-%V)
46-
echo "CACHE_WEEK=${CACHE_WEEK}" >> "$GITHUB_ENV"
47-
4852
CACHE_SUFFIX="${{ inputs.cache-suffix }}"
4953
if [ -n "$CACHE_SUFFIX" ]; then
50-
CCACHE_KEY="ccache-${{ runner.os }}-${{ inputs.build-variant }}-w${CACHE_WEEK}-${CACHE_SUFFIX}"
54+
CCACHE_KEY="ccache-${{ runner.os }}-${{ inputs.build-variant }}-${CACHE_SUFFIX}"
5155
else
52-
CCACHE_KEY="ccache-${{ runner.os }}-${{ inputs.build-variant }}-w${CACHE_WEEK}"
56+
CCACHE_KEY="ccache-${{ runner.os }}-${{ inputs.build-variant }}"
5357
fi
5458
echo "CCACHE_KEY=${CCACHE_KEY}" >> "$GITHUB_ENV"
5559
echo "cache_key=${CCACHE_KEY}" >> "$GITHUB_OUTPUT"

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ updates:
2424
- dependency-name: "third_party/mbedtls/repo"
2525
- dependency-name: "third_party/openthread/repo"
2626

27+
- dependency-name: "third_party/amazon-kinesis-video-streams-webrtc-sdk-c/repo"
2728
- dependency-name: "third_party/ameba/repo"
2829
- dependency-name: "third_party/android_deps/repo"
2930
- dependency-name: "third_party/asr/repo"

.github/workflows/bloat_check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535

3636
container:
37-
image: ghcr.io/project-chip/chip-build:169
37+
image: ghcr.io/project-chip/chip-build:174
3838

3939
steps:
4040
- name: Checkout

.github/workflows/build.yaml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
if: github.actor != 'restyled-io[bot]'
4444

4545
container:
46-
image: ghcr.io/project-chip/chip-build:169
46+
image: ghcr.io/project-chip/chip-build:174
4747
volumes:
4848
- "/:/runner-root-volume"
4949
- "/tmp/log_output:/tmp/test_logs"
@@ -72,7 +72,7 @@ jobs:
7272
platform: linux
7373
- name: Initialize CodeQL
7474
if: ${{ inputs.run-codeql }}
75-
uses: github/codeql-action/init@v3
75+
uses: github/codeql-action/init@v4
7676
with:
7777
languages: "cpp"
7878
queries: security-extended, security-and-quality
@@ -120,7 +120,7 @@ jobs:
120120
if: inputs.run-codeql != true
121121
run: scripts/run_in_build_env.sh "ninja -C ./out"
122122
- name: Uploading core files
123-
uses: actions/upload-artifact@v4
123+
uses: actions/upload-artifact@v5
124124
if: ${{ failure() && !env.ACT }}
125125
with:
126126
name: crash-core-linux-gcc-debug
@@ -138,7 +138,7 @@ jobs:
138138
# If re-enabling, some subset of this should be picked
139139
#
140140
# - name: Uploading objdir for debugging
141-
# uses: actions/upload-artifact@v4
141+
# uses: actions/upload-artifact@v5
142142
# if: ${{ failure() && !env.ACT }}
143143
# with:
144144
# name: crash-objdir-linux-gcc-debug
@@ -153,7 +153,7 @@ jobs:
153153
if: github.actor != 'restyled-io[bot]' && inputs.run-codeql != true
154154

155155
container:
156-
image: ghcr.io/project-chip/chip-build:169
156+
image: ghcr.io/project-chip/chip-build:174
157157
volumes:
158158
- "/:/runner-root-volume"
159159
- "/tmp/log_output:/tmp/test_logs"
@@ -187,7 +187,7 @@ jobs:
187187
# deactivate until a better workaround is found
188188
# - name: Initialize CodeQL
189189
# if: ${{ inputs.run-codeql }}
190-
# uses: github/codeql-action/init@v3
190+
# uses: github/codeql-action/init@v4
191191
# with:
192192
# languages: "cpp"
193193
- name: Setup and Build Simulated Device
@@ -235,11 +235,6 @@ jobs:
235235
- name: Find changed files
236236
id: changed-files
237237
uses: tj-actions/changed-files@v47
238-
with:
239-
# Exclude all files under "third_party/"
240-
files-ignore: |
241-
third_party/
242-
243238
- name: Clang-tidy validation
244239
# NOTE: clang-tidy crashes on CodegenDataModel_Write due to Nullable/std::optional check.
245240
# See https://github.com/llvm/llvm-project/issues/97426
@@ -303,7 +298,7 @@ jobs:
303298
# language: cpp
304299

305300
- name: Uploading core files
306-
uses: actions/upload-artifact@v4
301+
uses: actions/upload-artifact@v5
307302
if: ${{ failure() && !env.ACT }}
308303
with:
309304
name: crash-core-linux
@@ -316,7 +311,7 @@ jobs:
316311
# If re-enabling, some subset of this should be picked
317312
#
318313
# - name: Uploading objdir for debugging
319-
# uses: actions/upload-artifact@v4
314+
# uses: actions/upload-artifact@v5
320315
# if: ${{ failure() && !env.ACT }}
321316
# with:
322317
# name: crash-objdir-linux
@@ -331,7 +326,7 @@ jobs:
331326
if: github.actor != 'restyled-io[bot]' && inputs.run-codeql != true
332327

333328
container:
334-
image: ghcr.io/project-chip/chip-build:169
329+
image: ghcr.io/project-chip/chip-build:174
335330
volumes:
336331
- "/:/runner-root-volume"
337332
- "/tmp/log_output:/tmp/test_logs"
@@ -394,7 +389,7 @@ jobs:
394389
if: github.actor != 'restyled-io[bot]' && inputs.run-codeql != true
395390

396391
container:
397-
image: ghcr.io/project-chip/chip-build:169
392+
image: ghcr.io/project-chip/chip-build:174
398393
volumes:
399394
- "/:/runner-root-volume"
400395
- "/tmp/log_output:/tmp/test_logs"
@@ -442,7 +437,7 @@ jobs:
442437
# Build on Darwin + CodeQL often takes 6 hours (which is more than the maximum allowed by GitHub Runners), Deactivate it until we can investigate this
443438
# - name: Initialize CodeQL
444439
# if: ${{ inputs.run-codeql }}
445-
# uses: github/codeql-action/init@v3
440+
# uses: github/codeql-action/init@v4
446441
# with:
447442
# languages: "cpp"
448443

@@ -492,7 +487,7 @@ jobs:
492487
check \
493488
"
494489
- name: Uploading diagnostic logs
495-
uses: actions/upload-artifact@v4
490+
uses: actions/upload-artifact@v5
496491
if: ${{ failure() && !env.ACT }}
497492
with:
498493
name: crash-log-darwin
@@ -518,7 +513,7 @@ jobs:
518513
runs-on: ubuntu-latest
519514

520515
container:
521-
image: ghcr.io/project-chip/chip-build:169
516+
image: ghcr.io/project-chip/chip-build:174
522517
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
523518
net.ipv4.conf.all.forwarding=0 net.ipv6.conf.all.forwarding=0"
524519

.github/workflows/chef.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
if: github.actor != 'restyled-io[bot]'
3838

3939
container:
40-
image: ghcr.io/project-chip/chip-build:169
40+
image: ghcr.io/project-chip/chip-build:174
4141
options: --user root
4242

4343
steps:
@@ -58,7 +58,7 @@ jobs:
5858
timeout-minutes: 90
5959
runs-on: ubuntu-latest
6060
container:
61-
image: ghcr.io/project-chip/chip-build:169
61+
image: ghcr.io/project-chip/chip-build:174
6262
options: >-
6363
--privileged
6464
--sysctl net.ipv6.conf.all.disable_ipv6=0
@@ -96,7 +96,7 @@ jobs:
9696
if: github.actor != 'restyled-io[bot]'
9797

9898
container:
99-
image: ghcr.io/project-chip/chip-build-esp32:168
99+
image: ghcr.io/project-chip/chip-build-esp32:174
100100
options: --user root
101101

102102
steps:
@@ -106,6 +106,16 @@ jobs:
106106
uses: ./.github/actions/checkout-submodules-and-bootstrap
107107
with:
108108
platform: esp32
109+
110+
# We cannot add esp-idf-kconfig==2.5.0 to rquirements.txt because it
111+
# will break the nuttx workflow which requires the older version of
112+
# the kconfiglib and esp-idf-kconfig==2.5.0 installs newer version
113+
# so, install it in in the virtual environment here
114+
- name: Install esp-idf-kconfig
115+
run: |
116+
./scripts/run_in_build_env.sh \
117+
"pip install esp-idf-kconfig==2.5.0"
118+
109119
- name: CI Examples ESP32
110120
shell: bash
111121
run: |
@@ -117,7 +127,7 @@ jobs:
117127
if: github.actor != 'restyled-io[bot]'
118128

119129
container:
120-
image: ghcr.io/project-chip/chip-build-nrf-platform:169
130+
image: ghcr.io/project-chip/chip-build-nrf-platform:174
121131
options: --user root
122132

123133
steps:
@@ -138,7 +148,7 @@ jobs:
138148
if: github.actor != 'restyled-io[bot]'
139149

140150
container:
141-
image: ghcr.io/project-chip/chip-build-telink:168
151+
image: ghcr.io/project-chip/chip-build-telink:174
142152
options: --user root
143153

144154
steps:

.github/workflows/cirque.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
131131
132132
- name: Uploading Binaries
133-
uses: actions/upload-artifact@v4
133+
uses: actions/upload-artifact@v5
134134
if: ${{ always() && !env.ACT }}
135135
with:
136136
name: cirque_log-${{steps.outsuffix.outputs.value}}-logs

.github/workflows/darwin-tests.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,27 +145,27 @@ jobs:
145145
--ota-candidate-file /tmp/otaCandidateJSON \
146146
"
147147
- name: Uploading core files
148-
uses: actions/upload-artifact@v4
148+
uses: actions/upload-artifact@v5
149149
if: ${{ failure() && !env.ACT }}
150150
with:
151151
name: crash-core-darwin-${{ matrix.build_variant }}
152152
path: /cores/
153153
# Cores are big; don't hold on to them too long.
154154
retention-days: 5
155155
- name: Uploading diagnostic logs
156-
uses: actions/upload-artifact@v4
156+
uses: actions/upload-artifact@v5
157157
if: ${{ failure() && !env.ACT }}
158158
with:
159159
name: crash-log-darwin-${{ matrix.build_variant }}
160160
path: ~/Library/Logs/DiagnosticReports/
161161
- name: Uploading framework build log
162-
uses: actions/upload-artifact@v4
162+
uses: actions/upload-artifact@v5
163163
if: ${{ failure() && !env.ACT }}
164164
with:
165165
name: framework-build-log-darwin-${BUILD_VARIANT_FRAMEWORK_TOOL}
166166
path: out/darwin-${{matrix.arch}}-darwin-framework-tool-${BUILD_VARIANT_FRAMEWORK_TOOL}/darwin_framework_build.log
167167
- name: Uploading objdir for debugging
168-
uses: actions/upload-artifact@v4
168+
uses: actions/upload-artifact@v5
169169
if: ${{ failure() && !env.ACT }}
170170
with:
171171
name: crash-objdir-darwin-${{ matrix.build_variant }}

.github/workflows/darwin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132
mkdir -p /tmp/darwin/framework-tests
133133
find ~/Library/Developer/Xcode/DerivedData /Library/Logs/DiagnosticReports -name '*.ips' -print0 | xargs -0 -J % cp % /tmp/darwin/framework-tests
134134
- name: Uploading log files
135-
uses: actions/upload-artifact@v4
135+
uses: actions/upload-artifact@v5
136136
if: failure() && !env.ACT
137137
with:
138138
name: darwin-framework-test-logs-${{ matrix.options.flavor }}

0 commit comments

Comments
 (0)