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

Sync with polkadot-v0.9.42 branch #182

Merged
merged 3 commits into from
May 5, 2023
Merged

Sync with polkadot-v0.9.42 branch #182

merged 3 commits into from
May 5, 2023

Conversation

SkymanOne
Copy link
Contributor

This PR syncs with the polkadot-v0.9.42 branch.

@ascjones
Copy link
Contributor

ascjones commented May 5, 2023

CI needs fixing

@athei
Copy link
Member

athei commented May 5, 2023

It is the integrity_test which fails because our allowed code size is too big for the max call stack depth. We either disable the test or we need to make a change in pallet-contracts to make the memory limit configurable.

@SkymanOne SkymanOne requested a review from a team as a code owner May 5, 2023 16:44
@SkymanOne
Copy link
Contributor Author

I temporarily disabled cargo test --release --all step in CI

@SkymanOne SkymanOne merged commit a2b0946 into main May 5, 2023
@SkymanOne SkymanOne deleted the gn/sync branch May 5, 2023 17:51
@agryaznov
Copy link
Contributor

It is the integrity_test which fails because our allowed code size is too big for the max call stack depth. We either disable the test or we need to make a change in pallet-contracts to make the memory limit configurable.

It is configurable since substrate#13565 is merged, via T::Schedule::get().limits.runtime_memory

@athei
Copy link
Member

athei commented May 8, 2023

It is the integrity_test which fails because our allowed code size is too big for the max call stack depth. We either disable the test or we need to make a change in pallet-contracts to make the memory limit configurable.

It is configurable since substrate#13565 is merged, via T::Schedule::get().limits.runtime_memory

Nice. We can enable the test with the next release then.

agryaznov added a commit that referenced this pull request May 29, 2023
… node (#187)

In recent PR
#182 (comment),
the CI step of running `cargo test` was commented out as a dirty
workaround for the pallet contracts integrity test failure. The test
checks that the pallet configuration is memory safe.

So to make the test pass, we enlarge the runtime memory limit in the
Schedule. We do this because this development node
[allows](https://github.com/paritytech/substrate-contracts-node/blob/8d13ddef3f5c728d1661e79c511a28cef206b298/runtime/src/lib.rs#L367)
larger contract size than it is normally allowed in a production running
node. This should be fine for the development node where possible
security implications could be neglected for the sake of development
convenience. **However, please DO NOT do this to your production node
config, unless you are sure that the limit you're setting is the real
memory limit of your runtime**.
hummusonrails pushed a commit to hummusonrails/substrate-contracts-node that referenced this pull request Jun 5, 2023
hummusonrails pushed a commit to hummusonrails/substrate-contracts-node that referenced this pull request Jun 5, 2023
… node (paritytech#187)

In recent PR
paritytech#182 (comment),
the CI step of running `cargo test` was commented out as a dirty
workaround for the pallet contracts integrity test failure. The test
checks that the pallet configuration is memory safe.

So to make the test pass, we enlarge the runtime memory limit in the
Schedule. We do this because this development node
[allows](https://github.com/paritytech/substrate-contracts-node/blob/8d13ddef3f5c728d1661e79c511a28cef206b298/runtime/src/lib.rs#L367)
larger contract size than it is normally allowed in a production running
node. This should be fine for the development node where possible
security implications could be neglected for the sake of development
convenience. **However, please DO NOT do this to your production node
config, unless you are sure that the limit you're setting is the real
memory limit of your runtime**.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants