difftreelog
Merge pull request #817 from UniqueNetwork/feature/westend-rococo-env
in: master
Feature/westend rococo env
19 files changed
.docker/forkless-config/launch-config-forkless-data.j2diffbeforeafterboth--- a/.docker/forkless-config/launch-config-forkless-data.j2
+++ b/.docker/forkless-config/launch-config-forkless-data.j2
@@ -2,8 +2,8 @@
"relaychain": {
"bin": "/polkadot/target/release/polkadot",
"upgradeBin": "/polkadot/target/release/polkadot",
- "upgradeWasm": "/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm",
- "chain": "westend-local",
+ "upgradeWasm": "/polkadot/target/release/wbuild/{{ RELAY_CHAIN_TYPE }}-runtime/{{ RELAY_CHAIN_TYPE }}_runtime.compact.compressed.wasm",
+ "chain": "{{ RELAY_CHAIN_TYPE }}-local",
"nodes": [
{
"name": "alice",
.docker/forkless-config/launch-config-forkless-nodata.j2diffbeforeafterboth--- a/.docker/forkless-config/launch-config-forkless-nodata.j2
+++ b/.docker/forkless-config/launch-config-forkless-nodata.j2
@@ -2,8 +2,8 @@
"relaychain": {
"bin": "/polkadot/target/release/polkadot",
"upgradeBin": "/polkadot/target/release/polkadot",
- "upgradeWasm": "/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm",
- "chain": "westend-local",
+ "upgradeWasm": "/polkadot/target/release/wbuild/{{ RELAY_CHAIN_TYPE }}-runtime/{{ RELAY_CHAIN_TYPE }}_runtime.compact.compressed.wasm",
+ "chain": "{{ RELAY_CHAIN_TYPE }}-local",
"nodes": [
{
"name": "alice",
.docker/forkless-config/launch-config-node-update-only-v3.j2diffbeforeafterboth--- a/.docker/forkless-config/launch-config-node-update-only-v3.j2
+++ /dev/null
@@ -1,131 +0,0 @@
-{
- "relaychain": {
- "bin": "/polkadot/target/release/polkadot",
- "upgradeBin": "/polkadot/target/release/polkadot",
- "upgradeWasm": "/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm",
- "chain": "rococo-local",
- "nodes": [
- {
- "name": "alice",
- "wsPort": 9844,
- "rpcPort": 9843,
- "port": 30444,
- "flags": [
- "-lparachain::candidate_validation=debug",
- "-lxcm=trace",
- "--rpc-cors=all",
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- },
- {
- "name": "bob",
- "wsPort": 9855,
- "rpcPort": 9854,
- "port": 30555,
- "flags": [
- "-lparachain::candidate_validation=debug",
- "-lxcm=trace",
- "--rpc-cors=all",
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- },
- {
- "name": "charlie",
- "wsPort": 9866,
- "rpcPort": 9865,
- "port": 30666,
- "flags": [
- "-lparachain::candidate_validation=debug",
- "-lxcm=trace",
- "--rpc-cors=all",
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- },
- {
- "name": "dave",
- "wsPort": 9877,
- "rpcPort": 9876,
- "port": 30777,
- "flags": [
- "-lparachain::candidate_validation=debug",
- "-lxcm=trace",
- "--rpc-cors=all",
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- },
- {
- "name": "eve",
- "wsPort": 9888,
- "rpcPort": 9887,
- "port": 30888,
- "flags": [
- "-lparachain::candidate_validation=debug",
- "-lxcm=trace",
- "--rpc-cors=all",
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ],
- "genesis": {
- "runtime": {
- "runtime_genesis_config": {
- "parachainsConfiguration": {
- "config": {
- "validation_upgrade_frequency": 1,
- "validation_upgrade_delay": 1
- }
- }
- }
- }
- }
- },
- "parachains": [
- {
- "bin": "/unique-chain/current/release/unique-collator",
- "upgradeBin": "/unique-chain/target/release/unique-collator",
- "upgradeWasm": "/unique-chain/target/release/wbuild/{{ WASM_NAME }}-runtime/{{ WASM_NAME }}_runtime.compact.compressed.wasm",
- "id": "1000",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "port": 31200,
- "wsPort": 9944,
- "rpcPort": 9933,
- "name": "alice",
- "flags": [
- "--rpc-cors=all",
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lxcm=trace,parity_ws::handler=debug,jsonrpsee_core=trace,jsonrpsee-core=trace,jsonrpsee_ws_server=debug",
- "--ws-max-connections=1000",
- "--",
- "--port=31335",
- "--ws-port=9745",
- "--rpc-port=9734"
- ]
- },
- {
- "port": 31201,
- "wsPort": 9945,
- "rpcPort": 9934,
- "name": "bob",
- "flags": [
- "--rpc-cors=all",
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lxcm=trace,parity_ws::handler=debug,jsonrpsee_core=trace,jsonrpsee-core=trace,jsonrpsee_ws_server=debug",
- "--ws-max-connections=1000"
- ]
- }
- ]
- }
- ],
- "simpleParachains": [],
- "hrmpChannels": [],
- "finalization": false
-}
.docker/xcm-config/launch-config-xcm-opal-rococo.jsondiffbeforeafterboth--- a/.docker/xcm-config/launch-config-xcm-opal-rococo.json
+++ /dev/null
@@ -1,134 +0,0 @@
-{
- "relaychain": {
- "bin": "/polkadot/target/release/polkadot",
- "chain": "rococo-local",
- "chainInitializer": [
- "chainql",
- "--tla-code=spec=import '${spec}'",
- "5validators.jsonnet"
- ],
- "nodes": [
- {
- "name": "alice",
- "wsPort": 9844,
- "rpcPort": 9843,
- "port": 30444,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "bob",
- "wsPort": 9855,
- "rpcPort": 9854,
- "port": 30555,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "charlie",
- "wsPort": 9866,
- "rpcPort": 9865,
- "port": 30666,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "dave",
- "wsPort": 9877,
- "rpcPort": 9876,
- "port": 30777,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "eve",
- "wsPort": 9888,
- "rpcPort": 9887,
- "port": 30888,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- }
-
- ],
- "genesis": {
- "runtime": {
- "runtime_genesis_config": {
- "parachainsConfiguration": {
- "config": {
- "validation_upgrade_frequency": 1,
- "validation_upgrade_delay": 1
- }
- }
- }
- }
- }
- },
- "parachains": [
- {
- "bin": "/unique-chain/target/release/unique-collator",
- "id": "2095",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "port": 31200,
- "wsPort": 9944,
- "rpcPort": 9933,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- },
- {
- "bin": "/cumulus/target/release/cumulus",
- "id": "1000",
- "chain": "westmint-local",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "wsPort": 9948,
- "port": 31204,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- }
- ],
- "simpleParachains": [],
- "hrmpChannels": [
- {
- "sender": 2095,
- "recipient": 1000,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 1000,
- "recipient": 2095,
- "maxCapacity": 8,
- "maxMessageSize": 512
- }
- ],
- "finalization": false
-}
-
.docker/xcm-config/launch-config-xcm-opal.j2diffbeforeafterboth--- /dev/null
+++ b/.docker/xcm-config/launch-config-xcm-opal.j2
@@ -0,0 +1,135 @@
+{
+ "relaychain": {
+ "bin": "/polkadot/target/release/polkadot",
+ "chain": "{{ RELAY_CHAIN_TYPE }}-local",
+ "chainInitializer": [
+ "chainql",
+ "--tla-code=spec=import '${spec}'",
+ "5validators.jsonnet"
+ ],
+ "nodes": [
+ {
+ "name": "alice",
+ "wsPort": 9844,
+ "rpcPort": 9843,
+ "port": 30444,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "bob",
+ "wsPort": 9855,
+ "rpcPort": 9854,
+ "port": 30555,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "charlie",
+ "wsPort": 9866,
+ "rpcPort": 9865,
+ "port": 30666,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "dave",
+ "wsPort": 9877,
+ "rpcPort": 9876,
+ "port": 30777,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "eve",
+ "wsPort": 9888,
+ "rpcPort": 9887,
+ "port": 30888,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ }
+
+ ],
+ "genesis": {
+ "runtime": {
+ "runtime_genesis_config": {
+ "parachainsConfiguration": {
+ "config": {
+ "validation_upgrade_frequency": 1,
+ "validation_upgrade_delay": 1
+ }
+ }
+ }
+ }
+ }
+ },
+ "parachains": [
+ {
+ "bin": "/unique-chain/target/release/unique-collator",
+ "id": "2095",
+ "balance": "1000000000000000000000000",
+ "nodes": [
+ {
+ "port": 31200,
+ "wsPort": 9944,
+ "rpcPort": 9933,
+ "name": "alice",
+ "flags": [
+ "--unsafe-rpc-external",
+ "-lxcm=trace,parity_ws::handler=debug,jsonrpsee_core=trace,jsonrpsee-core=trace,jsonrpsee_ws_server=debug",
+ "--unsafe-ws-external"
+ ]
+ }
+ ]
+ },
+ {
+ "bin": "/cumulus/target/release/cumulus",
+ "id": "1000",
+ "chain": "westmint-local",
+ "balance": "1000000000000000000000000",
+ "nodes": [
+ {
+ "wsPort": 9948,
+ "port": 31204,
+ "name": "alice",
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external"
+ ]
+ }
+ ]
+ }
+ ],
+ "simpleParachains": [],
+ "hrmpChannels": [
+ {
+ "sender": 2095,
+ "recipient": 1000,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 1000,
+ "recipient": 2095,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ }
+ ],
+ "finalization": false
+}
+
.docker/xcm-config/launch-config-xcm-opal.jsondiffbeforeafterboth--- a/.docker/xcm-config/launch-config-xcm-opal.json
+++ /dev/null
@@ -1,135 +0,0 @@
-{
- "relaychain": {
- "bin": "/polkadot/target/release/polkadot",
- "chain": "westend-local",
- "chainInitializer": [
- "chainql",
- "--tla-code=spec=import '${spec}'",
- "5validators.jsonnet"
- ],
- "nodes": [
- {
- "name": "alice",
- "wsPort": 9844,
- "rpcPort": 9843,
- "port": 30444,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "bob",
- "wsPort": 9855,
- "rpcPort": 9854,
- "port": 30555,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "charlie",
- "wsPort": 9866,
- "rpcPort": 9865,
- "port": 30666,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "dave",
- "wsPort": 9877,
- "rpcPort": 9876,
- "port": 30777,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "eve",
- "wsPort": 9888,
- "rpcPort": 9887,
- "port": 30888,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- }
-
- ],
- "genesis": {
- "runtime": {
- "runtime_genesis_config": {
- "parachainsConfiguration": {
- "config": {
- "validation_upgrade_frequency": 1,
- "validation_upgrade_delay": 1
- }
- }
- }
- }
- }
- },
- "parachains": [
- {
- "bin": "/unique-chain/target/release/unique-collator",
- "id": "2095",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "port": 31200,
- "wsPort": 9944,
- "rpcPort": 9933,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "-lxcm=trace,parity_ws::handler=debug,jsonrpsee_core=trace,jsonrpsee-core=trace,jsonrpsee_ws_server=debug",
- "--unsafe-ws-external"
- ]
- }
- ]
- },
- {
- "bin": "/cumulus/target/release/cumulus",
- "id": "1000",
- "chain": "westmint-local",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "wsPort": 9948,
- "port": 31204,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- }
- ],
- "simpleParachains": [],
- "hrmpChannels": [
- {
- "sender": 2095,
- "recipient": 1000,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 1000,
- "recipient": 2095,
- "maxCapacity": 8,
- "maxMessageSize": 512
- }
- ],
- "finalization": false
-}
-
.docker/xcm-config/launch-config-xcm-quartz-rococo.jsondiffbeforeafterboth--- a/.docker/xcm-config/launch-config-xcm-quartz-rococo.json
+++ /dev/null
@@ -1,204 +0,0 @@
-{
- "relaychain": {
- "bin": "/polkadot/target/release/polkadot",
- "chain": "rococo-local",
- "chainInitializer": [
- "chainql",
- "--tla-code=spec=import '${spec}'",
- "5validators.jsonnet"
- ],
- "nodes": [
- {
- "name": "alice",
- "wsPort": 9844,
- "rpcPort": 9843,
- "port": 30444,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "bob",
- "wsPort": 9855,
- "rpcPort": 9854,
- "port": 30555,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "charlie",
- "wsPort": 9866,
- "rpcPort": 9865,
- "port": 30666,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "dave",
- "wsPort": 9877,
- "rpcPort": 9876,
- "port": 30777,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "eve",
- "wsPort": 9888,
- "rpcPort": 9887,
- "port": 30888,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- }
-
- ],
- "genesis": {
- "runtime": {
- "runtime_genesis_config": {
- "parachainsConfiguration": {
- "config": {
- "validation_upgrade_frequency": 1,
- "validation_upgrade_delay": 1
- }
- }
- }
- }
- }
- },
- "parachains": [
- {
- "bin": "/unique-chain/target/release/unique-collator",
- "id": "2095",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "port": 31200,
- "wsPort": 9944,
- "rpcPort": 9933,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- },
- {
- "bin": "/acala/target/release/acala",
- "id": "2000",
- "chain": "karura-dev",
- "balance": "1000000000000000000000",
- "chainInitializer": [
- "chainql",
- "-e",
- "(import '${spec}') {id+: '-local'}"
- ],
- "nodes": [
- {
- "wsPort": 9946,
- "port": 31202,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- },
- {
- "bin": "/moonbeam/target/release/moonbeam",
- "id": 2023,
- "balance": "1000000000000000000000",
- "chain": "moonriver-local",
- "chainInitializer": [
- "chainql",
- "--tla-code=spec=import '${spec}'",
- "minBondFix.jsonnet"
- ],
- "nodes": [
- {
- "wsPort": 9947,
- "port": 31203,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "--",
- "--execution=wasm"
- ]
- }
- ]
- },
- {
- "bin": "/cumulus/target/release/cumulus",
- "id": "1000",
- "chain": "statemine-local",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "wsPort": 9948,
- "port": 31204,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- }
- ],
- "simpleParachains": [],
- "hrmpChannels": [
- {
- "sender": 2095,
- "recipient": 2000,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2000,
- "recipient": 2095,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2095,
- "recipient": 2023,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2023,
- "recipient": 2095,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2095,
- "recipient": 1000,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 1000,
- "recipient": 2095,
- "maxCapacity": 8,
- "maxMessageSize": 512
- }
- ],
- "finalization": false
-}
-
.docker/xcm-config/launch-config-xcm-quartz.j2diffbeforeafterboth--- /dev/null
+++ b/.docker/xcm-config/launch-config-xcm-quartz.j2
@@ -0,0 +1,205 @@
+{
+ "relaychain": {
+ "bin": "/polkadot/target/release/polkadot",
+ "chain": "{{ RELAY_CHAIN_TYPE }}-local",
+ "chainInitializer": [
+ "chainql",
+ "--tla-code=spec=import '${spec}'",
+ "5validators.jsonnet"
+ ],
+ "nodes": [
+ {
+ "name": "alice",
+ "wsPort": 9844,
+ "rpcPort": 9843,
+ "port": 30444,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "bob",
+ "wsPort": 9855,
+ "rpcPort": 9854,
+ "port": 30555,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "charlie",
+ "wsPort": 9866,
+ "rpcPort": 9865,
+ "port": 30666,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "dave",
+ "wsPort": 9877,
+ "rpcPort": 9876,
+ "port": 30777,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "eve",
+ "wsPort": 9888,
+ "rpcPort": 9887,
+ "port": 30888,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ }
+
+ ],
+ "genesis": {
+ "runtime": {
+ "runtime_genesis_config": {
+ "parachainsConfiguration": {
+ "config": {
+ "validation_upgrade_frequency": 1,
+ "validation_upgrade_delay": 1
+ }
+ }
+ }
+ }
+ }
+ },
+ "parachains": [
+ {
+ "bin": "/unique-chain/target/release/unique-collator",
+ "id": "2095",
+ "balance": "1000000000000000000000000",
+ "nodes": [
+ {
+ "port": 31200,
+ "wsPort": 9944,
+ "rpcPort": 9933,
+ "name": "alice",
+ "flags": [
+ "-lxcm=trace,parity_ws::handler=debug,jsonrpsee_core=trace,jsonrpsee-core=trace,jsonrpsee_ws_server=debug",
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external"
+ ]
+ }
+ ]
+ },
+ {
+ "bin": "/acala/target/release/acala",
+ "id": "2000",
+ "chain": "karura-dev",
+ "balance": "1000000000000000000000",
+ "chainInitializer": [
+ "chainql",
+ "-e",
+ "(import '${spec}') {id+: '-local'}"
+ ],
+ "nodes": [
+ {
+ "wsPort": 9946,
+ "port": 31202,
+ "name": "alice",
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external"
+ ]
+ }
+ ]
+ },
+ {
+ "bin": "/moonbeam/target/release/moonbeam",
+ "id": 2023,
+ "balance": "1000000000000000000000",
+ "chain": "moonriver-local",
+ "chainInitializer": [
+ "chainql",
+ "--tla-code=spec=import '${spec}'",
+ "minBondFix.jsonnet"
+ ],
+ "nodes": [
+ {
+ "wsPort": 9947,
+ "port": 31203,
+ "name": "alice",
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "--",
+ "--execution=wasm"
+ ]
+ }
+ ]
+ },
+ {
+ "bin": "/cumulus/target/release/cumulus",
+ "id": "1000",
+ "chain": "statemine-local",
+ "balance": "1000000000000000000000000",
+ "nodes": [
+ {
+ "wsPort": 9948,
+ "port": 31204,
+ "name": "alice",
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external"
+ ]
+ }
+ ]
+ }
+ ],
+ "simpleParachains": [],
+ "hrmpChannels": [
+ {
+ "sender": 2095,
+ "recipient": 2000,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 2000,
+ "recipient": 2095,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 2095,
+ "recipient": 2023,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 2023,
+ "recipient": 2095,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 2095,
+ "recipient": 1000,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 1000,
+ "recipient": 2095,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ }
+ ],
+ "finalization": false
+}
+
.docker/xcm-config/launch-config-xcm-quartz.jsondiffbeforeafterboth--- a/.docker/xcm-config/launch-config-xcm-quartz.json
+++ /dev/null
@@ -1,205 +0,0 @@
-{
- "relaychain": {
- "bin": "/polkadot/target/release/polkadot",
- "chain": "westend-local",
- "chainInitializer": [
- "chainql",
- "--tla-code=spec=import '${spec}'",
- "5validators.jsonnet"
- ],
- "nodes": [
- {
- "name": "alice",
- "wsPort": 9844,
- "rpcPort": 9843,
- "port": 30444,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "bob",
- "wsPort": 9855,
- "rpcPort": 9854,
- "port": 30555,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "charlie",
- "wsPort": 9866,
- "rpcPort": 9865,
- "port": 30666,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "dave",
- "wsPort": 9877,
- "rpcPort": 9876,
- "port": 30777,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "eve",
- "wsPort": 9888,
- "rpcPort": 9887,
- "port": 30888,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- }
-
- ],
- "genesis": {
- "runtime": {
- "runtime_genesis_config": {
- "parachainsConfiguration": {
- "config": {
- "validation_upgrade_frequency": 1,
- "validation_upgrade_delay": 1
- }
- }
- }
- }
- }
- },
- "parachains": [
- {
- "bin": "/unique-chain/target/release/unique-collator",
- "id": "2095",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "port": 31200,
- "wsPort": 9944,
- "rpcPort": 9933,
- "name": "alice",
- "flags": [
- "-lxcm=trace,parity_ws::handler=debug,jsonrpsee_core=trace,jsonrpsee-core=trace,jsonrpsee_ws_server=debug",
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- },
- {
- "bin": "/acala/target/release/acala",
- "id": "2000",
- "chain": "karura-dev",
- "balance": "1000000000000000000000",
- "chainInitializer": [
- "chainql",
- "-e",
- "(import '${spec}') {id+: '-local'}"
- ],
- "nodes": [
- {
- "wsPort": 9946,
- "port": 31202,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- },
- {
- "bin": "/moonbeam/target/release/moonbeam",
- "id": 2023,
- "balance": "1000000000000000000000",
- "chain": "moonriver-local",
- "chainInitializer": [
- "chainql",
- "--tla-code=spec=import '${spec}'",
- "minBondFix.jsonnet"
- ],
- "nodes": [
- {
- "wsPort": 9947,
- "port": 31203,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "--",
- "--execution=wasm"
- ]
- }
- ]
- },
- {
- "bin": "/cumulus/target/release/cumulus",
- "id": "1000",
- "chain": "statemine-local",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "wsPort": 9948,
- "port": 31204,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- }
- ],
- "simpleParachains": [],
- "hrmpChannels": [
- {
- "sender": 2095,
- "recipient": 2000,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2000,
- "recipient": 2095,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2095,
- "recipient": 2023,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2023,
- "recipient": 2095,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2095,
- "recipient": 1000,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 1000,
- "recipient": 2095,
- "maxCapacity": 8,
- "maxMessageSize": 512
- }
- ],
- "finalization": false
-}
-
.docker/xcm-config/launch-config-xcm-unique-rococo.jsondiffbeforeafterboth--- a/.docker/xcm-config/launch-config-xcm-unique-rococo.json
+++ /dev/null
@@ -1,207 +0,0 @@
-{
- "relaychain": {
- "bin": "/polkadot/target/release/polkadot",
- "chain": "rococo-local",
- "chainInitializer": [
- "chainql",
- "--tla-code=spec=import '${spec}'",
- "5validators.jsonnet"
- ],
- "nodes": [
- {
- "name": "alice",
- "wsPort": 9844,
- "rpcPort": 9843,
- "port": 30444,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "bob",
- "wsPort": 9855,
- "rpcPort": 9854,
- "port": 30555,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "charlie",
- "wsPort": 9866,
- "rpcPort": 9865,
- "port": 30666,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "dave",
- "wsPort": 9877,
- "rpcPort": 9876,
- "port": 30777,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "eve",
- "wsPort": 9888,
- "rpcPort": 9887,
- "port": 30888,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- }
-
- ],
- "genesis": {
- "runtime": {
- "runtime_genesis_config": {
- "parachainsConfiguration": {
- "config": {
- "validation_upgrade_frequency": 1,
- "validation_upgrade_delay": 1
- }
- }
- }
- }
- }
- },
- "parachains": [
- {
- "bin": "/unique-chain/target/release/unique-collator",
- "id": "2037",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "port": 31200,
- "wsPort": 9944,
- "rpcPort": 9933,
- "name": "alice",
- "flags": [
- "-lruntime=trace",
- "-lxcm=trace",
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- },
- {
- "bin": "/acala/target/release/acala",
- "id": "2000",
- "chain": "acala-dev",
- "balance": "1000000000000000000000",
- "chainInitializer": [
- "chainql",
- "-e",
- "(import '${spec}') {id+: '-local'}"
- ],
- "nodes": [
- {
- "wsPort": 9946,
- "port": 31202,
- "name": "alice",
- "flags": [
- "-lruntime=trace",
- "-lxcm=trace",
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- },
- {
- "bin": "/moonbeam/target/release/moonbeam",
- "id": "2004",
- "balance": "1000000000000000000000",
- "chain": "moonbeam-local",
- "nodes": [
- {
- "wsPort": 9947,
- "port": 31203,
- "name": "alice",
- "flags": [
- "-lruntime=trace",
- "-lxcm=trace",
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "--",
- "--execution=wasm"
- ]
- }
- ]
- },
- {
- "bin": "/cumulus/target/release/cumulus",
- "id": "1000",
- "chain": "statemint-local",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "wsPort": 9948,
- "port": 31204,
- "name": "alice",
- "flags": [
- "-lruntime=trace",
- "-lxcm=trace",
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- }
- ],
- "simpleParachains": [],
- "hrmpChannels": [
- {
- "sender": 2037,
- "recipient": 2000,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2000,
- "recipient": 2037,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2037,
- "recipient": 2004,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2004,
- "recipient": 2037,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2037,
- "recipient": 1000,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 1000,
- "recipient": 2037,
- "maxCapacity": 8,
- "maxMessageSize": 512
- }
- ],
- "finalization": false
-}
-
.docker/xcm-config/launch-config-xcm-unique.j2diffbeforeafterboth--- /dev/null
+++ b/.docker/xcm-config/launch-config-xcm-unique.j2
@@ -0,0 +1,200 @@
+{
+ "relaychain": {
+ "bin": "/polkadot/target/release/polkadot",
+ "chain": "{{ RELAY_CHAIN_TYPE }}-local",
+ "chainInitializer": [
+ "chainql",
+ "--tla-code=spec=import '${spec}'",
+ "5validators.jsonnet"
+ ],
+ "nodes": [
+ {
+ "name": "alice",
+ "wsPort": 9844,
+ "rpcPort": 9843,
+ "port": 30444,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "bob",
+ "wsPort": 9855,
+ "rpcPort": 9854,
+ "port": 30555,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "charlie",
+ "wsPort": 9866,
+ "rpcPort": 9865,
+ "port": 30666,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "dave",
+ "wsPort": 9877,
+ "rpcPort": 9876,
+ "port": 30777,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ },
+ {
+ "name": "eve",
+ "wsPort": 9888,
+ "rpcPort": 9887,
+ "port": 30888,
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "-lparachain::candidate_validation=debug"
+ ]
+ }
+
+ ],
+ "genesis": {
+ "runtime": {
+ "runtime_genesis_config": {
+ "parachainsConfiguration": {
+ "config": {
+ "validation_upgrade_frequency": 1,
+ "validation_upgrade_delay": 1
+ }
+ }
+ }
+ }
+ }
+ },
+ "parachains": [
+ {
+ "bin": "/unique-chain/target/release/unique-collator",
+ "id": "2037",
+ "balance": "1000000000000000000000000",
+ "nodes": [
+ {
+ "port": 31200,
+ "wsPort": 9944,
+ "rpcPort": 9933,
+ "name": "alice",
+ "flags": [
+ "-lxcm=trace,parity_ws::handler=debug,jsonrpsee_core=trace,jsonrpsee-core=trace,jsonrpsee_ws_server=debug",
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external"
+ ]
+ }
+ ]
+ },
+ {
+ "bin": "/acala/target/release/acala",
+ "id": "2000",
+ "chain": "acala-dev",
+ "balance": "1000000000000000000000",
+ "chainInitializer": [
+ "chainql",
+ "-e",
+ "(import '${spec}') {id+: '-local'}"
+ ],
+ "nodes": [
+ {
+ "wsPort": 9946,
+ "port": 31202,
+ "name": "alice",
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external"
+ ]
+ }
+ ]
+ },
+ {
+ "bin": "/moonbeam/target/release/moonbeam",
+ "id": "2004",
+ "balance": "1000000000000000000000",
+ "chain": "moonbeam-local",
+ "nodes": [
+ {
+ "wsPort": 9947,
+ "port": 31203,
+ "name": "alice",
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external",
+ "--",
+ "--execution=wasm"
+ ]
+ }
+ ]
+ },
+ {
+ "bin": "/cumulus/target/release/cumulus",
+ "id": "1000",
+ "chain": "statemint-local",
+ "balance": "1000000000000000000000000",
+ "nodes": [
+ {
+ "wsPort": 9948,
+ "port": 31204,
+ "name": "alice",
+ "flags": [
+ "--unsafe-rpc-external",
+ "--unsafe-ws-external"
+ ]
+ }
+ ]
+ }
+ ],
+ "simpleParachains": [],
+ "hrmpChannels": [
+ {
+ "sender": 2037,
+ "recipient": 2000,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 2000,
+ "recipient": 2037,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 2037,
+ "recipient": 2004,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 2004,
+ "recipient": 2037,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 2037,
+ "recipient": 1000,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ },
+ {
+ "sender": 1000,
+ "recipient": 2037,
+ "maxCapacity": 8,
+ "maxMessageSize": 512
+ }
+ ],
+ "finalization": false
+}
+
.docker/xcm-config/launch-config-xcm-unique.jsondiffbeforeafterboth--- a/.docker/xcm-config/launch-config-xcm-unique.json
+++ /dev/null
@@ -1,200 +0,0 @@
-{
- "relaychain": {
- "bin": "/polkadot/target/release/polkadot",
- "chain": "westend-local",
- "chainInitializer": [
- "chainql",
- "--tla-code=spec=import '${spec}'",
- "5validators.jsonnet"
- ],
- "nodes": [
- {
- "name": "alice",
- "wsPort": 9844,
- "rpcPort": 9843,
- "port": 30444,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "bob",
- "wsPort": 9855,
- "rpcPort": 9854,
- "port": 30555,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "charlie",
- "wsPort": 9866,
- "rpcPort": 9865,
- "port": 30666,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "dave",
- "wsPort": 9877,
- "rpcPort": 9876,
- "port": 30777,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- },
- {
- "name": "eve",
- "wsPort": 9888,
- "rpcPort": 9887,
- "port": 30888,
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "-lparachain::candidate_validation=debug"
- ]
- }
-
- ],
- "genesis": {
- "runtime": {
- "runtime_genesis_config": {
- "parachainsConfiguration": {
- "config": {
- "validation_upgrade_frequency": 1,
- "validation_upgrade_delay": 1
- }
- }
- }
- }
- }
- },
- "parachains": [
- {
- "bin": "/unique-chain/target/release/unique-collator",
- "id": "2037",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "port": 31200,
- "wsPort": 9944,
- "rpcPort": 9933,
- "name": "alice",
- "flags": [
- "-lxcm=trace,parity_ws::handler=debug,jsonrpsee_core=trace,jsonrpsee-core=trace,jsonrpsee_ws_server=debug",
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- },
- {
- "bin": "/acala/target/release/acala",
- "id": "2000",
- "chain": "acala-dev",
- "balance": "1000000000000000000000",
- "chainInitializer": [
- "chainql",
- "-e",
- "(import '${spec}') {id+: '-local'}"
- ],
- "nodes": [
- {
- "wsPort": 9946,
- "port": 31202,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- },
- {
- "bin": "/moonbeam/target/release/moonbeam",
- "id": "2004",
- "balance": "1000000000000000000000",
- "chain": "moonbeam-local",
- "nodes": [
- {
- "wsPort": 9947,
- "port": 31203,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external",
- "--",
- "--execution=wasm"
- ]
- }
- ]
- },
- {
- "bin": "/cumulus/target/release/cumulus",
- "id": "1000",
- "chain": "statemint-local",
- "balance": "1000000000000000000000000",
- "nodes": [
- {
- "wsPort": 9948,
- "port": 31204,
- "name": "alice",
- "flags": [
- "--unsafe-rpc-external",
- "--unsafe-ws-external"
- ]
- }
- ]
- }
- ],
- "simpleParachains": [],
- "hrmpChannels": [
- {
- "sender": 2037,
- "recipient": 2000,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2000,
- "recipient": 2037,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2037,
- "recipient": 2004,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2004,
- "recipient": 2037,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 2037,
- "recipient": 1000,
- "maxCapacity": 8,
- "maxMessageSize": 512
- },
- {
- "sender": 1000,
- "recipient": 2037,
- "maxCapacity": 8,
- "maxMessageSize": 512
- }
- ],
- "finalization": false
-}
-
.envdiffbeforeafterboth--- a/.env
+++ b/.env
@@ -1,6 +1,7 @@
RUST_TOOLCHAIN=nightly-2022-11-15
POLKADOT_BUILD_BRANCH=release-v0.9.36
POLKADOT_LAUNCH_BRANCH=unique-network
+RELAY_CHAIN_TYPE=westend
POLKADOT_MAINNET_BRANCH=release-v0.9.30
STATEMINT_BUILD_BRANCH=release-parachains-v9320
.github/workflows/ci-develop.ymldiffbeforeafterboth--- a/.github/workflows/ci-develop.yml
+++ b/.github/workflows/ci-develop.yml
@@ -42,9 +42,9 @@
if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'node-only-update')) }} # Conditional check for draft & labels per job.
uses: ./.github/workflows/node-only-update.yml
- integration:
- if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'integration')) }} # Conditional check for draft & labels per job.
- uses: ./.github/workflows/integration-tests.yml
+ # integration:
+ # if: ${{ (github.event.pull_request.draft == false && contains( github.event.pull_request.labels.*.name, 'integration')) }} # Conditional check for draft & labels per job.
+ # uses: ./.github/workflows/integration-tests.yml
codestyle:
if: github.event.pull_request.draft == false # Conditional check for draft per job.
.github/workflows/forkless-update-data.ymldiffbeforeafterboth--- a/.github/workflows/forkless-update-data.yml
+++ b/.github/workflows/forkless-update-data.yml
@@ -95,6 +95,7 @@
NETWORK=${{ matrix.network }}
REPLICA_FROM=${{ matrix.replica_from_address }}
WASM_NAME=${{ matrix.wasm_name}}
+ RELAY_CHAIN_TYPE=${{ env.RELAY_CHAIN_TYPE }}
- name: Show launch-config-forkless configuration
run: cat .docker/launch-config-forkless-data.json
.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth--- a/.github/workflows/forkless-update-nodata.yml
+++ b/.github/workflows/forkless-update-nodata.yml
@@ -95,6 +95,7 @@
variables: |
NETWORK=${{ matrix.network }}
WASM_NAME=${{ matrix.wasm_name }}
+ RELAY_CHAIN_TYPE=${{ env.RELAY_CHAIN_TYPE }}
- name: Show launch-config-forkless configuration
run: cat .docker/launch-config-forkless-nodata.json
.github/workflows/integration-tests.ymldiffbeforeafterboth--- a/.github/workflows/integration-tests.yml
+++ /dev/null
@@ -1,338 +0,0 @@
-# Test workflow for debug parallel and sequental tests in scope of execution time reducing.
-name: Integration tests
-
-# Triger: only call from main workflow(re-usable workflows)
-on:
- workflow_call:
-#Define Workflow variables
-
-# A workflow run is made up of one or more jobs that can run sequentially or in parallel
-jobs:
-
- nodes-execution-matrix:
-
- name: execution matrix
-
- runs-on: self-hosted-ci
- outputs:
- matrix: ${{ steps.create_matrix.outputs.matrix }}
-
- steps:
-
- - name: Clean Workspace
- uses: AutoModality/action-clean@v1.1.0
-
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- - uses: actions/checkout@v3
- with:
- ref: ${{ github.head_ref }} #Checking out head commit
-
- - name: Read .env file
- uses: xom9ikk/dotenv@v1.0.2
-
- - name: Create Execution matrix
- uses: fabiocaccamo/create-matrix-action@v2
- id: create_matrix
- with:
- matrix: |
- network {opal}, wasm_name {opal}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}
- network {sapphire}, wasm_name {quartz}, mainnet_branch {${{ env.OPAL_MAINNET_BRANCH }}}
- network {quartz}, wasm_name {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_BRANCH }}}
- network {unique}, wasm_name {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_BRANCH }}}
-
- parallel-test:
- needs: nodes-execution-matrix
- # The type of runner that the job will run on
- runs-on: [self-hosted-ci,large]
-
- timeout-minutes: 1380
-
- name: ${{ matrix.network }} - parallel
-
- continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
-
- strategy:
- matrix:
- include: ${{fromJson(needs.nodes-execution-matrix.outputs.matrix)}}
-
- steps:
-
- - name: Clean Workspace
- uses: AutoModality/action-clean@v1.1.0
-
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- - uses: actions/checkout@v3
- with:
- ref: ${{ github.head_ref }} #Checking out head commit
-
- - name: Read .env file
- uses: xom9ikk/dotenv@v1.0.2
-
- - name: Generate ENV related extend file for docker-compose
- uses: cuchi/jinja2-action@v1.2.0
- with:
- template: .docker/docker-compose.tmp-node.j2
- output_file: .docker/docker-compose.node.${{ matrix.network }}.yml
- variables: |
- REPO_URL=${{ github.server_url }}/${{ github.repository }}.git
- RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
- POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}
- POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
- POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}
- MAINNET_TAG=${{ matrix.mainnet_tag }}
- MAINNET_BRANCH=${{ matrix.mainnet_branch }}
- NETWORK=${{ matrix.network }}
- BRANCH=${{ github.head_ref }}
- WASM_NAME=${{ matrix.wasm_name }}
-
- - name: Show build configuration
- run: cat .docker/docker-compose.node.${{ matrix.network }}.yml
-
- - name: Generate launch-config-forkless-nodata.json
- uses: cuchi/jinja2-action@v1.2.0
- with:
- template: .docker/forkless-config/launch-config-node-update-only-v3.j2
- output_file: .docker/launch-config-forkless-nodata.json
- variables: |
- NETWORK=${{ matrix.network }}
-
- - name: Show launch-config-forkless configuration
- run: cat .docker/launch-config-forkless-nodata.json
-
- - uses: actions/setup-node@v3
- with:
- node-version: 16
-
- - name: Build the stack
- run: docker-compose -f ".docker/docker-compose.node.${{ matrix.network }}.yml" up -d --build --remove-orphans --force-recreate --timeout 300
-
- # 🚀 POLKADOT LAUNCH COMPLETE 🚀
- - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.
- if: success()
- run: |
- counter=160
- function check_container_status {
- docker inspect -f {{.State.Running}} node-parachain
- }
- function do_docker_logs {
- docker logs --details node-parachain 2>&1
- }
- function is_started {
- if [ "$(check_container_status)" == "true" ]; then
- echo "Container: node-parachain RUNNING";
- echo "Check Docker logs"
- DOCKER_LOGS=$(do_docker_logs)
- if [[ ${DOCKER_LOGS} = *"POLKADOT LAUNCH COMPLETE"* ]];then
- echo "🚀 POLKADOT LAUNCH COMPLETE 🚀"
- return 0
- else
- echo "Message not found in logs output, repeating..."
- return 1
- fi
- else
- echo "Container node-parachain NOT RUNNING"
- echo "Halting all future checks"
- exit 1
- fi
- echo "something goes wrong"
- exit 1
- }
- while ! is_started; do
- echo "Waiting for special message in log files "
- sleep 30s
- counter=$(( $counter - 1 ))
- echo "Counter: $counter"
- if [ "$counter" -gt "0" ]; then
- continue
- else
- break
- fi
- done
- echo "Halting script"
- exit 0
- shell: bash
-
- - name: Run Parallel tests on Node Parachain
- working-directory: tests
- run: |
- yarn install
- yarn add mochawesome
- echo "Ready to start tests"
- yarn polkadot-types
- NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}
- env:
- RPC_URL: http://127.0.0.1:9933/
-
- - name: Parallel Tests report
- uses: phoenix-actions/test-reporting@v8
- id: test-report-parallel
- if: success() || failure() # run this step even if previous step failed
- with:
- name: Parallel Tests report - ${{ matrix.network }} # Name of the check run which will be created
- path: tests/mochawesome-report/test-parallel-*.json # Path to test results
- reporter: mochawesome-json
- fail-on-error: 'false'
-
-
- - name: Stop running containers
- if: always() # run this step always
- run: docker-compose -f ".docker/docker-compose.node.${{ matrix.network }}.yml" down --volumes
-
- - name: Remove builder cache
- if: always() # run this step always
- run: |
- docker builder prune -f -a
- docker system prune -f
- docker image prune -f -a
-
- - name: List files in Workspace
- if: always()
- run: ls -la ./
-
- sequential-test:
- needs: nodes-execution-matrix
- # The type of runner that the job will run on
- runs-on: [self-hosted-ci,large]
-
- timeout-minutes: 1380
-
- name: ${{ matrix.network }} - sequential
-
- continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.
-
- strategy:
- matrix:
- include: ${{fromJson(needs.nodes-execution-matrix.outputs.matrix)}}
-
- steps:
-
- - name: Clean Workspace
- uses: AutoModality/action-clean@v1.1.0
-
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- - uses: actions/checkout@v3
- with:
- ref: ${{ github.head_ref }} #Checking out head commit
-
- - name: Read .env file
- uses: xom9ikk/dotenv@v1.0.2
-
- - name: Generate ENV related extend file for docker-compose
- uses: cuchi/jinja2-action@v1.2.0
- with:
- template: .docker/docker-compose.tmp-node.j2
- output_file: .docker/docker-compose.node.${{ matrix.network }}.yml
- variables: |
- REPO_URL=${{ github.server_url }}/${{ github.repository }}.git
- RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
- POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}
- POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
- POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}
- MAINNET_TAG=${{ matrix.mainnet_tag }}
- MAINNET_BRANCH=${{ matrix.mainnet_branch }}
- NETWORK=${{ matrix.network }}
- BRANCH=${{ github.head_ref }}
- WASM_NAME=${{ matrix.wasm_name }}
-
- - name: Show build configuration
- run: cat .docker/docker-compose.node.${{ matrix.network }}.yml
-
- - name: Generate launch-config-forkless-nodata.json
- uses: cuchi/jinja2-action@v1.2.0
- with:
- template: .docker/forkless-config/launch-config-node-update-only-v3.j2
- output_file: .docker/launch-config-forkless-nodata.json
- variables: |
- NETWORK=${{ matrix.network }}
-
- - name: Show launch-config-forkless configuration
- run: cat .docker/launch-config-forkless-nodata.json
-
- - uses: actions/setup-node@v3
- with:
- node-version: 16
-
- - name: Build the stack
- run: docker-compose -f ".docker/docker-compose.node.${{ matrix.network }}.yml" up -d --build --remove-orphans --force-recreate --timeout 300
-
- # 🚀 POLKADOT LAUNCH COMPLETE 🚀
- - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.
- if: success()
- run: |
- counter=160
- function check_container_status {
- docker inspect -f {{.State.Running}} node-parachain
- }
- function do_docker_logs {
- docker logs --details node-parachain 2>&1
- }
- function is_started {
- if [ "$(check_container_status)" == "true" ]; then
- echo "Container: node-parachain RUNNING";
- echo "Check Docker logs"
- DOCKER_LOGS=$(do_docker_logs)
- if [[ ${DOCKER_LOGS} = *"POLKADOT LAUNCH COMPLETE"* ]];then
- echo "🚀 POLKADOT LAUNCH COMPLETE 🚀"
- return 0
- else
- echo "Message not found in logs output, repeating..."
- return 1
- fi
- else
- echo "Container node-parachain NOT RUNNING"
- echo "Halting all future checks"
- exit 1
- fi
- echo "something goes wrong"
- exit 1
- }
- while ! is_started; do
- echo "Waiting for special message in log files "
- sleep 30s
- counter=$(( $counter - 1 ))
- echo "Counter: $counter"
- if [ "$counter" -gt "0" ]; then
- continue
- else
- break
- fi
- done
- echo "Halting script"
- exit 0
- shell: bash
-
- - name: Run Sequential tests on Node Parachain
- working-directory: tests
- run: |
- yarn install
- yarn add mochawesome
- echo "Ready to start tests"
- yarn polkadot-types
- NOW=$(date +%s) && yarn testSequential --reporter mochawesome --reporter-options reportFilename=test-sequential-${NOW}
- env:
- RPC_URL: http://127.0.0.1:9933/
-
- - name: Sequential Tests report
- uses: phoenix-actions/test-reporting@v8
- id: test-report-sequential
- if: success() || failure() # run this step even if previous step failed
- with:
- name: Parallel Tests report - ${{ matrix.network }} # Name of the check run which will be created
- path: tests/mochawesome-report/test-sequential-*.json # Path to test results
- reporter: mochawesome-json
- fail-on-error: 'false'
-
- - name: Stop running containers
- if: always() # run this step always
- run: docker-compose -f ".docker/docker-compose.node.${{ matrix.network }}.yml" down --volumes
-
- - name: Remove builder cache
- if: always() # run this step always
- run: |
- docker builder prune -f -a
- docker system prune -f
- docker image prune -f -a
-
- - name: List files in Workspace
- if: always()
- run: ls -la ./
.github/workflows/node-only-update.ymldiffbeforeafterboth--- a/.github/workflows/node-only-update.yml
+++ b/.github/workflows/node-only-update.yml
@@ -99,6 +99,7 @@
variables: |
NETWORK=${{ matrix.network }}
WASM_NAME=${{ matrix.wasm_name }}
+ RELAY_CHAIN_TYPE=${{ env.RELAY_CHAIN_TYPE }}
- name: Show launch-config-forkless configuration
run: cat .docker/launch-config-forkless-nodata.json
.github/workflows/xcm.ymldiffbeforeafterboth1name: xcm-testnet-build23# Controls when the action will run.4on:5 workflow_call:6 7 # Allows you to run this workflow manually from the Actions tab8 workflow_dispatch:910#Define Workflow variables11env:12 REPO_URL: ${{ github.server_url }}/${{ github.repository }}1314# A workflow run is made up of one or more jobs that can run sequentially or in parallel15jobs:1617 prepare-execution-marix:1819 name: Prepare execution matrix2021 runs-on: [XL]22 outputs:23 matrix: ${{ steps.create_matrix.outputs.matrix }}2425 steps:2627 - name: Clean Workspace28 uses: AutoModality/action-clean@v1.1.02930 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it31 - uses: actions/checkout@v332 with:33 ref: ${{ github.head_ref }} #Checking out head commit3435 - name: Read .env file36 uses: xom9ikk/dotenv@v23738 - name: Create Execution matrix39 uses: fabiocaccamo/create-matrix-action@v240 id: create_matrix41 with:42 matrix: |43 network {opal}, acala_version {${{ env.ACALA_BUILD_BRANCH }}}, moonbeam_version {${{ env.MOONBEAM_BUILD_BRANCH }}}, cumulus_version {${{ env.WESTMINT_BUILD_BRANCH }}}, runtest {testXcmOpal}44 network {quartz}, acala_version {${{ env.KARURA_BUILD_BRANCH }}}, moonbeam_version {${{ env.MOONRIVER_BUILD_BRANCH }}}, cumulus_version {${{ env.STATEMINE_BUILD_BRANCH }}}, runtest {testXcmQuartz}45 network {unique}, acala_version {${{ env.ACALA_BUILD_BRANCH }}}, moonbeam_version {${{ env.MOONBEAM_BUILD_BRANCH }}}, cumulus_version {${{ env.STATEMINT_BUILD_BRANCH }}}, runtest {testXcmUnique}4647 xcm-build:48 49 needs: prepare-execution-marix50 # The type of runner that the job will run on51 runs-on: [XL]5253 timeout-minutes: 6005455 name: ${{ matrix.network }}-build5657 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.5859 strategy:60 matrix:61 include: ${{fromJson(needs.prepare-execution-marix.outputs.matrix)}}6263 steps:64 - name: Skip if pull request is in Draft65 if: github.event.pull_request.draft == true66 run: exit 16768 - name: Clean Workspace69 uses: AutoModality/action-clean@v1.1.07071 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it72 - uses: actions/checkout@v373 with:74 ref: ${{ github.head_ref }} #Checking out head commit7576 - name: Read .env file77 uses: xom9ikk/dotenv@v27879 - name: Log in to Docker Hub80 uses: docker/login-action@v2.0.081 with:82 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}83 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}8485 - name: Install jq86 run: sudo apt install jq -y8788 # Check POLKADOT version and build it if it doesn't exist in repository89 - name: Generate ENV related extend Dockerfile file for POLKADOT90 uses: cuchi/jinja2-action@v1.2.091 with:92 template: .docker/Dockerfile-polkadot.j293 output_file: .docker/Dockerfile-polkadot.${{ env.POLKADOT_BUILD_BRANCH }}.yml94 variables: |95 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}96 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}9798 - name: Check if the dockerhub repository contains the needed version POLKADOT99 run: |100 # aquire token101 TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${{ secrets.CORE_DOCKERHUB_USERNAME }}'", "password": "'${{ secrets.CORE_DOCKERHUB_TOKEN }}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)102 export TOKEN=$TOKEN103104 # Get TAGS from DOCKERHUB POLKADOT repository105 POLKADOT_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-polkadot/tags/?page_size=100 | jq -r '."results"[]["name"]')106 # Show TAGS107 echo "POLKADOT TAGS:"108 echo $POLKADOT_TAGS109 # Check correct version POLKADOT and build it if it doesn't exist in POLKADOT TAGS110 if [[ ${POLKADOT_TAGS[*]} =~ (^|[[:space:]])"${{ env.POLKADOT_BUILD_BRANCH }}"($|[[:space:]]) ]]; then111 echo "Repository has needed POLKADOT version";112 docker pull uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }}113 else114 echo "Repository has not needed POLKADOT version, so build it";115 cd .docker/ && docker build --no-cache --file ./Dockerfile-polkadot.${{ env.POLKADOT_BUILD_BRANCH }}.yml --tag uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }} .116 echo "Push needed POLKADOT version to the repository";117 docker push uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }}118 fi119 shell: bash120121 # Check ACALA version and build it if it doesn't exist in repository122 - name: Generate ENV related extend Dockerfile file for ACALA123 uses: cuchi/jinja2-action@v1.2.0124 with:125 template: .docker/Dockerfile-acala.j2126 output_file: .docker/Dockerfile-acala.${{ matrix.acala_version }}.yml127 variables: |128 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}129 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}130131 - name: Check if the dockerhub repository contains the needed ACALA version132 run: |133 # aquire token134 TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${{ secrets.CORE_DOCKERHUB_USERNAME }}'", "password": "'${{ secrets.CORE_DOCKERHUB_TOKEN }}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)135 export TOKEN=$TOKEN136137 # Get TAGS from DOCKERHUB repository138 ACALA_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-acala/tags/?page_size=100 | jq -r '."results"[]["name"]')139 # Show TAGS140 echo "ACALA TAGS:"141 echo $ACALA_TAGS142 # Check correct version ACALA and build it if it doesn't exist in ACALA TAGS143 if [[ ${ACALA_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.acala_version }}"($|[[:space:]]) ]]; then144 echo "Repository has needed ACALA version";145 docker pull uniquenetwork/builder-acala:${{ matrix.acala_version }}146 else147 echo "Repository has not needed ACALA version, so build it";148 cd .docker/ && docker build --no-cache --file ./Dockerfile-acala.${{ matrix.acala_version }}.yml --tag uniquenetwork/builder-acala:${{ matrix.acala_version }} .149 echo "Push needed ACALA version to the repository";150 docker push uniquenetwork/builder-acala:${{ matrix.acala_version }}151 fi152 shell: bash153154 # Check MOONBEAM version and build it if it doesn't exist in repository155 - name: Generate ENV related extend Dockerfile file for MOONBEAM156 uses: cuchi/jinja2-action@v1.2.0157 with:158 template: .docker/Dockerfile-moonbeam.j2159 output_file: .docker/Dockerfile-moonbeam.${{ matrix.moonbeam_version }}.yml160 variables: |161 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}162 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}163164 - name: Check if the dockerhub repository contains the needed MOONBEAM version165 run: |166 # aquire token167 TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${{ secrets.CORE_DOCKERHUB_USERNAME }}'", "password": "'${{ secrets.CORE_DOCKERHUB_TOKEN }}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)168 export TOKEN=$TOKEN169170 # Get TAGS from DOCKERHUB repository171 MOONBEAM_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-moonbeam/tags/?page_size=100 | jq -r '."results"[]["name"]')172 # Show TAGS173 echo "MOONBEAM TAGS:"174 echo $MOONBEAM_TAGS175 # Check correct version MOONBEAM and build it if it doesn't exist in MOONBEAM TAGS176 if [[ ${MOONBEAM_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.moonbeam_version }}"($|[[:space:]]) ]]; then177 echo "Repository has needed MOONBEAM version";178 docker pull uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}179 else180 echo "Repository has not needed MOONBEAM version, so build it";181 cd .docker/ && docker build --no-cache --file ./Dockerfile-moonbeam.${{ matrix.moonbeam_version }}.yml --tag uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }} .182 echo "Push needed MOONBEAM version to the repository";183 docker push uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}184 fi185 shell: bash186187188 # Check CUMULUS version and build it if it doesn't exist in repository189 - name: Generate ENV related extend Dockerfile file for CUMULUS190 uses: cuchi/jinja2-action@v1.2.0191 with:192 template: .docker/Dockerfile-cumulus.j2193 output_file: .docker/Dockerfile-cumulus.${{ matrix.cumulus_version }}.yml194 variables: |195 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}196 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}197198 - name: Check if the dockerhub repository contains the needed CUMULUS version199 run: | 200 # aquire token201 TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${{ secrets.CORE_DOCKERHUB_USERNAME }}'", "password": "'${{ secrets.CORE_DOCKERHUB_TOKEN }}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)202 export TOKEN=$TOKEN203204 # Get TAGS from DOCKERHUB repository205 CUMULUS_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-cumulus/tags/?page_size=100 | jq -r '."results"[]["name"]')206 # Show TAGS207 echo "CUMULUS TAGS:"208 echo $CUMULUS_TAGS209 # Check correct version CUMULUS and build it if it doesn't exist in CUMULUS TAGS210 if [[ ${CUMULUS_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.cumulus_version }}"($|[[:space:]]) ]]; then211 echo "Repository has needed CUMULUS version";212 docker pull uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}213 else214 echo "Repository has not needed CUMULUS version, so build it";215 cd .docker/ && docker build --no-cache --file ./Dockerfile-cumulus.${{ matrix.cumulus_version }}.yml --tag uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }} .216 echo "Push needed CUMULUS version to the repository";217 docker push uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}218 fi219 shell: bash220221222 # Build main image for XCM 223 - name: Generate ENV related extend Dockerfile file224 uses: cuchi/jinja2-action@v1.2.0225 with:226 template: .docker/Dockerfile-xcm.j2227 output_file: .docker/Dockerfile-xcm.${{ matrix.network }}.yml228 variables: |229 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}230 NETWORK=${{ matrix.network }}231 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}232 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }} 233 BRANCH=${{ github.head_ref }}234 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}235 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}236 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}237238 - name: Show build Dockerfile239 run: cat .docker/Dockerfile-xcm.${{ matrix.network }}.yml240241 - name: Show launch-config-xcm-${{ matrix.network }} configuration242 run: cat .docker/xcm-config/launch-config-xcm-${{ matrix.network }}.json243244 - name: Run find-and-replace to remove slashes from branch name245 uses: mad9000/actions-find-and-replace-string@2246 id: branchname247 with:248 source: ${{ github.head_ref }}249 find: '/'250 replace: '-'251252 - name: Pull chainql docker image253 run: docker pull uniquenetwork/builder-chainql:latest254255 - name: Build the stack256 run: cd .docker/ && docker build --no-cache --file ./Dockerfile-xcm.${{ matrix.network }}.yml --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ steps.branchname.outputs.value }}-${{ github.sha }} --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest .257258 - name: Push docker image version259 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ steps.branchname.outputs.value }}-${{ github.sha }}260261 - name: Push docker image latest262 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest263264 - name: Remove builder cache265 if: always() # run this step always266 run: |267 docker builder prune -f268 docker system prune -f269270 xcm-tests:271 needs: [prepare-execution-marix, xcm-build]272 # The type of runner that the job will run on273 runs-on: [XL]274275 timeout-minutes: 600276277 name: ${{ matrix.network }}-tests278279 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.280281 strategy:282 matrix:283 include: ${{fromJson(needs.prepare-execution-marix.outputs.matrix)}}284285 steps:286 - name: Skip if pull request is in Draft287 if: github.event.pull_request.draft == true288 run: exit 1289290 - name: Clean Workspace291 uses: AutoModality/action-clean@v1.1.0292293 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it294 - uses: actions/checkout@v3295 with:296 ref: ${{ github.head_ref }} #Checking out head commit297298 - name: Read .env file299 uses: xom9ikk/dotenv@v2300301 - name: Generate ENV related extend file for docker-compose302 uses: cuchi/jinja2-action@v1.2.0303 with:304 template: .docker/docker-compose.tmp-xcm-tests.j2305 output_file: .docker/docker-compose.xcm-tests.${{ matrix.network }}.yml306 variables: |307 NETWORK=${{ matrix.network }}308309 - name: Show build configuration310 run: cat .docker/docker-compose.xcm-tests.${{ matrix.network }}.yml311312 - uses: actions/setup-node@v3313 with:314 node-version: 16315316 - name: Build the stack317 run: docker-compose -f ".docker/docker-compose.xcm-tests.${{ matrix.network }}.yml" up -d --remove-orphans --force-recreate --timeout 300318319 # 🚀 POLKADOT LAUNCH COMPLETE 🚀320 - name: Check if docker logs consist messages related to testing of xcm tests 321 if: success()322 run: |323 counter=160324 function check_container_status {325 docker inspect -f {{.State.Running}} xcm-${{ matrix.network }}-testnet-local326 }327 function do_docker_logs {328 docker logs --details xcm-${{ matrix.network }}-testnet-local 2>&1329 }330 function is_started {331 if [ "$(check_container_status)" == "true" ]; then332 echo "Container: xcm-${{ matrix.network }}-testnet-local RUNNING";333 echo "Check Docker logs"334 DOCKER_LOGS=$(do_docker_logs)335 if [[ ${DOCKER_LOGS} = *"POLKADOT LAUNCH COMPLETE"* ]];then336 echo "🚀 POLKADOT LAUNCH COMPLETE 🚀"337 return 0338 else339 echo "Message not found in logs output, repeating..."340 return 1341 fi342 else343 echo "Container xcm-${{ matrix.network }}-testnet-local NOT RUNNING"344 echo "Halting all future checks"345 exit 1346 fi347 echo "something goes wrong"348 exit 1349 }350 while ! is_started; do351 echo "Waiting for special message in log files "352 sleep 30s353 counter=$(( $counter - 1 ))354 echo "Counter: $counter"355 if [ "$counter" -gt "0" ]; then356 continue357 else358 break359 fi360 done361 echo "Halting script"362 exit 0363 shell: bash364365 - name: Run XCM tests 366 working-directory: tests367 run: |368 yarn install369 yarn add mochawesome370 node scripts/readyness.js371 echo "Ready to start tests"372 yarn polkadot-types 373 NOW=$(date +%s) && yarn ${{ matrix.runtest }} --reporter mochawesome --reporter-options reportFilename=test-${NOW}374 env:375 RPC_URL: http://127.0.0.1:9933/376377 - name: XCM Test Report378 uses: phoenix-actions/test-reporting@v8379 id: test-report380 if: success() || failure() # run this step even if previous step failed381 with:382 name: XCM Tests ${{ matrix.network }} # Name of the check run which will be created383 path: tests/mochawesome-report/test-*.json # Path to test results384 reporter: mochawesome-json385 fail-on-error: 'false'386387 - name: Stop running containers388 if: always() # run this step always389 run: docker-compose -f ".docker/docker-compose.xcm-tests.${{ matrix.network }}.yml" down390391 - name: Clean Workspace392 if: always()393 uses: AutoModality/action-clean@v1.1.0394395 - name: Remove builder cache396 if: always() # run this step always397 run: |398 docker system prune -a -f1name: xcm-testnet-build23# Controls when the action will run.4on:5 workflow_call:6 7 # Allows you to run this workflow manually from the Actions tab8 workflow_dispatch:910#Define Workflow variables11env:12 REPO_URL: ${{ github.server_url }}/${{ github.repository }}1314# A workflow run is made up of one or more jobs that can run sequentially or in parallel15jobs:1617 prepare-execution-marix:1819 name: Prepare execution matrix2021 runs-on: [XL]22 outputs:23 matrix: ${{ steps.create_matrix.outputs.matrix }}2425 steps:2627 - name: Clean Workspace28 uses: AutoModality/action-clean@v1.1.02930 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it31 - uses: actions/checkout@v332 with:33 ref: ${{ github.head_ref }} #Checking out head commit3435 - name: Read .env file36 uses: xom9ikk/dotenv@v23738 - name: Create Execution matrix39 uses: fabiocaccamo/create-matrix-action@v240 id: create_matrix41 with:42 matrix: |43 network {opal}, acala_version {${{ env.ACALA_BUILD_BRANCH }}}, moonbeam_version {${{ env.MOONBEAM_BUILD_BRANCH }}}, cumulus_version {${{ env.WESTMINT_BUILD_BRANCH }}}, runtest {testXcmOpal}44 network {quartz}, acala_version {${{ env.KARURA_BUILD_BRANCH }}}, moonbeam_version {${{ env.MOONRIVER_BUILD_BRANCH }}}, cumulus_version {${{ env.STATEMINE_BUILD_BRANCH }}}, runtest {testXcmQuartz}45 network {unique}, acala_version {${{ env.ACALA_BUILD_BRANCH }}}, moonbeam_version {${{ env.MOONBEAM_BUILD_BRANCH }}}, cumulus_version {${{ env.STATEMINT_BUILD_BRANCH }}}, runtest {testXcmUnique}4647 xcm-build:48 49 needs: prepare-execution-marix50 # The type of runner that the job will run on51 runs-on: [XL]5253 timeout-minutes: 6005455 name: ${{ matrix.network }}-build5657 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.5859 strategy:60 matrix:61 include: ${{fromJson(needs.prepare-execution-marix.outputs.matrix)}}6263 steps:64 - name: Skip if pull request is in Draft65 if: github.event.pull_request.draft == true66 run: exit 16768 - name: Clean Workspace69 uses: AutoModality/action-clean@v1.1.07071 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it72 - uses: actions/checkout@v373 with:74 ref: ${{ github.head_ref }} #Checking out head commit7576 - name: Read .env file77 uses: xom9ikk/dotenv@v27879 - name: Log in to Docker Hub80 uses: docker/login-action@v2.0.081 with:82 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}83 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}8485 - name: Install jq86 run: sudo apt install jq -y8788 # Check POLKADOT version and build it if it doesn't exist in repository89 - name: Generate ENV related extend Dockerfile file for POLKADOT90 uses: cuchi/jinja2-action@v1.2.091 with:92 template: .docker/Dockerfile-polkadot.j293 output_file: .docker/Dockerfile-polkadot.${{ env.POLKADOT_BUILD_BRANCH }}.yml94 variables: |95 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}96 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}9798 - name: Check if the dockerhub repository contains the needed version POLKADOT99 run: |100 # aquire token101 TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${{ secrets.CORE_DOCKERHUB_USERNAME }}'", "password": "'${{ secrets.CORE_DOCKERHUB_TOKEN }}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)102 export TOKEN=$TOKEN103104 # Get TAGS from DOCKERHUB POLKADOT repository105 POLKADOT_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-polkadot/tags/?page_size=100 | jq -r '."results"[]["name"]')106 # Show TAGS107 echo "POLKADOT TAGS:"108 echo $POLKADOT_TAGS109 # Check correct version POLKADOT and build it if it doesn't exist in POLKADOT TAGS110 if [[ ${POLKADOT_TAGS[*]} =~ (^|[[:space:]])"${{ env.POLKADOT_BUILD_BRANCH }}"($|[[:space:]]) ]]; then111 echo "Repository has needed POLKADOT version";112 docker pull uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }}113 else114 echo "Repository has not needed POLKADOT version, so build it";115 cd .docker/ && docker build --no-cache --file ./Dockerfile-polkadot.${{ env.POLKADOT_BUILD_BRANCH }}.yml --tag uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }} .116 echo "Push needed POLKADOT version to the repository";117 docker push uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }}118 fi119 shell: bash120121 # Check ACALA version and build it if it doesn't exist in repository122 - name: Generate ENV related extend Dockerfile file for ACALA123 uses: cuchi/jinja2-action@v1.2.0124 with:125 template: .docker/Dockerfile-acala.j2126 output_file: .docker/Dockerfile-acala.${{ matrix.acala_version }}.yml127 variables: |128 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}129 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}130131 - name: Check if the dockerhub repository contains the needed ACALA version132 run: |133 # aquire token134 TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${{ secrets.CORE_DOCKERHUB_USERNAME }}'", "password": "'${{ secrets.CORE_DOCKERHUB_TOKEN }}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)135 export TOKEN=$TOKEN136137 # Get TAGS from DOCKERHUB repository138 ACALA_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-acala/tags/?page_size=100 | jq -r '."results"[]["name"]')139 # Show TAGS140 echo "ACALA TAGS:"141 echo $ACALA_TAGS142 # Check correct version ACALA and build it if it doesn't exist in ACALA TAGS143 if [[ ${ACALA_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.acala_version }}"($|[[:space:]]) ]]; then144 echo "Repository has needed ACALA version";145 docker pull uniquenetwork/builder-acala:${{ matrix.acala_version }}146 else147 echo "Repository has not needed ACALA version, so build it";148 cd .docker/ && docker build --no-cache --file ./Dockerfile-acala.${{ matrix.acala_version }}.yml --tag uniquenetwork/builder-acala:${{ matrix.acala_version }} .149 echo "Push needed ACALA version to the repository";150 docker push uniquenetwork/builder-acala:${{ matrix.acala_version }}151 fi152 shell: bash153154 # Check MOONBEAM version and build it if it doesn't exist in repository155 - name: Generate ENV related extend Dockerfile file for MOONBEAM156 uses: cuchi/jinja2-action@v1.2.0157 with:158 template: .docker/Dockerfile-moonbeam.j2159 output_file: .docker/Dockerfile-moonbeam.${{ matrix.moonbeam_version }}.yml160 variables: |161 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}162 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}163164 - name: Check if the dockerhub repository contains the needed MOONBEAM version165 run: |166 # aquire token167 TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${{ secrets.CORE_DOCKERHUB_USERNAME }}'", "password": "'${{ secrets.CORE_DOCKERHUB_TOKEN }}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)168 export TOKEN=$TOKEN169170 # Get TAGS from DOCKERHUB repository171 MOONBEAM_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-moonbeam/tags/?page_size=100 | jq -r '."results"[]["name"]')172 # Show TAGS173 echo "MOONBEAM TAGS:"174 echo $MOONBEAM_TAGS175 # Check correct version MOONBEAM and build it if it doesn't exist in MOONBEAM TAGS176 if [[ ${MOONBEAM_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.moonbeam_version }}"($|[[:space:]]) ]]; then177 echo "Repository has needed MOONBEAM version";178 docker pull uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}179 else180 echo "Repository has not needed MOONBEAM version, so build it";181 cd .docker/ && docker build --no-cache --file ./Dockerfile-moonbeam.${{ matrix.moonbeam_version }}.yml --tag uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }} .182 echo "Push needed MOONBEAM version to the repository";183 docker push uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}184 fi185 shell: bash186187188 # Check CUMULUS version and build it if it doesn't exist in repository189 - name: Generate ENV related extend Dockerfile file for CUMULUS190 uses: cuchi/jinja2-action@v1.2.0191 with:192 template: .docker/Dockerfile-cumulus.j2193 output_file: .docker/Dockerfile-cumulus.${{ matrix.cumulus_version }}.yml194 variables: |195 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}196 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}197198 - name: Check if the dockerhub repository contains the needed CUMULUS version199 run: | 200 # aquire token201 TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${{ secrets.CORE_DOCKERHUB_USERNAME }}'", "password": "'${{ secrets.CORE_DOCKERHUB_TOKEN }}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)202 export TOKEN=$TOKEN203204 # Get TAGS from DOCKERHUB repository205 CUMULUS_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-cumulus/tags/?page_size=100 | jq -r '."results"[]["name"]')206 # Show TAGS207 echo "CUMULUS TAGS:"208 echo $CUMULUS_TAGS209 # Check correct version CUMULUS and build it if it doesn't exist in CUMULUS TAGS210 if [[ ${CUMULUS_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.cumulus_version }}"($|[[:space:]]) ]]; then211 echo "Repository has needed CUMULUS version";212 docker pull uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}213 else214 echo "Repository has not needed CUMULUS version, so build it";215 cd .docker/ && docker build --no-cache --file ./Dockerfile-cumulus.${{ matrix.cumulus_version }}.yml --tag uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }} .216 echo "Push needed CUMULUS version to the repository";217 docker push uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}218 fi219 shell: bash220221 - name: Generate ENV related extend launch-config file222 uses: cuchi/jinja2-action@v1.2.0223 with:224 template: .docker/xcm-config/launch-config-xcm-${{ matrix.network }}.j2225 output_file: .docker/xcm-config/launch-config-xcm-${{ matrix.network }}.json226 variables: |227 RELAY_CHAIN_TYPE=${{ env.RELAY_CHAIN_TYPE }} 228229 - name: Show launch-config-xcm-${{ matrix.network }} configuration230 run: cat .docker/xcm-config/launch-config-xcm-${{ matrix.network }}.json231232 # Build main image for XCM 233 - name: Generate ENV related extend Dockerfile file234 uses: cuchi/jinja2-action@v1.2.0235 with:236 template: .docker/Dockerfile-xcm.j2237 output_file: .docker/Dockerfile-xcm.${{ matrix.network }}.yml238 variables: |239 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}240 NETWORK=${{ matrix.network }}241 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}242 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }} 243 BRANCH=${{ github.head_ref }}244 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}245 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}246 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}247248 - name: Show build Dockerfile249 run: cat .docker/Dockerfile-xcm.${{ matrix.network }}.yml250251 - name: Run find-and-replace to remove slashes from branch name252 uses: mad9000/actions-find-and-replace-string@2253 id: branchname254 with:255 source: ${{ github.head_ref }}256 find: '/'257 replace: '-'258259 - name: Pull chainql docker image260 run: docker pull uniquenetwork/builder-chainql:latest261262 - name: Build the stack263 run: cd .docker/ && docker build --no-cache --file ./Dockerfile-xcm.${{ matrix.network }}.yml --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ steps.branchname.outputs.value }}-${{ github.sha }} --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest .264265 - name: Push docker image version266 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ steps.branchname.outputs.value }}-${{ github.sha }}267268 - name: Push docker image latest269 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest270271 - name: Remove builder cache272 if: always() # run this step always273 run: |274 docker builder prune -f275 docker system prune -f276277 xcm-tests:278 needs: [prepare-execution-marix, xcm-build]279 # The type of runner that the job will run on280 runs-on: [XL]281282 timeout-minutes: 600283284 name: ${{ matrix.network }}-tests285286 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.287288 strategy:289 matrix:290 include: ${{fromJson(needs.prepare-execution-marix.outputs.matrix)}}291292 steps:293 - name: Skip if pull request is in Draft294 if: github.event.pull_request.draft == true295 run: exit 1296297 - name: Clean Workspace298 uses: AutoModality/action-clean@v1.1.0299300 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it301 - uses: actions/checkout@v3302 with:303 ref: ${{ github.head_ref }} #Checking out head commit304305 - name: Read .env file306 uses: xom9ikk/dotenv@v2307308 - name: Generate ENV related extend file for docker-compose309 uses: cuchi/jinja2-action@v1.2.0310 with:311 template: .docker/docker-compose.tmp-xcm-tests.j2312 output_file: .docker/docker-compose.xcm-tests.${{ matrix.network }}.yml313 variables: |314 NETWORK=${{ matrix.network }}315316 - name: Show build configuration317 run: cat .docker/docker-compose.xcm-tests.${{ matrix.network }}.yml318319 - uses: actions/setup-node@v3320 with:321 node-version: 16322323 - name: Build the stack324 run: docker-compose -f ".docker/docker-compose.xcm-tests.${{ matrix.network }}.yml" up -d --remove-orphans --force-recreate --timeout 300325326 # 🚀 POLKADOT LAUNCH COMPLETE 🚀327 - name: Check if docker logs consist messages related to testing of xcm tests 328 if: success()329 run: |330 counter=160331 function check_container_status {332 docker inspect -f {{.State.Running}} xcm-${{ matrix.network }}-testnet-local333 }334 function do_docker_logs {335 docker logs --details xcm-${{ matrix.network }}-testnet-local 2>&1336 }337 function is_started {338 if [ "$(check_container_status)" == "true" ]; then339 echo "Container: xcm-${{ matrix.network }}-testnet-local RUNNING";340 echo "Check Docker logs"341 DOCKER_LOGS=$(do_docker_logs)342 if [[ ${DOCKER_LOGS} = *"POLKADOT LAUNCH COMPLETE"* ]];then343 echo "🚀 POLKADOT LAUNCH COMPLETE 🚀"344 return 0345 else346 echo "Message not found in logs output, repeating..."347 return 1348 fi349 else350 echo "Container xcm-${{ matrix.network }}-testnet-local NOT RUNNING"351 echo "Halting all future checks"352 exit 1353 fi354 echo "something goes wrong"355 exit 1356 }357 while ! is_started; do358 echo "Waiting for special message in log files "359 sleep 30s360 counter=$(( $counter - 1 ))361 echo "Counter: $counter"362 if [ "$counter" -gt "0" ]; then363 continue364 else365 break366 fi367 done368 echo "Halting script"369 exit 0370 shell: bash371372 - name: Run XCM tests 373 working-directory: tests374 run: |375 yarn install376 yarn add mochawesome377 node scripts/readyness.js378 echo "Ready to start tests"379 yarn polkadot-types 380 NOW=$(date +%s) && yarn ${{ matrix.runtest }} --reporter mochawesome --reporter-options reportFilename=test-${NOW}381 env:382 RPC_URL: http://127.0.0.1:9933/383384 - name: XCM Test Report385 uses: phoenix-actions/test-reporting@v8386 id: test-report387 if: success() || failure() # run this step even if previous step failed388 with:389 name: XCM Tests ${{ matrix.network }} # Name of the check run which will be created390 path: tests/mochawesome-report/test-*.json # Path to test results391 reporter: mochawesome-json392 fail-on-error: 'false'393394 - name: Stop running containers395 if: always() # run this step always396 run: docker-compose -f ".docker/docker-compose.xcm-tests.${{ matrix.network }}.yml" down397398 - name: Clean Workspace399 if: always()400 uses: AutoModality/action-clean@v1.1.0401402 - name: Remove builder cache403 if: always() # run this step always404 run: |405 docker system prune -a -f