Skip to content

Slow Windows Install #12437

Closed
Closed
@AlexandraDorey

Description

@AlexandraDorey

Description

Hello,

We use the templates in this repo as a base for our internal images that we use for azure devops selfhost runenrs, yesterday we noticed build times jumped from ~3.5hrs to 6hrs, we narrowed the jump in build times to this change:

42e6590

Which replaced the this call (New-Object System.Net.WebClient).DownloadFile($Url, $Path) with it's invoke-webrequest equivalent, which seems to be much much slower.

Not sure if this was intended or not? I've only tested on windows 2022.

Alexandra

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

Build doesn't fail, simply takes a REALLY long time.

Is it regression?

Does not cause failure simply much longer build times.

Expected behavior

Take roughly 3.5 hrs to complete

Actual behavior

Takes closer to 6

Repro steps

We have a fairly light touch on the builds, we do fiddle with powershell installation a bit, so it is plausible we're doing something to break Invoke-WebRequest in a way that you're not seeing but it feels unlikely.

with invoke web-request
Image

with change back to System.Net.Webclient

Image

pattern repeats on all downloads through-out build, resulting in time increase...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions