Skip to content

ci(buildkite): use HEAD ddev in test.sh, clear stray host containers before installer tests, drop Chocolatey - #9014

Merged
rfay merged 2 commits into
mainfrom
20261025_rfay_windows_installer_ci_flakes
Oct 26, 2026
Merged

rfay merged 2 commits into
mainfrom
20261025_rfay_windows_installer_ci_flakes

Conversation

@rfay

@rfay rfay commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Short Summary (TL;DR)

Windows installer builds on main often failed in every job because a ddev-router from the previous ddev-windows-mutagen run still held port 80. This makes test.sh use the ddev it builds, makes the installer jobs remove leftover host containers, and replaces Chocolatey with winget on Windows testbots.

The Issue

On main, the ps1-* installer cases run the WSL2 install scripts, and those uninstall the Windows ddev.exe. The next ddev-windows-mutagen run then logs ddev: command not found, so its final ddev poweroff || true does nothing. The router stays up in host Docker Desktop, and every case of the next installer build fails on ports 80 or 10999. This happened in installer builds 462, 498, and 500, after mutagen builds 6645, 6684, and 6686. Mutagen build 6682 had ddev installed, and installer build 496 after it passed.

choco upgrade in testbot_maintenance.sh needs an administrator, so it fails silently under the unprivileged agent.

How This PR Solves The Issue

  • test.sh runs make build and puts .gotmp/bin/<os>_<arch> first on PATH, as perf.sh does. Every ddev call in the job is then HEAD, including the cleanup and final poweroff.
  • installer-test.sh removes all host Docker containers before sanetestbot.sh, and logs what it removes.
  • testbot_maintenance.sh no longer installs ddev from Homebrew or Chocolatey and no longer runs choco upgrade. On Windows it installs gotestsum with go install.
  • The testbot setup docs use winget instead of Chocolatey and no longer install DDEV.
  • The installer tests kill a stalled installer after 4 minutes and run it once more. The NSIS installer sometimes crashes in ntdll.dll with 0xc0000005, or never exits, after logging "Installation completed successfully". A stall used the whole 15-minute go test budget. The root cause is still unknown.

Manual Testing Instructions

On ddev-windows-mutagen, check that the "Building ddev" section shows the HEAD ddev version, and that the final ddev poweroff runs.

On ddev-windows-installer, check that "removing leftover host Docker containers" lists any containers left by an earlier job, and that the cases pass.

Automated Testing Overview

The Buildkite Windows pipelines run these scripts. tb-win11-10 was moved from Chocolatey to winget by hand to match the new docs.

🤖 Developed with assistance from Claude Code

…before installer tests, drop Chocolatey [skip github]

Windows installer builds on `main` often failed in every job because a `ddev-router` from the previous `ddev-windows-mutagen` run still held port 80. This makes `test.sh` use the `ddev` it builds, makes the installer jobs remove leftover host containers, and replaces Chocolatey with winget on Windows testbots.

On `main`, the `ps1-*` installer cases run the WSL2 install scripts, and those uninstall the Windows `ddev.exe`. The next `ddev-windows-mutagen` run then logs `ddev: command not found`, so its final `ddev poweroff || true` does nothing. The router stays up in host Docker Desktop, and every case of the next installer build fails on ports 80 or 10999. This happened in installer builds 462, 498, and 500, after mutagen builds 6645, 6684, and 6686. Mutagen build 6682 had `ddev` installed, and installer build 496 after it passed.

`choco upgrade` in `testbot_maintenance.sh` needs an administrator, so it fails silently under the unprivileged agent.

- `test.sh` runs `make build` and puts `.gotmp/bin/<os>_<arch>` first on PATH, as `perf.sh` does. Every `ddev` call in the job is then HEAD, including the cleanup and final poweroff.
- `installer-test.sh` removes all host Docker containers before `sanetestbot.sh`, and logs what it removes.
- `testbot_maintenance.sh` no longer installs `ddev` from Homebrew or Chocolatey and no longer runs `choco upgrade`. On Windows it installs gotestsum with `go install`.
- The testbot setup docs use winget instead of Chocolatey and no longer install DDEV.

On `ddev-windows-mutagen`, check that the "Building ddev" section shows the HEAD `ddev version`, and that the final `ddev poweroff` runs.

On `ddev-windows-installer`, check that "removing leftover host Docker containers" lists any containers left by an earlier job, and that the cases pass.

The Buildkite Windows pipelines run these scripts. tb-win11-10 was moved from Chocolatey to winget by hand to match the new docs.

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

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rfay
rfay requested a review from a team as a code owner October 25, 2026 14:38
… [skip github]

The NSIS installer sometimes crashes in ntdll with 0xc0000005, or never exits, after it has already logged "Installation completed successfully". On tb-win11-10 the crashes match Windows "Application Error" events; the stalls leave no event. A stall used the whole 15m go test budget, and the WSL2 test's own timeout was also 15m, so it never fired first.

runInstaller now runs the installer without output pipes, kills it after 4m (logging tasklist first), and runs it once more on any failure, with the installer debug log after each failed attempt. Normal runs take about 5s (traditional) and 20-60s (WSL2).

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

Copy link
Copy Markdown

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

ddev utility download-ddev --pr 9014

Or download the artifact for your OS and architecture directly:

See Testing a PR.

Open in GitHub Codespaces

@rfay
rfay requested a review from stasadev October 26, 2026 16:57

@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 5046ab5 into main Oct 26, 2026
16 checks passed
@rfay
rfay deleted the 20261025_rfay_windows_installer_ci_flakes branch October 26, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants