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

chore(dot/core): code substitution uses wasmer only #2710

Merged
merged 1 commit into from
Aug 6, 2022

Conversation

qdm12
Copy link
Contributor

@qdm12 qdm12 commented Jul 28, 2022

Changes

💁 most additions are just the generated mock and fixed/changed unit test

Blocking me on my trie metrics branch due to some nifty interface problem (function signature must use the same interface, which I'm not happy with).

  • Remove wasmerInstanceFunc function type
  • Add error wrapping context within handleCodeSubstitution
  • Adding sentinel errors for wasm decompression
  • Fix and improve Test_Service_handleCodeSubstitution
  • Add runtime instance gomock mock

Tests

go test -run ^Test_Service_handleCodeSubstitution$ github.com/ChainSafe/gossamer/dot/core

Issues

Related to #2229

Primary Reviewer

@kishansagathiya

@qdm12 qdm12 force-pushed the qdm12/dot-core/handlecodesub-wasmer-only branch from c8580d4 to 745c03a Compare August 1, 2022 14:52
@qdm12 qdm12 added the PR Easy label Aug 1, 2022
@qdm12 qdm12 marked this pull request as ready for review August 1, 2022 20:31
@qdm12 qdm12 force-pushed the qdm12/dot-core/handlecodesub-wasmer-only branch from 745c03a to d5ae2f6 Compare August 2, 2022 13:34
@qdm12 qdm12 removed the PR Easy label Aug 2, 2022
- Remove `wasmerInstanceFunc` function type
- Add error wrapping context within `handleCodeSubstitution`
- Adding sentinel errors for wasm decompression
- Fix and improve `Test_Service_handleCodeSubstitution`
- Add runtime instance gomock mock
@qdm12 qdm12 force-pushed the qdm12/dot-core/handlecodesub-wasmer-only branch from d5ae2f6 to 9979cd8 Compare August 3, 2022 15:09
Copy link
Contributor

@kishansagathiya kishansagathiya left a comment

Choose a reason for hiding this comment

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

🎉

@qdm12 qdm12 merged commit 03b7019 into development Aug 6, 2022
@qdm12 qdm12 deleted the qdm12/dot-core/handlecodesub-wasmer-only branch August 6, 2022 16:06
@github-actions
Copy link

🎉 This PR is included in version 0.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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