Skip to content

Commit

Permalink
Release v4.0.6 (#1073)
Browse files Browse the repository at this point in the history
Co-authored-by: ferrell-code <charlie@manta.network>
Co-authored-by: Adam Reif <Garandor@manta.network>
  • Loading branch information
3 people committed Apr 14, 2023
1 parent 7c389f9 commit ceb9e46
Show file tree
Hide file tree
Showing 41 changed files with 1,080 additions and 605 deletions.
569 changes: 569 additions & 0 deletions .github/workflows/integration_test_manta.yml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions .github/workflows/metadata_diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
inputs:
reference_binary:
description: The link to the reference binary, which should be the previous release.
default: https://github.com/Manta-Network/Manta/releases/download/v4.0.4/manta
default: https://github.com/Manta-Network/Manta/releases/download/v4.0.5/manta
required: true
chain:
description: The name of the chain under test. Usually, you would pass a local chain
Expand Down Expand Up @@ -98,11 +98,11 @@ jobs:
- name: Start old node
run: |
echo Running on $CHAIN
$HOME/manta-old --chain=$CHAIN --port 30444 --ws-port 9944 -- --chain kusama &
$HOME/manta-old --chain=$CHAIN --port 30444 --base-path ./temp1 --ws-port 9944 -- --chain kusama &
- name: Start new node
run: |
echo Running on $CHAIN
target/release/manta --chain=$CHAIN --port 30555 --ws-port 9955 -- --chain kusama &
target/release/manta --chain=$CHAIN --port 30555 --base-path ./temp2 --ws-port 9955 -- --chain kusama &
- name: Prepare output
run: |
VERSION=$(./target/release/manta --version)
Expand Down
117 changes: 26 additions & 91 deletions .github/workflows/runtime_upgrade_test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: runtime upgrade test
on:
push:
branches: [manta, release-**]
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
workflow_dispatch:
inputs:
manta_base_url:
description: The base manta binary url, that will be upgraded
default: https://github.com/Manta-Network/Manta/releases/download/v4.0.5/manta
required: true
polkadot_url:
description: The polkadot binary url to be used for the relay chain
default: https://github.com/paritytech/polkadot/releases/download/v0.9.41/polkadot
required: true
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
Expand All @@ -16,11 +22,10 @@ env:
AWS_INSTANCE_ROOT_VOLUME_SIZE: 32
AWS_IMAGE_SEARCH_PATTERN: ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*
AWS_IMAGE_SEARCH_OWNERS: '["099720109477"]'
POLKADOT_BINARY: https://github.com/paritytech/polkadot/releases/download/v0.9.41/polkadot
MANTA_BINARY: https://github.com/Manta-Network/Manta/releases/download/v4.0.4/manta
POLKADOT_BINARY: ${{github.event.inputs.polkadot_url}}
MANTA_BINARY: ${{github.event.inputs.manta_base_url}}
jobs:
print-rust-versions:
if: ${{ startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release-') || github.ref == 'refs/heads/manta' }}
runs-on: ubuntu-20.04
container:
image: paritytech/ci-linux:production
Expand All @@ -35,7 +40,6 @@ jobs:
echo "::set-output name=stable::$(rustc +stable --version)"
echo "::set-output name=nightly::$(rustc +nightly --version)"
build-runtimes:
if: ${{ startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release-') || github.ref == 'refs/heads/manta' }}
needs: check-for-runtime-upgrade
runs-on: ubuntu-20.04
env:
Expand Down Expand Up @@ -86,43 +90,40 @@ jobs:
name: config-for-runtime-upgrade-test
path: .github/resources/config-for-runtime-upgrade-test.json
runtime-upgrade-test:
if: ${{ startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release-') || github.ref == 'refs/heads/manta' }}
needs: [build-runtimes, start-runtime-upgrade-tester, check-for-runtime-upgrade, parse-runtimes]
runs-on: ${{ needs.start-runtime-upgrade-tester.outputs.runner-label }}
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
runtime:
- name: manta
chain-spec: manta-local
- name: calamari
chain-spec: calamari-local
- name: dolphin
chain-spec: dolphin-local
steps:
- if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }}
run: |
- run: |
ls -ahl ${{ github.workspace }}/
mkdir -p $HOME/.local/share/${{ matrix.runtime.name }}-pc
mkdir -p $HOME/.local/bin
echo "${HOME}/.nvm/versions/node/v16.3.0/bin" >> $GITHUB_PATH
echo "${HOME}/.local/bin" >> $GITHUB_PATH
- if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }}
name: fetch, mv and chmod manta-base
- name: fetch, mv and chmod manta-base
run: |
wget ${{ env.MANTA_BINARY }}
ls -ahl ${{ github.workspace }}/
mv ${{ github.workspace }}/manta $HOME/.local/bin/manta-base
chmod +x $HOME/.local/bin/manta-base
ls -ahl ${{ github.workspace }}/
ls -ahl $HOME/.local/bin/
- if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }}
name: fetch and chmod polkadot
- name: fetch and chmod polkadot
run: |
curl -L -o $HOME/.local/bin/polkadot ${{ env.POLKADOT_BINARY }}
chmod +x $HOME/.local/bin/polkadot
ls -ahl $HOME/.local/bin/
- if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }}
id: create-chainspec
- id: create-chainspec
run: |
manta-base build-spec --chain ${{ matrix.runtime.chain-spec }} --disable-default-bootnode --raw > $HOME/.local/share/${{ matrix.runtime.name }}-pc/${{ matrix.runtime.chain-spec }}-spec.json
jq \
Expand All @@ -138,13 +139,11 @@ jobs:
' $HOME/.local/share/${{ matrix.runtime.name }}-pc/${{ matrix.runtime.chain-spec }}-spec.json > $HOME/.local/share/${{ matrix.runtime.name }}-pc/${{ matrix.runtime.chain-spec }}-base-spec.json
ls -ahl $HOME/.local/share/${{ matrix.runtime.name }}-pc/
manta-base export-state --chain $HOME/.local/share/${{ matrix.runtime.name }}-pc/${{ matrix.runtime.chain-spec }}-base-spec.json > $HOME/.local/share/${{ matrix.runtime.name }}-pc/${{ matrix.runtime.chain-spec }}-state.json || true
- if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }}
name: fetch config-for-runtime-upgrade-test
- name: fetch config-for-runtime-upgrade-test
uses: actions/download-artifact@v2
with:
name: config-for-runtime-upgrade-test
- if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }}
name: create launch config
- name: create launch config
run: |
ls -a
cat config-for-runtime-upgrade-test.json | \
Expand All @@ -163,18 +162,15 @@ jobs:
' > $HOME/.local/share/${{ matrix.runtime.name }}-pc/${{ matrix.runtime.chain-spec }}-base-launch-config.json
jq . $HOME/.local/share/${{ matrix.runtime.name }}-pc/${{ matrix.runtime.chain-spec }}-base-launch-config.json
ls -ahl $HOME/.local/share/${{ matrix.runtime.name }}-pc/
- if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }}
uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: paritytech/polkadot-launch
path: polkadot-launch
- if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }}
uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: Manta-Network/Dev-Tools
path: dev-tools
- if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }}
name: launch testnet
- name: launch testnet
run: |
cd ${{ github.workspace }}/polkadot-launch
yarn install
Expand All @@ -185,17 +181,15 @@ jobs:
--error ${{ github.workspace }}/polkadot-launch-for-${{ matrix.runtime.chain-spec }}-stderr.log \
--no-autorestart \
-- $HOME/.local/share/${{ matrix.runtime.name }}-pc/${{ matrix.runtime.chain-spec }}-base-launch-config.json
- if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }}
name: fetch new ${{ matrix.runtime.name }}_runtime.compact.compressed.wasm
- name: fetch new ${{ matrix.runtime.name }}_runtime.compact.compressed.wasm
uses: actions/download-artifact@v2
with:
name: ${{ matrix.runtime.name }}-runtime
- uses: actions/checkout@v2
with:
repository: Manta-Network/Manta
path: Manta
- if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }}
name: run test suites
- name: run test suites
run: |
sleep 120
cp ${{ github.workspace }}/${{ matrix.runtime.name }}_runtime.compact.compressed.wasm ${{ github.workspace }}/Manta/tests/calamari.wasm
Expand All @@ -204,71 +198,12 @@ jobs:
yarn
yarn runtime_upgrade_test --address=ws://127.0.0.1:9921 --exit
if [ $? != 0 ]; then echo "Runtime upgrade failed!"; exit 1; fi
- if: ${{ needs.check-for-runtime-upgrade.outputs.do-versions-match == 'false' }}
uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.chain-spec.id }}-alice.log
path: ${{ github.workspace }}/polkadot-launch/9921.log
parse-runtimes:
if: ${{ startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release-') || github.ref == 'refs/heads/manta' }}
runs-on: ubuntu-20.04
strategy:
matrix:
runtime:
- name: calamari
- name: manta
outputs:
calamari-runtime-current: ${{ steps.get-runtime-current.outputs.calamari-runtime-current }}
calamari-runtime-base: ${{ steps.get-runtime-base.outputs.calamari-runtime-base }}
manta-runtime-current: ${{ steps.get-runtime-current.outputs.manta-runtime-current }}
manta-runtime-base: ${{ steps.get-runtime-base.outputs.manta-runtime-base }}
steps:
- uses: actions/checkout@v2
- name: ruby setup
uses: actions/setup-ruby@v1
with:
ruby-version: 2.7
- name: get ${{ matrix.runtime.name }} runtime version current
id: get-runtime-current
run: |
runtime_current="$(ruby -e '
require "./scripts/github/lib.rb";
puts get_runtime("${{ matrix.runtime.name }}")
')"
echo "::set-output name=${{ matrix.runtime.name }}-runtime-current::$runtime_current"
echo ....................
- name: get ${{ matrix.runtime.name }} runtime version base
id: get-runtime-base
run: |
mkdir temp_for_run
cd temp_for_run
git clone -b manta https://github.com/Manta-Network/Manta.git
cd Manta
runtime_base="$(ruby -e '
require "./scripts/github/lib.rb";
puts get_runtime("${{ matrix.runtime.name }}")
')"
echo "::set-output name=${{ matrix.runtime.name }}-runtime-base::$runtime_base"
echo ....................
check-for-runtime-upgrade:
if: ${{ startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release-') || github.ref == 'refs/heads/manta' }}
needs: parse-runtimes
runs-on: ubuntu-20.04
outputs:
do-versions-match: ${{ steps.check-match.outputs.match }}
steps:
- name: check if runtime versions match
id: check-match
run: |
echo "::set-output name=match::true"
if [[ ${{ needs.parse-runtimes.outputs.manta-runtime-base }} != ${{ needs.parse-runtimes.outputs.manta-runtime-current }} ]]; then echo "::set-output name=match::false"; fi
if [[ ${{ needs.parse-runtimes.outputs.calamari-runtime-base }} != ${{ needs.parse-runtimes.outputs.calamari-runtime-current }} ]]; then echo "::set-output name=match::false"; fi
- name: force fail if new versions don't match
run: |
if [[ ${{ needs.parse-runtimes.outputs.manta-runtime-current }} != ${{ needs.parse-runtimes.outputs.calamari-runtime-current }} ]]; then exit 1; fi
# HELPER JOBS BELOW
start-runtime-upgrade-tester:
if: ${{ startsWith(github.ref, 'refs/tags') || startsWith(github.ref, 'refs/heads/release-') || github.ref == 'refs/heads/manta' }}
runs-on: ubuntu-20.04
outputs:
runner-label: ${{ steps.start-self-hosted-runner.outputs.runner-label }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: Try-runtime check against latest Calamari mainnet state
name: Try-runtime check against latest mainnet state
on:
# NOTE: The try-runtime tool expects your local chain's runtime version to match the version of the chain that
# you're testing against. In this case Calamari mainnet. That's why this CI workflow has a manual trigger.
# you're testing against. In the default case Calamari mainnet. That's why this CI workflow has a manual trigger.
workflow_dispatch:
inputs:
prod_url:
description: The WebSocket url of the reference node
default: wss://ws.calamari.systems:443
required: true
chain_spec:
description: The chain spec of the local node
default: calamari-dev
required: true
env:
AWS_INSTANCE_SSH_PUBLIC_KEY: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPb24HEQ++aNFWaqVyMtIs6GotUB8R+q61XOoI2z6uMj
AWS_REGION: us-east-1
Expand All @@ -18,6 +22,7 @@ env:
AWS_IMAGE_SEARCH_PATTERN: ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-*
AWS_IMAGE_SEARCH_OWNERS: '["099720109477"]'
PROD_URL: ${{github.event.inputs.prod_url}}
CHAIN_SPEC: ${{github.event.inputs.chain_spec}}
jobs:
start-checks:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -104,7 +109,7 @@ jobs:
yarn install
yarn
latest_hash=$(node get-latest-block-hash --address=$PROD_URL)
$HOME/.local/bin/manta try-runtime --chain calamari-dev on-runtime-upgrade live --at $latest_hash --uri $PROD_URL
$HOME/.local/bin/manta try-runtime --chain $CHAIN_SPEC on-runtime-upgrade live --at $latest_hash --uri $PROD_URL
- name: stop sccache server
run: sccache --stop-server || true
stop-checks:
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# CHANGELOG

## v4.0.6
### Added
- [\#1067](https://github.com/Manta-Network/Manta/pull/1067) Refactor manta genesis files, add `manta-testnet` [MA]

### Changed
- [\#1071](https://github.com/Manta-Network/Manta/pull/1071) Charge 0-asset XCM instructions as if they were 1-asset [MACADO]

### Fixed
- [\#1068](https://github.com/Manta-Network/Manta/pull/1068) Do not skip integration tests [CA]
- [\#1069](https://github.com/Manta-Network/Manta/pull/1069) Enable manta runtime xcm tests [MA]

## v4.0.5
### Added
- [\#1012](https://github.com/Manta-Network/Manta/pull/1012) Add zkSBTs [MACADO]
Expand Down
Loading

0 comments on commit ceb9e46

Please sign in to comment.