Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
d306e78
Crude attempt at finding open ports
notlesh Apr 12, 2021
9af4a89
npx -w
notlesh Apr 12, 2021
5cf37a0
Add missing file
notlesh Apr 12, 2021
1f80688
Adds random port and parallel test execution
Apr 12, 2021
b193e1f
Fixed ethers test
Apr 12, 2021
1614a49
Adds delay to node start in test
Apr 12, 2021
2e852ea
Merge remote-tracking branch 'origin/master' into notlesh-find-open-p…
Apr 13, 2021
1384de8
Adds support for test watch
Apr 13, 2021
4b3a85d
Merge branch 'testweek' into crystalin-testweek-watch
Apr 13, 2021
1c8e09f
Cleaned package.json
Apr 13, 2021
ffc5135
Prevent test to run at start of watch
Apr 13, 2021
78552d8
Restore optimization for cargo build
Apr 13, 2021
67c971b
Allow for non-finalization and ParentHash specification in createAndF…
girazoki Apr 10, 2021
9bf2d45
Make test-block tests non-dependent by using non-finalized chains
girazoki Apr 9, 2021
165c1c1
Separate tests to make them non-dependent and parametrize tx hashes a…
girazoki Apr 12, 2021
5a1492e
it instead of step in test-version
girazoki Apr 12, 2021
7836dc6
setup providers before tests in test-ethers.ts
girazoki Apr 12, 2021
51ee9c4
Create a block before tests to avoid one depend on the other in test-…
girazoki Apr 12, 2021
b1d8f02
it for step in test-receipt
girazoki Apr 12, 2021
22b2077
import constants for test-staking
girazoki Apr 12, 2021
2c9e87e
Attemp at parametrizing test-filter-api tests
girazoki Apr 13, 2021
b2121eb
attemp at parametrizing test-revert-receipt
girazoki Apr 13, 2021
adaa05e
remove mocha-steps from tests
girazoki Apr 13, 2021
f083dd6
make test-subscription tests non-dependent
girazoki Apr 13, 2021
aa65135
comply with prettier
girazoki Apr 13, 2021
0752113
Add support for retrieving the hash of the generated block
girazoki Apr 14, 2021
a3bae77
Make test-trace-filter tests non-dependent
girazoki Apr 14, 2021
9b5d3b6
balance-tests non-dependent
girazoki Apr 15, 2021
61e78aa
Non-dependent tests for test-polkadot-api
girazoki Apr 15, 2021
42e79b9
Add test-fork-chain tests
girazoki Apr 15, 2021
074891e
Merge branch 'testweek' into gorka_remove_intra_test_dependencies
Apr 15, 2021
0a046f4
remove unnecesary timeouts
girazoki Apr 15, 2021
34607b5
Use context provider for test-ether.ts
girazoki Apr 15, 2021
8db05cf
Remove currentId from test-filter-api since we are uninstalling all f…
girazoki Apr 15, 2021
9cb5a43
Join balance test setups and check balance at each block
girazoki Apr 15, 2021
1a54e7d
Rename variables to camelCase in tests
girazoki Apr 15, 2021
5786d28
small introduced bug in test-pool-pending when camelCasing variables
girazoki Apr 15, 2021
b65f6d5
Use a different account for test-revert-receipt deployment contract t…
girazoki Apr 15, 2021
0876554
shorten line because of editconfig
girazoki Apr 15, 2021
66f3f6c
Separate test-subscription and test-subscription-past-events.ts
girazoki Apr 15, 2021
0e923fe
remove single letter variable in test-filter-api
girazoki Apr 16, 2021
611df42
Small cosmetic changes
girazoki Apr 16, 2021
6ee7e5a
revert changes in package.json
girazoki Apr 16, 2021
4305984
Remove beforeEach and substitute it for common function
girazoki Apr 16, 2021
5870a7b
change var for let or const
girazoki Apr 16, 2021
6ecef94
Merge branch 'testweek' into gorka_remove_intra_test_dependencies
Apr 17, 2021
8ecddf9
Removes solc from tests
Apr 18, 2021
1525e88
Fixes path for contract tests
Apr 18, 2021
5e8ec5b
Adds formatting for compiled contracts
Apr 18, 2021
c047861
Merge remote-tracking branch 'origin/testweek' into crystalin-remove-…
Apr 18, 2021
fc2a7af
Refactor tests
Apr 19, 2021
339bbf6
Fix formatting
Apr 19, 2021
51badda
Limit concurrency to half cpus for ts tests
Apr 19, 2021
0019667
Fixes github action typo
Apr 19, 2021
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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
with:
node-version: 14.x
- name: Check with Prettier
run: npx prettier --check --ignore-path .gitignore '**/*.(yml|js|ts|json)'
run: npx prettier --check --ignore-path .gitignore '**/*.(yml|js|ts|json)'

####### Building and Testing binaries #######

Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
npm install
cd ../tests
npm install
npm run test;
npm run test -- -j $(($(nproc) / 2));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment would be nice here. Is this detecting the number of cpus available and allocating half of them to the tests?

- name: Save parachain binary
run: |
mkdir -p build
Expand Down
File renamed without changes.
File renamed without changes.
2,076 changes: 2,076 additions & 0 deletions tests/contracts/compiled/Bn128Addition.json

Large diffs are not rendered by default.

2,059 changes: 2,059 additions & 0 deletions tests/contracts/compiled/Bn128Multiply.json

Large diffs are not rendered by default.

2,039 changes: 2,039 additions & 0 deletions tests/contracts/compiled/Bn128Pairing.json

Large diffs are not rendered by default.

176 changes: 176 additions & 0 deletions tests/contracts/compiled/FailContract.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
{
"byteCode": "0x6080604052348015600f57600080fd5b506000601a57600080fd5b603f8060276000396000f3fe6080604052600080fdfea26469706673582212207b68e132fa347c6e3b45db840e591ea6fac483da22d192aabb59494b63a4c1a564736f6c63430008030033",
"contract": {
"abi": [
{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }
],
"devdoc": { "kind": "dev", "methods": {}, "version": 1 },
"evm": {
"assembly": " /* \"main.sol\":39:137 contract FailContract {... */\n mstore(0x40, 0x80)\n /* \"main.sol\":71:131 constructor() public {... */\n callvalue\n dup1\n iszero\n tag_1\n jumpi\n 0x00\n dup1\n revert\ntag_1:\n pop\n /* \"main.sol\":114:119 false */\n 0x00\n /* \"main.sol\":106:120 require(false) */\n tag_4\n jumpi\n 0x00\n dup1\n revert\ntag_4:\n /* \"main.sol\":39:137 contract FailContract {... */\n dataSize(sub_0)\n dup1\n dataOffset(sub_0)\n 0x00\n codecopy\n 0x00\n return\nstop\n\nsub_0: assembly {\n /* \"main.sol\":39:137 contract FailContract {... */\n mstore(0x40, 0x80)\n 0x00\n dup1\n revert\n\n auxdata: 0xa26469706673582212207b68e132fa347c6e3b45db840e591ea6fac483da22d192aabb59494b63a4c1a564736f6c63430008030033\n}\n",
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "6080604052348015600f57600080fd5b506000601a57600080fd5b603f8060276000396000f3fe6080604052600080fdfea26469706673582212207b68e132fa347c6e3b45db840e591ea6fac483da22d192aabb59494b63a4c1a564736f6c63430008030033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH1 0xF JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x0 PUSH1 0x1A JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x3F DUP1 PUSH1 0x27 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH28 0x68E132FA347C6E3B45DB840E591EA6FAC483DA22D192AABB59494B63 LOG4 0xC1 0xA5 PUSH5 0x736F6C6343 STOP ADDMOD SUB STOP CALLER ",
"sourceMap": "39:98:0:-:0;;;71:60;;;;;;;;;;114:5;106:14;;;;;;39:98;;;;;;"
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "6080604052600080fdfea26469706673582212207b68e132fa347c6e3b45db840e591ea6fac483da22d192aabb59494b63a4c1a564736f6c63430008030033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 PUSH28 0x68E132FA347C6E3B45DB840E591EA6FAC483DA22D192AABB59494B63 LOG4 0xC1 0xA5 PUSH5 0x736F6C6343 STOP ADDMOD SUB STOP CALLER ",
"sourceMap": "39:98:0:-:0;;;;;"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "12600",
"executionCost": "64",
"totalCost": "12664"
}
},
"legacyAssembly": {
".code": [
{
"begin": 39,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 39,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "40"
},
{ "begin": 39, "end": 137, "name": "MSTORE", "source": 0 },
{ "begin": 71, "end": 131, "name": "CALLVALUE", "source": 0 },
{ "begin": 71, "end": 131, "name": "DUP1", "source": 0 },
{ "begin": 71, "end": 131, "name": "ISZERO", "source": 0 },
{
"begin": 71,
"end": 131,
"name": "PUSH [tag]",
"source": 0,
"value": "1"
},
{ "begin": 71, "end": 131, "name": "JUMPI", "source": 0 },
{
"begin": 71,
"end": 131,
"name": "PUSH",
"source": 0,
"value": "0"
},
{ "begin": 71, "end": 131, "name": "DUP1", "source": 0 },
{ "begin": 71, "end": 131, "name": "REVERT", "source": 0 },
{ "begin": 71, "end": 131, "name": "tag", "source": 0, "value": "1" },
{ "begin": 71, "end": 131, "name": "JUMPDEST", "source": 0 },
{ "begin": 71, "end": 131, "name": "POP", "source": 0 },
{
"begin": 114,
"end": 119,
"name": "PUSH",
"source": 0,
"value": "0"
},
{
"begin": 106,
"end": 120,
"name": "PUSH [tag]",
"source": 0,
"value": "4"
},
{ "begin": 106, "end": 120, "name": "JUMPI", "source": 0 },
{
"begin": 106,
"end": 120,
"name": "PUSH",
"source": 0,
"value": "0"
},
{ "begin": 106, "end": 120, "name": "DUP1", "source": 0 },
{ "begin": 106, "end": 120, "name": "REVERT", "source": 0 },
{
"begin": 106,
"end": 120,
"name": "tag",
"source": 0,
"value": "4"
},
{ "begin": 106, "end": 120, "name": "JUMPDEST", "source": 0 },
{
"begin": 39,
"end": 137,
"name": "PUSH #[$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{ "begin": 39, "end": 137, "name": "DUP1", "source": 0 },
{
"begin": 39,
"end": 137,
"name": "PUSH [$]",
"source": 0,
"value": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"begin": 39,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{ "begin": 39, "end": 137, "name": "CODECOPY", "source": 0 },
{
"begin": 39,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{ "begin": 39, "end": 137, "name": "RETURN", "source": 0 }
],
".data": {
"0": {
".auxdata": "a26469706673582212207b68e132fa347c6e3b45db840e591ea6fac483da22d192aabb59494b63a4c1a564736f6c63430008030033",
".code": [
{
"begin": 39,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "80"
},
{
"begin": 39,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "40"
},
{ "begin": 39, "end": 137, "name": "MSTORE", "source": 0 },
{
"begin": 39,
"end": 137,
"name": "PUSH",
"source": 0,
"value": "0"
},
{ "begin": 39, "end": 137, "name": "DUP1", "source": 0 },
{ "begin": 39, "end": 137, "name": "REVERT", "source": 0 }
]
}
}
},
"methodIdentifiers": {}
},
"ewasm": { "wasm": "" },
"metadata": "{\"compiler\":{\"version\":\"0.8.3+commit.8d00100c\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"main.sol\":\"FailContract\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"main.sol\":{\"keccak256\":\"0x4de9ab93b7ba7a82d8e58a903a5a297b8a8dc5263369657b062496782a5a51e9\",\"urls\":[\"bzz-raw://70e08b1c0fff16d5982491d2b46221465b0094cd251f991786aa1ca409f6c431\",\"dweb:/ipfs/QmVc7Qm8cNSUa4CrQhPtuSUJndczcDARrLoYc4z1CCuJ3m\"]}},\"version\":1}",
"storageLayout": { "storage": [], "types": null },
"userdoc": { "kind": "user", "methods": {}, "version": 1 }
},
"sourceCode": "\n pragma solidity >=0.8.0;\n \n contract FailContract {\n constructor() public {\n require(false);\n }\n }"
}
Loading