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

vm: simplify calculation of entrypoint index #11365

Merged
merged 1 commit into from
May 22, 2024

Conversation

nagisa
Copy link
Collaborator

@nagisa nagisa commented May 21, 2024

This was a headscratcher to me as I ended up with the two blocks in the same area and the Err branch in the 2nd block seemed unreachable to me (and there were not any side-effects in between.) At first I thought that maybe this is a holdover from wasmer2 times, but it is the same there!

@nagisa nagisa requested a review from Ekleog-NEAR May 21, 2024 12:19
@nagisa nagisa requested a review from a team as a code owner May 21, 2024 12:19
Copy link

codecov bot commented May 21, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 71.17%. Comparing base (fc6b1cf) to head (11d62e9).
Report is 13 commits behind head on master.

Files Patch % Lines
...untime/near-vm-runner/src/near_vm_runner/runner.rs 83.33% 0 Missing and 1 partial ⚠️
runtime/near-vm-runner/src/wasmer2_runner.rs 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11365      +/-   ##
==========================================
+ Coverage   71.07%   71.17%   +0.09%     
==========================================
  Files         783      784       +1     
  Lines      156719   157177     +458     
  Branches   156719   157177     +458     
==========================================
+ Hits       111394   111870     +476     
+ Misses      40502    40470      -32     
- Partials     4823     4837      +14     
Flag Coverage Δ
backward-compatibility 0.24% <0.00%> (-0.01%) ⬇️
db-migration 0.24% <0.00%> (-0.01%) ⬇️
genesis-check 1.38% <0.00%> (-0.01%) ⬇️
integration-tests 37.12% <72.72%> (-0.04%) ⬇️
linux 68.83% <81.81%> (-0.17%) ⬇️
linux-nightly 70.60% <81.81%> (+0.07%) ⬆️
macos 52.26% <ø> (-0.17%) ⬇️
pytests 1.60% <0.00%> (-0.01%) ⬇️
sanity-checks 1.40% <0.00%> (-0.01%) ⬇️
unittests 65.60% <81.81%> (+0.10%) ⬆️
upgradability 0.29% <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.

This was a headscratcher to me as I ended up with the two blocks in the
same area and the `Err` branch in the 2nd block seemed unreachable to
me. At first I thought that maybe this is a holdover from wasmer2 times,
but it is the same there!
@nagisa nagisa force-pushed the simplifies-entrypoint-index branch from c49f261 to 11d62e9 Compare May 21, 2024 14:37
Copy link
Collaborator

@Ekleog-NEAR Ekleog-NEAR 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 added this pull request to the merge queue May 22, 2024
Merged via the queue into near:master with commit 204b798 May 22, 2024
28 of 29 checks passed
@nagisa nagisa deleted the simplifies-entrypoint-index branch May 22, 2024 08:20
marcelo-gonzalez pushed a commit to marcelo-gonzalez/nearcore that referenced this pull request May 23, 2024
This was a headscratcher to me as I ended up with the two blocks in the
same area and the `Err` branch in the 2nd block seemed unreachable to me
(and there were not any side-effects in between.) At first I thought
that maybe this is a holdover from wasmer2 times, but it is the same
there!
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.

None yet

2 participants