Skip to content

Commit

Permalink
Release/v0.29.0 (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
majusko authored Apr 11, 2023
2 parents 22bc168 + 7400fea commit 6702f43
Show file tree
Hide file tree
Showing 81 changed files with 6,003 additions and 3,834 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/branch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
GLOBAL_VERSION: ${{ steps.set_vars.outputs.GLOBAL_VERSION }}
GIT_BRANCH: ${{ steps.set_vars.outputs.GIT_BRANCH }}
RELEASE_BRANCH_PATTERN: ${{ steps.set_vars.outputs.RELEASE_BRANCH_PATTERN }}
RELEASE_TAG: ${{ steps.set_vars.outputs.RELEASE_TAG }}
steps:
- name: Get branch name
id: branch-name
Expand All @@ -55,6 +56,7 @@ jobs:
echo "GLOBAL_VERSION=${{ github.sha }}" >> $GITHUB_OUTPUT
echo "RELEASE_BRANCH_PATTERN=${{ env.RELEASE_BRANCH_PATTERN }}" >> $GITHUB_OUTPUT
echo "GIT_BRANCH=${{ steps.branch-name.outputs.current_branch }}" | sed "s@/@-@g" >> $GITHUB_OUTPUT
echo "RELEASE_TAG=${{ steps.branch-name.outputs.current_branch }}" | sed "release/@@g" >> $GITHUB_OUTPUT
validate-branch-name:
name: Validate release branch name
Expand Down Expand Up @@ -121,3 +123,14 @@ jobs:
parachainDocker: ${{ github.event.inputs.parachainDocker }}
skipBuild: 'false'
globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }}

deploy_release_to_rococo:
name: Deploy release to rococo on merge to `main`
if: |
startsWith(github.head_ref, needs.init.outputs.RELEASE_BRANCH_PATTERN) &&
github.event.action == 'closed' && github.event.pull_request.merged == 'true'
needs: [ init ]
uses: ./.github/workflows/deploy-rococo.yml
secrets: inherit
with:
version: rococo-${{ needs.init.outputs.RELEASE_TAG }}
25 changes: 5 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,35 +32,20 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker meta [kusama]
id: meta_kusama
- name: Docker meta
id: meta
uses: docker/[email protected]
with:
images: docker.io/mangatasolutions/mangata-node
tags: type=semver,prefix=kusama-,pattern={{ version }}
tags: type=semver,pattern={{ version }}
flavor: |
latest=false
- name: Docker meta [rococo]
id: meta_rococo
uses: docker/[email protected]
with:
images: docker.io/mangatasolutions/mangata-node
tags: type=semver,prefix=rococo-,pattern={{ version }}
flavor: |
latest=false
- name: Tag and push image [kusama]
uses: akhilerm/[email protected]
with:
src: docker.io/mangatasolutions/mangata-node:release-${{ needs.init.outputs.RELEASE_VERSION }}
dst: ${{ steps.meta_kusama.outputs.tags }}

- name: Tag and push image [rococo]
- name: Tag and push image
uses: akhilerm/[email protected]
with:
src: docker.io/mangatasolutions/mangata-node:release-${{ needs.init.outputs.RELEASE_VERSION }}
dst: ${{ steps.meta_rococo.outputs.tags }}
dst: ${{ steps.meta.outputs.tags }}

- name: Export docker image
run: |
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/reusable-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ jobs:
key: cargo-try-runtime-${{ inputs.cache_version }}-${{ hashFiles('Cargo.lock') }}

- name: Run try-runtime Rococo testnet
run: cargo run --release --features=try-runtime,mangata-rococo try-runtime --chain=public-testnet --runtime=target/release/wbuild/mangata-rococo-runtime/mangata_rococo_runtime.wasm on-runtime-upgrade live --uri wss://roccoco-testnet-collator-01.mangatafinance.cloud:443
run: cargo run --release --features=try-runtime,mangata-rococo try-runtime --chain=rococo --runtime=target/release/wbuild/mangata-rococo-runtime/mangata_rococo_runtime.wasm on-runtime-upgrade live --uri wss://roccoco-testnet-collator-01.mangatafinance.cloud:443

- name: Run try-runtime Kusama Mainnet
run: cargo run --release --features=try-runtime try-runtime --chain=kusama-mainnet --runtime=target/release/wbuild/mangata-kusama-runtime/mangata_kusama_runtime.wasm on-runtime-upgrade live --uri wss://prod-kusama-collator-01.mangatafinance.cloud:443
run: cargo run --release --features=try-runtime try-runtime --chain=kusama --runtime=target/release/wbuild/mangata-kusama-runtime/mangata_kusama_runtime.wasm on-runtime-upgrade live --uri wss://prod-kusama-collator-01.mangatafinance.cloud:443

- name: Fix permissions on self-hosted runner
if: always()
Expand Down Expand Up @@ -265,7 +265,7 @@ jobs:
run: |
mkdir ./benchmarks && target/release/mangata-node benchmark pallet \
-l=info,xyk=error,collective-mangata=warn,bootstrap=warn \
--chain dev \
--chain kusama \
--execution wasm \
--wasm-execution compiled \
--pallet '*' \
Expand All @@ -277,17 +277,16 @@ jobs:
- name: Run block & extrinsic overhead benchmarks
run: |
target/release/mangata-node benchmark overhead --execution native --chain dev -lblock_builder=debug --max-ext-per-block 50000 --base-path .
target/release/mangata-node benchmark overhead --execution native --chain kusama-local -lblock_builder=debug --max-ext-per-block 50000 --base-path .
cp block_weights.rs extrinsic_weights.rs ./benchmarks
- name: Fix permissions on self-hosted runner
if: always()
run: chown -R 1004:1005 $GITHUB_WORKSPACE

- name: Upload logs and docker images to GitHub
- name: Upload logs and docker images to GitHub
if: ${{ contains(github.event.pull_request.labels.*.name, 'full-benchmarks') }}
uses: actions/[email protected]
with:
name: benchmarks
path: ./benchmarks

path: ./benchmarks
11 changes: 6 additions & 5 deletions .github/workflows/reusable-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,16 @@ jobs:
E2E_TREASURY_PALLET_ADDRESS: ${{ secrets.E2E_TREASURY_PALLET_ADDRESS }}
E2E_XYK_PALLET_ADDRESS: ${{ secrets.E2E_XYK_PALLET_ADDRESS }}
E2E_TREASURY_BURN_PALLET_ADDRESS: ${{ secrets.E2E_TREASURY_BURN_PALLET_ADDRESS }}
# TEST_SUDO_NAME: ${{ secrets.E2E_TEST_SUDO_NAME }}
TEST_SUDO_NAME: "//Alice"
MANGATA_NODE_VERSION: ${{ inputs.globalVersion }}
E2EBRANCHNAME: "main"
PARACHAIN_DOCKER_IMAGE: ${{ inputs.parachainDocker || format('mangatasolutions/mangata-node:{0}', inputs.globalVersion) }}
steps:
####IDK, but this is neccesary for reports
- uses: actions/checkout@v3

- uses: actions/checkout@v3 ####IDK, but this is neccesary for reports
- name: Adapt if fast runtime
if: ${{ !contains(env.PARACHAIN_DOCKER_IMAGE, 'fast') && matrix.fast == true }}
run: echo "PARACHAIN_DOCKER_IMAGE=${{ env.PARACHAIN_DOCKER_IMAGE }}-fast" >> $GITHUB_ENV

- name: Adapt if fast runtime
if: ${{ !contains(env.PARACHAIN_DOCKER_IMAGE, 'fast') && matrix.fast == true }}
run: echo "PARACHAIN_DOCKER_IMAGE=${{ env.PARACHAIN_DOCKER_IMAGE }}-fast" >> $GITHUB_ENV
Expand Down Expand Up @@ -134,7 +135,7 @@ jobs:
- name: Replace parachain docker image reference in config
working-directory: launch
run: sed -i 's+mangatasolutions/mangata-node:dev+${{ env.PARACHAIN_DOCKER_IMAGE }}+g' config.yml
run: sed -i 's+mangatasolutions/mangata-node:.*+${{ env.PARACHAIN_DOCKER_IMAGE }}+g' config.yml

- name: Install parachain launch dependencies
working-directory: launch
Expand Down
Loading

0 comments on commit 6702f43

Please sign in to comment.