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

extract VM trait to it's own crate #1343

Merged
merged 4 commits into from
Jul 31, 2023
Merged

extract VM trait to it's own crate #1343

merged 4 commits into from
Jul 31, 2023

Conversation

alexytsu
Copy link
Contributor

@alexytsu alexytsu commented Jul 27, 2023

#1327

No code changes are made in this PR apart from a relocation of the shared VM trait and associated utils/types into a separate crate.

@codecov-commenter
Copy link

codecov-commenter commented Jul 27, 2023

Codecov Report

Merging #1343 (b1ee35d) into master (1b282d4) will decrease coverage by 6.71%.
The diff coverage is 88.41%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1343      +/-   ##
==========================================
- Coverage   90.75%   84.04%   -6.71%     
==========================================
  Files         139      143       +4     
  Lines       27343    29264    +1921     
==========================================
- Hits        24814    24596     -218     
- Misses       2529     4668    +2139     
Files Changed Coverage Δ
test_vm/src/deals.rs 100.00% <ø> (ø)
test_vm/src/expects.rs 95.73% <ø> (ø)
vm_api/src/error.rs 0.00% <0.00%> (ø)
vm_api/src/trace.rs 84.93% <ø> (ø)
vm_api/src/util/blockstore.rs 100.00% <ø> (ø)
vm_api/src/lib.rs 91.66% <50.00%> (ø)
test_vm/src/util/mod.rs 7.13% <53.33%> (-92.29%) ⬇️
test_vm/src/lib.rs 26.04% <64.65%> (-56.19%) ⬇️
test_vm/src/messaging.rs 75.47% <75.47%> (ø)
test_vm/src/util/workflows.rs 99.32% <99.32%> (ø)
... and 1 more

... and 9 files with indirect coverage changes


use cid::Cid;
use fil_actors_runtime::runtime::{builtins::Type, Primitives};
// TODO: drop the dependency on fil_actors_runtime and have a suitable replacement abstraction here
pub use fil_actors_runtime::runtime::{builtins::Type, Primitives};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The VM just uses a u32. That might be sufficient here.
For Primitives maybe we need a new trait which will duplciate that, but also add in the externs. Basically the stuff thatneeds to be injected into any VM from the outside.

Please file an issue for the TODO and reference it here. I trust you'll follow up shortly here.

@anorth anorth mentioned this pull request Jul 30, 2023
Base automatically changed from alexytsu/update-vm-trait to master July 31, 2023 01:42
@alexytsu alexytsu enabled auto-merge July 31, 2023 02:45
@alexytsu alexytsu added this pull request to the merge queue Jul 31, 2023
Merged via the queue into master with commit ae4fa9a Jul 31, 2023
13 checks passed
@alexytsu alexytsu deleted the alexytsu/export-test-vm branch July 31, 2023 04:24
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.

3 participants