git.delta.rocks / unique-network / refs/commits / d90fbb76cdf6

difftreelog

Merge branch 'develop' into tests/parallel-ci

Yaroslav Bolyukin2022-10-18parents: #d934a63 #1d7b069.patch.diff
in: master

15 files changed

modified.docker/Dockerfile-try-runtimediffbeforeafterboth
46 echo "Fork from: $REPLICA_FROM\n" && \46 echo "Fork from: $REPLICA_FROM\n" && \
47 cargo build --features=$FEATURE --release47 cargo build --features=$FEATURE --release
48 48
49
50CMD cargo run --features=try-runtime,$FEATURE --release -- try-runtime on-runtime-upgrade live --uri $REPLICA_FROM49CMD cargo run --features=try-runtime,$FEATURE --release -- try-runtime --no-spec-name-check on-runtime-upgrade live --uri $REPLICA_FROM
5150
modified.github/workflows/market-test_v2.ymldiffbeforeafterboth
91 rm -rf .env91 rm -rf .env
92 cp .env.docker .env92 cp .env.docker .env
93
94# Temporary disable node readyness check. Have to dig into the script logic.
95# - name: Wait for chain up and running
96# working-directory: tests
97# run: |
98# yarn install
99# node scripts/readyness.js
100# echo "Ready to start tests"
101# env:
102# RPC_URL: http://127.0.0.1:9933/
93103
94 - name: Wait for chain up and running104 - name: Wait for chain up and running
95 working-directory: tests
96 run: |105 run: |
97 yarn install106 sleep 1200s
98 node scripts/readyness.js107 echo "Ready to start Market e2e tests"
99 echo "Ready to start tests"
100108
101 - name: Show content of .env file and Generate accounts109 - name: Show content of .env file and Generate accounts
102 working-directory: qa-tests110 working-directory: qa-tests
modified.github/workflows/node-only-update_v2.ymldiffbeforeafterboth
164162
165 - name: Run tests before Node Parachain upgrade163 - name: Run tests before Node Parachain upgrade
166 working-directory: ${{ matrix.mainnet_branch }}/tests164 working-directory: ${{ matrix.mainnet_branch }}/tests
167 run: |165 run: |
168 yarn install166 yarn install
169 yarn add mochawesome167 yarn add mochawesome
170 echo "Ready to start tests"168 echo "Ready to start tests"
171 yarn polkadot-types169 yarn polkadot-types
172 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}170 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-before-${NOW}
173 env:171 env:
174 RPC_URL: http://127.0.0.1:9933/172 RPC_URL: http://127.0.0.1:9933/
175173
179 if: success() || failure() # run this step even if previous step failed177 if: success() || failure() # run this step even if previous step failed
180 with:178 with:
181 name: Tests before node upgrade ${{ matrix.network }} # Name of the check run which will be created179 name: Tests before node upgrade ${{ matrix.network }} # Name of the check run which will be created
182 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-*.json # Path to test results180 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-before-*.json # Path to test results
183 reporter: mochawesome-json181 reporter: mochawesome-json
184 fail-on-error: 'false'182 fail-on-error: 'false'
185
225 222
226 - name: Send SIGUSR1 to polkadot-launch process223 - name: Send SIGUSR1 to polkadot-launch process
227 if: success() || failure()224 if: success() || failure()
228 run: |225 run: |
229 #Get PID of polkadot-launch226 #Get PID of polkadot-launch
230 ContainerID=$(docker ps -aqf "name=node-parachain")227 ContainerID=$(docker ps -aqf "name=node-parachain")
231 PID=$(docker exec node-parachain pidof 'polkadot-launch')228 PID=$(docker exec node-parachain pidof 'polkadot-launch')
232 echo "Polkadot-launch PID: $PID"229 sleep 30s
230 echo -e "Show logs of node-parachain container.\n"
231 docker logs ${ContainerID}
232 echo -e "\n"
233 #Send SIGUSR1 signal to $PID233 echo -e "Restart polkadot-launch process: $PID\n"
234 docker exec node-parachain kill -SIGUSR1 ${PID}234 docker exec node-parachain kill -SIGUSR1 ${PID}
235 echo "SIGUSR1 sent to Polkadot-launch PID: $PID"235 echo "SIGUSR1 sent to Polkadot-launch PID: $PID"
236 docker logs ${ContainerID}236 docker logs ${ContainerID}
237 237
238 - name: Get chain logs in case of docker image crashed after Polkadot Launch restart238 - name: Get chain logs in case of docker image crashed after Polkadot Launch restart
239 if: failure() # run this step only at failure239 if: failure() # run this step only at failure
245 docker exec node-parachain cat /polkadot-launch/dave.log245 docker exec node-parachain cat /polkadot-launch/dave.log
246 docker exec node-parachain cat /polkadot-launch/charlie.log 246 docker exec node-parachain cat /polkadot-launch/charlie.log
247247
248 # 🌗 All parachain collators restarted with the new binaries.
249 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.248 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.
250 if: success()249 if: success()
251 run: |250 run: |
294 ## TODO: Remove next two blocks before switch to Parrallel & Sequental tests. Uncoment commented blocks.293 ## TODO: Remove next two blocks before switch to Parrallel & Sequental tests. Uncoment commented blocks.
295 - name: Run tests after Node Parachain upgrade294 - name: Run tests after Node Parachain upgrade
296 working-directory: ${{ matrix.mainnet_branch }}/tests295 working-directory: ${{ matrix.mainnet_branch }}/tests
297 run: |296 run: |
298 yarn install297 yarn install
299 yarn add mochawesome298 yarn add mochawesome
300 node scripts/readyness.js299 echo "Ready to start tests"
301 echo "Ready to start tests"300 yarn polkadot-types
302 yarn polkadot-types301 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-after-${NOW}
303 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}
304 env:302 env:
305 RPC_URL: http://127.0.0.1:9933/303 RPC_URL: http://127.0.0.1:9933/
306304
310 if: success() || failure() # run this step even if previous step failed308 if: success() || failure() # run this step even if previous step failed
311 with:309 with:
312 name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created310 name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created
313 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-*.json # Path to test results311 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-after-*.json # Path to test results
314 reporter: mochawesome-json312 reporter: mochawesome-json
315 fail-on-error: 'false'313 fail-on-error: 'false'
316314
modifiedCargo.lockdiffbeforeafterboth
6710 "up-sponsorship",6710 "up-sponsorship",
6711]6711]
6712
6713[[package]]
6714name = "pallet-unique-scheduler-v2"
6715version = "0.1.0"
6716dependencies = [
6717 "frame-benchmarking",
6718 "frame-support",
6719 "frame-system",
6720 "log",
6721 "pallet-preimage",
6722 "parity-scale-codec 3.2.1",
6723 "scale-info",
6724 "sp-core",
6725 "sp-io",
6726 "sp-runtime",
6727 "sp-std",
6728 "substrate-test-utils",
6729]
67126730
6713[[package]]6731[[package]]
6714name = "pallet-utility"6732name = "pallet-utility"
85768594
8577[[package]]8595[[package]]
8578name = "quartz-runtime"8596name = "quartz-runtime"
8579version = "0.9.27"8597version = "0.9.29"
8580dependencies = [8598dependencies = [
8581 "app-promotion-rpc",8599 "app-promotion-rpc",
8582 "cumulus-pallet-aura-ext",8600 "cumulus-pallet-aura-ext",
1256812586
12569[[package]]12587[[package]]
12570name = "unique-runtime"12588name = "unique-runtime"
12571version = "0.9.27"12589version = "0.9.29"
12572dependencies = [12590dependencies = [
12573 "app-promotion-rpc",12591 "app-promotion-rpc",
12574 "cumulus-pallet-aura-ext",12592 "cumulus-pallet-aura-ext",
modifiedREADME.mddiffbeforeafterboth
92```92```
93git clone https://github.com/paritytech/polkadot.git93git clone https://github.com/paritytech/polkadot.git
94cd polkadot94cd polkadot
95git checkout release-v0.9.2795git checkout release-v0.9.29
96cargo build --release96cargo build --release
97```97```
9898
modifiedruntime/common/construct_runtime/mod.rsdiffbeforeafterboth
57 Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,57 Inflation: pallet_inflation::{Pallet, Call, Storage} = 60,
58 Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,58 Unique: pallet_unique::{Pallet, Call, Storage, Event<T>} = 61,
5959
60 #[runtimes(opal)]60 // #[runtimes(opal)]
61 Scheduler: pallet_unique_scheduler::{Pallet, Call, Storage, Event<T>} = 62,61 // Scheduler: pallet_unique_scheduler::{Pallet, Call, Storage, Event<T>} = 62,
6262
63 Configuration: pallet_configuration::{Pallet, Call, Storage} = 63,63 Configuration: pallet_configuration::{Pallet, Call, Storage} = 63,
6464
modifiedruntime/common/mod.rsdiffbeforeafterboth
21pub mod instance;21pub mod instance;
22pub mod runtime_apis;22pub mod runtime_apis;
23
24#[cfg(feature = "scheduler")]
23pub mod scheduler;25pub mod scheduler;
26
24pub mod sponsoring;27pub mod sponsoring;
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
168 "pallet-foreign-assets/std"168 "pallet-foreign-assets/std"
169]169]
170limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']170limit-testing = ['pallet-unique/limit-testing', 'up-data-structs/limit-testing']
171opal-runtime = ['refungible', 'scheduler', 'rmrk', 'app-promotion', 'foreign-assets']171opal-runtime = ['refungible', 'rmrk', 'app-promotion', 'foreign-assets']
172172
173refungible = []173refungible = []
174scheduler = []174scheduler = []
modifiedruntime/opal/src/lib.rsdiffbeforeafterboth
50 spec_name: create_runtime_str!(RUNTIME_NAME),50 spec_name: create_runtime_str!(RUNTIME_NAME),
51 impl_name: create_runtime_str!(RUNTIME_NAME),51 impl_name: create_runtime_str!(RUNTIME_NAME),
52 authoring_version: 1,52 authoring_version: 1,
53 spec_version: 927030,53 spec_version: 929030,
54 impl_version: 0,54 impl_version: 0,
55 apis: RUNTIME_API_VERSIONS,55 apis: RUNTIME_API_VERSIONS,
56 transaction_version: 2,56 transaction_version: 2,
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
10license = 'GPLv3'10license = 'GPLv3'
11name = 'quartz-runtime'11name = 'quartz-runtime'
12repository = 'https://github.com/UniqueNetwork/unique-chain'12repository = 'https://github.com/UniqueNetwork/unique-chain'
13version = '0.9.27'13version = '0.9.29'
1414
15[package.metadata.docs.rs]15[package.metadata.docs.rs]
16targets = ['x86_64-unknown-linux-gnu']16targets = ['x86_64-unknown-linux-gnu']
modifiedruntime/quartz/src/lib.rsdiffbeforeafterboth
50 spec_name: create_runtime_str!(RUNTIME_NAME),50 spec_name: create_runtime_str!(RUNTIME_NAME),
51 impl_name: create_runtime_str!(RUNTIME_NAME),51 impl_name: create_runtime_str!(RUNTIME_NAME),
52 authoring_version: 1,52 authoring_version: 1,
53 spec_version: 927030,53 spec_version: 929030,
54 impl_version: 0,54 impl_version: 0,
55 apis: RUNTIME_API_VERSIONS,55 apis: RUNTIME_API_VERSIONS,
56 transaction_version: 2,56 transaction_version: 2,
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
10license = 'GPLv3'10license = 'GPLv3'
11name = 'unique-runtime'11name = 'unique-runtime'
12repository = 'https://github.com/UniqueNetwork/unique-chain'12repository = 'https://github.com/UniqueNetwork/unique-chain'
13version = '0.9.27'13version = '0.9.29'
1414
15[package.metadata.docs.rs]15[package.metadata.docs.rs]
16targets = ['x86_64-unknown-linux-gnu']16targets = ['x86_64-unknown-linux-gnu']
modifiedruntime/unique/src/lib.rsdiffbeforeafterboth
50 spec_name: create_runtime_str!(RUNTIME_NAME),50 spec_name: create_runtime_str!(RUNTIME_NAME),
51 impl_name: create_runtime_str!(RUNTIME_NAME),51 impl_name: create_runtime_str!(RUNTIME_NAME),
52 authoring_version: 1,52 authoring_version: 1,
53 spec_version: 927030,53 spec_version: 929030,
54 impl_version: 0,54 impl_version: 0,
55 apis: RUNTIME_API_VERSIONS,55 apis: RUNTIME_API_VERSIONS,
56 transaction_version: 2,56 transaction_version: 2,
modifiedtests/scripts/readyness.jsdiffbeforeafterboth
25 }25 }
26 catch(e) {26 catch(e) {
27 await sleep(10000);27 await sleep(10000);
28 console.log(e);
28 }29 }
29 }30 }
30}31}
addedtests/src/eth/proxyContract.test.tsdiffbeforeafterboth

no changes