Skip to content

Commit 3d8bcc5

Browse files
authored
MSFT: 59434158 - WME ADO builds are hanging in SetUpFFmpegBuildEnvironment.ps1 while trying to update MSYS2 packages via pacman (#335)
## Why is this change being made? WME ADO builds are sporadically hanging in SetUpFFmpegBuildEnvironment.ps1 while trying to update MSYS2 packages via pacman. This issue has also been reported by #324. I'm not able to repro the hang locally on my dev machine, and I haven't been able to root cause the hang or find a workaround for the WME ADO build. ## What changed? I disabled MSYS2 package updates via pacman in SetUpFFmpegBuildEnvironment.ps1 until the sporadic hang can be mitigated. ## How was the change tested? I verified that WME ADO builds run successfully.
1 parent d336c1e commit 3d8bcc5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

SetUpFFmpegBuildEnvironment.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,17 @@ $msys2_shell = "$msys2_root\msys2_shell.cmd"
7272
Write-Host "Modifying $msys2_shell..."
7373
(Get-Content $msys2_shell).replace('rem set MSYS2_PATH_TYPE=inherit', 'set MSYS2_PATH_TYPE=inherit') | Set-Content $msys2_shell
7474

75-
# Update packages
75+
<# TODO: pacman sporadically hangs while updating packages
76+
# Update packages - the first pass updates core packages and the second pass updates the remaining non-core packages
7677
Write-Host 'Updating packages...'
7778
for ($i = 0; $i -lt 2; $i++)
7879
{
80+
# Close all MSYS2 processes
81+
& taskkill /FI 'MODULES eq msys-2.0.dll' /F | Out-Null
82+
7983
Start-Process -Wait $msys2_shell -ArgumentList '-c "pacman -Syuu --noconfirm"'
8084
}
85+
#>
8186

8287
# Install additional packages
8388
$packages = @('make', 'gcc', 'diffutils', 'nasm')

0 commit comments

Comments
 (0)