Add Windows image setup serial progress and 2h setup timeout (#3007)
A hung step in `setup-windows.ps1` blocked the scheduled [Windows VM
image
build](https://buildkite.com/bazel-trusted/create-windows-vm-image/builds/34#01a1bead-ab83-4f5b-a6f4-743294fe49ec)
for over 13 hours with no visible progress in the Buildkite log
This change:
- Adds a helper in `buildkite/setup-windows.ps1` and logs progress
before each slow installation step.
- Adds a shared 2-hour deadline in `buildkite/create_images.py` so a
stuck image setup fails after 2 hours (it usually takes about 40 mins)
with a clear error message and cleans up the VM.
- Cleans up any leftover VMs from cancelled or killed runs
asynchronously at the start of the next run (so that we don't end up
paying for a forgotten machine)
3 files changed