Skip to content

Conversation

fkjagodzinski
Copy link
Member

@fkjagodzinski fkjagodzinski commented Jun 14, 2019

Description

Relax the timing requirements for watchdog according to #8857 (comment):

  • The watchdog should trigger at or after the timeout value.
  • The watchdog should trigger before twice the timeout value.

Fixes #8857

Docs update in ARMmbed/mbed-os-5-docs#1088

NOTE: Marking this as a draft -- we should wait until #10777 is merged.

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[x] Test update
[ ] Breaking change

Reviewers

@c1728p9 @rajkan01 @jamesbeyond

Release Notes

@ciarmcom ciarmcom requested review from a team, c1728p9, jamesbeyond and rajkan01 June 14, 2019 15:00
@ciarmcom
Copy link
Member

@fkjagodzinski, thank you for your changes.
@jamesbeyond @c1728p9 @rajkan01 @ARMmbed/mbed-os-maintainers please review.

Filip Jagodzinski added 6 commits June 18, 2019 16:55
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.
Remove explicit calls to sleep.
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.

Use a SERIAL_FLUSH_TIME_MS value consistent with other tests.
@fkjagodzinski fkjagodzinski force-pushed the test_update-watchdog branch from ad3dab1 to c1f183b Compare June 18, 2019 14:56
@adbridge adbridge requested review from bulislaw and evedon and removed request for rajkan01 June 20, 2019 15:51
@adbridge
Copy link
Contributor

@bulislaw @evedon could you please take a look?

Copy link
Member

@bulislaw bulislaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good.
Not related to this PR @mprse @jamesbeyond I noticed that watchdog HAL heather doesn't follow standard of other updated HAL APIs with listing defined and undefined behaviours (like here https://github.com/ARMmbed/mbed-os/blob/master/hal/sleep_api.h) could you copy it from the docs to the header to match other updated ones.

Add a SPDX license identifier.
Add defined & undefined behavior.
@fkjagodzinski
Copy link
Member Author

@bulislaw thanks for the review; I updated the header as requested.

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 25, 2019

Ci started to move this forward

@mbed-ci
Copy link

mbed-ci commented Jun 25, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 removed the needs: CI label Jun 26, 2019
@0xc0170 0xc0170 merged commit a33536e into ARMmbed:feature-watchdog Jun 26, 2019
@fkjagodzinski fkjagodzinski deleted the test_update-watchdog branch July 9, 2019 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants