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

wasmtime: add caching of executables and artifacts #11532

Merged
merged 4 commits into from
Jun 19, 2024

Conversation

nagisa
Copy link
Collaborator

@nagisa nagisa commented Jun 10, 2024

This largely mirrors the code in near_vm_runner module. I heard some
people pondering what it would be like to use a higher quality backend.
Outside LLVM, Cranelift is by far the next in line in produced code
quality. Since we already have wasmtime in place, might as well wire it
up completely for a full experience.

Based on top of #11529
Part of #11319

@nagisa nagisa requested a review from a team as a code owner June 10, 2024 12:59
@nagisa nagisa requested a review from tayfunelmas June 10, 2024 12:59
Copy link
Contributor

@tayfunelmas tayfunelmas left a comment

Choose a reason for hiding this comment

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

LGTM

@nagisa nagisa enabled auto-merge June 13, 2024 08:43
@nagisa nagisa force-pushed the implements-wasmtime-caching branch from 9feb04b to 0c434e6 Compare June 18, 2024 13:26
nagisa added 4 commits June 19, 2024 13:43
This largely mirrors the code in near_vm_runner module. I heard some
people pondering what it would be like to use a higher quality backend.
Outside LLVM, Cranelift is by far the next in line in produced code
quality. Since we already have wasmtime in place, might as well wire it
up completely for a full experience.
@nagisa nagisa force-pushed the implements-wasmtime-caching branch from 0c434e6 to aeb4c6d Compare June 19, 2024 11:10
@nagisa nagisa added this pull request to the merge queue Jun 19, 2024
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

Attention: Patch coverage is 73.28767% with 39 lines in your changes missing coverage. Please review.

Project coverage is 71.47%. Comparing base (5251bd9) to head (aeb4c6d).

Files Patch % Lines
runtime/near-vm-runner/src/wasmtime_runner.rs 75.35% 27 Missing and 8 partials ⚠️
runtime/near-vm-runner/src/logic/errors.rs 0.00% 2 Missing ⚠️
...untime/near-vm-runner/src/near_vm_runner/runner.rs 0.00% 1 Missing ⚠️
runtime/runtime/src/conversions.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11532      +/-   ##
==========================================
- Coverage   71.47%   71.47%   -0.01%     
==========================================
  Files         788      788              
  Lines      160774   160854      +80     
  Branches   160774   160854      +80     
==========================================
+ Hits       114919   114976      +57     
- Misses      40842    40856      +14     
- Partials     5013     5022       +9     
Flag Coverage Δ
backward-compatibility 0.23% <0.00%> (-0.01%) ⬇️
db-migration 0.23% <0.00%> (-0.01%) ⬇️
genesis-check 1.35% <0.00%> (-0.01%) ⬇️
integration-tests 37.68% <0.00%> (+<0.01%) ⬆️
linux 68.89% <73.28%> (-0.02%) ⬇️
linux-nightly 70.97% <73.28%> (+0.01%) ⬆️
macos 50.97% <73.79%> (-1.51%) ⬇️
pytests 1.59% <0.00%> (-0.01%) ⬇️
sanity-checks 1.38% <0.00%> (-0.01%) ⬇️
unittests 66.14% <73.28%> (+<0.01%) ⬆️
upgradability 0.28% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Merged via the queue into near:master with commit 872ac5c Jun 19, 2024
28 of 30 checks passed
@nagisa nagisa deleted the implements-wasmtime-caching branch June 19, 2024 11:46
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