-
Notifications
You must be signed in to change notification settings - Fork 730
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: connection robustness and flaky tests #5515
Merged
Merged
Changes from all commits
Commits
Show all changes
98 commits
Select commit
Hold shift + click to select a range
54e478d
fix: 1CA tests flakiness
ganchoradkov f49c793
feat: cache result of expiring promise
ganchoradkov c6d40c3
fix: relayer to do only single connection attempt at a time
ganchoradkov d919e6e
refactor: network drop test
ganchoradkov 16e9b26
feat: adds 5 time retry to connect
ganchoradkov 9d50cfc
refactor: compare arrays before rejecting
ganchoradkov f1849ae
chore: prettier
ganchoradkov 962bc89
refactor: subscribes via rpc call or pending list
ganchoradkov 0646193
refactor: increase test throttle
ganchoradkov df95abb
chore: log fatal error
ganchoradkov 7672b13
chore: log batch subscribe
ganchoradkov 51d05cc
chore: handle transport stall error
ganchoradkov 1457c18
refactor: relayer tests
ganchoradkov 8090e07
chore: logs
ganchoradkov a39c6e4
chore: log result
ganchoradkov 650a211
chore: more logs
ganchoradkov d02b5d4
fix: relayer publish
ganchoradkov a73778a
chore: rm unused var
ganchoradkov 99ac3ad
chore: rm socket stall listener
ganchoradkov 461b56f
refactor: subscriber start
ganchoradkov 8bdc9c3
chore: log rpcSubscribe result
ganchoradkov 7422e9b
fix: pending subscriber queue
ganchoradkov e3abdcb
fix: check cached on heartbeat
ganchoradkov 26cd856
refactor: use pending.size
ganchoradkov b77cad3
feat: restart transport if pending subs fail a few times
ganchoradkov 59aef56
fix: remove from attempts on successful sub
ganchoradkov ea2c483
refactor: publisher queue
ganchoradkov 96c116d
chore: rm logss
ganchoradkov dd0dadf
chore: reduce connect timeout to 15s
ganchoradkov 5197f32
chore: comment out
ganchoradkov f18ef8c
refactor: create new providers
ganchoradkov e8aa2fb
refactor: catch publish err
ganchoradkov f2179cf
refactor: increase connect timeout to 15s
ganchoradkov 446e19e
fix: 15s
ganchoradkov c62c445
chore: log client attempts
ganchoradkov a4aaa22
chore: log successful attempt
ganchoradkov 3ba195d
chore: log connect state
ganchoradkov 0e69447
fix: lint
ganchoradkov 8061869
chore: logs
ganchoradkov df3d007
chore: custom core logger name
ganchoradkov 844df23
refactor: publish logic
ganchoradkov d0f7326
refactor: reqInFlight
ganchoradkov f284858
refactor: request attempt limit
ganchoradkov 8500f8e
refactor: wraps request in a promise
ganchoradkov 2e61424
refactor: publisher track attempts
ganchoradkov 2c2f298
refactor: await .request
ganchoradkov 4ec834a
refactor: reconnection
ganchoradkov 7b372f7
chore: log ping timeout
ganchoradkov 62a2350
refactor: delay subscribe after connection
ganchoradkov dff6ade
chore: disable multi threading
ganchoradkov c554e14
refactor: publishing
ganchoradkov 2096ebc
chore: skip rejection tags & web3wallet tests
ganchoradkov ac5d8a0
chore: skip tests
ganchoradkov 18fb537
chore: reenable threading
ganchoradkov 190c0bb
chore: rm comments
ganchoradkov ddc1144
fix: core persistence tests
ganchoradkov e8bfeea
chore: reenable skipped tests
ganchoradkov bb4eb19
chore: skip tests
ganchoradkov f827d24
chore: cleanup
ganchoradkov d11e623
fix: batch fetch messages
ganchoradkov d9f2253
chore: enable multi threads testing
ganchoradkov a51d034
refactor: await before emitting batch subscribe
ganchoradkov c07653d
chore: debug logs
ganchoradkov e1b4528
fix: promise handling
ganchoradkov 843252f
fix: tests
ganchoradkov 33cf401
chore: skip tests
ganchoradkov d8e589d
chore: log requests being sent
ganchoradkov e97635a
chore: log ignored message events
ganchoradkov 9c569f2
chore: double check shouldIgnoreMessages
ganchoradkov 8b3c71e
refactor: double check before ignoring a message
ganchoradkov 94126b5
chore: awaits respond to request
ganchoradkov c2a910d
refactor: test
ganchoradkov c3881a8
chore: reenable tests
ganchoradkov 5481d04
chore: log publisher queuue
ganchoradkov b3ca5f4
chore: log
ganchoradkov a674347
refactor: fetch batch messages on batch subscribe
ganchoradkov 2040a43
Merge pull request #5514 from WalletConnect/fix/1ca-test-flakiness
ganchoradkov 0d27ca5
chore: log sent/received requests
ganchoradkov 0714e73
chore: fix logs
ganchoradkov 621c2c6
chore: fix tests
ganchoradkov fd6c479
chore: disable batch fetch messages
ganchoradkov 3b8b57e
refactor: disable fetch batch messages
ganchoradkov 767664d
refactor: optimistic subscribe
ganchoradkov 7ff9611
refactor: subscriber restart
ganchoradkov e48bc9f
chore: rm restartPromise await
ganchoradkov 5334c60
refactor: subscriber start as part of connect flow
ganchoradkov c0fe4cc
refactor: awaits subscriber on connect
ganchoradkov 6da2602
chore: throwing err after few attempts
ganchoradkov 4147fd4
chore: comment out
ganchoradkov c4f23aa
chore: only log failed runs
ganchoradkov 8572e46
chore: cleanup
ganchoradkov b6031b9
Merge branch 'v2.0' into fix/single-connection
ganchoradkov e26ccae
refactor: replaces magic number with variable and adds promise
ganchoradkov f545653
Merge branch 'fix/single-connection' of github.com:WalletConnect/wall…
ganchoradkov 3e93bcf
chore: log error msg
ganchoradkov 097d64c
refactor: uses utils for timeout
ganchoradkov 799ddcf
chore: catch failed requests in tests
ganchoradkov cfb6723
refactor: async usage
ganchoradkov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not directly related to this PR but
createExpiringPromise
could usePromise.race
to be simplified and avoid potential race conditions.This approach eliminates the need for manual
clearTimeout
calls because once the Promise settles, the other Promise in the race is ignored, and the timer will be garbage collected.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will test it out duing tech debt week