Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #612

Closed
wants to merge 214 commits into from
Closed

test #612

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
9fd4ce7
Submit reports to testmo (#496)
goncer May 26, 2023
fda5287
substrate-parachain-template based runtime
mateuszaaa May 29, 2023
652f8ea
mangata polkadot minimal runtime
mateuszaaa May 29, 2023
8edbba6
Chore: Update Mangata Kusama RPC endpoint for try-runtime MGX-272 (#503)
tenequm May 29, 2023
90e1ac9
align build scripts for mvr
mateuszaaa May 30, 2023
9146f5a
Merge remote-tracking branch 'origin/develop' into feature/polkadot-mvr
mateuszaaa May 30, 2023
5efc84a
build scripts for mvr
mateuszaaa May 30, 2023
76f42b5
Update reusable-e2e-tests.yml (#506)
goncer Jun 5, 2023
230a73b
semi working
mateuszaaa Jun 5, 2023
7481355
reserve asset transfer workd
mateuszaaa Jun 6, 2023
13f9c36
small progress
mateuszaaa Jun 6, 2023
3402130
ump works
mateuszaaa Jun 8, 2023
10948d3
internal transfer through xcm
mateuszaaa Jun 8, 2023
1aa9524
all works
mateuszaaa Jun 8, 2023
438c9ca
bump runtime versions 003000 -> 003100
mateuszaaa Jun 9, 2023
be57e2d
Dedicated runtime api for checking fee locks
mateuszaaa Jun 9, 2023
07208c5
expose RPC api
mateuszaaa Jun 11, 2023
3f4fb2c
[MGX-527] Post 0.30.0 release alignment (#510)
majusko Jun 12, 2023
088856c
[MGX-521]Runtime api for checking FeeLocks (#509)
mateuszaaa Jun 12, 2023
64a0642
Do not initialize souvereign accounts manually
mateuszaaa Jun 12, 2023
1bd369f
[MGX-393] Polkadot MVR (#504)
mateuszaaa Jun 13, 2023
379e9f3
xcmp reserve_transfer works because funds are provided to souvereign …
mateuszaaa Jun 13, 2023
33e53a7
bump substrate
mateuszaaa Jun 13, 2023
a0d7a49
transfer local assets even though they are the same
mateuszaaa Jun 15, 2023
d9a70db
transfer local assets even though they are the same
mateuszaaa Jun 19, 2023
c11c38b
Dedicated runtime with XTokens
mateuszaaa Jun 19, 2023
bbcdc7d
Chore: Reduce development envs storage to reduce costs MGX-533 (#515)
tenequm Jun 19, 2023
f766c36
Enable multiswap tests & staking e2e (#507)
goncer Jun 20, 2023
7c7d1c9
use parachain-launch from main repo (#516)
vanderian Jun 20, 2023
752ba21
Adapt job to run tests with new sdk version (#513)
goncer Jun 20, 2023
1538e86
working xtokens test
mateuszaaa Jun 21, 2023
75f50b2
utilize asset trap
mateuszaaa Jun 21, 2023
7dd1eba
tests still passing
mateuszaaa Jun 21, 2023
12e6c53
get rid event logger
mateuszaaa Jun 21, 2023
79823e5
get rid of workarounds and apply restrictive xcm filters
mateuszaaa Jun 21, 2023
f9189c8
apply formatting
mateuszaaa Jun 22, 2023
34c1e2e
dummy change to trigger the build
goncer Jun 23, 2023
df3ab50
Merge branch 'develop' into feature/mgx-513
goncer Jun 23, 2023
7e67858
Merge branch 'develop' into feature/polkadot-mvr-xcm-tests
mateuszaaa Jun 23, 2023
cfb86b9
some extra asserts
mateuszaaa Jun 23, 2023
f8b50a5
Merge remote-tracking branch 'origin/feature/polkadot-mvr-xcm-tests' …
mateuszaaa Jun 23, 2023
68a9bcf
initial common runtime
mateuszaaa Jun 26, 2023
5841f3c
currencies
mateuszaaa Jun 26, 2023
c079456
move tokens ids to common runtime
mateuszaaa Jun 26, 2023
ce79553
extract runtime types
mateuszaaa Jun 26, 2023
d28df6e
move units to common runtime
mateuszaaa Jun 26, 2023
cc04015
extract frame_system params
mateuszaaa Jun 26, 2023
15cd18b
pallet_timestamp
mateuszaaa Jun 26, 2023
94fcd16
pallet treasury
mateuszaaa Jun 26, 2023
cd9bd2e
indirection through pallet treasury
mateuszaaa Jun 26, 2023
5cd51fc
orml tokens
mateuszaaa Jun 26, 2023
4c3043e
pallet xyk
mateuszaaa Jun 26, 2023
eaa98e5
pallet bootstrap
mateuszaaa Jun 26, 2023
e9eb39c
move AssetMetadataMutation & AssetRegisterFilter to common runtime
mateuszaaa Jun 27, 2023
939397c
move bootstrap::EnableAssetPoolApi to common runtime
mateuszaaa Jun 27, 2023
3ad53d6
pallet_transaction_payment_mangata part 1
mateuszaaa Jun 27, 2023
2a1474e
in the middle
mateuszaaa Jun 27, 2023
9a3bf1c
compiles
mateuszaaa Jun 28, 2023
90d626c
wip
mateuszaaa Jun 28, 2023
9595bae
ci: add main branch release workflow (#517)
tenequm Jun 29, 2023
e8325d8
dummy change for build
goncer Jul 4, 2023
6f47406
Merge branch 'develop' into feature/mgx-513
mateuszaaa Jul 5, 2023
7a81abc
fee calculations moved to common runtime
mateuszaaa Jul 5, 2023
1e4eb2f
pallet collective mangata & pallet_maintnance
mateuszaaa Jul 5, 2023
22cf94e
pallet collective mangata & pallet_maintnance
mateuszaaa Jul 5, 2023
faa70c2
parachain staking
mateuszaaa Jul 5, 2023
92e6b4e
parachain staking
mateuszaaa Jul 5, 2023
2b682c7
parachain staking and issuance
mateuszaaa Jul 5, 2023
ff2044d
orml asset registry
mateuszaaa Jul 5, 2023
8ee9aa2
pallet proxy
mateuszaaa Jul 5, 2023
4d6d810
formatting
mateuszaaa Jul 5, 2023
875e27e
align mvr setup
mateuszaaa Jul 6, 2023
87b90a3
remove constants modules from rococo & kusama
mateuszaaa Jul 6, 2023
b707690
trait problem
mateuszaaa Jul 6, 2023
fe82fa2
trait problem
mateuszaaa Jul 6, 2023
f4be480
split converter into 3 classes
mateuszaaa Jul 6, 2023
53f61c5
common xcm config
mateuszaaa Jul 7, 2023
27d8bcb
cargo fix common runtime
mateuszaaa Jul 7, 2023
f9cc3b5
appli cargo fix
mateuszaaa Jul 7, 2023
03caf63
apply cargo fmt
mateuszaaa Jul 7, 2023
019d85e
chainspec fixes
mateuszaaa Jul 7, 2023
e3c9d5f
allign integration tests with common runtime
mateuszaaa Jul 10, 2023
ad31b88
fix compilation issues
mateuszaaa Jul 10, 2023
033c7f7
revert kusama runtime
mateuszaaa Jul 10, 2023
3302e48
Merge remote-tracking branch 'origin/develop' into feature/common_run…
mateuszaaa Jul 10, 2023
d15248a
compilation fix
mateuszaaa Jul 10, 2023
c3e086c
fix try runtime
mateuszaaa Jul 11, 2023
c4fe5e6
fix runtime benchmarks
mateuszaaa Jul 11, 2023
61b4007
Fix polkadot MVR setup (#525)
mateuszaaa Jul 11, 2023
7f41dd3
add missing features dependencies
mateuszaaa Jul 11, 2023
f03c716
[MVR] Sudo pallet
mateuszaaa Jul 11, 2023
598333b
fix try runtime compilation
mateuszaaa Jul 11, 2023
60336ad
Merge branch 'develop' into feature/polkadot-mvr-xcm-tests
mateuszaaa Jul 11, 2023
82f3f02
remove outdated migrations
mateuszaaa Jul 11, 2023
b17e08b
fix typo
mateuszaaa Jul 11, 2023
c67732c
fix formatting
mateuszaaa Jul 11, 2023
841acbd
[MGX-513] Motion close only for council members (#511)
mateuszaaa Jul 11, 2023
a2eb3de
Merge branch 'develop' into feature/polkadot-mvr-xcm-tests
mateuszaaa Jul 11, 2023
9ca0979
Merge branch 'develop' into feature/common_runtime
mateuszaaa Jul 11, 2023
89e44a0
Remove outdated migrations (#528)
mateuszaaa Jul 13, 2023
41c6dbf
Merge branch 'develop' into feature/polkadot-mvr-xcm-tests
mateuszaaa Jul 14, 2023
0e8f026
Merge remote-tracking branch 'origin/develop' into feature/common_run…
mateuszaaa Jul 14, 2023
d9e18e4
add traces to investigate why docker stop could fail
goncer Jul 17, 2023
5b1b430
kill and remove leftover docker images
goncer Jul 17, 2023
0b030ad
fix wf
goncer Jul 17, 2023
3f83d16
CI: Update `dev` network resources usage requests in Kubernetes to op…
tenequm Jul 17, 2023
106d415
align call filter with origin impl
mateuszaaa Jul 18, 2023
dd1e262
improve docs (#526)
goncer Jul 18, 2023
7e76a6d
Merge branch 'develop' into feature/common_runtime
mateuszaaa Jul 18, 2023
728fd56
[MGX-534] Common Runtime (#527)
mateuszaaa Jul 18, 2023
2a778f0
Merge branch 'develop' into feature/polkadot-mvr-xcm-tests
mateuszaaa Jul 19, 2023
886a817
get rid of unnecessary generics and types
mateuszaaa Jul 20, 2023
367283d
Merge remote-tracking branch 'origin/develop' into feature/mvr-sudo
mateuszaaa Jul 20, 2023
d2f305c
fix typo in chainspec
mateuszaaa Jul 20, 2023
f8b26ed
Add automated step for generating wasms
mateuszaaa Jul 20, 2023
bc52810
reorder parameters
mateuszaaa Jul 20, 2023
0666be6
revert changes to non mvr code
mateuszaaa Jul 20, 2023
a6e7a50
use dedicated cache key for wasms
mateuszaaa Jul 21, 2023
a29961a
fix reports when build fail (#532)
goncer Jul 21, 2023
8dcd90d
Merge branch 'develop' into feature/mvr-sudo
mateuszaaa Jul 21, 2023
5a1069a
Merge branch 'main' into develop
AlexChetverov Jul 4, 2023
5589e7b
change config
AlexChetverov Jul 21, 2023
7527253
Polkadot MVR Sudo (#533)
mateuszaaa Jul 21, 2023
49daebb
Merge branch 'develop' into feature/fix-kusama-chainspec
mateuszaaa Jul 21, 2023
f955d24
allow to be run on self hosted runners
mateuszaaa Jul 21, 2023
bbac0dc
forward output to /dev/null
mateuszaaa Jul 22, 2023
644eb81
Fix rococo chainspec (#534)
mateuszaaa Jul 22, 2023
21a438c
Merge remote-tracking branch 'origin/develop' into feature/polkadot-m…
mateuszaaa Jul 23, 2023
dc65671
Cargo.lock update
mateuszaaa Jul 24, 2023
7373f92
[MGX-393] PolkadotMVR - xcm tests & xcm_config fine tuning (#518)
mateuszaaa Jul 24, 2023
30d8f93
Merge remote-tracking branch 'origin/develop' into feature/rpc-refactor
mateuszaaa Jul 25, 2023
58d8348
make compatible with wasm
mateuszaaa Jul 25, 2023
affb381
[MVR] fix compilation (#538)
mateuszaaa Jul 25, 2023
3657e3b
[MGX-392] Multi use crowdloan pallet
mateuszaaa Jul 25, 2023
381cc9e
add VestingProvider for crowdloan rewards pallet
mateuszaaa Jul 26, 2023
3a39552
feat: add rpc methods for tradeable tokens (#531)
devdanco Jul 26, 2023
f7e473f
bump crowdloan-pallet
mateuszaaa Jul 26, 2023
f9b60ea
Merge branch 'develop' into feature/crowdloan-multiuse
mateuszaaa Jul 27, 2023
b8fcc78
Remove fail fast from e2e matrix (#542)
goncer Jul 27, 2023
eaaa7b0
[MGX-392] Multi use crowdloan pallet (#540)
mateuszaaa Jul 27, 2023
8eaa196
Storage migration asset registry (#539)
devdanco Jul 31, 2023
659e8d9
bump pallet-crowdloan-rewards
mateuszaaa Jul 31, 2023
f14737e
Merge remote-tracking branch 'origin/develop' into feature/crowdloan-…
mateuszaaa Jul 31, 2023
bdb220b
Merge remote-tracking branch 'origin/develop' into feature/rpc-refactor
mateuszaaa Jul 31, 2023
b9432e0
fix compilation issues
mateuszaaa Jul 31, 2023
ae6cf86
[MGX-392] pallet-crowdloan-rewards migrations (#543)
mateuszaaa Aug 1, 2023
cf05253
[MGX-392] Crowdloan fixes
mateuszaaa Aug 3, 2023
b584945
[MGX-392] Crowdloan fixes (#544)
mateuszaaa Aug 3, 2023
1513d05
[MGX-392] Crowdloan fixes
mateuszaaa Aug 4, 2023
aa8087c
[MGX-392] Crowdloan fixes (#545)
mateuszaaa Aug 4, 2023
923f027
[MGX-531] - fix: claim rewards from disabled pool
mateuszaaa Aug 7, 2023
c23f6d3
draft
mateuszaaa Aug 8, 2023
e68bd10
Fix: Resolve issue with `dev` env connection to local relaychain MGX-…
tenequm Aug 8, 2023
9654d75
Fix: Update relaychain polkadot image used for development envs to v0…
tenequm Aug 11, 2023
03414b5
proper annotations
mateuszaaa Aug 11, 2023
34367f1
ignore weights in unrelated tests
mateuszaaa Aug 11, 2023
e78a448
revert changes
mateuszaaa Aug 11, 2023
4677a7d
[MGX-531] - fix: claim rewards from disabled pool (#546)
mateuszaaa Aug 11, 2023
0060030
Merge remote-tracking branch 'origin/develop' into feature/fix_fee_info
mateuszaaa Aug 11, 2023
b8202b8
[MGX-589] - fix: swaps communicate 0 fee in polkadotJS & 3rdparties (…
mateuszaaa Aug 14, 2023
a91d16a
ci: add test coverage report
tenequm Aug 17, 2023
e151c2e
fix: disable building of all features
tenequm Aug 17, 2023
f5239d7
chore(reusable-build-and-test.yml): add seccomp=unconfined security o…
tenequm Aug 17, 2023
b715c53
* chore(reusable-build-and-test.yml): update codecov-action to v3
tenequm Aug 17, 2023
c4071cb
chore: add coverage report as a separate job in the workflow
tenequm Aug 17, 2023
6141739
* chore(.gitignore): add coverage report files to gitignore
tenequm Aug 18, 2023
83e6a4b
CI: Add test coverage report MGX-590 (#550)
majusko Aug 21, 2023
c40a575
bump substrate
mateuszaaa Aug 21, 2023
22f2c0a
[fix] remove extra verbose logs (#552)
majusko Aug 21, 2023
8607cf2
ci: Fix docs.yml workflow MGX-664 (#553)
tenequm Aug 22, 2023
b59661b
ci: Add dependabot.yml configuration MGX-172 (#554)
tenequm Aug 23, 2023
1ab766e
change return types to Type that supports serialization
mateuszaaa Aug 24, 2023
62d3403
Merge branch 'develop' into feature/rpc-refactor
devdanco Aug 24, 2023
9c3fa0b
chore: temporarly add yarn cache cleaning command to fix e2e run issue
tenequm Aug 25, 2023
efe4874
chore: add TODO comment
tenequm Aug 25, 2023
b53eb20
CI: update Dependabot config MGX-172 (#576)
tenequm Aug 29, 2023
4e591f1
fix: wip
devdanco Aug 30, 2023
27ccb48
fix: update vesting rpc method
devdanco Aug 30, 2023
ffef4c1
fix mvr fees
mateuszaaa Aug 24, 2023
13779d8
base fee is between 0.001 DOT .. 0.10 DOT
mateuszaaa Aug 30, 2023
b08b997
Merge remote-tracking branch 'origin/develop' into feature/fix_mvr_fees
mateuszaaa Aug 31, 2023
115516d
Update README.md
majusko Aug 31, 2023
5c07095
[MGX-393] MVR - Fix transacation fees (#589)
mateuszaaa Aug 31, 2023
8a1993e
Merge branch 'develop' into feature/rpc-refactor
mateuszaaa Sep 4, 2023
2141349
update vesting rpc method
devdanco Sep 4, 2023
49f9796
remove vesting rpc
devdanco Sep 4, 2023
a49cc63
update reference
devdanco Sep 5, 2023
035ca39
Merge branch 'develop' into fix/vesting-rpc
devdanco Sep 5, 2023
cdb2ce3
update reference
devdanco Sep 5, 2023
eff62a5
fix: update crowdloan branch to mangata-dev
devdanco Sep 5, 2023
5848ec5
update reference
devdanco Sep 5, 2023
a4df29d
fix: Vesting Rpc method (#587)
mateuszaaa Sep 6, 2023
8f768e7
Update README.md
majusko Sep 7, 2023
423c6b2
Merge branch 'develop' into feature/new-L2-description
majusko Sep 7, 2023
fd873d6
Update README.md (#590)
majusko Sep 7, 2023
41d00a2
added test-crowdloan
AlexChetverov Sep 12, 2023
bca698e
Merge branch 'develop' into features-crowdloan-group
AlexChetverov Sep 12, 2023
b6e213c
Added crowdloan group (#595)
AlexChetverov Sep 13, 2023
47f3b36
Fix: Set cargo-tarpaulin version to fixed value of 0.26.1 as it doesn…
tenequm Sep 18, 2023
6530140
Pools and assets will never be deleted
majusko Sep 20, 2023
e66bda1
Merge remote-tracking branch 'origin/develop' into feature/rpc-refactor
mateuszaaa Sep 21, 2023
ab0d1fd
[MGX-522] Simplify XYK RPC api (#535)
mateuszaaa Sep 21, 2023
e80943c
CI: Update mangata-node helm chart to v1.3.0 MGX-433 (#601)
tenequm Sep 25, 2023
ff1226b
Update reusable-e2e-tests.yml (#602)
goncer Sep 26, 2023
0ed4f51
Bugfix/liq tokens mgx 434 v2 (#603)
majusko Sep 29, 2023
b8bd827
temp
AlexChetverov Sep 29, 2023
a30f4ae
add sdk
AlexChetverov Sep 29, 2023
d6653cb
new SDK tests (#604)
AlexChetverov Oct 2, 2023
cda6e15
CI: Use kubernetes based GHA self-hosted runners MGX-668 (#605)
tenequm Oct 4, 2023
d94f737
chore: Update Node.js version in reusable-perfomance-tests.yml workfl…
tenequm Oct 4, 2023
b546ba9
prevent test from running concurently
mateuszaaa Oct 4, 2023
b172011
Merge branch 'develop' into feature/fix-ut
mateuszaaa Oct 4, 2023
7ced5e3
annotate remaining tests
mateuszaaa Oct 4, 2023
e227f46
fix: run 'mutliswap_buy_W' test concurently (#610)
mateuszaaa Oct 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Tiltfile
**/*.txt
**/*.md
./docker-cargo
./mvr/docker-cargo
!/target/release/polkadot-collator
!/docker-cargo/release/wbuild/mangata-kusama-runtime/mangata_kusama_runtime.compact.compressed.wasm
!/docker-cargo/release/wbuild/mangata-kusama-runtime/mangata_kusama_runtime.compact.compressed.wasm.md5
Expand All @@ -25,8 +26,15 @@ Tiltfile
!/docker-cargo/release/wbuild/mangata-rococo-runtime/mangata_rococo_runtime.compact.wasm.md5
!/docker-cargo/release/wbuild/mangata-rococo-runtime/mangata_rococo_runtime.wasm
!/docker-cargo/release/wbuild/mangata-rococo-runtime/mangata_rococo_runtime.wasm.md5
!/mvr/docker-cargo/release/wbuild/mangata-polkadot-runtime/mangata_polkadot_runtime.compact.compressed.wasm
!/mvr/docker-cargo/release/wbuild/mangata-polkadot-runtime/mangata_polkadot_runtime.compact.compressed.wasm.md5
!/mvr/docker-cargo/release/wbuild/mangata-polkadot-runtime/mangata_polkadot_runtime.compact.wasm
!/mvr/docker-cargo/release/wbuild/mangata-polkadot-runtime/mangata_polkadot_runtime.compact.wasm.md5
!/mvr/docker-cargo/release/wbuild/mangata-polkadot-runtime/mangata_polkadot_runtime.wasm
!/mvr/docker-cargo/release/wbuild/mangata-polkadot-runtime/mangata_polkadot_runtime.wasm.md5

!/docker-cargo/release/mangata-node
!/mvr/docker-cargo/release/mangata-node

!target/release/mangata-node
!target/release/wbuild/mangata*
Expand Down
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
reviewers:
- "majusko"
- package-ecosystem: "cargo"
directory: "/mvr"
schedule:
interval: "weekly"
reviewers:
- "majusko"
commit-message:
prefix: "[mvr] "
4 changes: 3 additions & 1 deletion .github/workflows/branch-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
with:
env: fungible
version: ${{ needs.init.outputs.GLOBAL_VERSION }}
cluster_name: mangata-dev-alpha

run-perf-tests-branch:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -128,7 +129,7 @@ jobs:
- name: Set up GKE credentials
uses: google-github-actions/[email protected]
with:
cluster_name: mangata-dev
cluster_name: mangata-dev-alpha
location: europe-west1

- name: Delete Kubernetes namespace with resources for fungible environment
Expand All @@ -151,6 +152,7 @@ jobs:
with:
env: dev
version: ${{ needs.init.outputs.GLOBAL_VERSION }}
cluster_name: mangata-dev-alpha

run-e2e-test:
name: Run e2e tests
Expand Down
163 changes: 163 additions & 0 deletions .github/workflows/branch-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
name: Production Release Workflow

on:
workflow_dispatch:
inputs:
release_version:
description: 'Release version in the format `vX.X.X`'
required: true
pull_request:
branches: [main]
types: [closed]

# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}

jobs:
init:
name: Global init
if: ( github.event.pull_request.merged == true && startsWith(github.head_ref, 'rc/') || github.event_name == 'workflow_dispatch' )
runs-on: ubuntu-latest
outputs:
RELEASE_VERSION: ${{ steps.set_vars.outputs.RELEASE_VERSION }}
RELEASE_CANDIDATE_VERSION: ${{ steps.set_vars.outputs.RELEASE_CANDIDATE_VERSION }}
steps:
- name: Set release version
id: set_vars
run: |
echo "RELEASE_VERSION=v${GITHUB_HEAD_REF#rc/}" >> $GITHUB_OUTPUT
echo "RELEASE_CANDIDATE_VERSION=v${GITHUB_HEAD_REF#rc/}-rc" >> $GITHUB_OUTPUT

build-and-test:
needs: [init]
name: Build
uses: ./.github/workflows/reusable-build-and-test.yml
secrets: inherit
with:
version: ${{ needs.init.outputs.RELEASE_CANDIDATE_VERSION }}
branch: main

run-e2e-tests:
name: Run e2e tests
needs: [init,build-and-test]
uses: ./.github/workflows/reusable-e2e-tests.yml
secrets: inherit
with:
globalVersion: ${{ needs.init.outputs.RELEASE_CANDIDATE_VERSION }}
parachainDocker: docker.io/mangatasolutions/mangata-node:${{ needs.init.outputs.RELEASE_CANDIDATE_VERSION }}

create-draft-release-and-publish-docker-images:
name: Create Draft Release and Publish Docker Images
needs: [init,run-e2e-tests,build-and-test]
environment: kusama
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
DOCKER_IMAGE_DIGEST: ${{ steps.export_docker_image.outputs.DOCKER_IMAGE_DIGEST }}
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Export docker image
id: export_docker_image
run: |
docker pull mangatasolutions/mangata-node:${{ needs.init.outputs.RELEASE_CANDIDATE_VERSION }}
docker save mangatasolutions/mangata-node:${{ needs.init.outputs.RELEASE_CANDIDATE_VERSION }} -o docker-${{ needs.init.outputs.RELEASE_VERSION }}.tar
zip -r docker-${{ needs.init.outputs.RELEASE_VERSION }}.zip docker-${{ needs.init.outputs.RELEASE_VERSION }}.tar
# Save docker image SHA256 digest as an output variable
echo "DOCKER_IMAGE_DIGEST=$(docker inspect mangatasolutions/mangata-node:${{ needs.init.outputs.RELEASE_CANDIDATE_VERSION }} --format='{{index .RepoDigests 0}}')" >> $GITHUB_OUTPUT

- name: Tag and push image rococo and kusama specific images
uses: akhilerm/[email protected]
with:
src: docker.io/mangatasolutions/mangata-node:${{ needs.init.outputs.RELEASE_CANDIDATE_VERSION }}
dst: |
docker.io/mangatasolutions/mangata-node:rococo-${{ needs.init.outputs.RELEASE_VERSION }}
docker.io/mangatasolutions/mangata-node:kusama-${{ needs.init.outputs.RELEASE_VERSION }}

- name: Extract wasms
run: |
docker run --entrypoint="" --rm mangatasolutions/mangata-node:${{ needs.init.outputs.RELEASE_CANDIDATE_VERSION }} cat /mangata/mangata_kusama_runtime.compact.compressed.wasm > kusama.wasm
docker run --entrypoint="" --rm mangatasolutions/mangata-node:${{ needs.init.outputs.RELEASE_CANDIDATE_VERSION }} cat /mangata/mangata_rococo_runtime.compact.compressed.wasm > rococo.wasm

- name: Calculate Blake2 hashes
working-directory: scripts/blake2-hash
run: |
npm install
echo -n "kusama-${{ needs.init.outputs.RELEASE_VERSION }}.wasm [blake2]: " > hashes.txt
node index.js -i ../../kusama.wasm >> hashes.txt
echo -n "kusama-${{ needs.init.outputs.RELEASE_VERSION }}.wasm [md5sum]: " >> hashes.txt
md5sum ../../kusama.wasm | awk '{ print $1 }' >> hashes.txt
echo -n "kusama-${{ needs.init.outputs.RELEASE_VERSION }} spec version : " >> hashes.txt
grep -oE "spec_version:.*" ../../runtime/mangata-kusama/src/lib.rs | grep -oE "[0-9]+" | sort | tail -1 >> hashes.txt
echo -n "rococo-${{ needs.init.outputs.RELEASE_VERSION }}.wasm [blake2]: " >> hashes.txt
node index.js -i ../../rococo.wasm >> hashes.txt
echo -n "rococo-${{ needs.init.outputs.RELEASE_VERSION }}.wasm [md5sum]: " >> hashes.txt
md5sum ../../rococo.wasm | awk '{ print $1 }' >> hashes.txt
echo -n "rococo-${{ needs.init.outputs.RELEASE_VERSION }} spec version : " >> hashes.txt
grep -oE "spec_version:.*" ../../runtime/mangata-rococo/src/lib.rs | grep -oE "[0-9]+" | sort | tail -1 >> hashes.txt


- name: Rename artifacts
run: |
mv kusama.wasm kusama-${{ needs.init.outputs.RELEASE_VERSION }}.wasm
mv rococo.wasm rococo-${{ needs.init.outputs.RELEASE_VERSION }}.wasm
mv ./scripts/blake2-hash/hashes.txt hashes-and-versions-${{ needs.init.outputs.RELEASE_VERSION }}.txt

- name: Upload wasms to release page
uses: ncipollo/release-action@v1
with:
tag: ${{ needs.init.outputs.RELEASE_VERSION }}
allowUpdates: false
generateReleaseNotes: true
draft: true
artifacts: "kusama-${{ needs.init.outputs.RELEASE_VERSION }}.wasm,rococo-${{ needs.init.outputs.RELEASE_VERSION }}.wasm,hashes-and-versions-${{ needs.init.outputs.RELEASE_VERSION }}.txt,docker-${{ needs.init.outputs.RELEASE_VERSION }}.zip"

deploy-rococo:
needs: [init,create-draft-release-and-publish-docker-images]
name: Deploy to Rococo
uses: ./.github/workflows/reusable-deploy-rococo.yml
secrets: inherit
with:
version: rococo-${{ needs.init.outputs.RELEASE_VERSION }}

deploy-kusama:
needs: [init,deploy-rococo]
name: Deploy to Kusama
uses: ./.github/workflows/reusable-deploy-kusama.yml
secrets: inherit
with:
version: kusama-${{ needs.init.outputs.RELEASE_VERSION }}

publish-release:
name: Publish release
needs: [init,deploy-kusama,create-draft-release-and-publish-docker-images]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Tag and push image
uses: akhilerm/[email protected]
with:
src: ${{ needs.create-draft-release-and-publish-docker-images.outputs.DOCKER_IMAGE_DIGEST }}
dst: docker.io/mangatasolutions/mangata-node:${{ needs.init.outputs.RELEASE_VERSION }}

- name: Upload wasms to release page
uses: ncipollo/release-action@v1
with:
tag: ${{ needs.init.outputs.RELEASE_VERSION }}
allowUpdates: true
omitBodyDuringUpdate: true
updateOnlyUnreleased: true
9 changes: 5 additions & 4 deletions .github/workflows/branch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ permissions:
checks: write

env:
RELEASE_BRANCH_PATTERN: 'release/'
RELEASE_BRANCH_PATTERN: 'rc/'

# The following concurrency group cancels in-progress jobs or runs on pull_request events only
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand All @@ -56,7 +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
echo "RELEASE_TAG=${{ steps.branch-name.outputs.current_branch }}" | sed "rc/@@g" >> $GITHUB_OUTPUT

validate-branch-name:
name: Validate release branch name
Expand Down Expand Up @@ -84,6 +84,7 @@ jobs:
with:
env: fungible
version: ${{ needs.init.outputs.GLOBAL_VERSION }}
cluster_name: mangata-dev-alpha

clean-up-fungible:
name: Delete fungible environment
Expand All @@ -99,7 +100,7 @@ jobs:
- name: Set up GKE credentials
uses: google-github-actions/[email protected]
with:
cluster_name: mangata-dev
cluster_name: mangata-dev-alpha
location: europe-west1

- name: Delete Kubernetes namespace with resources for fungible environment
Expand Down Expand Up @@ -130,7 +131,7 @@ jobs:
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
uses: ./.github/workflows/reusable-deploy-rococo.yml
secrets: inherit
with:
version: rococo-${{ needs.init.outputs.RELEASE_TAG }}
6 changes: 4 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
permissions:
contents: write
id-token: write
runs-on: [self-hosted, compile]
runs-on: mangata-node-e2e-runners
container:
image: mangatasolutions/node-builder:multi-nightly-2022-11-21
steps:
Expand All @@ -28,7 +28,7 @@ jobs:
/usr/local/cargo/git
/usr/local/cargo/registry
~/.cache/sccache
key: node-docs-cache-0-${{ hashFiles('Cargo.lock') }}
key: node-docs-cache-1-${{ hashFiles('Cargo.lock') }}

- name: Build docs
run: cargo doc
Expand All @@ -39,6 +39,8 @@ jobs:
path: ./target/doc/
destination: mangata-docs-node
parent: false
concurrency: 50
process_gcloudignore: false

- name: Fix permissions on self-hosted runner
if: always()
Expand Down
92 changes: 0 additions & 92 deletions .github/workflows/release.yml

This file was deleted.

Loading
Loading