Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Use wasm-builder from git #3354

Merged
merged 4 commits into from
Jun 28, 2021
Merged

Use wasm-builder from git #3354

merged 4 commits into from
Jun 28, 2021

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Jun 23, 2021

This brings new features like compressed runtimes out of the box.

This brings new features like compressed runtimes out of the box.
@bkchr bkchr added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Jun 23, 2021
@bkchr bkchr requested a review from chevdor June 23, 2021 13:58
@chevdor
Copy link
Contributor

chevdor commented Jun 23, 2021

We probably also want to bump up the 2 dependencies under bridges. Is that ok for you @tomusdrw ?

@HCastano
Copy link
Contributor

We probably also want to bump up the 2 dependencies under bridges. Is that ok for you @tomusdrw ?

Feel free to open a PR in the bridges repo with this change. All our Substrate dependencies are Git based anyways, so I don't think this will be an issue

@chevdor
Copy link
Contributor

chevdor commented Jun 23, 2021

Tests

I tested the build of a few runtimes:

  • ✅ Kusama ⇒ Compression : 72.39%
  • ✅ Polkadot ⇒ Compression : 70.64% (10 min)
  • ✅ Westend ⇒ Compression : 72.21% (19 min)
  • rococo fails building, see rococo fails building #3357

The tests are run with SRTOOL_TAG=1.53.0 srtool build --package polkadot-runtime and passing --runtime-dir as/when appropriate.

NOTE: I skipped the bridges tests as the code is not current (Millau failed here but the issue is fixed in the bridges repo).

let blob = prevalidate(code)?;
let code = sp_maybe_compressed_blob::decompress(code, 10 * 1024 * 1024).expect("Decompressing code failed");

let blob = prevalidate(&*code)?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this explicit deref ?

chevdor added a commit to chevdor/parity-bridges-common that referenced this pull request Jun 23, 2021
@bkchr bkchr requested a review from pepyakin June 24, 2021 07:01
Copy link
Contributor

@pepyakin pepyakin left a comment

Choose a reason for hiding this comment

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

One nit, not sure if it's worth to address

node/core/pvf/tests/it/main.rs Outdated Show resolved Hide resolved
Co-authored-by: Sergei Shulepov <sergei@parity.io>
chevdor added a commit to paritytech/parity-bridges-common that referenced this pull request Jun 25, 2021
* chore: update the wasm builder to substrate master
* Bump Substrate
* Update weight of sending remarks

ref paritytech/polkadot#3354

Co-authored-by: Hernando Castano <hernando@hcastano.com>
@bkchr bkchr merged commit 109260c into master Jun 28, 2021
@bkchr bkchr deleted the bkchr-wasm-builder-from-git branch June 28, 2021 08:34
ordian added a commit that referenced this pull request Jul 2, 2021
* master: (21 commits)
  cleanup stream polls (#3397)
  Staking Miner (#3141)
  Companion for Substrate#8953 (#3140)
  Bump version, specs & substrate in prep for v0.9.8 (#3387)
  Fix busy loops. (#3392)
  Minor refactor (#3386)
  add simnet tests (#3381)
  BEEFY: adjust gossip (#3372)
  Companion for #9193 (#3376)
  Companion for Decouple Staking and Election - Part 3: Signed Phase (#2793)
  Ensure that we fetch another collation if the first collation was invalid (#3362)
  Only send one collation per relay parent at a time to validators (#3360)
  disable approval-checking-grandpa on dev chain (#3364)
  Use associated constant for max (#3375)
  Use wasm-builder from git (#3354)
  Squashed 'bridges/' changes from b2099c5..23dda62 (#3369)
  Bump versions & spec_versions (#3368)
  Don't allow bids for a ParaId where there is an overlapping lease period (#3361)
  Companion for upgrade of transaction-payment to pallet macro (#3267)
  Do not allow any crowdloan contributions during the VRF period (#3346)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants