diff --git a/e2e/artillery/configs/sign-session-key.yml b/e2e/artillery/configs/sign-session-key.yml index 28c46a8f8..d9dbb32f7 100644 --- a/e2e/artillery/configs/sign-session-key.yml +++ b/e2e/artillery/configs/sign-session-key.yml @@ -4,17 +4,15 @@ config: # Over 60s, ramp up to creating 50 vusers per second - duration: 60 arrivalRate: 5 - # rampTo: 50 - rampTo: 10 + rampTo: 150 name: 'Ramp Up' # Over 300s, create 50 vusers per second - duration: 300 - # arrivalRate: 50 - arrivalRate: 10 + arrivalRate: 150 name: 'Sustained Sign Session Key' # Over 60s, ramp down to creating 5 vusers per second - duration: 60 - arrivalRate: 5 + arrivalRate: 20 name: 'Ramp Down' processor: '../src/processors/multi-endpoints.ts' diff --git a/e2e/artillery/src/init.ts b/e2e/artillery/src/init.ts index 4534971af..d9f4c4c55 100644 --- a/e2e/artillery/src/init.ts +++ b/e2e/artillery/src/init.ts @@ -14,7 +14,7 @@ const _network = process.env['NETWORK']; // CONFIGURATIONS const REJECT_BALANCE_THRESHOLD = 0; -const LEDGER_MINIMUM_BALANCE = 20000; +const LEDGER_MINIMUM_BALANCE = 10000; (async () => { // -- Start diff --git a/e2e/artillery/src/processors/multi-endpoints.ts b/e2e/artillery/src/processors/multi-endpoints.ts index dde80ae0d..f38eed3be 100644 --- a/e2e/artillery/src/processors/multi-endpoints.ts +++ b/e2e/artillery/src/processors/multi-endpoints.ts @@ -112,7 +112,8 @@ const createAuthContextFromState = async () => { ['access-control-condition-decryption', '*'], ], capabilityAuthSigs: [], - expiration: new Date(Date.now() + 1000 * 60 * 15).toISOString(), + // 30m expiration + expiration: new Date(Date.now() + 1000 * 60 * 30).toISOString(), }, litClient: litClient, }); @@ -166,7 +167,15 @@ export async function runPkpSignTest() { ); // Throw the error to let Artillery handle it - throw error; + // Handle specific errors to aggregate them + if ( + error instanceof Error && + error.message.includes('unable to get signature share') + ) { + throw new Error('"PKP Sign" failed. unable to get signature share.'); + } else { + throw error; + } } } diff --git a/packages/networks/src/networks/vNaga/shared/managers/LitChainClient/apis/rawContractApis/pricing/getNodesForRequest.ts b/packages/networks/src/networks/vNaga/shared/managers/LitChainClient/apis/rawContractApis/pricing/getNodesForRequest.ts index 8f39f5d5a..e4a28fbec 100644 --- a/packages/networks/src/networks/vNaga/shared/managers/LitChainClient/apis/rawContractApis/pricing/getNodesForRequest.ts +++ b/packages/networks/src/networks/vNaga/shared/managers/LitChainClient/apis/rawContractApis/pricing/getNodesForRequest.ts @@ -20,6 +20,7 @@ export const PRODUCT_IDS = { DECRYPTION: 0n, // For decryption operations SIGN: 1n, // For signing operations LIT_ACTION: 2n, // For Lit Actions execution + SIGN_SESSION_KEY: 3n, // For sign session key operations } as const; // Schema for the request