-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/p-1283-migrate-rpc-method-and-in…
…frastructure-to-request-and-verify' into p-1282-migrate-rpc-method-and-infrastructure-to-request-and-verify
- Loading branch information
Showing
53 changed files
with
482 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,10 +105,49 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run ${{ matrix.runtime.name }} try-runtime check | ||
uses: BillyWooo/[email protected] | ||
- name: Download try-runtime-cli | ||
run: | | ||
curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.8.0/try-runtime-x86_64-unknown-linux-musl -o try-runtime | ||
chmod +x ./try-runtime | ||
mv try-runtime parachain | ||
shell: bash | ||
|
||
- name: Install Protoc | ||
uses: arduino/[email protected] | ||
with: | ||
runtime-package: ${{ matrix.runtime.package }} | ||
node-uri: ${{ matrix.runtime.uri }} | ||
checks: "all" | ||
extra-args: "" | ||
version: "3.6.1" | ||
|
||
- name: Add wasm32-unknown-unknown target | ||
run: rustup target add wasm32-unknown-unknown | ||
shell: bash | ||
|
||
- name: Add rust-src component | ||
run: rustup component add rust-src | ||
shell: bash | ||
|
||
- name: Build ${{ matrix.runtime.name }} | ||
run: | | ||
cd parachain | ||
cargo build --profile production -p ${{ matrix.runtime.package }} --features try-runtime -q --locked | ||
shell: bash | ||
|
||
- name: Check migrations | ||
run: | | ||
cd parachain | ||
PACKAGE_NAME=${{ matrix.runtime.package }} | ||
RUNTIME_BLOB_NAME=$(echo $PACKAGE_NAME | sed 's/-/_/g').compact.compressed.wasm | ||
RUNTIME_BLOB_PATH=./target/production/wbuild/$PACKAGE_NAME/$RUNTIME_BLOB_NAME | ||
export RUST_LOG=remote-ext=debug,runtime=debug | ||
# Store the command in a variable so we can log it | ||
COMMAND="./try-runtime \ | ||
--runtime $RUNTIME_BLOB_PATH \ | ||
on-runtime-upgrade --disable-mbm-checks --blocktime 12000000 \ | ||
live --uri ${{ matrix.runtime.uri }}" | ||
# Echo the command before running it, for debugging purposes | ||
echo "Running command:" | ||
echo "$COMMAND" | ||
eval "$COMMAND" | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ target/ | |
.idea/ | ||
**/*.bin | ||
|
||
storage_db | ||
|
||
cache | ||
omni-executor.manifest | ||
omni-executor.manifest.sgx | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
include = ["Cargo.toml", "**/Cargo.toml"] | ||
|
||
[formatting] | ||
array_auto_expand = false | ||
array_auto_collapse = false | ||
indent_string = " " | ||
inline_table_expand = false | ||
|
||
[[rule]] | ||
include = ["Cargo.toml", "**/Cargo.toml"] | ||
keys = ["dependencies", "target", "patch", "workspace", "workspace.dependencies", "workspace.package", "features"] | ||
|
||
[rule.formatting] | ||
reorder_keys = true | ||
array_auto_expand = true |
Oops, something went wrong.