Skip to content

Commit 1157652

Browse files
[Debugging]fix cirque test via releasing extra storage (#22500)
* update build binary instruction * adjust thread border router log expectation
1 parent 27f9fb4 commit 1157652

File tree

3 files changed

+38
-10
lines changed

3 files changed

+38
-10
lines changed

.github/workflows/cirque.yaml

+1-9
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,7 @@ jobs:
111111
--volume /tmp:/tmp \
112112
-- sh -c '\
113113
git config --global --add safe.directory "*" \
114-
&& ./gn_build.sh \
115-
chip_build_tests=false \
116-
chip_enable_wifi=false \
117-
chip_im_force_fabric_quota_check=true \
118-
enable_default_builds=false \
119-
enable_host_gcc_build=true \
120-
enable_standalone_chip_tool_build=true \
121-
enable_linux_all_clusters_app_build=true \
122-
enable_linux_lighting_app_build=true \
114+
&& scripts/build/gn_gen_cirque.sh
123115
'
124116
- name: Run Tests
125117
timeout-minutes: 25

scripts/build/gn_gen_cirque.sh

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/usr/bin/env bash
2+
3+
#
4+
# Copyright (c) 2022 Project CHIP Authors
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
19+
set -e
20+
21+
CHIP_ROOT="$(dirname "$0")/../.."
22+
if [[ -z "${CHIP_ROOT_PATH}" ]]; then
23+
CHIP_ROOT_PATH=""
24+
fi
25+
26+
set -x
27+
28+
env
29+
30+
echo "Build: GN configure"
31+
32+
gn --root="$CHIP_ROOT" gen --check --fail-on-unused-args "$CHIP_ROOT/out/debug" --args='target_os="all"'"chip_build_tests=false chip_enable_wifi=false chip_im_force_fabric_quota_check=true enable_default_builds=false enable_host_gcc_build=true enable_standalone_chip_tool_build=true enable_linux_all_clusters_app_build=true enable_linux_lighting_app_build=true"
33+
34+
echo "Build: Ninja build"
35+
36+
time ninja -C "$CHIP_ROOT/out/debug" all check

src/test_driver/linux-cirque/helper/CHIPTestBase.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def reset_thread_devices(self, devices: Union[List[str], str]):
140140
for device_id in devices:
141141
# Wait for otbr-agent and CHIP server start
142142
self.assertTrue(self.wait_for_device_output(
143-
device_id, "Border router agent started.", 10))
143+
device_id, "Thread Border Router started on AIL", 10))
144144
self.assertTrue(self.wait_for_device_output(
145145
device_id, "CHIP:SVR: Server Listening...", 15))
146146
# Clear default Thread network commissioning data

0 commit comments

Comments
 (0)