Skip to content

fix: signal handling - remove in-flight temporary containers when ddev is interrupted, fixes #8951 - #8954

Merged
rfay merged 8 commits into
ddev:mainfrom
rfay:20261015_rfay_signals
Oct 21, 2026
Merged

rfay merged 8 commits into
ddev:mainfrom
rfay:20261015_rfay_signals

Conversation

@rfay

@rfay rfay commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Short Summary (TL;DR)

Ctrl-C, SIGTERM, or a closed terminal no longer leaves utility containers such as start-chown-* and GetExistingDBType-* behind holding project volumes, because ddev now removes them before it exits.

The Issue

Inspired by @wazum work in #8950 and @stasadev #8777. We've needed this for a long time.

ddev had no signal handler, so Go exited at once on SIGINT or SIGTERM and the deferred RemoveContainer() in RunSimpleContainerExtended() never ran.

How This PR Solves The Issue

A new pkg/interrupt package installs one handler from main(). Code registers cleanup with OnInterrupt(), and on a signal the handler runs it in parallel with a short timeout, then exits. A second signal during cleanup exits immediately. See the appendix for how the pieces fit together.

  • pkg/dockerutil tracks each container RunSimpleContainerExtended() creates until it is removed, plus a terminal in raw mode, and restores the terminal before force-removing the containers.
  • ImportDB() also registers removal of its .ddev/.importdbNNN directory, which holds the extracted dump inside the project and was left behind the same way.
  • ddev import-db, ddev export-db, and ddev snapshot run their in-container command under a wrapper shell whose process group the handler kills, because a Docker exec otherwise keeps running in the container after ddev exits.
  • ddev export-db -f writes a temp file and renames it on success, and a snapshot is copied to a temp dir in .ddev and renamed into db_snapshots, so an interrupt never leaves a truncated dump or a partial snapshot that looks valid. /dev/stdout and /dev/stderr are written through ddev's own descriptors and /dev/fd/N is opened for append instead, so >> backup.sql keeps its earlier contents, and the .ddev/.snapshot* temp dir is ignored by Mutagen and .ddev/.gitignore.
  • Fatal error paths, including cobra printing a command's error and usage, wait for the handler instead of reporting the failure the cleanup caused.
  • ddev share, ddev mutagen logs, ddev tui, and exec.RunInteractiveCommandWithOutput() handle Ctrl-C and SIGTERM themselves, so they call Delegate() for those signals and the handler runs the cleanup without exiting. The forwarder in pkg/exec also stops its notification and no longer panics when forwarding fails.
  • On Unix ddev re-raises the signal after cleanup instead of exiting with 130 or 143, because bash only stops a loop on Ctrl-C when its child died from the signal.
  • Signals the parent already ignores stay ignored, so nohup and background jobs in scripts keep working.

Manual Testing Instructions

The temporary containers live for less than a second, so watch them from a second terminal with docker events. The filter hides the once-a-second healthcheck execs and the project's own ddev-* containers:

docker events --filter label=com.ddev.platform=ddev --filter type=container \
  --filter event=create --filter event=start --filter event=die --filter event=destroy \
  --format '{{.Time}} {{.Action}} {{.Actor.Attributes.name}}' | grep -v ' ddev-'

Every create should get a matching destroy before the prompt returns. In the first terminal:

ddev utility download-ddev --pr 8954
export PATH="$HOME/tmp/ddev-download-ddev/pr-8954:$PATH"
mkdir ~/tmp/intr && cd ~/tmp/intr && ddev config --project-type=php
for d in 1 1.5 2 2.5 3 4; do ddev stop >/dev/null; ddev start -y & p=$!; sleep $d; kill -TERM $p; wait $p; done
docker ps -a --filter label=com.ddev.platform=ddev --format '{{.Names}}' | grep -v '^ddev-'
# Expect no output; with released ddev, or with kill -KILL, a start-chown-* container is left

Also check by hand:

  • Ctrl-C during ddev start prints Interrupted, removing N temporary containers... when one was in flight.
  • for i in 1 2 3; do ddev stop; ddev start; done stops at the first Ctrl-C instead of moving on.
  • ddev share still prints "Stopping tunnel" on Ctrl-C, and ddev mutagen logs still restarts the daemon.
  • ddev import-db --file=<large dump> interrupted with Ctrl-C leaves no .ddev/.importdb* directory.
  • ddev export-db -f dump.sql.xz and ddev snapshot on a large database, interrupted with Ctrl-C, leave no new file in the project or .ddev/db_snapshots, keep an earlier dump.sql.xz, and leave no mariadb-dump or mariabackup in ddev exec -s db ps -ef.
  • On Windows, Ctrl-C during ddev start in PowerShell and in Git Bash, and closing the console window, leave nothing behind in the docker ps check above.

Automated Testing Overview

TestInterruptRemovesTemporaryContainers sends SIGTERM to ddev start once a temporary container exists, then checks that ddev died from SIGTERM and that no temporary containers remain. It is skipped on Windows. pkg/interrupt has unit tests for the timeout, delegation, and exit codes.

Appendix: how the interrupt handler works

interrupt.Install() runs once in main() and starts a goroutine that listens for SIGINT, SIGTERM, and SIGHUP on Unix, or Ctrl-C and SIGTERM on Windows, where Go never delivers SIGHUP.

Function Called by Effect
OnInterrupt(f) (unregister) Code that leaves something behind Adds f to the cleanup list; f gets a context with a deadline
Delegate(sigs...) (release) Code that handles those signals itself For those signals the handler runs the cleanup but does not exit

On a signal the handler copies the cleanup list and runs every entry in parallel, waiting up to 5 seconds, or 3 for SIGTERM on Windows, where a closed console window is ended about 5 seconds later. If the signal is delegated it returns there and the command's own handling continues. Otherwise it exits as soon as cleanup finishes or a second signal arrives. While it cleans up, util.Failed() and Execute() wait for it instead of exiting, because removing a container makes the command that was using it fail, and exiting on that failure would report an error instead of dying from the signal. Cleanups stay registered after they run, because a delegated signal does not end the process and the next one needs them again.

pkg/dockerutil registers one at init that works from the IDs RunSimpleContainerExtended() records right after ContainerCreate and drops after its own RemoveContainer, plus the restore function setupRawTerminal() records. It restores the terminal first so its message is readable, then force-removes each container. When ddev's own deferred removal is already under way, it waits for the container to disappear instead, because exiting first would cancel that removal and leave a dead container. ImportDB() registers removal of its temporary directory and unregisters it in the same defer that removes it on a normal return, which is the pattern for any new short-lived resource. ExportDB() does the same for its temp file, and Snapshot() for its temp dir and in-container copy. app.Exec() with an InterruptID prepends sh -c '"$@"; exit $?' ddev-interrupt-<id> to the command, and its cleanup finds that marker in /proc/*/cmdline and kills the wrapper's process group, which a Docker exec makes it lead.

The handler leaves alone project containers already started by docker compose up and Mutagen sessions, as #8951 proposed. SIGKILL and crashes cannot be caught, so the sweeps in ddev delete (#8950) and ddev poweroff still cover those.

🤖 Developed with assistance from Claude Code

Co-Authored-By: Claude Opus 5.5 [email protected]

@rfay
rfay requested a review from a team as a code owner October 15, 2026 14:28
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Download this PR's build for your OS and architecture with:

ddev utility download-ddev --pr 8954

Or download the artifact for your OS and architecture directly:

See Testing a PR.

Open in GitHub Codespaces

@rfay
rfay force-pushed the 20261015_rfay_signals branch from 0ca63ef to 530024c Compare October 15, 2026 16:11
@wazum

wazum commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

I ran TestInterruptRemovesTemporaryContainers on this branch on Docker Desktop (macOS) and it failed 2 of 4 runs:

ddev should die from SIGTERM so a calling shell sees it; status=256
Interrupted, removing 1 temporary container...
Failed to RunSimpleContainer to inspect database version/type: failed to get container GetExistingDBType-... logs: Error response from daemon: can not get logs from container which is dead or marked for removal

When SIGTERM arrives, two goroutines race to end the process. The handler removes the temporary container and then re-raises SIGTERM. Meanwhile the main goroutine, still waiting on that container, gets a log-read error, and GetExistingDBType() turns that into util.Failed, which is os.Exit(1). If the main goroutine gets there first, ddev exits 1 instead of dying from SIGTERM, which is the case the re-raise was added for.

cleanUpInFlight already handles the opposite order, where ddev's own removal is in progress and the handler waits for it. The missing piece is this order. Once the handler has started cleanup for a signal it will exit on, util.Failed should print and then block instead of calling os.Exit, since the handler is about to end the process. A flag the handler sets and util.Failed checks would do it. Then the signal re-raise is the only way out and the exit status is always right.

Everything else looks right to me.

@rfay

rfay commented Oct 15, 2026 •

Copy link
Copy Markdown
Member Author

It failed in automated tests on macOS Docker Desktop also, thanks for report, https://buildkite.com/ddev/ddev-macos-arm64-mutagen/builds/14766#01a14054-e758-4575-959c-62674b9e2242

It will be interesting to see what happens on other macOS tests.

Edit: Amazing, Colima, Lima, Orbstack succeeded. And DD failed. Basically the only failure. (WSL is Github runner failure)

@rfay
rfay force-pushed the 20261015_rfay_signals branch from 530024c to 3546080 Compare October 16, 2026 00:01

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me with a suggestion:

WaitIfExiting() covers util.Failed() and Execute(), but pkg/dockerutil/networks.go:54 calls output.UserErr.Fatalf() directly and can run mid-start. If it fires while the handler is removing a container, the process exits, the ContainerRemove is cancelled, and we're back to the race. Switching it to util.Failed() closes that. The other direct Fatalf calls are in globalconfig startup, before any temp container exists.

Claude Code also ran TestInterruptRemovesTemporaryContainers on Linux/Docker: it passes on this branch and fails on main with a leftover GetExistingDBType-* container.

🤖 Developed with assistance from Claude Code

@rfay rfay changed the title fix: remove in-flight temporary containers when ddev is interrupted, fixes #8951 fix: signal handling - remove in-flight temporary containers when ddev is interrupted, fixes #8951 Oct 18, 2026
@rfay
rfay force-pushed the 20261015_rfay_signals branch from 3546080 to d5807ac Compare October 18, 2026 14:37
@rfay

rfay commented Oct 18, 2026

Copy link
Copy Markdown
Member Author

Thanks, rebased and done

@rfay

rfay commented Oct 18, 2026

Copy link
Copy Markdown
Member Author

Added an additional cleanup with cleanup of export-db partials and ddev exec interruptions.

@stasadev
stasadev self-requested a review October 19, 2026 14:54
Comment thread pkg/ddevapp/ddevapp.go
Comment on lines +3577 to +3579
// The snapshot is copied out to a temp dir and renamed into db_snapshots,
// so an interrupted copy never leaves a partial snapshot there.
hostTmpDir, err := os.MkdirTemp(app.GetConfigPath(""), ".snapshot")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Snapshot() stages the dump in .ddev/.snapshotNNN, which is in neither the Mutagen ignore list (mutagen_config_assets/mutagen.yml has only db_snapshots and .importdb*) nor the .ddev/.gitignore list in config.go. With Mutagen, a multi-GB snapshot starts syncing into the web container until it is renamed away, and a dir left behind by SIGKILL shows up in git status. Either add .snapshot* to both lists, or create the temp dir inside db_snapshots/, which both already ignore and which keeps the rename on one filesystem (ListSnapshotNames() would then need to skip dot entries).

🤖 Developed with assistance from Claude Code

@wazum

wazum commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Found another issue: createDumpFile does not write /dev/stdout directly when stdout is redirected to a regular file, contrary to its comment. EvalSymlinks resolves it to /dev/fd/1 on macOS or to the real file on Linux, and Stat reports a regular file, so the temp-file-and-rename path runs. On macOS ddev export-db -f /dev/stdout > out.sql fails because the temp file cannot be created in /dev. On Linux the rename replaces the target, so >> backup.sql loses the earlier contents.

ddev/pkg/ddevapp/ddevapp.go

Lines 1188 to 1205 in 81594f2

// createDumpFile opens a temp file beside dumpFile, which finish(true)
// renames into place and finish(false) removes, so a failed or interrupted
// export leaves no partial dump and keeps any earlier one. A dumpFile that is
// not a regular file, like /dev/stdout, is written directly.
func createDumpFile(dumpFile string) (f *os.File, finish func(ok bool) error, err error) {
target := dumpFile
if resolved, err := filepath.EvalSymlinks(dumpFile); err == nil {
target = resolved
}
perm := os.FileMode(0644)
if fi, err := os.Stat(target); err == nil {
if !fi.Mode().IsRegular() {
f, err = os.OpenFile(target, os.O_WRONLY|os.O_TRUNC, 0)
if err != nil {
return nil, nil, err
}
return f, func(bool) error { return f.Close() }, nil
}

🤖 Generated with Claude Code

@rfay
rfay force-pushed the 20261015_rfay_signals branch from 81594f2 to a543d3d Compare October 20, 2026 12:17
@stasadev
stasadev self-requested a review October 20, 2026 21:10
rfay and others added 7 commits October 20, 2026 20:18
…ixes ddev#8951

## Short Summary (TL;DR)

Ctrl-C, SIGTERM, or a closed terminal no longer leaves utility containers such as `start-chown-*` and `GetExistingDBType-*` behind holding project volumes, because ddev now removes them before it exits.

## The Issue

- Fixes ddev#8951

ddev had no signal handler, so Go exited at once on SIGINT or SIGTERM and the deferred `RemoveContainer()` in `RunSimpleContainerExtended()` never ran.

## How This PR Solves The Issue

A new `pkg/interrupt` package installs one handler from `main()`. Code registers cleanup with `OnInterrupt()`, and on a signal the handler runs it in parallel with a short timeout, then exits. A second signal during cleanup exits immediately.

- `pkg/dockerutil` tracks each container `RunSimpleContainerExtended()` creates until it is removed, plus a terminal in raw mode, and restores the terminal before force-removing the containers.
- `ImportDB()` also registers removal of its `.ddev/.importdbNNN` directory, which holds the extracted dump inside the project and was left behind the same way.
- `ddev share`, `ddev mutagen logs`, `ddev tui`, and `exec.RunInteractiveCommandWithOutput()` handle Ctrl-C and SIGTERM themselves, so they call `Delegate()` for those signals and the handler runs the cleanup without exiting. The forwarder in `pkg/exec` also stops its notification and no longer panics when forwarding fails.
- On Unix ddev re-raises the signal after cleanup instead of exiting with 130 or 143, because bash only stops a loop on Ctrl-C when its child died from the signal.
- Signals the parent already ignores stay ignored, so `nohup` and background jobs in scripts keep working.

## Manual Testing Instructions

```bash
ddev utility download-ddev --pr 8954
export PATH="$HOME/tmp/ddev-download-ddev/pr-8954:$PATH"
mkdir ~/tmp/intr && cd ~/tmp/intr && ddev config --project-type=php
ddev start -y & p=$!; sleep 2; kill -TERM $p; wait $p
docker ps -a --filter label=com.ddev.platform=ddev --format '{{.Names}}' | grep -v '^ddev-'
# Expect no output; before this PR a start-chown-* container was left
```

On Windows, press Ctrl-C during `ddev start` in PowerShell and in Git Bash, then run the same `docker ps` check.

## Automated Testing Overview

`TestInterruptRemovesTemporaryContainers` sends SIGTERM to `ddev start` once a temporary container exists, then checks that ddev died from SIGTERM and that no temporary containers remain. It is skipped on Windows. `pkg/interrupt` has unit tests for the timeout, delegation, and exit codes.

🤖 Developed with assistance from [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The interrupt handler's listener and os/signal's loop run for the whole process, which put TestCmdStart at 11 goroutines against a limit of 10.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ks in-flight work

Removing an in-flight temporary container makes RunSimpleContainerExtended() fail, and the main goroutine then reached util.Failed() and exited with status 1 before the handler re-raised the signal. Docker Desktop on macOS hit this every time, because its forced remove stops the container well before the API call returns, so TestInterruptRemovesTemporaryContainers failed there.

Once the handler is going to exit, util.Failed() and Execute() now block in interrupt.WaitIfExiting() and leave the exit to the handler, which also drops the misleading error message.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lure

EnsureDdevNetwork() exited through output.UserErr.Fatalf(), which skips WaitIfExiting(), so a failure there during an interrupt could exit before the handler finished removing temporary containers. It now uses util.Failed(), which waits. The interrupt handler also logs the error from ContainerWait instead of discarding it, which errcheck requires.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rtial dumps or snapshots

A Docker exec keeps running in the container after ddev exits, so an interrupted import-db, export-db, or snapshot kept loading or dumping the database. Exec now takes an InterruptID that runs the command under a wrapper shell carrying a marker in its cmdline, and an interrupt kills that shell's process group. The marker is in cmdline rather than environ because rootless podman refuses reads of another process's environ.

export-db -f wrote the dump in place, so an interrupt left a truncated file under the requested name and destroyed any earlier one. It now writes a temp file beside the target and renames it on success.

A snapshot was copied straight into db_snapshots, so an interrupt during the copy left a partial snapshot that looked restorable. It is now copied to a temp dir in .ddev and renamed in, and an interrupt also removes the in-container copy.

WaitIfExiting now runs as a cobra finalizer, because cobra printed the failing command's error and usage before Execute() could wait for the handler.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rrupt kills a db command

The snapshot temp dir was created 0700, which a db container user mapped to another uid cannot write into on rootless Docker, so every snapshot failed there. It now gets 0777 like db_snapshots.

When the interrupt cleanup killed an InterruptID command, the caller still printed its failure before the handler exited, as ddev snapshot did with its warning. Exec now waits for the handler in that case.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…f Mutagen and git

`ddev export-db -f /dev/stdout >> backup.sql` replaced backup.sql on Linux, and on macOS `> out.sql` failed, because /dev/stdout resolved to a regular file and went through the temp-file-and-rename path. A dump path under /dev is now opened for append, so the shell's redirect decides whether to truncate.

The .ddev/.snapshotNNN staging dir is now ignored by Mutagen and by .ddev/.gitignore, like .importdb*, so a large snapshot doesn't start syncing and a dir left by SIGKILL doesn't show in git status.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rfay
rfay force-pushed the 20261015_rfay_signals branch from a543d3d to c5dbded Compare October 21, 2026 02:30
stasadev added a commit to stasadev/ddev.com that referenced this pull request Oct 21, 2026
## Short Summary (TL;DR)

Adds the DDEV v1.25.5 release post, with before/after recordings of the rebuilt `ddev tui`, and records how to make such recordings in the `blog-images` skill. The post explains that the PHP fixes for CVE-2026-109618 and CVE-2026-109619 matter locally only with `ddev share` or casual hosting, and that production servers need the PHP update.

## How This PR Solves The Issue

The post follows the v1.25.4 one and the release notes in ddev/ddev#8926. The three `ddev tui` WebPs stack v1.25.4 above v1.25.5 and were recorded with VHS against demo projects in an isolated global config; their tapes and ffmpeg filter graphs are in `public/img/blog/2026/10/vhs/` so they can be re-recorded.

The `blog-images` skill gets a new `gif-comparison.md` with what took several attempts to get right for these recordings: demo projects in an isolated `DDEV_XDG_CONFIG_HOME` instead of real ones, a font size that stays readable after the blog scales the image, short clips per feature with captions shown before each key, and timing captions from ffmpeg scene detection, because VHS sleeps do not match video time.

## Manual Testing Instructions

Open `https://pr-759.ddev-com-fork-previews.pages.dev/blog/release-v1-25-5/` and compare it with the v1.25.4 post at https://ddev.com/blog/release-v1-25-4/. Check that the three `ddev tui` recordings play and are readable at the column width, and that the `ddev launch --qr` screenshot shows the whole QR code.

## Release/Deployment Notes

Before publishing, replace the `8.5.XX`-style PHP versions and the PHP announcement link, check the PR count, and drop the Ctrl-C and symlinked agent socket sentences if ddev/ddev#8954 or ddev/ddev#8963 don't make the release.

🤖 Developed with assistance from [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Snapshot staging dir and >> backup.sql are fixed now, thanks. One problem left with the new /dev/ check, see the inline comment.

Comment thread pkg/ddevapp/ddevapp.go Outdated
// redirected to, which it has already truncated or opened for append, so it
// is appended to rather than replaced.
func createDumpFile(dumpFile string) (f *os.File, finish func(ok bool) error, err error) {
if strings.HasPrefix(dumpFile, "/dev/") {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also catches regular files under /dev. Claude Code ran ddev export-db --gzip=false -f /dev/shm/db.sql on Linux with Docker 29:

file doesn't exist file exists
main created replaced
this PR open /dev/shm/db.sql: no such file or directory appended, two dumps in one file

The second case is bad because the result looks like a valid backup. On Windows /dev/backup.sql is C:\dev\backup.sql and gets the same.

Maybe match only fd paths, and skip it on Windows?

if !nodeps.IsWindows() && (dumpFile == "/dev/stdout" || dumpFile == "/dev/stderr" || strings.HasPrefix(dumpFile, "/dev/fd/")) {

Or use os.Stdout directly for /dev/stdout. That would also fix ddev export-db -f /dev/stdout > out.sql 2>&1, where the "Wrote database dump..." message overwrites the start of the dump, because the reopened /proc/self/fd/1 has its own offset. This one already happens on main, so it can be a follow-up.

🤖 Reviewed with assistance from Claude Code

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix applied

stasadev

This comment was marked as duplicate.

…argets in export-db

The previous check matched every path under /dev, so `ddev export-db -f /dev/shm/db.sql` failed when the file didn't exist and appended a second dump when it did, and on Windows `/dev/backup.sql` meant `C:\dev\backup.sql`. Other paths under /dev are created or replaced again, like any dump file.

/dev/stdout and /dev/stderr now write through ddev's own stdout and stderr instead of reopening them, so with `> out.sql 2>&1` the closing message comes after the dump instead of overwriting its start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@rfay
rfay merged commit 677a140 into ddev:main Oct 21, 2026
40 of 44 checks passed
@rfay
rfay deleted the 20261015_rfay_signals branch October 21, 2026 21:17
rfay pushed a commit to stasadev/ddev.com that referenced this pull request Oct 24, 2026
## Short Summary (TL;DR)

Adds the DDEV v1.25.5 release post, with before/after recordings of the rebuilt `ddev tui`, and records how to make such recordings in the `blog-images` skill. The post explains that the PHP fixes for CVE-2026-109618 and CVE-2026-109619 matter locally only with `ddev share` or casual hosting, and that production servers need the PHP update.

## How This PR Solves The Issue

The post follows the v1.25.4 one and the release notes in ddev/ddev#8926. The three `ddev tui` WebPs stack v1.25.4 above v1.25.5 and were recorded with VHS against demo projects in an isolated global config; their tapes and ffmpeg filter graphs are in `public/img/blog/2026/10/vhs/` so they can be re-recorded.

The `blog-images` skill gets a new `gif-comparison.md` with what took several attempts to get right for these recordings: demo projects in an isolated `DDEV_XDG_CONFIG_HOME` instead of real ones, a font size that stays readable after the blog scales the image, short clips per feature with captions shown before each key, and timing captions from ffmpeg scene detection, because VHS sleeps do not match video time.

## Manual Testing Instructions

Open `https://pr-759.ddev-com-fork-previews.pages.dev/blog/release-v1-25-5/` and compare it with the v1.25.4 post at https://ddev.com/blog/release-v1-25-4/. Check that the three `ddev tui` recordings play and are readable at the column width, and that the `ddev launch --qr` screenshot shows the whole QR code.

## Release/Deployment Notes

Before publishing, replace the `8.5.XX`-style PHP versions and the PHP announcement link, check the PR count, and drop the Ctrl-C and symlinked agent socket sentences if ddev/ddev#8954 or ddev/ddev#8963 don't make the release.

🤖 Developed with assistance from [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
stasadev added a commit to stasadev/ddev.com that referenced this pull request Oct 26, 2026
## Short Summary (TL;DR)

Adds the DDEV v1.25.5 release post, with before/after recordings of the rebuilt `ddev tui`, and records how to make such recordings in the `blog-images` skill. The post explains that the PHP fixes for CVE-2026-109618 and CVE-2026-109619 matter locally only with `ddev share` or casual hosting, and that production servers need the PHP update.

## How This PR Solves The Issue

The post follows the v1.25.4 one and the release notes in ddev/ddev#8926. The three `ddev tui` WebPs stack v1.25.4 above v1.25.5 and were recorded with VHS against demo projects in an isolated global config; their tapes and ffmpeg filter graphs are in `public/img/blog/2026/10/vhs/` so they can be re-recorded.

The `blog-images` skill gets a new `gif-comparison.md` with what took several attempts to get right for these recordings: demo projects in an isolated `DDEV_XDG_CONFIG_HOME` instead of real ones, a font size that stays readable after the blog scales the image, short clips per feature with captions shown before each key, and timing captions from ffmpeg scene detection, because VHS sleeps do not match video time.

## Manual Testing Instructions

Open `https://pr-759.ddev-com-fork-previews.pages.dev/blog/release-v1-25-5/` and compare it with the v1.25.4 post at https://ddev.com/blog/release-v1-25-4/. Check that the three `ddev tui` recordings play and are readable at the column width, and that the `ddev launch --qr` screenshot shows the whole QR code.

## Release/Deployment Notes

Before publishing, replace the `8.5.XX`-style PHP versions and the PHP announcement link, check the PR count, and drop the Ctrl-C and symlinked agent socket sentences if ddev/ddev#8954 or ddev/ddev#8963 don't make the release.

🤖 Developed with assistance from [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
stasadev added a commit to stasadev/ddev.com that referenced this pull request Oct 26, 2026
## Short Summary (TL;DR)

Adds the DDEV v1.25.5 release post, with before/after recordings of the rebuilt `ddev tui`, and records how to make such recordings in the `blog-images` skill. The post explains that the PHP fixes for CVE-2026-109618 and CVE-2026-109619 matter locally only with `ddev share` or casual hosting, and that production servers need the PHP update.

## How This PR Solves The Issue

The post follows the v1.25.4 one and the release notes in ddev/ddev#8926. The three `ddev tui` WebPs stack v1.25.4 above v1.25.5 and were recorded with VHS against demo projects in an isolated global config; their tapes and ffmpeg filter graphs are in `public/img/blog/2026/10/vhs/` so they can be re-recorded.

The `blog-images` skill gets a new `gif-comparison.md` with what took several attempts to get right for these recordings: demo projects in an isolated `DDEV_XDG_CONFIG_HOME` instead of real ones, a font size that stays readable after the blog scales the image, short clips per feature with captions shown before each key, and timing captions from ffmpeg scene detection, because VHS sleeps do not match video time.

## Manual Testing Instructions

Open `https://pr-759.ddev-com-fork-previews.pages.dev/blog/release-v1-25-5/` and compare it with the v1.25.4 post at https://ddev.com/blog/release-v1-25-4/. Check that the three `ddev tui` recordings play and are readable at the column width, and that the `ddev launch --qr` screenshot shows the whole QR code.

## Release/Deployment Notes

Before publishing, replace the `8.5.XX`-style PHP versions and the PHP announcement link, check the PR count, and drop the Ctrl-C and symlinked agent socket sentences if ddev/ddev#8954 or ddev/ddev#8963 don't make the release.

🤖 Developed with assistance from [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove in-flight utility containers when ddev is interrupted by Ctrl-C, SIGTERM, or a closed terminal

3 participants