Skip to content

Commit

Permalink
Merge branch 'master' into Manual-script-Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajashreekalmane authored Feb 24, 2025
2 parents 09506e4 + 43a8a9b commit a6dda46
Show file tree
Hide file tree
Showing 2,166 changed files with 158,994 additions and 63,419 deletions.
8 changes: 4 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,24 @@ RUN curl https://raw.githubusercontent.com/restyled-io/restyler/master/bin/resty
&& chmod +x /usr/local/bin/restyle-path \
&& :

RUN mkdir -p /opt/sdk/sdks/ \
RUN mkdir -p /opt/android/sdk \
&& chown -R $USERNAME:$USERNAME \
/opt/sdk/sdks/ `# NXP uses a patch_sdk script to change SDK files` \
/opt/android/sdk `# NXP uses a patch_sdk script to change SDK files` \
$ANDROID_HOME \
$IDF_TOOLS_PATH \
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chown -R $USERNAME:$USERNAME \
&& chmod -R +x \
$ANDROID_HOME/tools/bin `# sdkmanager for accepting licenses`\
$ANDROID_HOME/cmdline-tools/10.0/bin `# sdkmanager for accepting licenses`\
&& chmod -R +w \
$IDF_TOOLS_PATH \
&& find $AMEBA_PATH -name "inc_lp" -print0 | xargs -0 chmod -R +w \
&& find $AMEBA_PATH -name "inc_hp" -print0 | xargs -0 chmod -R +w \
&& find $AMEBA_PATH -name "project_lp" -print0 | xargs -0 chmod -R +w \
&& find $AMEBA_PATH -name "project_hp" -print0 | xargs -0 chmod -R +w \
# Safe directory is preffered over chown.
# Safe directory is preferred over chown.
&& git config --global --add safe.directory "*" \
&& :

Expand Down
22 changes: 14 additions & 8 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
{
"name": "CHIP Ubuntu Development Environment",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--network=host",
"--privileged",
"-v",
"/dev/bus/usb:/dev/bus/usb:ro",
"--device-cgroup-rule=a 189:* rmw",
"--add-host=host.docker.internal:host-gateway"
],
"privileged": true,
"capAdd": ["SYS_PTRACE"],
"securityOpt": ["seccomp=unconfined"],
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
{
"source": "/var/run/docker.sock",
"target": "/var/run/docker.sock",
"type": "bind"
},
{
"source": "/dev/bus/usb",
"target": "/dev/bus/usb",
"type": "bind"
}
],
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 74",
"initializeCommand": "bash .devcontainer/build.sh --tag matter-dev-environment:local --version 97",
"image": "matter-dev-environment:local",
"remoteUser": "vscode",
"containerEnv": {
Expand Down
14 changes: 14 additions & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ amebad
amebaiot
AmebaZ
amebaz2
ANC
announcementReason
AnnounceOTAProvider
AnnounceOTAProviderRequest
Expand Down Expand Up @@ -85,6 +86,7 @@ ASR
AssertionError
AST
ASYNC
ATL
ATLs
atomics
att
Expand Down Expand Up @@ -114,6 +116,7 @@ avahi
avL
AwaitNextAction
AXXXF
Axxxx
AYNJV
babaf
backend
Expand Down Expand Up @@ -330,6 +333,7 @@ CurrentHue
CurrentLevel
CurrentSaturation
customAcl
customizable
customizations
cvfJ
cxx
Expand Down Expand Up @@ -507,6 +511,7 @@ entrypoint
enum
Enums
env
EP
epochKey
epochStartTime
eq
Expand Down Expand Up @@ -538,6 +543,7 @@ ExtendedPAN
ExtensionEntry
extern
extpanid
Exx
FabricId
fabricIdx
fabricIndex
Expand Down Expand Up @@ -585,6 +591,7 @@ fuzzer
fuzzers
fuzztest
FW
Fxx
gbl
gcloud
GDB
Expand Down Expand Up @@ -684,6 +691,7 @@ ICMP
IDF
IDL
IDLs
IDM
idt
idx
ifconfig
Expand Down Expand Up @@ -1053,6 +1061,7 @@ otatesting
otaURL
OTBR
otcli
OU
outform
outgoingCommands
overridable
Expand Down Expand Up @@ -1164,6 +1173,7 @@ PyObject
pypi
PyRun
pytest
PYTHONPATH
QEMU
Qorvo
QPG
Expand Down Expand Up @@ -1235,6 +1245,7 @@ RPi's
RPis
RSA
rsn
Rsp
RSSI
RST
rsync
Expand Down Expand Up @@ -1341,6 +1352,7 @@ SRP
SRV
SSBL
SSID
SSL
startoffset
StartScan
startsWith
Expand Down Expand Up @@ -1508,6 +1520,7 @@ unfocus
Unicast
UniFlash
UnitLocalization
unittest
unpair
unprovisioned
Unsecure
Expand Down Expand Up @@ -1622,6 +1635,7 @@ xFFFF
xfffff
xFFFFFFEFFFFFFFFF
XMLPICSValidator
XMLs
xtensa
xvzf
xwayland
Expand Down
9 changes: 5 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@

#### Testing

> !!!!!!!!!! Please delete the instructions below and replace with PR
> description
> description above.
>
> If you have an issue number, please use a syntax of `Fixes #12345` and a brief
> change description
>
> If you do not have an issue number, please have a good description of the
> problem and the fix. Help the reviewer understand what to expect.
>
> Complete/append to the `### Testing` section below, to describe how testing
> Complete/append to the `### Testing` section above, to describe how testing
> was done. See
> <https://github.com/project-chip/connectedhomeip/blob/master/CONTRIBUTING.md#pull-requests>
>
> Make sure you delete these instructions (to prove you have read them).
>
> !!!!!!!!!! Instructions end
#### Testing
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ updates:
- dependency-name: "third_party/java_deps/repo"
- dependency-name: "third_party/jlink/repo"
- dependency-name: "third_party/jsoncpp/repo"
- dependency-name: "third_party/libdatachannel/repo"
- dependency-name: "third_party/libwebsockets/repo"
- dependency-name: "third_party/lwip/repo"
- dependency-name: "third_party/mbed-mcu-boot/repo"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bloat_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest

container:
image: ghcr.io/project-chip/chip-build:97
image: ghcr.io/project-chip/chip-build:115

steps:
- name: Checkout
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build:97
image: ghcr.io/project-chip/chip-build:115
volumes:
- "/:/runner-root-volume"
- "/tmp/log_output:/tmp/test_logs"
Expand Down Expand Up @@ -81,14 +81,6 @@ jobs:
run: scripts/run_in_build_env.sh "ninja -C ./out"
- name: Run Tests
run: scripts/tests/gn_tests.sh
# TODO Log Upload https://github.com/project-chip/connectedhomeip/issues/2227
# TODO https://github.com/project-chip/connectedhomeip/issues/1512
# - name: Run Code Coverage
# if: ${{ contains('main', env.BUILD_TYPE) }}
# run: scripts/tools/codecoverage.sh
# - name: Upload Code Coverage
# if: ${{ contains('main', env.BUILD_TYPE) }}
# run: bash <(curl -s https://codecov.io/bash)
- name: Set up Build Without Detail Logging
run: scripts/build/gn_gen.sh --args="chip_detail_logging=false"
- name: Run Build Without Detail Logging
Expand Down Expand Up @@ -139,7 +131,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build:97
image: ghcr.io/project-chip/chip-build:115
volumes:
- "/:/runner-root-volume"
- "/tmp/log_output:/tmp/test_logs"
Expand Down Expand Up @@ -219,11 +211,16 @@ jobs:
- name: Find changed files
id: changed-files
uses: tj-actions/changed-files@v45
with:
# Exclude all files under "third_party/"
files-ignore: |
third_party/
- name: Clang-tidy validation
# NOTE: clang-tidy crashes on CodegenDataModel_Write due to Nullable/std::optional check.
# See https://github.com/llvm/llvm-project/issues/97426
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.changed_files }}
run: |
touch out/changed_files.txt
for file in ${ALL_CHANGED_FILES}; do
Expand Down Expand Up @@ -308,7 +305,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build:97
image: ghcr.io/project-chip/chip-build:115
volumes:
- "/:/runner-root-volume"
- "/tmp/log_output:/tmp/test_logs"
Expand Down Expand Up @@ -363,6 +360,8 @@ jobs:
python -m ensurepip --upgrade
python -m pip install -r scripts/setup/requirements.setuppayload.txt
python3 src/setup_payload/tests/run_python_setup_payload_test.py out/chip-tool
- name: Run revocation set generation tests
run: scripts/run_in_build_env.sh 'python3 -m unittest -v credentials/generate_revocation_set.py'

build_linux_python_lighting_device:
name: Build on Linux (python lighting-app)
Expand All @@ -371,7 +370,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: ghcr.io/project-chip/chip-build:97
image: ghcr.io/project-chip/chip-build:115
volumes:
- "/:/runner-root-volume"
- "/tmp/log_output:/tmp/test_logs"
Expand Down Expand Up @@ -486,16 +485,16 @@ jobs:
build_linux_gcc_coverage:
name: Build on Linux (coverage)

runs-on: ubuntu-latest
env:
TSAN_OPTIONS: "halt_on_error=1 suppressions=scripts/tests/chiptest/tsan-linux-suppressions.txt"

if: github.actor != 'restyled-io[bot]'
runs-on: ubuntu-latest

container:
image: ghcr.io/project-chip/chip-build:97
volumes:
- "/:/runner-root-volume"
- "/tmp/log_output:/tmp/test_logs"
image: ghcr.io/project-chip/chip-build:115
options: --privileged --sysctl "net.ipv6.conf.all.disable_ipv6=0
net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"
net.ipv4.conf.all.forwarding=0 net.ipv6.conf.all.forwarding=0"

steps:
- name: Checkout
Expand All @@ -504,6 +503,7 @@ jobs:
uses: ./.github/actions/checkout-submodules-and-bootstrap
with:
platform: linux
bootstrap-log-name: bootstrap-logs-linux-${{ matrix.build_variant }}${{ matrix.chip_tool }}

- name: Run Build Coverage
run: ./scripts/build_coverage.sh
run: ./scripts/build_coverage.sh --yaml
26 changes: 25 additions & 1 deletion .github/workflows/check-data-model-directory-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,28 @@ jobs:
python3 scripts/dm_xml_ci_change_enforcement.py data_model/1.3
- name: Check for changes to 1.4 data_model directory without a SHA update
run: |
python3 scripts/dm_xml_ci_change_enforcement.py data_model/1.4
python3 scripts/dm_xml_ci_change_enforcement.py data_model/1.4
- name: Check for changes to 1.4.1 data_model directory without a SHA update
run: |
python3 scripts/dm_xml_ci_change_enforcement.py data_model/1.4.1
check-data_model-build-file:
name: Check that all data_model files are listed in the data_model_xmls.gni build file
runs-on: ubuntu-latest
container:
image: ghcr.io/project-chip/chip-build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pip modules we use
run: |
python3 -m venv out/venv
out/venv/bin/pip3 install \
jinja2
- name: Generate build file (data_model_xmls.gni)
run: out/venv/bin/python3 src/python_testing/matter_testing_infrastructure/generate_data_model_xmls_gni.py
- name: Ensure git works in current working directory
run: git config --global --add safe.directory `pwd`
- name: Check for uncommited changes
run: |
git diff --exit-code HEAD -- src/python_testing/matter_testing_infrastructure/data_model_xmls.gni
Loading

0 comments on commit a6dda46

Please sign in to comment.