-
Notifications
You must be signed in to change notification settings - Fork 665
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
refactor: Integrate extracted and published near-account-id #10019
Conversation
@ruseinov Do NOT mark this PR ready for review until near-account-id 1.0 is released. This PR is not going to be merged with a git dependency. |
Sounds good! |
@ruseinov I see that CI still fails, please, take a closer look (I see that some of the recently merged PRs also had some CI checks failed, but fewer than in this PR) |
Yep, some of those are confusing, looking into it. |
@frol I've made some fixes, but the workflows need to be approved every single time it seems :/ The upgradable stuff that fails seems to do so, because it's flaky. Sometimes it is green, sometimes it is not. |
I didn't see "upgradable" succeeding recently for this PR. I re-run it locally: nearcore/.buildkite/pipeline.yml Lines 68 to 73 in 7c0b58f
And I get the following error in
That is borsh deserialization error that happens when there is more data than the struct needs to be fully deserialized. I cannot think of what can be wrong here, but it seems that the root cause is that the node from this PR serializes data that cannot be deserialized by 1.35.0 release. I still fail to see what could have gone wrong here. |
Hmmm, I tried running the test from |
Will check it out. |
@ruseinov It seems it was either a glitch or it has been fixed by some other PR merged to master somehow, but "upgradable" CI passes now. |
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.
The change looks good to me, and it seems that the test that was blocking us is reproducible on master branch as well (the most recent commit to master failed with the same error as this PR used to, and this PR passes that test now with no changes made to address [or cause] that issue).
In order to avoid merge conflicts, I suggest we merge this change sooner rather later, so let's use 1.0.0-alpha.1 version, and once we update near-sdk-rs with it, I will just 1.0.0 release and submit a small PR bumping the version.
The author should click the re-request button to re-request a review. While we're at it, let me do more review begging. Please take a look at near/NEPs#514 |
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.
Changes:
- Replace near-account-id with an external crate
- Simplify calls to AccountIdRef::as_ref()
- Simplify parsing of AccountId
All of them look good and improve readability.
@@ -174,7 +172,7 @@ lru = "0.7.2" | |||
memmap2 = "0.5" | |||
memoffset = "0.8" | |||
more-asserts = "0.2" | |||
near-account-id = { path = "core/account-id", features = ["internal_unstable"] } | |||
near-account-id = { version = "1.0.0-alpha.1", features = ["internal_unstable", "serde", "borsh"] } |
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.
Checked that the crate exists.
https://docs.rs/crate/near-account-id/1.0.0-alpha.1
This PR supersedes #10001
Some context: #10001 (comment)
Part of: near/near-account-id-rs#5