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

chore: revert "feat: allow option set agent replica time" #935

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

dfx-json
Copy link
Contributor

@dfx-json dfx-json commented Sep 27, 2024

Reverts #923 due to a number of issues being reported

https://forum.dfinity.org/t/ingress-expiry-issue-your-input-needed/35609/2?u=peterparker

https://forum.dfinity.org/t/ingress-expiry-not-within-expected-range-error/35456/23?u=peterparker

https://forum.dfinity.org/t/frontend-canister-deployment-failing-for-ic-mainnet-timing-out/35378

Essentially, the agent attempts to reconcile the system time with the certified subnet time in order to compute the ingress_expiry to send along with the request. This PR reverts any attempt to reconcile the differences while the team develops an approach that can allow agents to obtain the subnet time safely, without first making a certified read state call. More to come on this.

@dfx-json dfx-json requested a review from a team as a code owner September 27, 2024 23:01
@dfx-json dfx-json changed the title Revert "feat: allow option set agent replica time" chore: revert "feat: allow option set agent replica time" Sep 27, 2024
Copy link
Contributor

github-actions bot commented Sep 27, 2024

size-limit report 📦

Path Size
@dfinity/agent 85.96 KB (-0.42% 🔽)
@dfinity/candid 13.58 KB (0%)
@dfinity/principal 4.97 KB (0%)
@dfinity/auth-client 60.36 KB (-0.1% 🔽)
@dfinity/assets 81.01 KB (-0.19% 🔽)
@dfinity/identity 57.56 KB (-0.16% 🔽)
@dfinity/identity-secp256k1 131.14 KB (-0.57% 🔽)

@dfx-json dfx-json merged commit fafdfa7 into main Sep 30, 2024
16 of 17 checks passed
@dfx-json dfx-json deleted the revert-923-kai/sync-time branch September 30, 2024 00:00
peterpeterparker added a commit to dfinity/ic-js that referenced this pull request Sep 30, 2024
# Motivation

Agent-js has been patched because the community has started frequently
encountered issues with "ingress expiry time" error messages. To help
the community adopt this version, we need to incorporate it into ic-js.

# Notes

- Currently the ic-js released version use v2.0.0.

- The patch of Agent-js consists of reverting a PR
dfinity/agent-js#935. A suggested them to add a
description. Meanwhile conversation on
[Slack](https://dfinity.slack.com/archives/C020G13AS4F/p1727430471252989).

# Changes

- `npm run update:agent`

---------

Signed-off-by: David Dal Busco <[email protected]>
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.

2 participants