-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[vm-rewrite] Rootless linkage #20916
base: cgswords/vm-tracing
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
32edf06
to
3f841af
Compare
@@ -411,7 +411,6 @@ impl OnDiskStateView { | |||
"Found circular dependencies during dependency generation." | |||
); | |||
let linkage_context = LinkageContext::new( | |||
*package_address, |
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.
Don't we need to add this to all_dependencies
?
.get(&sender) | ||
.copied() | ||
.unwrap_or(sender), | ||
) |
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.
This seems dubious: if this package is not in the linkage, shouldn't it be an error?
.iter() | ||
.find_map(|(k, v)| { | ||
if *v == self.package_id { | ||
Some(*k) | ||
} else { | ||
None | ||
} | ||
}) | ||
.expect("address not found in linkage table") | ||
} |
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.
Copliot, nooooo!
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.
I have a few real questions, plus a few small suggestions. LMK if you want a re-review or something later.
## Description Update how we handle deserialization errors so they maintain their specificity. Also updates a bad merge. ## Test plan CI --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] gRPC: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK:
Description
Two commits:
HashMap
for linkage to aBTreeMap
(for determinism purposes/paranoia). This transformation is pretty mechanical.root_package
from the linkage context, as in the new linkage story this does not make much sense.Test plan
Make sure existing tests pass.
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.