Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 3 additions & 5 deletions e2e/artillery/configs/sign-session-key.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion e2e/artillery/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 11 additions & 2 deletions e2e/artillery/src/processors/multi-endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down Expand Up @@ -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;
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down