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

refs #PMP2-278 Applied the following changes: #98

Merged
merged 4 commits into from
Sep 10, 2024

Conversation

FlorentP42
Copy link

  • Removed all messages waiting to be sent to the HNZ device when connection is lost.
  • Ensured that no message received addressed to the HNZ device while connection is not established will be buffered.
  • Improved log messages displayed when an information message is rejected.
  • Added unit test for this new behavior.

@FlorentP42 FlorentP42 marked this pull request as ready for review September 6, 2024 11:44
@Aeredren
Copy link
Contributor

Aeredren commented Sep 6, 2024

Sonar still report a lot of duplicate line in hnzpath but appart from that, I let Yannick merge if he deemed it ready

@FlorentP42
Copy link
Author

FlorentP42 commented Sep 6, 2024

Sadly the global coverage is quite low due to this issue with branch coverage that cannot really be solved unless we change the tools we are working with: https://stackoverflow.com/questions/42003783/lcov-gcov-branch-coverage-with-c-producing-branches-all-over-the-place
About duplication it appears to be related to already existing blocks of "duplicated" code (very similar but not totally equal) that were slightly modified during this ticket, not sure how we should treat those cases.
EDIT: After discussing it internally, I will refactor the code to avoid this duplication.

Florent Peyrusse added 3 commits September 9, 2024 13:44
* Removed all messages waiting to be sent to the HNZ device when connection is lost.
* Ensured that no message received addressed to the HNZ device while connection is not established will be buffered.
* Improved log messages displayed when an information message is rejected.
* Added unit test for this new behavior.

Signed-off-by: Florent Peyrusse <[email protected]>
@FlorentP42 FlorentP42 force-pushed the PMP2-278-Remove-TC-bufferisation branch from cebdba8 to 0360875 Compare September 9, 2024 11:45
@FlorentP42 FlorentP42 marked this pull request as draft September 9, 2024 15:40
@FlorentP42 FlorentP42 marked this pull request as ready for review September 9, 2024 15:45
Copy link

sonarqubecloud bot commented Sep 9, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
49.7% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@YmaIneo YmaIneo merged commit 4e64287 into develop Sep 10, 2024
3 of 4 checks passed
@YmaIneo YmaIneo deleted the PMP2-278-Remove-TC-bufferisation branch September 10, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants