Skip to content

Commit 6ade0df

Browse files
authored
Fix fabric sync test timeouts (project-chip#35417)
* Override timeout for FabricSync tests * Bump up timeouts just a little more * Remove TODOs that actually won't change since test will need to wait upto time anyways * Add unsaved files
1 parent 2cf028b commit 6ade0df

7 files changed

+33
-4
lines changed

src/python_testing/TC_BRBINFO_4_1.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ class TC_BRBINFO_4_1(MatterBaseTest):
4747
async def _read_attribute_expect_success(self, endpoint, cluster, attribute, node_id):
4848
return await self.read_single_attribute_check_success(endpoint=endpoint, cluster=cluster, attribute=attribute, node_id=node_id)
4949

50-
# Override default timeout to support a 60 min wait
50+
# This test has some manual steps and also multiple sleeps >= 30 seconds. Test typically runs under 3 mins,
51+
# so 6 minutes is more than enough.
5152
@property
5253
def default_timeout(self) -> int:
53-
return 63*60
54+
return 6*60
5455

5556
def desc_TC_BRBINFO_4_1(self) -> str:
5657
"""Returns a description of this test"""

src/python_testing/TC_CCTRL_2_2.py

+6
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ def steps_TC_CCTRL_2_2(self) -> list[TestStep]:
119119

120120
return steps
121121

122+
# This test has some manual steps and also multiple sleeps for up to 30 seconds. Test typically runs
123+
# under 2 mins, so 4 minutes is more than enough.
124+
@property
125+
def default_timeout(self) -> int:
126+
return 4*60
127+
122128
@run_if_endpoint_matches(has_cluster(Clusters.CommissionerControl))
123129
async def test_TC_CCTRL_2_2(self):
124130
self.is_ci = self.check_pics('PICS_SDK_CI_ONLY')

src/python_testing/TC_CCTRL_2_3.py

+6
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ def steps_TC_CCTRL_2_3(self) -> list[TestStep]:
103103

104104
return steps
105105

106+
# This test has some manual steps and one sleep for up to 30 seconds. Test typically
107+
# runs under 1 mins, so 3 minutes is more than enough.
108+
@property
109+
def default_timeout(self) -> int:
110+
return 3*60
111+
106112
@per_endpoint_test(has_cluster(Clusters.CommissionerControl))
107113
async def test_TC_CCTRL_2_3(self):
108114
self.is_ci = self.check_pics('PICS_SDK_CI_ONLY')

src/python_testing/TC_ECOINFO_2_2.py

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ def steps_TC_ECOINFO_2_2(self) -> list[TestStep]:
4242

4343
return steps
4444

45+
# This test has some manual steps, so we need a longer timeout. Test typically runs under 1 mins so 3 mins should
46+
# be enough time for test to run
47+
@property
48+
def default_timeout(self) -> int:
49+
return 3*60
50+
4551
@async_test_body
4652
async def test_TC_ECOINFO_2_2(self):
4753
dev_ctrl = self.default_controller

src/python_testing/TC_MCORE_FS_1_1.py

+6
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ def steps_TC_MCORE_FS_1_1(self) -> list[TestStep]:
8787
TestStep("3c", "DUT_FSA commissions TH_FSA")]
8888
return steps
8989

90+
# This test has some manual steps and one sleep for up to 30 seconds. Test typically
91+
# runs under 1 mins, so 3 minutes is more than enough.
92+
@property
93+
def default_timeout(self) -> int:
94+
return 3*60
95+
9096
@async_test_body
9197
async def test_TC_MCORE_FS_1_1(self):
9298
self.is_ci = self.check_pics('PICS_SDK_CI_ONLY')

src/python_testing/TC_MCORE_FS_1_2.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,11 @@ def steps_TC_MCORE_FS_1_2(self) -> list[TestStep]:
117117
TestStep(7, "TH reads all attributes in the Bridged Device Basic Information cluster on new endpoint identified in step 3 from the DUT_FSA")]
118118
return steps
119119

120+
# This test has some manual steps, so we need a longer timeout. Test typically runs under 1 mins so 3 mins should
121+
# be enough time for test to run
120122
@property
121123
def default_timeout(self) -> int:
122-
return self.user_params.get("report_waiting_timeout_delay_sec", 10)*2 + 60
124+
return 3*60
123125

124126
@async_test_body
125127
async def test_TC_MCORE_FS_1_2(self):

src/python_testing/TC_MCORE_FS_1_5.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,11 @@ def steps_TC_MCORE_FS_1_5(self) -> list[TestStep]:
117117
TestStep(10, "TH waits up to 10 seconds for subscription report from the AdministratorCommissioning attribute (from step 6) to reflect values from previous step")]
118118
return steps
119119

120+
# This test has some manual steps, so we need a longer timeout. Test typically runs under 1 mins so 3 mins should
121+
# be enough time for test to run
120122
@property
121123
def default_timeout(self) -> int:
122-
return self.user_params.get("report_waiting_timeout_delay_sec", 10)*2 + 60
124+
return 3*60
123125

124126
@async_test_body
125127
async def test_TC_MCORE_FS_1_5(self):

0 commit comments

Comments
 (0)