Skip to content

The main branch windows CI failing (missing mimalloc checkout) #79115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hjyamauchi opened this issue Feb 3, 2025 · 6 comments · Fixed by swiftlang/swift-installer-scripts#375 or #79151
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@hjyamauchi
Copy link
Contributor

Description

https://ci-external.swift.org/job/swift-main-windows-toolchain/
https://ci-external.swift.org/job/swift-main-windows-toolchain-arm64/

https://ci-external.swift.org/job/swift-main-windows-toolchain/1026/consoleText

MSBUILD : error MSB1009: Project file does not exist.
Switch: C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\mimalloc\ide\vs2022\mimalloc-lib.vcxproj
Error: Error: MSBuild.exe exited with code 1.
Invocation:
  C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\AMD64\MSBuild.exe C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\mimalloc\ide\vs2022\mimalloc-lib.vcxproj -noLogo -maxCpuCount -p:Configuration=Release -p:Platform=x64 -p:OutDir=T:\x64\mimalloc\bin\ -p:VCRedistDir=C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Redist\\MSVC\\14.38.33135\\x64\\Microsoft.VC143.CRT\\ -p:IntDir=T:\x64\mimalloc\mimalloc\
Call stack:
  at Invoke-Program, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 591
  at Build-mimalloc, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 1716
  at Invoke-BuildStep, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 413
  at <ScriptBlock>, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 3106

    at Invoke-Program, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 595
    at Build-mimalloc, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 1716
    at Invoke-BuildStep, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 413
    at <ScriptBlock>, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 3106
  From System.Management.Automation.RuntimeException: Error: MSBuild.exe exited with code 1.
  Invocation:
    C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\AMD64\MSBuild.exe C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\mimalloc\ide\vs2022\mimalloc-lib.vcxproj -noLogo -maxCpuCount -p:Configuration=Release -p:Platform=x64 -p:OutDir=T:\x64\mimalloc\bin\ -p:VCRedistDir=C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Redist\\MSVC\\14.38.33135\\x64\\Microsoft.VC143.CRT\\ -p:IntDir=T:\x64\mimalloc\mimalloc\
  Call stack:
    at Invoke-Program, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 591
    at Build-mimalloc, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 1716
    at Invoke-BuildStep, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 413
    at <ScriptBlock>, C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\swift\utils\build.ps1: line 3106

I think that the root cause is the fact that the mimalloc repo isn't added to the dependencies (it's not checked out during the build).

Revert #79112
Probably this needs to be reverted as well: swiftlang/swift-installer-scripts#371

CC @shahmishal @compnerd @weliveindetail

Reproduction

CI

Expected behavior

No failure

Environment

CI

Additional information

No response

@hjyamauchi hjyamauchi added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels Feb 3, 2025
@hjyamauchi
Copy link
Contributor Author

hjyamauchi commented Feb 3, 2025

@shahmishal can you add the mimalloc repo https://github.com/microsoft/mimalloc as a dependency of the windows toolchain builds on the ci-external.swift.org CIs?

@hjyamauchi hjyamauchi changed the title The main branch CI failing The main branch CI failing (missing mimalloc checkout) Feb 3, 2025
@hjyamauchi hjyamauchi changed the title The main branch CI failing (missing mimalloc checkout) The main branch windows CI failing (missing mimalloc checkout) Feb 3, 2025
@shahmishal
Copy link
Member

This is now fixed, I just updated the CI config.

@weliveindetail
Copy link
Member

Cannot confirm yet, because there are no recent runs

@weliveindetail
Copy link
Member

Unfortunately, it still fails: https://ci-external.swift.org/job/swift-main-windows-toolchain/1029/

MSBUILD : error MSB1009: Project file does not exist.
Switch: C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\mimalloc\ide\vs2022\mimalloc-lib.vcxproj
Error: Error: MSBuild.exe exited with code 1.
Invocation:
  C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\AMD64\MSBuild.exe 
  C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\mimalloc\ide\vs2022\mimalloc-lib.vcxproj 
  -noLogo -maxCpuCount -p:Configuration=Release -p:Platform=x64 -p:OutDir=T:\x64\mimalloc\bin\ 
  -p:VCRedistDir=C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Redist\\MSVC\\14.38.33135\\x64\\Microsoft.VC143.CRT\\
  -p:IntDir=T:\x64\mimalloc\mimalloc\

@weliveindetail
Copy link
Member

@shahmishal Should I land the revert linked above?

@weliveindetail
Copy link
Member

mimalloc seems to be available now on the mainline build bots:

Cloning repository https://github.com/microsoft/mimalloc.git
 > git init C:\Users\swift-ci\jenkins\workspace\swift-main-windows-toolchain\mimalloc # timeout=10
https://ci-external.swift.org/job/swift-main-windows-toolchain/1030

PRs #79151 and swiftlang/swift-installer-scripts#381 are about to re-land.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels
Projects
None yet
3 participants