-
Notifications
You must be signed in to change notification settings - Fork 141
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
Upgrade agent-js #2446
Upgrade agent-js #2446
Conversation
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.
Thanks!
This PR upgrades `agent-js` to the latest version because it includes an improvement to the errors thrown when failing to decode cbor.
If interesting, in ic-js I did not upgraded yet agent-js because an issue was reported: I asked @krpeacock if the related patch would be merged soon but, it seems to not have been patched yet so, I'm still waiting. Don't know though if the issue is a blocker or a race condition in some particular use case. |
@peterpeterparker: Thanks for your input. I'll merge this and then set the retry count to 10 in the agent, which seems to fix this (albeit in an inelegant way). |
This PR configures the number of retries to 10 (as opposed to just 3, which is the default). This makes the agent more resilient against watermark check failures, because the likelihood of hitting only replicas that are behind gets lowered a lot and retrying takes time too. Addresses [this comment](#2446 (comment)).
Configure up to 10 retries on agnet failure This PR configures the number of retries to 10 (as opposed to just 3, which is the default). This makes the agent more resilient against watermark check failures, because the likelihood of hitting only replicas that are behind gets lowered a lot and retrying takes time too. Addresses [this comment](#2446 (comment)).
Yeah, it's taken me longer than I intended, and I still don't have it working against prod. Having the conference come up didn't help either |
# Motivation The migration to pure JS BLS verification in agent-js v1.2.0 has a notable impact on bundle size (roughly -15% according [forum post](https://forum.dfinity.org/t/agent-js-1-2-0-is-released/28881/2?u=peterparker)). Therefore it makes sense to promote those changes. # Notes To prevent the issue reported on the [forum](https://forum.dfinity.org/t/timestamp-failed-to-pass-the-watermark-after-retrying-the-configured-3-times/29180/3?u=peterparker) to happen, the number of retry for the agent has been set to 10 similiar has what was done in II (see [PR](dfinity/internet-identity#2446)) # Changes - `npm run update:agent` - set number of retry to 10 and expose a parameter to tweak the value if required
This PR upgrades
agent-js
to the latest version because it includes an improvement to the errors thrown when failing to decode cbor.🟡 Some screens were changed