Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TC-TIMESYNC-2.5] - python script is failing at Test Step 19 #27803

Closed
Rajashreekalmane opened this issue Jul 7, 2023 · 0 comments · Fixed by #28021
Closed

[TC-TIMESYNC-2.5] - python script is failing at Test Step 19 #27803

Rajashreekalmane opened this issue Jul 7, 2023 · 0 comments · Fixed by #28021
Assignees
Labels
bug Something isn't working cert blocker needs triage time sync Implementation of the Time Synchronization cluster
Milestone

Comments

@Rajashreekalmane
Copy link

Reproduction steps

Setting up the environment :
Step 1 : cloned Connectedhomeip using mentioned command : git clone https://github.com/project-chip/connectedhomeip.git
step 2 : cd connectedhomeip
step 3 : pulled latest commit
step 4: source scripts/bootstrap.sh
step 5 : ./scripts/build_python.sh --install_wheel build-env
step 6 : source scripts/activate.sh

executed the below mentioned command to put DUT into a commissionable state,
./chip-all-clusters-app
Once DUT reach the commissionable state sent below mentioned command on TH.
rm -f admin_storage.json && python3 TC_TIMESYNC_2_5.py --discriminator 3840 --passcode 20202021 --commissioning-method on-network --paa-trust-store-path /paa_roots --storage-path admin_storage.json

Bug prevalence

Everytime

GitHub hash of the SDK that was being used

d55f685 - master

Platform

raspi

Platform Version(s)

RPI4 8GB RAM

Anything else?

Summary:
[TC-TIMESYNC-2.5] test case is failing while reading list at step 19

[1688734255.930727][25293:25296] CHIP:EM: <<< [E:48112i S:14345 M:169402303 (Ack:191965695)] (S) Msg TX to 1:0000000012344321 [78FC] --- Type 0000:10 (SecureChannel:StandaloneAck)
[1688734255.930737][25293:25296] CHIP:IN: (S) Sending msg 169402303 on secure session with LSID: 14345
[MatterTest] 07-07 18:20:55.931 ERROR Exception occurred in test_TC_TIMESYNC_2_5.
Traceback (most recent call last):
  File "/home/grl/Master/connectedhomeip/build-env/lib/python3.10/site-packages/mobly/base_test.py", line 783, in exec_one_test
    test_method()
  File "/home/grl/Master/connectedhomeip/src/python_testing/matter_testing_support.py", line 935, in async_runner
    return asyncio.run(body(*args, **kwargs))
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
    return future.result()
  File "/home/grl/Master/connectedhomeip/src/python_testing/TC_TIMESYNC_2_5.py", line 161, in test_TC_TIMESYNC_2_5
    asserts.assert_equal(dut_dst, dst)
  File "/home/grl/Master/connectedhomeip/build-env/lib/python3.10/site-packages/mobly/asserts.py", line 68, in assert_equal
    _call_unittest_assertion(_pyunit_proxy.assertEqual,
  File "/home/grl/Master/connectedhomeip/build-env/lib/python3.10/site-packages/mobly/asserts.py", line 52, in _call_unittest_assertion
    raise signals.TestFailure(my_msg, extras=extras)
mobly.signals.TestFailure: Details=Lists differ: [] != [TimeSynchronization.Structs.DSTOffsetStru[191 chars]0.0)]

Second list contains 2 additional elements.
First extra element 0:
TimeSynchronization.Structs.DSTOffsetStruct(offset=3600, validStarting=15770000000000.0, validUntil=31560000000000.0)

- []
+ [DSTOffsetStruct(offset=3600,
+                  validStarting=15770000000000.0,
+                  validUntil=31560000000000.0),
+  DSTOffsetStruct(offset=3600,
+                  validStarting=47330000000000.0,
+                  validUntil=63120000000000.0)], Extras=None
[MatterTest] 07-07 18:20:55.932 INFO [Test] test_TC_TIMESYNC_2_5 FAIL
[MatterTest] 07-07 18:20:55.934 INFO Summary for test class TC_TIMESYNC_2_5: Error 0, Executed 1, Failed 1, Passed 0, Requested 1, Skipped 0
[MatterTest] 07-07 18:20:55.934 INFO Summary for test run MatterTest@07-07-2023_18-20-52-661:
Total time elapsed 3.2729316250006377s
Artifacts are saved in "/tmp/matter_testing/logs/MatterTest/07-07-2023_18-20-52-661"
Test summary saved in "/tmp/matter_testing/logs/MatterTest/07-07-2023_18-20-52-661/test_summary.yaml"
Test results: Error 0, Executed 2, Failed 1, Passed 1, Requested 2, Skipped 0

PFA logs below
TC-TIMESYNC-2.5.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cert blocker needs triage time sync Implementation of the Time Synchronization cluster
Projects
Archived in project
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants