-
Notifications
You must be signed in to change notification settings - Fork 38
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
Brubeck Client for Browser #244
Merged
Merged
Conversation
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
… emit different content to the same name'.
… more precision about what goes into browser builds.
github-actions
bot
added
broker
Related to Broker Package
ci
Related to CI configuration
client
Related to Client Package
network
Related to Network Package
labels
Oct 11, 2021
timoxley
force-pushed
the
NET-542-brubeck-client-browser
branch
from
October 11, 2021 19:02
3f33f94
to
3964c44
Compare
timoxley
force-pushed
the
NET-542-brubeck-client-browser
branch
from
October 11, 2021 19:04
3964c44
to
db2e155
Compare
* main: ci(broker): rm extranous test-sequential run (#246)
github-actions
bot
added
cli-tools
Related to CLI Tools Package
dev-config
protocol
Related to Protocol Package
test-utils
Related to Test Utils Package
labels
Oct 13, 2021
timoxley
force-pushed
the
NET-542-brubeck-client-browser
branch
5 times, most recently
from
November 18, 2021 04:02
b33bd31
to
ca577cb
Compare
…scriberResendsSequential. Setup: Publishes 5 messages, waits until they’re stored by polling /last endpoint. Stores list of published messages. Test: Ask for resend + subscribe Publish a message. Add this to the list of published messages. Wait until we get the resent messages + the new message. After test: Wait for last message to be stored before proceeding to next test. The old messages plus the new message now become what we expect to get from the resend. Repeat test 4x What (usually) happens: First test succeeds Second test fails Other tests usually succeed, but occasionally fail. I suspected this was related to the storage node being unassigned then reassigned, but I fixed that and I still saw the issue. Failure only ever occurs in the “after test” phase, when it’s waiting for the last message to land in storage. Increasing the “wait for storage” timeout doesn’t help. Curiously, this message will usually appear in the resent data once the test starts. I logged when messages were hitting storage and the missing message wasn’t being stored until after the “wait for last” step times out. If I increase the timeout, the message takes longer to store. What’s happening is that the message isn’t being propagated from the node to storage until the next test starts. When the client finishes the resend, and sees it has no further subscriptions, it unsubscribes the node from the stream before the message was propagated. In the test, the publisher node is the subscriber so the client is immediately passed the realtime message. The test is "fixed" by making the publisher and subscriber different nodes. Underlying problem is that the node unsubscribes before it propagates messages.
timoxley
force-pushed
the
NET-542-brubeck-client-browser
branch
from
November 19, 2021 16:50
43b924d
to
0b7e07f
Compare
timoxley
force-pushed
the
NET-542-brubeck-client-browser
branch
from
November 19, 2021 18:37
314d4b1
to
b52e64e
Compare
timoxley
force-pushed
the
NET-542-brubeck-client-browser
branch
from
November 19, 2021 18:47
b52e64e
to
6b51665
Compare
timoxley
force-pushed
the
NET-542-brubeck-client-browser
branch
from
November 19, 2021 20:45
a2be0d5
to
70466a9
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
broker
Related to Broker Package
ci
Related to CI configuration
cli-tools
Related to CLI Tools Package
client
Related to Client Package
cross-client-testing
Related to cross-client testing package
dev-config
docs
network
Related to Network Package
protocol
Related to Protocol Package
test-utils
Related to Test Utils Package
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.
Adds support for browser builds of client.
Now you have to
import … from ../../src/file
instead ofimport … from ../../file
Improved bundling process and reduced size
ethersproject/*
packages. This reduces bundle size.Improved bootstrap time: 1m30s to 12s
tsc --build
mode. https://www.typescriptlang.org/docs/handbook/project-references.htmlAlso Note
Some diff noise due to reverting some merges from mainReverted those reverts.New Updates