Skip to content

Commit 81b52f5

Browse files
authored
Merge pull request #1489 from input-output-hk/feat/web-socket-chain-history-provider
LW-11609 Web socket ChainHistoryProvider
2 parents 0d39420 + 63798e8 commit 81b52f5

File tree

25 files changed

+1856
-200
lines changed

25 files changed

+1856
-200
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: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,17 @@ on:
2525
description: 'Number of wallets to simulate'
2626
type: number
2727
required: true
28-
default: 1000
28+
default: 100
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: 100
2939

3040
jobs:
3141
web-socket:
@@ -55,6 +65,8 @@ jobs:
5565
-e TARGET_ENV=${{ inputs.environment }}
5666
-e TARGET_NET=${{ inputs.network }}
5767
-e WALLETS=${{ inputs.wallets }}
68+
-e HD_ACTIVE_ADDR_COUNT=${{ inputs.hd-addr-per-wallet }}
69+
-e HD_MAX_TX_HISTORY=${{ inputs.hd-tx-history-size-per-wallet }}
5870
--out json=web-socket-results.json
5971
--quiet
6072
- 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

nix/cardano-services/deployments/default.nix

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ in
148148
};
149149

150150
ws-server = {
151-
enabled = false;
151+
enabled = true;
152152
resources.limits = mkPodResources "300Mi" "300m";
153153
resources.requests = mkPodResources "150Mi" "200m";
154154
};
@@ -230,7 +230,6 @@ in
230230

231231
values = {
232232
useAccelerator = true;
233-
ws-server.enabled = true;
234233
stakepool.databaseName = "stakepoolv2";
235234
cardano-services = {
236235
ingresOrder = 99;
@@ -316,7 +315,6 @@ in
316315
};
317316

318317
values = {
319-
ws-server.enabled = true;
320318
cardano-services = {
321319
ingresOrder = 99;
322320
additionalRoutes = [
@@ -366,7 +364,6 @@ in
366364

367365
values = {
368366
useAccelerator = true;
369-
ws-server.enabled = true;
370367
stakepool.databaseName = "stakepoolv2";
371368
backend.allowedOrigins = lib.concatStringsSep "," allowedOriginsDev;
372369

@@ -406,7 +403,6 @@ in
406403
};
407404

408405
values = {
409-
ws-server.enabled = true;
410406
stakepool.databaseName = "stakepoolv2";
411407
blockfrost-worker.enabled = true;
412408
pg-boss-worker.enabled = true;
@@ -714,7 +710,6 @@ in
714710
values = {
715711
pg-boss-worker.enabled = true;
716712
pg-boss-worker.queues = "pool-delist-schedule,pool-metadata,pool-metrics,pool-rewards";
717-
ws-server.enabled = true;
718713
cardano-services = {
719714
ingresOrder = 99;
720715
};

0 commit comments

Comments
 (0)