Skip to content

Rename ProcessFactory to Sandbox, create() returns a SandboxExecution - #337

Merged
AydinHassan merged 5 commits into
masterfrom
sandbox-api
Oct 27, 2026
Merged

AydinHassan merged 5 commits into
masterfrom
sandbox-api

Conversation

@AydinHassan

@AydinHassan AydinHassan commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

First task of #336: API change only, no behaviour change.

  • ProcessFactory → Sandbox, DockerSandbox, HostSandbox.
  • The PROCESS_FACTORY env var is now SANDBOX (workshops need updating).
  • create() returns a SandboxExecution: HostExecution or DockerExecution. How many commands a run takes is up to each sandbox.

phpschool.io follows in php-school/phpschool.io#363.

A Run is the main process plus before/after steps, so the Docker sandbox can
later create, copy files in and remove containers around it. No steps are used
yet, so there is no behaviour change. Part of #336.
How many commands a run takes is a detail of each sandbox, so HostSandbox and
DockerSandbox return their own HostExecution and DockerExecution.
@AydinHassan AydinHassan changed the title Rename ProcessFactory to Sandbox, create() returns a Run Rename ProcessFactory to Sandbox, create() returns a SandboxExecution Oct 27, 2026
DockerSandbox passes none yet, so there is no behaviour change. Copying files in will add create/cp before and rm after.
@AydinHassan
AydinHassan merged commit 661e7d8 into master Oct 27, 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.

1 participant