Skip to content

Commit

Permalink
Remove flaky test from list now that delay is added (#25256)
Browse files Browse the repository at this point in the history
* Remove flaky test from list now that delay is added

* Fix CI

* Fix CI

* Address PR comments

* Address PR comments

* Fix formatting

* Change to delay as per Chaitanya's comments

* Restyle
  • Loading branch information
tehampson authored Mar 1, 2023
1 parent e434c6a commit e0ce9e0
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 26 deletions.
10 changes: 6 additions & 4 deletions scripts/tests/chiptest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ def _GetManualTests() -> Set[str]:


def _GetFlakyTests() -> Set[str]:
"""List of flaky tests, ideally this list should become empty."""
return {
"Test_TC_OO_2_4.yaml"
}
"""List of flaky tests.
While this list is empty, it remains here in case we need to quickly add a new test
that is flaky.
"""
return set()


def _GetSlowTests() -> Set[str]:
Expand Down
19 changes: 19 additions & 0 deletions src/app/tests/suites/certification/Test_TC_OO_2_4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,25 @@ tests:
PICS: OO.S.C00.Rsp
command: "Off"

# We get an acknowledgment that the command off above is received, but it takes
# a few milliseconds for the off command to actually turn it off. Without this
# delay the preceding reboot command might happen before the command is fully
# processed resulting in flaky test failure that comes from the readAddribute
# verification after the reboot.
# TODO once https://github.com/CHIP-Specifications/chip-test-plans/pull/2464 is
# merged, change this command to a readAtribute and update PICS code to
# OO.S.A0000. PR is blocked from being merged at this time due to freeze for
# SVE. Likely after March 17th, 2023 this PR can be merged and associated
# changes made here to officially fix the flake discovered by CI.
- label: "Wait for send Off command to take affect"
PICS: PICS_SDK_CI_ONLY
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 10

- label: "Reboot target device"
PICS: PICS_SDK_CI_ONLY
cluster: "SystemCommands"
Expand Down
28 changes: 20 additions & 8 deletions zzz_generated/chip-tool/zap-generated/test/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 33 additions & 14 deletions zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e0ce9e0

Please sign in to comment.