Repository navigation
ci(buildkite): use HEAD ddev in test.sh, clear stray host containers before installer tests, drop Chocolatey - #9014
Merged
Conversation
…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]>
… [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]>
|
Download this PR's build for your OS and architecture with: ddev utility download-ddev --pr 9014Or download the artifact for your OS and architecture directly:
See Testing a PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Short Summary (TL;DR)
Windows installer builds on
mainoften failed in every job because addev-routerfrom the previousddev-windows-mutagenrun still held port 80. This makestest.shuse theddevit builds, makes the installer jobs remove leftover host containers, and replaces Chocolatey with winget on Windows testbots.The Issue
On
main, theps1-*installer cases run the WSL2 install scripts, and those uninstall the Windowsddev.exe. The nextddev-windows-mutagenrun then logsddev: command not found, so its finalddev poweroff || truedoes 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 hadddevinstalled, and installer build 496 after it passed.choco upgradeintestbot_maintenance.shneeds an administrator, so it fails silently under the unprivileged agent.How This PR Solves The Issue
test.shrunsmake buildand puts.gotmp/bin/<os>_<arch>first on PATH, asperf.shdoes. Everyddevcall in the job is then HEAD, including the cleanup and final poweroff.installer-test.shremoves all host Docker containers beforesanetestbot.sh, and logs what it removes.testbot_maintenance.shno longer installsddevfrom Homebrew or Chocolatey and no longer runschoco upgrade. On Windows it installs gotestsum withgo install.ntdll.dllwith0xc0000005, or never exits, after logging "Installation completed successfully". A stall used the whole 15-minutego testbudget. The root cause is still unknown.Manual Testing Instructions
On
ddev-windows-mutagen, check that the "Building ddev" section shows the HEADddev version, and that the finalddev poweroffruns.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