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

fix(core)!: do not request ping res for connection #527

Conversation

TimoGlastra
Copy link
Contributor

@TimoGlastra TimoGlastra commented Nov 7, 2021

BREAKING CHANGE: a trust ping response will not be requested anymore after completing a connection. This is not required, and also non-standard behaviour. It was also causing some tests to be flaky as response messages were stil being sent after one of the agents had already shut down.

Signed-off-by: Timo Glastra timo@animo.id

Maintainers: Before merging and squashing make sure to copy the BREAKING CHANGE entry to the commit message field, this is needed for automatic tracking of breaking changes

Fixes #515

BREAKING CHANGE: a trust ping response will not be requested anymore after completing a connection. This is not required, and also non-standard behaviour. It was also causing some tests to be flaky as response messages were stil being sent after one of the agents had already shut down.

Signed-off-by: Timo Glastra <timo@animo.id>
@TimoGlastra TimoGlastra requested a review from a team as a code owner November 7, 2021 15:28
@TimoGlastra
Copy link
Contributor Author

@JamesKEbert this has some overlap with the changes in #458 but is only adding the responseRequested property to not request a trust ping response after creating a connection. There is a flaky tests that errors often because a trust ping response is sent after the tests has already been finished. This seemed like the easiest (and correct way) to fix it.

@TimoGlastra TimoGlastra marked this pull request as draft November 7, 2021 15:30
@TimoGlastra TimoGlastra linked an issue Nov 7, 2021 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2021

Codecov Report

Merging #527 (02a7a55) into main (5e9a641) will decrease coverage by 0.20%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #527      +/-   ##
==========================================
- Coverage   86.27%   86.06%   -0.21%     
==========================================
  Files         266      266              
  Lines        5762     5762              
  Branches      931      932       +1     
==========================================
- Hits         4971     4959      -12     
- Misses        790      802      +12     
  Partials        1        1              
Impacted Files Coverage Δ
.../core/src/modules/connections/ConnectionsModule.ts 73.80% <0.00%> (ø)
...ckages/core/src/modules/routing/RecipientModule.ts 63.35% <0.00%> (ø)
.../connections/handlers/ConnectionResponseHandler.ts 100.00% <100.00%> (ø)
.../modules/connections/services/ConnectionService.ts 95.87% <100.00%> (ø)
...s/connections/messages/TrustPingResponseMessage.ts 42.85% <0.00%> (-50.00%) ⬇️
...c/modules/connections/services/TrustPingService.ts 66.66% <0.00%> (-33.34%) ⬇️
...ctions/handlers/TrustPingResponseMessageHandler.ts 71.42% <0.00%> (-28.58%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e9a641...02a7a55. Read the comment docs.

@TimoGlastra TimoGlastra marked this pull request as ready for review November 7, 2021 15:40
@TimoGlastra TimoGlastra merged commit 3db5519 into openwallet-foundation:main Nov 8, 2021
@TimoGlastra TimoGlastra deleted the do-not-request-response-to-complete-connection branch March 10, 2022 20:35
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.

Flakiness in tests
3 participants