Skip to content

Commit

Permalink
Merge branch 'project-chip:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
selissia authored Apr 12, 2022
2 parents 0435362 + 2e33dec commit 40b3412
Show file tree
Hide file tree
Showing 808 changed files with 33,015 additions and 11,257 deletions.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
Checks: 'bugprone-*,-bugprone-not-null-terminated-result,-bugprone-suspicious-memory-comparison,-bugprone-argument-comment,-bugprone-unused-return-value,-bugprone-branch-clone,-bugprone-easily-swappable-parameters,-bugprone-reserved-identifier,-bugprone-macro-parentheses,-bugprone-forward-declaration-namespace,-bugprone-forwarding-reference-overload,-bugprone-undelegated-constructor,-bugprone-sizeof-expression,-bugprone-implicit-widening-of-multiplication-result,-bugprone-too-small-loop-variable,-bugprone-narrowing-conversions,-bugprone-misplaced-widening-cast,-bugprone-suspicious-include,-bugprone-signed-char-misuse,-bugprone-copy-constructor-init,-clang-analyzer-core.CallAndMessage,-clang-analyzer-core.UndefinedBinaryOperatorResult,-clang-analyzer-core.NullDereference,-clang-analyzer-optin.cplusplus.UninitializedObject,-clang-analyzer-core.uninitialized.Branch,-clang-analyzer-optin.performance,-clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,-clang-analyzer-deadcode.DeadStores,-clang-analyzer-cplusplus.Move,-clang-analyzer-optin.cplusplus.VirtualCall,-clang-analyzer-security.insecureAPI.strcpy,-clang-analyzer-nullability.NullablePassedToNonnull,-clang-analyzer-optin.performance.Padding,-clang-analyzer-security.insecureAPI.bzero,-clang-analyzer-unix.cstring.NullArg,-clang-analyzer-security.insecureAPI.rand,-clang-analyzer-core.NonNullParamChecker,-clang-analyzer-nullability.NullPassedToNonnull,-clang-analyzer-unix.Malloc,-clang-analyzer-valist.Unterminated,-clang-analyzer-cplusplus.NewDeleteLeaks,-clang-diagnostic-implicit-int-conversion'
Checks: 'readability-else-after-return,modernize-use-nullptr,bugprone-*,-bugprone-not-null-terminated-result,-bugprone-suspicious-memory-comparison,-bugprone-argument-comment,-bugprone-unused-return-value,-bugprone-branch-clone,-bugprone-easily-swappable-parameters,-bugprone-reserved-identifier,-bugprone-macro-parentheses,-bugprone-forward-declaration-namespace,-bugprone-forwarding-reference-overload,-bugprone-undelegated-constructor,-bugprone-sizeof-expression,-bugprone-implicit-widening-of-multiplication-result,-bugprone-too-small-loop-variable,-bugprone-narrowing-conversions,-bugprone-misplaced-widening-cast,-bugprone-suspicious-include,-bugprone-signed-char-misuse,-bugprone-copy-constructor-init,-clang-analyzer-core.CallAndMessage,-clang-analyzer-core.UndefinedBinaryOperatorResult,-clang-analyzer-core.NullDereference,-clang-analyzer-optin.cplusplus.UninitializedObject,-clang-analyzer-core.uninitialized.Branch,-clang-analyzer-optin.performance,-clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,-clang-analyzer-deadcode.DeadStores,-clang-analyzer-cplusplus.Move,-clang-analyzer-optin.cplusplus.VirtualCall,-clang-analyzer-security.insecureAPI.strcpy,-clang-analyzer-nullability.NullablePassedToNonnull,-clang-analyzer-optin.performance.Padding,-clang-analyzer-security.insecureAPI.bzero,-clang-analyzer-unix.cstring.NullArg,-clang-analyzer-security.insecureAPI.rand,-clang-analyzer-core.NonNullParamChecker,-clang-analyzer-nullability.NullPassedToNonnull,-clang-analyzer-unix.Malloc,-clang-analyzer-valist.Unterminated,-clang-analyzer-cplusplus.NewDeleteLeaks,-clang-diagnostic-implicit-int-conversion'
WarningsAsErrors: '*'
HeaderFilterRegex: '(src|examples|zzz_generated|credentials)'
68 changes: 33 additions & 35 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ APIs
apk
AppConfig
AppImpl
appliable
ApplianceControl
applianceeventsandalert
ApplianceIdentification
Expand All @@ -69,6 +70,7 @@ ApplyUpdateRequest
ApplyUpdateResponse
approver
appspot
appwrite
aps
arg
argc
Expand Down Expand Up @@ -142,6 +144,7 @@ BooleanState
bootable
Bootloader
BorderRouterAP
bouffalolab
BRD
breakpoint
bredr
Expand Down Expand Up @@ -231,6 +234,7 @@ clusterAttrs
clusterId
clusterList
clusterListName
ClusterObjectTests
ClusterRevision
ClusterTestGeneration
cmake
Expand All @@ -250,11 +254,13 @@ Comcast
Commandline
Commissionable
commissionables
commissionee
CommissioningFlow
commondatastorage
CONF
CONFIG
ConfigDescription
configs
configTOTAL
ConfigurationManager
ConfigurationManagerImpl
Expand Down Expand Up @@ -291,6 +297,7 @@ CQM
crypto
cryptographic
CSA
csg
csrrequest
csu
csv
Expand All @@ -300,6 +307,7 @@ ctypes
CurrentHue
CurrentLevel
CurrentSaturation
customAcl
customizations
cvfJ
cxx
Expand All @@ -310,6 +318,7 @@ dadbdcdddedf
DAP
DAPLINK
DataFrame
datamodel
DataModelRevision
dataset
datasets
Expand All @@ -330,6 +339,9 @@ debugText
DEDEDEDE
deepnote
DefaultOTAProviders
DefaultOTARequestor
DefaultOTARequestorDriver
DefaultOTARequestorStorage
DefaultSuccess
definedValue
DehumidificationControl
Expand Down Expand Up @@ -403,9 +415,11 @@ Dockerfile
Dockerfiles
Don'ts
DoorLock
doru
DOTBR
DOVERLAY
downcasting
DownloadProtocolEnum
Doxygen
dpkg
dropdown
Expand Down Expand Up @@ -563,6 +577,7 @@ gtk
GUA
Gv
gz
gzbf
HaloaceticAcidsConcentrationMeasurement
hardcoded
hardknott
Expand Down Expand Up @@ -594,6 +609,7 @@ IDF
IDL
IDLs
idx
ifconfig
ifdef
ifdefs
IGMP
Expand Down Expand Up @@ -646,6 +662,7 @@ isLowerCase
isUpperCase
itemName
iterable
itsfoss
JDK
jinja
JLink
Expand Down Expand Up @@ -718,8 +735,6 @@ lightin
LightingColor
LightingState
LinkSoftwareAndDocumentationPack
LinuxOTAImageProcessor
LinuxOTARequestorDriver
LocalConfigDisabled
localedef
localhost
Expand Down Expand Up @@ -829,7 +844,6 @@ mydir
MyPASSWORD
MySSID
NAMESERVER
nameserver
namespacing
nano
natively
Expand Down Expand Up @@ -904,16 +918,19 @@ otaImageList
OTAImageProcessorDriver
OTAImageProcessorImpl
OTAImageProcessorInterface
otaissues
OTAProvider
OTAProviderIpAddress
OTAProviderNodeId
OTAProviderSerialPort
OTARequesterImpl
OTARequestor
OTARequestorDriver
OTARequestorInterface
OTARequestorSerialPort
OTARequestorStorage
OtaSoftwareUpdateProvider
otasoftwareupdaterequestor
otatesting
otaURL
OTBR
otcli
Expand Down Expand Up @@ -941,6 +958,7 @@ PCA
pcaps
PDFs
PDK
PDM
peerAddrStr
peerNodeId
peerSessionId
Expand Down Expand Up @@ -990,6 +1008,7 @@ ProxyValid
ProxyView
PRs
PSCAN
PSECT
PSK
PSoC
PTR
Expand Down Expand Up @@ -1020,6 +1039,7 @@ QSPI
QueryImage
QueryImageResponse
queryImageStatus
Quickstart
qvCHIP
RADVD
raspberryPi
Expand Down Expand Up @@ -1054,6 +1074,7 @@ RequestorCanConsent
Requestor's
Requestors
responder
RestrictedEvent
retargeting
reusability
reviwed
Expand All @@ -1069,6 +1090,7 @@ rootfs
RPC
RPCs
RPi
RPis
rsn
RSSI
rsync
Expand Down Expand Up @@ -1109,6 +1131,7 @@ SerialNumber
ServiceId
SetDns
SetImageProcessorDelegate
SetOTADownloader
SetOtaRequestorDriver
setpin
setpoint
Expand Down Expand Up @@ -1152,6 +1175,7 @@ spinel
src
SRP
SRV
SSBL
SSID
startoffset
StartScan
Expand Down Expand Up @@ -1221,6 +1245,7 @@ TESTSSID
TestString
TestStruct
TestThreadStackMgr
TestTimedRequestTimeout
TestUint
TestUpdateValue
testws
Expand Down Expand Up @@ -1257,10 +1282,11 @@ totalTests
TotalTrihalomethanesConcentrationMeasurement
trackAlloc
trackFree
transitionTime
TransferSession
transitionTime
TransportMgrBase
TrustedRootCertificates
tsan
TSG
tsv
TTL
Expand Down Expand Up @@ -1340,6 +1366,7 @@ WakeOnLan
WantedBy
watchdogTimeout
webpage
wg
wget
whde
whitespace
Expand All @@ -1365,8 +1392,8 @@ xAAAA
xab
xaver
xb
xbef
xBEEF
xbef
xc
xcd
Xcode
Expand Down Expand Up @@ -1425,32 +1452,3 @@ zephyrproject
Zigbee
zigbeealliance
zigbeethread
libshell
TestGroupDemoConfig
ACLs
AddNOC
CHIPConfig
CHIPProjectAppConfig
CaseAdminNode
DataVersion
ProxyView
ReadAttribute
WriteAttribute
kAdminister
kManage
kOperate
kView
xFFFFFFFD
ClusterObjectTests
TestTimedRequestTimeout
datamodel
appliable
commissionee
configs
NAMESERVER
UTF
localedef
nameserver
nmcli
tsan
bouffalolab
18 changes: 11 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ jobs:
with:
action: actions/checkout@v3
with: |
submodules: true
token: ${{ github.token }}
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform linux
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
Expand All @@ -73,7 +74,7 @@ jobs:
timeout-minutes: 20
run: scripts/run_in_build_env.sh "ninja -C ./out"
- name: Run Tests
timeout-minutes: 15
timeout-minutes: 30
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
Expand Down Expand Up @@ -126,7 +127,6 @@ jobs:
with:
action: actions/checkout@v3
with: |
submodules: true
token: ${{ github.token }}
attempt_limit: 3
attempt_delay: 2000
Expand All @@ -135,6 +135,8 @@ jobs:
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp"
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform linux
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
Expand Down Expand Up @@ -177,7 +179,7 @@ jobs:
check \
"
- name: Run Tests with sanitizers
timeout-minutes: 30
timeout-minutes: 60
env:
LSAN_OPTIONS: detect_leaks=0
run: |
Expand All @@ -194,7 +196,7 @@ jobs:
scripts/tests/gn_tests.sh
done
- name: Build using build_examples.py
timeout-minutes: 40
timeout-minutes: 60
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --no-log-timestamps \
Expand Down Expand Up @@ -255,10 +257,11 @@ jobs:
with:
action: actions/checkout@v3
with: |
submodules: true
token: ${{ github.token }}
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform linux
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
Expand Down Expand Up @@ -286,7 +289,6 @@ jobs:
with:
action: actions/checkout@v3
with: |
submodules: true
token: ${{ github.token }}
attempt_limit: 3
attempt_delay: 2000
Expand All @@ -295,6 +297,8 @@ jobs:
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp"
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform darwin
- name: Setup Environment
run: brew install openssl pkg-config
- name: Try to ensure the directory for diagnostic log collection exists
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/cirque.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ concurrency:
jobs:
cirque:
name: Cirque
timeout-minutes: 60
timeout-minutes: 75

env:
DOCKER_RUN_VERSION: 0.5.56
Expand All @@ -53,10 +53,11 @@ jobs:
with:
action: actions/checkout@v3
with: |
submodules: true
token: ${{ github.token }}
attempt_limit: 3
attempt_delay: 2000
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform linux

- name: Get cirque cache key
id: cirque-key
Expand Down
Loading

0 comments on commit 40b3412

Please sign in to comment.