Skip to content
Merged
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
9 changes: 7 additions & 2 deletions tests/load/campaigns/capacity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ if [ "$CAMPAIGN" = smoke ]; then
fanout=(FANOUT_LEVELS=1,2)
members=2
mixed=(MIXED_RATES=1,2 MIXED_DURATION=30s)
else
elif [ "${SHARED_DEV:-}" = 1 ]; then
upload=(BASELINE_ITERATIONS=50 CONFIRMATION_ITERATIONS=20)
ramp=(RAMP_LEVELS=1,2,4,8,16)
fanout=(FANOUT_LEVELS=1,2,4,8,16)
members=16
else
# Past the limits seen on the load VM, so each search ends on a failing level.
upload=(BASELINE_ITERATIONS=50 CONFIRMATION_ITERATIONS=20)
ramp=(RAMP_LEVELS=1,2,4,8,16,32,64)
fanout=(FANOUT_LEVELS=1,2,4,8,16,32,64,128)
members=128
mixed=(MIXED_RATES=1,2,4,8,16,32)
fi
# Shared DEV budgets, agreed with the DEV owner: raise them only with that agreement. The ladders come
Expand Down
12 changes: 8 additions & 4 deletions tests/load/src/scripts/run-campaign.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,11 @@ test('smoke and capacity run every runner on their own ladders, locally on one o
'org-drive-fanout': { exit: 0, report: { ...fanout, capacity: { kind: 'lower_bound', lower: 4 }, status: 'passed' } },
'mixed-capacity': { exit: 0, report: mixed },
}
for (const [campaign, vus, levels, members, rates] of [['smoke', '2', '1,2', '2', '1,2'],
['capacity', undefined, '1,2,4,8,16', '16', '1,2,4,8,16,32']] as const) {
// Locally the capacity ladders go past the VM's limits; shared DEV keeps them within its budgets.
for (const [campaign, vus, levels, batches, members, rates, devLevels] of [
['smoke', '2', '1,2', '1,2', '2', '1,2', '1,2'],
['capacity', undefined, '1,2,4,8,16,32,64', '1,2,4,8,16,32,64,128', '128', '1,2,4,8,16,32', '1,2,4,8,16'],
] as const) {
const run = await runCampaign(t, '', plays, undefined, { campaign })
equal(run.code, 0, run.log)
// Locally, the bundled Stack is prepared before any runner, and the organization removed after the last.
Expand All @@ -281,7 +284,7 @@ test('smoke and capacity run every runner on their own ladders, locally on one o
deepEqual([setting(run.commands[1], 'LOAD_TARGET'), setting(run.commands[1], 'FILE_SIZE'),
setting(run.commands[1], 'MAX_VUS'), setting(run.commands[3], 'RAMP_LEVELS'),
setting(run.commands[2], 'SEED_USERS'), setting(run.commands[4], 'FANOUT_LEVELS')],
['local', '100K', vus, levels, members, levels])
['local', '100K', vus, levels, members, batches])
const org = setting(run.commands[2], 'SEED_DOMAIN')!
match(org, /^seed-[a-f0-9]{32}\./)
deepEqual([setting(run.commands[3], 'ACTORS_DOMAIN'), setting(run.commands[4], 'FANOUT_ORG_DOMAIN'),
Expand All @@ -300,7 +303,8 @@ test('smoke and capacity run every runner on their own ladders, locally on one o
deepEqual(dev.targets, ['upload-capacity', 'shared-drive-ramp', 'org-drive-fanout'])
deepEqual(dev.commands.map(command => setting(command, 'LOAD_TARGET')), ['dev', 'dev', 'dev'])
deepEqual([setting(dev.commands[0], 'MAX_VUS'), setting(dev.commands[0], 'MAX_UPLOAD_BYTES'),
setting(dev.commands[2], 'FANOUT_LEVELS')], [vus ?? '128', '2560M', levels])
setting(dev.commands[1], 'RAMP_LEVELS'), setting(dev.commands[2], 'FANOUT_LEVELS')],
[vus ?? '128', '2560M', devLevels, devLevels])
}
})

Expand Down
Loading