Skip to content

Commit

Permalink
Fix EFR cloudbuild smoke tests, add more targets (#23236)
Browse files Browse the repository at this point in the history
* Fix some smoke test target options

* Restyle

* Fix unit tests
  • Loading branch information
andy31415 authored and pull[bot] committed Jan 17, 2023
1 parent b2237de commit 5897911
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions integrations/cloudbuild/smoke-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ steps:
args:
- >-
./scripts/build/build_examples.py --enable-flashbundle
--target nrf-nrf52840dk-light
--target nrf-nrf52840dk-light-rpc
--target nrf-nrf52840dk-lock
--target nrf-nrf52840dongle-light
--target efr32-brd4161a-light
--target efr32-brd4161a-light-rpc
--target efr32-brd4161a-lock
--target efr32-brd4161a-lock-rpc
build
--create-archives /workspace/artifacts/
waitFor:
Expand All @@ -98,7 +98,8 @@ steps:
--target linux-arm64-chip-tool-ipv6only-clang
--target linux-arm64-chip-tool-nodeps-ipv6only-clang
--target linux-arm64-dynamic-bridge-ipv6only-clang
--target linux-arm64-light-rpc-ipv6only-clang
--target linux-arm64-light-clang-rpc-ipv6only
--target linux-arm64-light-clang-rpc-ipv6only-minmdns-verbose
--target linux-arm64-lock-ipv6only-clang
--target linux-arm64-minmdns-clang
--target linux-arm64-ota-provider-nodeps-ipv6only-clang
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/build/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def _StringIntoParts(full_input: str, remaining_input: str, fixed_targets: List[
if not modifier.Accept(full_input):
continue

result = _StringIntoParts(full_input, suffix, fixed_targets[1:], filter(lambda x: x != modifier, modifiers))
result = _StringIntoParts(full_input, suffix, fixed_targets[1:], [x for x in modifiers if x != modifier])
if result is not None:
return [modifier] + result

Expand Down
2 changes: 1 addition & 1 deletion scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def BuildHostTarget():
TargetPart('thermostat', app=HostApp.THERMOSTAT),
TargetPart('minmdns', app=HostApp.MIN_MDNS),
TargetPart('light', app=HostApp.LIGHT),
TargetPart('light-rpc', app=HostApp.LIGHT, enable_rpcs=True),
TargetPart('lock', app=HostApp.LOCK),
TargetPart('shell', app=HostApp.SHELL),
TargetPart('ota-provider', app=HostApp.OTA_PROVIDER, enable_ble=False),
Expand Down Expand Up @@ -143,6 +142,7 @@ def BuildHostTarget():
target.AppendModifier('dmalloc', use_dmalloc=True)
target.AppendModifier('clang', use_clang=True)
target.AppendModifier('test', extra_tests=True)
target.AppendModifier('rpc', enable_rpcs=True)

return target

Expand Down
2 changes: 1 addition & 1 deletion scripts/build/testdata/all_targets_linux_x64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ efr32-{brd4161a,brd4187c,brd4163a,brd4164a,brd4166a,brd4170a,brd4186a,brd4187a,b
esp32-{m5stack,c3devkit,devkitc,qemu}-{all-clusters,all-clusters-minimal,ota-requestor,ota-requestor,shell,light,lock,bridge,temperature-measurement,ota-requestor,tests}[-rpc][-ipv6only]
genio-lighting-app
linux-fake-tests[-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang]
linux-{x64,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,light-rpc,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool}[-nodeps][-minmdns-verbose][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang][-test]
linux-{x64,arm64}-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,minmdns,light,lock,shell,ota-provider,ota-requestor,python-bindings,tv-app,tv-casting-app,bridge,dynamic-bridge,tests,chip-cert,address-resolve-tool}[-nodeps][-minmdns-verbose][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-libfuzzer][-coverage][-dmalloc][-clang][-test][-rpc]
linux-x64-efr32-test-runner[-clang]
imx-{chip-tool,lighting-app,thermostat,all-clusters-app,all-clusters-minimal-app,ota-provider-app}[-release]
infineon-psoc6-{lock,light,all-clusters,all-clusters-minimal}[-ota][-updateimage]
Expand Down

0 comments on commit 5897911

Please sign in to comment.