Skip to content

Commit a9061fa

Browse files
committed
feat: add web socket based transactions by addresses provider
1 parent dc90eeb commit a9061fa

File tree

20 files changed

+1773
-153
lines changed

20 files changed

+1773
-153
lines changed

.github/workflows/continuous-integration-e2e.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
KEY_MANAGEMENT_PARAMS: '{"bip32Ed25519": "Sodium", "accountIndex": 0, "chainId":{"networkId": 0, "networkMagic": 888}, "passphrase":"some_passphrase","mnemonic":"vacant violin soft weird deliver render brief always monitor general maid smart jelly core drastic erode echo there clump dizzy card filter option defense"}'
99
TEST_CLIENT_ASSET_PROVIDER: 'http'
1010
TEST_CLIENT_ASSET_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4014/"}'
11-
TEST_CLIENT_CHAIN_HISTORY_PROVIDER: 'http'
11+
TEST_CLIENT_CHAIN_HISTORY_PROVIDER: 'ws'
1212
TEST_CLIENT_CHAIN_HISTORY_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
1313
DB_SYNC_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/cexplorer'
1414
TEST_CLIENT_HANDLE_PROVIDER: 'http'
@@ -22,7 +22,7 @@ env:
2222
TEST_CLIENT_REWARDS_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
2323
TEST_CLIENT_TX_SUBMIT_PROVIDER: 'http'
2424
TEST_CLIENT_TX_SUBMIT_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
25-
TEST_CLIENT_UTXO_PROVIDER: 'http'
25+
TEST_CLIENT_UTXO_PROVIDER: 'ws'
2626
TEST_CLIENT_UTXO_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
2727
TEST_CLIENT_STAKE_POOL_PROVIDER: 'http'
2828
TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
@@ -79,7 +79,6 @@ jobs:
7979
run: |
8080
yarn workspace @cardano-sdk/e2e test:wallet:epoch0
8181
yarn workspace @cardano-sdk/e2e test:projection
82-
yarn workspace @cardano-sdk/e2e test:ws
8382
8483
- name: Wait for epoch 3
8584
run: |
@@ -88,6 +87,7 @@ jobs:
8887
- name: 🔬 Test - e2e - wallet at epoch 3
8988
run: |
9089
yarn workspace @cardano-sdk/e2e test:wallet:epoch3
90+
yarn workspace @cardano-sdk/e2e test:ws
9191
yarn workspace @cardano-sdk/e2e test:pg-boss
9292
yarn workspace @cardano-sdk/e2e test:providers
9393
env:

.github/workflows/k6-web-socket.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ on:
2626
type: number
2727
required: true
2828
default: 1000
29+
hd-addr-per-wallet:
30+
description: 'Number of addresses per wallet.'
31+
type: number
32+
required: true
33+
default: 10
34+
hd-tx-history-size-per-wallet:
35+
description: 'Maximum number of transactions per wallet. Filter wallet addresses to have a tx history size smaller than this value.'
36+
type: number
37+
required: true
38+
default: 1000
39+
max-vu:
40+
description: 'Maximum number of simultaneous simulated users.'
41+
type: number
42+
required: true
43+
default: 100
2944

3045
jobs:
3146
web-socket:
@@ -55,6 +70,9 @@ jobs:
5570
-e TARGET_ENV=${{ inputs.environment }}
5671
-e TARGET_NET=${{ inputs.network }}
5772
-e WALLETS=${{ inputs.wallets }}
73+
-e HD_ACTIVE_ADDR_COUNT=${{ inputs.hd-addr-per-wallet }}
74+
-e HD_MAX_TX_HISTORY=${{ inputs.hd-tx-history-size-per-wallet }}
75+
-e MAX_VU=${{ inputs.max-vu }}
5876
--out json=web-socket-results.json
5977
--quiet
6078
- name: Upload performance test results

compose/common.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# cSpell:ignore utxo
2+
13
x-from-sdk: &from-sdk
24
healthcheck:
35
interval: 10s

0 commit comments

Comments
 (0)