Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

VS installer exited with code -1 flakily when building Windows binaries #1387

@huydhn

Description

@huydhn

I'm currently seeing quite a number of flaky failures when building Windows binaries in trunk, for example https://github.com/pytorch/pytorch/actions/runs/4744014597/jobs/8424319388

The error is pointing to this step https://github.com/pytorch/builder/blob/main/windows/internal/vs2022_install.ps1#L42 in which vs_installer.exe is installed. The exact error is VS installer exited with code -1, which should be one of [0, 3010]. I have already tried to disabled Windows Defender there (pytorch/pytorch#99389) but it doesn't seem to help.

Another minor bug is when vslogs.zip is copied at https://github.com/pytorch/builder/blob/main/windows/internal/vs2022_install.ps1#L54. The correct path should be C:\Users\${env:USERNAME}\AppData\Local\Temp\vslogs.zip as the user is now runneruser instead of circleci. This hides the above error.

cc @atalman @malfet @Blackhex

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions