You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4e69782
Browse filesBrowse the repository at this point in the historyBrowse files
Remove the Docker containers of runs that were stopped or killed
A run removed its containers in shutdown functions, which PHP skips when a signal
ends it, so Ctrl+C or a timeout left the database containers running.
Exit through the signal handlers when the pcntl extension is available, so the
shutdown functions run. Label the containers with the host and process of their
run, and remove those of runs on this host whose process is gone before starting
new ones, which covers runs that were killed outright. Containers of runs that are
still going, of other hosts and those without the label are left alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .readme-partials/USING.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -280,6 +280,8 @@ Docker is not used on Windows, when collecting code coverage, when Docker is not
280
280
281
281
Each worker gets its own network, temporary directory and database server, of the same type and version as the one configured through the `WP_CLI_TEST_DB*` variables (or set the image through `WP_CLI_TEST_DOCKER_DB`, e.g. `mysql:8.0`, so that the host needs neither a database server nor a client). Nothing is shared between workers, so they can run any scenario. The database servers keep their data in memory. Scenarios selected by path or name run in a single container.
282
282
283
+
The containers are removed when the run ends, also when it is stopped with Ctrl+C or a termination signal (with the `pcntl` extension). Containers of a run that was killed outright are removed by the next run on the same host, which only removes those whose run is no longer going.
284
+
283
285
The containers run the same PHP version as the host, unless `WP_CLI_TEST_DOCKER_PHP` sets another one:
0 commit comments