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

pytest: migrate away from using WASM blobs #4418

Merged
merged 6 commits into from
Jun 28, 2021
Merged

Conversation

mina86
Copy link
Contributor

@mina86 mina86 commented Jun 26, 2021

Migrate all pytest tests which used hello.wasm contract (and thus
relied on a blob stored in the repository) to use test-contract-rs
instead (which is stored as source and built).

With that done, remove all WASM blobs stored in the tree. This
includes aforementioned hello.wasm as well as add.wasm and
singlepass_crash.wasm files.

Fixes: #4408

mina86 added 4 commits June 26, 2021 22:49
To reduce reliance on WASM blobs stored in repository,
convert the pytest/tests/sanity/rpc_state_changes.py test
to use test-contract-rs, which is built from source, rather
than hello.wasm contract.

Issue: near#4408
To reduce reliance on WASM blobs stored in repository,
convert the pytest/tests/sanity/rpc_tx_status.py test to
use test-contract-rs, which is built from source, rather
than hello.wasm contract.

Issue: near#4408
…st-contract-rs

To reduce reliance on WASM blobs stored in repository, convert the
pytest/tests/sanity/rpc_light_client_execution_outcome_proof.py test
to use test-contract-rs, which is built from source, rather than
hello.wasm contract.

Issue: near#4408
The add.wasm and singlepass_crash.wasm files have not been used for
a while now and all uses of hello.wasm file has just been removed.
All of those files can be safely removed.

Fixes: near#4408
Copy link
Collaborator

@bowenwang1996 bowenwang1996 left a comment

Choose a reason for hiding this comment

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

I believe singlepass_crash.wasm is needed in one of the tests. cc @matklad @olonho

@mina86
Copy link
Contributor Author

mina86 commented Jun 28, 2021

Nope. It’s only user was removed in 3978e02

Copy link
Collaborator

@bowenwang1996 bowenwang1996 left a comment

Choose a reason for hiding this comment

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

Thanks!

@mina86 mina86 merged commit 7e0fe60 into near:master Jun 28, 2021
@mina86 mina86 deleted the wasm-rm branch June 28, 2021 23:32
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.

Use standard test contract in pytest
2 participants