Skip to content

Configure Playground runtime request workers#2088

Merged
chubes4 merged 1 commit into
mainfrom
fix/2087-playground-worker-count
Jul 26, 2026
Merged

Configure Playground runtime request workers#2088
chubes4 merged 1 commit into
mainfrom
fix/2087-playground-worker-count

Conversation

@chubes4

@chubes4 chubes4 commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Fixes #2087.

What changed

  • Adds backend-neutral runtime.workers support for integers from 1 through 64 or auto.
  • Propagates the option through PHPUnit recipe building, dry-run plans, runtime normalization, and recipe execution.
  • Passes the selected count to Playground CLI while preserving the existing default of six when omitted.
  • Rejects invalid builder input instead of silently dropping it.

Why

Playground applies mounted resources to every request worker. Large generated runtimes can therefore multiply startup work by six even when the workload needs only one request worker. Bounded execution concurrency remains an independent orchestration concern.

Verification

  • npm run build
  • npm run test:runtime-workers
  • npm run test:runtime-neutral-contracts
  • npm run test:recipe-runtime-backend-normalization
  • npm exec -- tsx tests/playground-cli-runner-bootstrap-ini.test.ts
  • git diff --check

The combined test:runtime-services command reaches an existing macOS native-MariaDB containment failure after its generic and external-MySQL portions pass; this change does not touch that provider.

AI assistance

OpenCode using openai/gpt-5.6-sol implemented the runtime worker-count contract and tests after diagnosing the large-mount startup scaling failure. Chris Huber reviewed and owns the submitted change.

@chubes4
chubes4 merged commit 85b7124 into main Jul 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make Playground worker count configurable for large mounted runtimes

1 participant