Skip to content

Commit bbf8ea8

Browse files
Merge branch 'project-chip:master' into Set-3-18-24
2 parents 313ea2d + bf981c2 commit bbf8ea8

File tree

1,295 files changed

+26173
-41214
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,295 files changed

+26173
-41214
lines changed

.github/.wordlist.txt

+6
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,8 @@ HomePods
643643
hostapd
644644
hostname
645645
href
646+
HSM
647+
hsm
646648
HTTPS
647649
HW
648650
hwadr
@@ -668,6 +670,7 @@ ifdef
668670
ifdefs
669671
IGMP
670672
ihex
673+
Illuminance
671674
IlluminanceMeasurement
672675
IM
673676
imager
@@ -964,6 +967,7 @@ objcopy
964967
OccupancySensing
965968
OctetString
966969
OECORE
970+
OID
967971
ol
968972
Onboarding
969973
onboardingcodes
@@ -985,6 +989,7 @@ openweave
985989
OperationalCredentials
986990
operationalDataset
987991
opkg
992+
OPTIGA
988993
optionMask
989994
optionOverride
990995
optionsMask
@@ -1428,6 +1433,7 @@ transitionTime
14281433
TransportMgrBase
14291434
TriggerEffect
14301435
TRNG
1436+
trustm
14311437
TrustedRootCertificates
14321438
tsan
14331439
TSG

.github/actions/bootstrap-cache/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Bootstrap cache
2-
description: Bootstrap cache
2+
description: Bootstrap cache (deprecated)
33
runs:
44
using: "composite"
55
steps:

.github/actions/bootstrap/action.yaml

+66-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,73 @@ inputs:
55
description: "Platform name"
66
required: false
77
default: none
8+
bootstrap-log-name:
9+
description: "Bootstrap log name"
10+
required: false
11+
default: bootstrap-logs-${{ github.job }}
12+
outputs:
13+
cache-hit:
14+
description: "Bootstrap environment was restored from cache"
15+
value: ${{ fromJSON(steps.restore.outputs.outputs).cache-hit }} # dynamic action returns all outputs in `outputs`
16+
817
runs:
918
using: "composite"
1019
steps:
11-
- name: Bootstrap
20+
- name: Determine bootstrap cache configuration
21+
id: prepare
22+
shell: bash
23+
run: |
24+
# Determine bootstrap cache configuration
25+
# In addition to the various setup files, the work directory matters as well,
26+
# because the bootstrapped Pigweed environment contains absolute paths.
27+
echo "Calculating bootstrap cache key for '$PWD'"
28+
FILES_HASH="${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}"
29+
FINAL_HASH="$(echo "$PWD:$FILES_HASH" | shasum -a 256 | cut -d' ' -f1)"
30+
echo key="${RUNNER_OS}-${RUNNER_ARCH}-${{ inputs.platform }}-${FINAL_HASH}" | tee -a "$GITHUB_OUTPUT"
31+
32+
# Split caches across backends
33+
case "$RUNNER_OS" in
34+
macOS) echo backend=actions;;
35+
*) echo backend=buildjet;;
36+
esac | tee -a "$GITHUB_OUTPUT"
37+
38+
- name: Bootstrap from cache
39+
id: restore
40+
uses: ./.github/actions/dynamic
41+
continue-on-error: true
42+
with:
43+
action: ${{ steps.prepare.outputs.backend }}/cache/restore@v4
44+
with: |
45+
key: ${{ steps.prepare.outputs.key }}
46+
path: |
47+
.environment
48+
build_overrides/pigweed_environment.gni
49+
50+
- name: Run bootstrap
51+
if: ${{ fromJSON(steps.restore.outputs.outputs).cache-hit != 'true' }}
52+
env:
53+
PW_NO_CIPD_CACHE_DIR: 1
54+
PW_ENVSETUP_NO_BANNER: 1
1255
shell: bash
13-
run: bash scripts/bootstrap.sh -p all,${{ inputs.platform }}
56+
run: source scripts/bootstrap.sh -p all,${{ inputs.platform }}
57+
58+
- name: Save bootstrap cache
59+
uses: ./.github/actions/dynamic
60+
if: ${{ fromJSON(steps.restore.outputs.outputs).cache-hit != 'true' }}
61+
continue-on-error: true
62+
with:
63+
action: ${{ steps.prepare.outputs.backend }}/cache/save@v4
64+
with: |
65+
key: ${{ steps.prepare.outputs.key }}
66+
path: |
67+
.environment
68+
build_overrides/pigweed_environment.gni
69+
70+
- name: Upload bootstrap logs
71+
uses: actions/upload-artifact@v4
72+
if: ${{ always() && !env.ACT && fromJSON(steps.restore.outputs.outputs).cache-hit != 'true' }}
73+
with:
74+
name: ${{ inputs.bootstrap-log-name }}
75+
path: |
76+
.environment/gn_out/.ninja_log
77+
.environment/pigweed-venv/*.log

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

+1-8
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,14 @@ runs:
2626
with:
2727
platform: ${{ inputs.platform }}
2828
extra-parameters: ${{ inputs.extra-submodule-parameters }}
29-
- name: Bootstrap Cache
30-
uses: ./.github/actions/bootstrap-cache
3129
- name: Bootstrap
3230
uses: ./.github/actions/bootstrap
33-
env:
34-
PW_NO_CIPD_CACHE_DIR: Y
3531
with:
3632
platform: ${{ inputs.platform }}
33+
bootstrap-log-name: ${{ inputs.bootstrap-log-name }}
3734
- name: Dump disk info after checkout submodule & Bootstrap
3835
shell: bash
3936
run: scripts/dump_diskspace_info.sh
40-
- name: Upload Bootstrap Logs
41-
uses: ./.github/actions/upload-bootstrap-logs
42-
with:
43-
bootstrap-log-name: ${{ inputs.bootstrap-log-name }}
4437
- name: Work around TSAN ASLR issues
4538
if: runner.os == 'Linux' && !env.ACT
4639
shell: bash

.github/actions/dynamic/action.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Dynamic
2+
description: Dynamically resolves another GitHub action
3+
inputs:
4+
action:
5+
description: Action reference
6+
required: true
7+
with:
8+
description: Action inputs as multi-line YAML string
9+
required: false
10+
default: ""
11+
outputs:
12+
outputs:
13+
description: JSON object of outputs from the action
14+
value: ${{ steps.run.outputs.outputs }}
15+
runs:
16+
using: composite
17+
steps:
18+
- name: Instantiate
19+
shell: bash
20+
run: |
21+
# Dynamically invoke ${{ inputs.action }}
22+
with='${{ inputs.with }}'
23+
[[ -z "$with" ]] || with="$(echo ' with:'; sed -e 's/^/ /' <<<"$with")"
24+
mkdir -p ./.tmp/dynamic-action-instance
25+
cat <<END >./.tmp/dynamic-action-instance/action.yaml
26+
runs:
27+
using: composite
28+
steps:
29+
- id: run
30+
uses: ${{ inputs.action }}
31+
$with
32+
outputs:
33+
outputs:
34+
value: $(echo '$'){{ toJSON(steps.run.outputs) }}
35+
END
36+
- name: Run
37+
id: run
38+
uses: ./.tmp/dynamic-action-instance

.github/actions/upload-bootstrap-logs/action.yaml

-18
This file was deleted.

.github/workflows/bloat_check.yaml

+2-2
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:41
37+
image: ghcr.io/project-chip/chip-build:46
3838

3939
steps:
4040
- name: Checkout
@@ -50,4 +50,4 @@ jobs:
5050
--github-limit-artifacts 500 \
5151
--github-limit-comments 20 \
5252
--github-repository project-chip/connectedhomeip \
53-
--github-api-token "${{ secrets.BLOAT_REPORT }}"
53+
--github-api-token "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/build.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
if: github.actor != 'restyled-io[bot]'
4141

4242
container:
43-
image: ghcr.io/project-chip/chip-build:41
43+
image: ghcr.io/project-chip/chip-build:46
4444
volumes:
4545
- "/:/runner-root-volume"
4646
- "/tmp/log_output:/tmp/test_logs"
@@ -136,7 +136,7 @@ jobs:
136136
if: github.actor != 'restyled-io[bot]'
137137

138138
container:
139-
image: ghcr.io/project-chip/chip-build:41
139+
image: ghcr.io/project-chip/chip-build:46
140140
volumes:
141141
- "/:/runner-root-volume"
142142
- "/tmp/log_output:/tmp/test_logs"
@@ -279,7 +279,7 @@ jobs:
279279
if: github.actor != 'restyled-io[bot]'
280280

281281
container:
282-
image: ghcr.io/project-chip/chip-build:41
282+
image: ghcr.io/project-chip/chip-build:46
283283
volumes:
284284
- "/:/runner-root-volume"
285285
- "/tmp/log_output:/tmp/test_logs"
@@ -340,7 +340,7 @@ jobs:
340340
if: github.actor != 'restyled-io[bot]'
341341

342342
container:
343-
image: ghcr.io/project-chip/chip-build:41
343+
image: ghcr.io/project-chip/chip-build:46
344344
volumes:
345345
- "/:/runner-root-volume"
346346
- "/tmp/log_output:/tmp/test_logs"
@@ -449,7 +449,7 @@ jobs:
449449
if: github.actor != 'restyled-io[bot]'
450450

451451
container:
452-
image: ghcr.io/project-chip/chip-build:41
452+
image: ghcr.io/project-chip/chip-build:46
453453
volumes:
454454
- "/:/runner-root-volume"
455455
- "/tmp/log_output:/tmp/test_logs"

.github/workflows/chef.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
if: github.actor != 'restyled-io[bot]'
3434

3535
container:
36-
image: ghcr.io/project-chip/chip-build:41
36+
image: ghcr.io/project-chip/chip-build:46
3737
options: --user root
3838

3939
steps:
@@ -54,7 +54,7 @@ jobs:
5454
if: github.actor != 'restyled-io[bot]'
5555

5656
container:
57-
image: ghcr.io/project-chip/chip-build-esp32:41
57+
image: ghcr.io/project-chip/chip-build-esp32:46
5858
options: --user root
5959

6060
steps:
@@ -75,7 +75,7 @@ jobs:
7575
if: github.actor != 'restyled-io[bot]'
7676

7777
container:
78-
image: ghcr.io/project-chip/chip-build-nrf-platform:41
78+
image: ghcr.io/project-chip/chip-build-nrf-platform:46
7979
options: --user root
8080

8181
steps:
@@ -96,7 +96,7 @@ jobs:
9696
if: github.actor != 'restyled-io[bot]'
9797

9898
container:
99-
image: ghcr.io/project-chip/chip-build-telink:41
99+
image: ghcr.io/project-chip/chip-build-telink:46
100100
options: --user root
101101

102102
steps:
@@ -108,7 +108,7 @@ jobs:
108108
platform: telink
109109
# - name: Update Zephyr to specific revision (for developers purpose)
110110
# shell: bash
111-
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py b5c8028ec94f3efa69decff3a09f0d6f8a21fd6d"
111+
# run: scripts/run_in_build_env.sh "python3 scripts/tools/telink/update_zephyr.py 65dc1812431bf946dfc110682298acf83d63e27a"
112112
- name: CI Examples Telink
113113
shell: bash
114114
run: |

.github/workflows/cirque.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
# need to run with privilege, which isn't supported by job.XXX.contaner
4141
# https://github.com/actions/container-action/issues/2
4242
# container:
43-
# image: ghcr.io/project-chip/chip-build-cirque:41
43+
# image: ghcr.io/project-chip/chip-build-cirque:46
4444
# volumes:
4545
# - "/tmp:/tmp"
4646
# - "/dev/pts:/dev/pts"
@@ -57,6 +57,7 @@ jobs:
5757
with:
5858
platform: linux
5959

60+
# TODO: Is what's being cached here actually compatible with a regular bootstrap?
6061
- name: Bootstrap Cache
6162
uses: ./.github/actions/bootstrap-cache
6263
- name: Bootstrap Cirque

.github/workflows/darwin-tests.yaml

+2-10
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
LSAN_OPTIONS: detect_leaks=1 malloc_context_size=40 suppressions=scripts/tests/chiptest/lsan-mac-suppressions.txt
5050

5151
if: github.actor != 'restyled-io[bot]'
52-
runs-on: macos-latest
52+
runs-on: macos-13
5353

5454
steps:
5555
- name: Checkout
@@ -72,15 +72,7 @@ jobs:
7272

7373
- name: Run macOS Darwin Framework Tool Build Debug
7474
working-directory: src/darwin/Framework
75-
# Keep whatever Xcode settings
76-
# for OTHER_CFLAGS exist by using ${inherited}.
77-
#
78-
# Enable -Wconversion by hand as well, because it seems to not be
79-
# enabled by default in the Xcode config.
80-
#
81-
# Disable availability annotations, since we are not building against a system
82-
# Matter.framework.
83-
run: xcodebuild -target "darwin-framework-tool" -sdk macosx -configuration Debug OTHER_CFLAGS='${inherited} -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
75+
run: xcodebuild -target "darwin-framework-tool" -sdk macosx -configuration Debug
8476
- name: Delete Defaults
8577
run: defaults delete com.apple.dt.xctest.tool
8678
continue-on-error: true

0 commit comments

Comments
 (0)