Skip to content

Commit 6702f43

Browse files
authored
Release/v0.29.0 (#461)
2 parents 22bc168 + 7400fea commit 6702f43

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+6003
-3834
lines changed

.github/workflows/branch-release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
GLOBAL_VERSION: ${{ steps.set_vars.outputs.GLOBAL_VERSION }}
4646
GIT_BRANCH: ${{ steps.set_vars.outputs.GIT_BRANCH }}
4747
RELEASE_BRANCH_PATTERN: ${{ steps.set_vars.outputs.RELEASE_BRANCH_PATTERN }}
48+
RELEASE_TAG: ${{ steps.set_vars.outputs.RELEASE_TAG }}
4849
steps:
4950
- name: Get branch name
5051
id: branch-name
@@ -55,6 +56,7 @@ jobs:
5556
echo "GLOBAL_VERSION=${{ github.sha }}" >> $GITHUB_OUTPUT
5657
echo "RELEASE_BRANCH_PATTERN=${{ env.RELEASE_BRANCH_PATTERN }}" >> $GITHUB_OUTPUT
5758
echo "GIT_BRANCH=${{ steps.branch-name.outputs.current_branch }}" | sed "s@/@-@g" >> $GITHUB_OUTPUT
59+
echo "RELEASE_TAG=${{ steps.branch-name.outputs.current_branch }}" | sed "release/@@g" >> $GITHUB_OUTPUT
5860
5961
validate-branch-name:
6062
name: Validate release branch name
@@ -121,3 +123,14 @@ jobs:
121123
parachainDocker: ${{ github.event.inputs.parachainDocker }}
122124
skipBuild: 'false'
123125
globalVersion: ${{ needs.init.outputs.GLOBAL_VERSION }}
126+
127+
deploy_release_to_rococo:
128+
name: Deploy release to rococo on merge to `main`
129+
if: |
130+
startsWith(github.head_ref, needs.init.outputs.RELEASE_BRANCH_PATTERN) &&
131+
github.event.action == 'closed' && github.event.pull_request.merged == 'true'
132+
needs: [ init ]
133+
uses: ./.github/workflows/deploy-rococo.yml
134+
secrets: inherit
135+
with:
136+
version: rococo-${{ needs.init.outputs.RELEASE_TAG }}

.github/workflows/release.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,20 @@ jobs:
3232
username: ${{ secrets.DOCKERHUB_USERNAME }}
3333
password: ${{ secrets.DOCKERHUB_TOKEN }}
3434

35-
- name: Docker meta [kusama]
36-
id: meta_kusama
35+
- name: Docker meta
36+
id: meta
3737
uses: docker/metadata-action@v4.1.1
3838
with:
3939
images: docker.io/mangatasolutions/mangata-node
40-
tags: type=semver,prefix=kusama-,pattern={{ version }}
40+
tags: type=semver,pattern={{ version }}
4141
flavor: |
4242
latest=false
4343
44-
- name: Docker meta [rococo]
45-
id: meta_rococo
46-
uses: docker/metadata-action@v4.1.1
47-
with:
48-
images: docker.io/mangatasolutions/mangata-node
49-
tags: type=semver,prefix=rococo-,pattern={{ version }}
50-
flavor: |
51-
latest=false
52-
53-
- name: Tag and push image [kusama]
54-
uses: akhilerm/tag-push-action@v2.0.0
55-
with:
56-
src: docker.io/mangatasolutions/mangata-node:release-${{ needs.init.outputs.RELEASE_VERSION }}
57-
dst: ${{ steps.meta_kusama.outputs.tags }}
58-
59-
- name: Tag and push image [rococo]
44+
- name: Tag and push image
6045
uses: akhilerm/tag-push-action@v2.0.0
6146
with:
6247
src: docker.io/mangatasolutions/mangata-node:release-${{ needs.init.outputs.RELEASE_VERSION }}
63-
dst: ${{ steps.meta_rococo.outputs.tags }}
48+
dst: ${{ steps.meta.outputs.tags }}
6449

6550
- name: Export docker image
6651
run: |

.github/workflows/reusable-build-and-test.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ jobs:
216216
key: cargo-try-runtime-${{ inputs.cache_version }}-${{ hashFiles('Cargo.lock') }}
217217

218218
- name: Run try-runtime Rococo testnet
219-
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
219+
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
220220

221221
- name: Run try-runtime Kusama Mainnet
222-
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
222+
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
223223

224224
- name: Fix permissions on self-hosted runner
225225
if: always()
@@ -265,7 +265,7 @@ jobs:
265265
run: |
266266
mkdir ./benchmarks && target/release/mangata-node benchmark pallet \
267267
-l=info,xyk=error,collective-mangata=warn,bootstrap=warn \
268-
--chain dev \
268+
--chain kusama \
269269
--execution wasm \
270270
--wasm-execution compiled \
271271
--pallet '*' \
@@ -277,17 +277,16 @@ jobs:
277277
278278
- name: Run block & extrinsic overhead benchmarks
279279
run: |
280-
target/release/mangata-node benchmark overhead --execution native --chain dev -lblock_builder=debug --max-ext-per-block 50000 --base-path .
280+
target/release/mangata-node benchmark overhead --execution native --chain kusama-local -lblock_builder=debug --max-ext-per-block 50000 --base-path .
281281
cp block_weights.rs extrinsic_weights.rs ./benchmarks
282282
283283
- name: Fix permissions on self-hosted runner
284284
if: always()
285285
run: chown -R 1004:1005 $GITHUB_WORKSPACE
286-
287-
- name: Upload logs and docker images to GitHub
286+
287+
- name: Upload logs and docker images to GitHub
288288
if: ${{ contains(github.event.pull_request.labels.*.name, 'full-benchmarks') }}
289289
uses: actions/upload-artifact@v3.1.1
290290
with:
291291
name: benchmarks
292-
path: ./benchmarks
293-
292+
path: ./benchmarks

.github/workflows/reusable-e2e-tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,16 @@ jobs:
7575
E2E_TREASURY_PALLET_ADDRESS: ${{ secrets.E2E_TREASURY_PALLET_ADDRESS }}
7676
E2E_XYK_PALLET_ADDRESS: ${{ secrets.E2E_XYK_PALLET_ADDRESS }}
7777
E2E_TREASURY_BURN_PALLET_ADDRESS: ${{ secrets.E2E_TREASURY_BURN_PALLET_ADDRESS }}
78-
# TEST_SUDO_NAME: ${{ secrets.E2E_TEST_SUDO_NAME }}
7978
TEST_SUDO_NAME: "//Alice"
8079
MANGATA_NODE_VERSION: ${{ inputs.globalVersion }}
8180
E2EBRANCHNAME: "main"
8281
PARACHAIN_DOCKER_IMAGE: ${{ inputs.parachainDocker || format('mangatasolutions/mangata-node:{0}', inputs.globalVersion) }}
8382
steps:
84-
####IDK, but this is neccesary for reports
85-
- uses: actions/checkout@v3
86-
83+
- uses: actions/checkout@v3 ####IDK, but this is neccesary for reports
84+
- name: Adapt if fast runtime
85+
if: ${{ !contains(env.PARACHAIN_DOCKER_IMAGE, 'fast') && matrix.fast == true }}
86+
run: echo "PARACHAIN_DOCKER_IMAGE=${{ env.PARACHAIN_DOCKER_IMAGE }}-fast" >> $GITHUB_ENV
87+
8788
- name: Adapt if fast runtime
8889
if: ${{ !contains(env.PARACHAIN_DOCKER_IMAGE, 'fast') && matrix.fast == true }}
8990
run: echo "PARACHAIN_DOCKER_IMAGE=${{ env.PARACHAIN_DOCKER_IMAGE }}-fast" >> $GITHUB_ENV
@@ -134,7 +135,7 @@ jobs:
134135
135136
- name: Replace parachain docker image reference in config
136137
working-directory: launch
137-
run: sed -i 's+mangatasolutions/mangata-node:dev+${{ env.PARACHAIN_DOCKER_IMAGE }}+g' config.yml
138+
run: sed -i 's+mangatasolutions/mangata-node:.*+${{ env.PARACHAIN_DOCKER_IMAGE }}+g' config.yml
138139

139140
- name: Install parachain launch dependencies
140141
working-directory: launch

0 commit comments

Comments
 (0)