Skip to content

Conversation

@llucax
Copy link
Contributor

@llucax llucax commented Nov 24, 2023

  • Clear release notes
  • Add test for reset() while a timer is being waited on
  • Fix reseting the timer while it is being waited on
  • Update the release notes
  • Fix typo in comment

Fixes #242.

Signed-off-by: Leandro Lucarella <[email protected]>
@llucax llucax requested a review from a team as a code owner November 24, 2023 11:19
@llucax llucax requested a review from Marenz November 24, 2023 11:19
@llucax llucax self-assigned this Nov 24, 2023
@github-actions github-actions bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:core Affects the core types (`Sender`, `Receiver`, exceptions, etc.) labels Nov 24, 2023
@llucax llucax added this to the v0.16.1 milestone Nov 24, 2023
This test needs to be an integration test because async-solipsism would
make any sleep return immediately, so we wouldn't have a way to do the
reset while the timer is being waited on.

Signed-off-by: Leandro Lucarella <[email protected]>
If the timer was reset while it was being waited on, the next tick time
was not recalculated and the timer would wait for the original time
instead of the new one.

Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
Copy link
Contributor

@daniel-zullo-frequenz daniel-zullo-frequenz left a comment

Choose a reason for hiding this comment

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

LGTM, I'm happy to approve it as there is only a typo, please just let me know

@llucax llucax linked an issue Nov 30, 2023 that may be closed by this pull request
Co-authored-by: daniel-zullo-frequenz <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
@llucax
Copy link
Contributor Author

llucax commented Nov 30, 2023

OK, I accepted the suggestion, now we need to forwardport the fix of the backported fix 🤣

@llucax llucax merged commit 54721a8 into frequenz-floss:v0.16.x Nov 30, 2023
@llucax llucax deleted the fix-timer-reset branch November 30, 2023 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:core Affects the core types (`Sender`, `Receiver`, exceptions, etc.) part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backport timer reset() fix to v0.16

2 participants