Skip to content
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

Bump Swift Argument Parser checkout to 1.1.4 #59009

Conversation

daltonclaybrook
Copy link
Contributor

This changes the checked-out version of swift-argument-parser from 1.0.3 to 1.1.2 in update-checkout-config.json as requested in apple/swift-driver#1106 . Please let me know if any other changes are required as I'm not very familiar with how this file is used. I took my cues from #41126

@compnerd
Copy link
Member

@swift-ci please build toolchain macOS platform

@compnerd
Copy link
Member

@swift-ci please build toolchain Linux platform

@compnerd
Copy link
Member

Please test with following PRs:
swiftlang/swift-installer-scripts#91

@swift-ci please build toolchain Windows platform

@compnerd
Copy link
Member

Please test with following PRs:
swiftlang/swift-installer-scripts#91

@swift-ci please build toolchain Windows platform

@compnerd
Copy link
Member

Please test with following PRs:
swiftlang/swift-installer-scripts#91

@swift-ci please build toolchain Linux platform

@compnerd
Copy link
Member

Please test with following PRs:
swiftlang/swift-installer-scripts#91

@swift-ci please build toolchain macOS platform

@compnerd
Copy link
Member

compnerd commented Jun 5, 2022

@swift-ci please clean test

@CodaFi
Copy link
Contributor

CodaFi commented Aug 18, 2022

swiftlang/swift-installer-scripts#91

@swift-ci please build toolchain macOS platform

@CodaFi
Copy link
Contributor

CodaFi commented Aug 18, 2022

swiftlang/swift-installer-scripts#91

@swift-ci please build toolchain Windows platform

1 similar comment
@MaxDesiatov
Copy link
Contributor

swiftlang/swift-installer-scripts#91

@swift-ci please build toolchain Windows platform

@MaxDesiatov

This comment was marked as outdated.

1 similar comment
@MaxDesiatov

This comment was marked as outdated.

@MaxDesiatov

This comment was marked as outdated.

@MaxDesiatov

This comment was marked as outdated.

@MaxDesiatov MaxDesiatov changed the title Bump Swift Argument Parser checkout to 1.1.2 Bump Swift Argument Parser checkout to 1.1.4 Nov 4, 2022
@MaxDesiatov

This comment was marked as outdated.

3 similar comments
@MaxDesiatov
Copy link
Contributor

@swift-ci please smoke test

@MaxDesiatov
Copy link
Contributor

@swift-ci please smoke test

@MaxDesiatov
Copy link
Contributor

@swift-ci please smoke test

@MaxDesiatov

This comment was marked as duplicate.

@MaxDesiatov
Copy link
Contributor

@swift-ci please test Windows

@MaxDesiatov
Copy link
Contributor

@MaxDesiatov
Copy link
Contributor

swiftlang/swift-package-manager#5884
swiftlang/swift-driver#1218
@swift-ci please build toolchain Windows platform

3 similar comments
@MaxDesiatov
Copy link
Contributor

swiftlang/swift-package-manager#5884
swiftlang/swift-driver#1218
@swift-ci please build toolchain Windows platform

@MaxDesiatov
Copy link
Contributor

swiftlang/swift-package-manager#5884
swiftlang/swift-driver#1218
@swift-ci please build toolchain Windows platform

@MaxDesiatov
Copy link
Contributor

swiftlang/swift-package-manager#5884
swiftlang/swift-driver#1218
@swift-ci please build toolchain Windows platform

@MaxDesiatov
Copy link
Contributor

@MaxDesiatov
Copy link
Contributor

@MaxDesiatov
Copy link
Contributor

@compnerd could you confirm that the Windows failure is not related to this PR? Thanks!

@compnerd
Copy link
Member

compnerd commented Jan 4, 2023

@MaxDesiatov can't do that - we need to get a complete toolchain build for Windows because there can be a lurking issue - swift-installer-scripts may need to be updated.

@compnerd
Copy link
Member

compnerd commented Jan 4, 2023

Please test with following PRs:
swiftlang/sourcekit-lsp#689

@swift-ci please build toolchain Windows platfrom

@MaxDesiatov
Copy link
Contributor

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this may need swiftlang/swift-installer-scripts#91 to be merged in tandem to ensure that we don't break the Windows build.

@compnerd
Copy link
Member

compnerd commented Jan 4, 2023

@MaxDesiatov - when this goes in, we need to make a change to compnerd/swift-build as well to ensure that the official Windows builds are updated as well.

@MaxDesiatov
Copy link
Contributor

1 similar comment
@MaxDesiatov
Copy link
Contributor

@MaxDesiatov
Copy link
Contributor

@compnerd it failed with

Archiving artifacts
‘build/artifacts/*’ doesn’t match anything, but ‘*’ does. Perhaps that’s what you mean?
ERROR: Step ‘Archive the artifacts’ failed: No artifacts found that match the file pattern "build/artifacts/*". Configuration error?

what would be the best way to diagnose this?

@MaxDesiatov
Copy link
Contributor

@MaxDesiatov
Copy link
Contributor

swiftlang/swift-package-manager#5884
swiftlang/swift-driver#1218
@swift-ci please build toolchain Windows platform

@MaxDesiatov
Copy link
Contributor

@MaxDesiatov
Copy link
Contributor

1 similar comment
@MaxDesiatov
Copy link
Contributor

@MaxDesiatov
Copy link
Contributor

@compnerd
Copy link
Member

compnerd commented Jan 5, 2023

@MaxDesiatov the build logs are the most helpful thing here:

swift-ci@EC2AMAZ-JCVOGM7 C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows>msbuild C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\toolchain.wixproj   -p:RunWixToolsOutOfProc=true   -p:OutputPath=T:\package\toolchain\   -p:IntermediateOutputPath=T:\package\toolchain\   -p:DEVTOOLS_ROOT=T:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain   -p:TOOLCHAIN_ROOT=T:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain 
Microsoft (R) Build Engine version 16.10.2+857e5a733 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 1/5/2023 3:14:53 PM.
Project "C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\toolchain.wixproj" on node 1 (default targets).
PrepareForBuild:
  Creating directory "T:\package\toolchain\".
HarvestDirectory:
  C:\Program Files (x86)\WiX Toolset v3.11\bin\Heat.exe dir T:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\clang -cg ClangResources -dr _usr_lib_clang -scom -sreg -srd -var var.TOOLCHAIN_ROOT_USR_LIB_CLANG -nologo -gg -nologo -sfrag -out T:\package\toolchain\_ClangResources_dir.wxs
Compile:
  C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe -dProductVersion=0.0.0 -dDEVTOOLS_ROOT=T:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain -dTOOLCHAIN_ROOT=T:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain -dTOOLCHAIN_ROOT_USR_LIB_CLANG=T:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\clang -dConfiguration=Debug -dOutDir=T:\package\toolchain\ -dPlatform=AnyCPU -dProjectDir=C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\ -dProjectExt=.wixproj -dProjectFileName=toolchain.wixproj -dProjectName=toolchain -dProjectPath=C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\toolchain.wixproj -dTargetDir=T:\package\toolchain\ -dTargetExt=.msi -dTargetFileName=toolchain.msi -dTargetName=toolchain -dTargetPath=T:\package\toolchain\toolchain.msi -out T:\package\toolchain\ -ext "C:\Program Files (x86)\WiX Toolset v3.11\bin\\WixUIExtension.dll" toolchain-amd64.wxs T:\package\toolchain\_ClangResources_dir.wxs
Link:
  C:\Program Files (x86)\WiX Toolset v3.11\bin\Light.exe -out T:\package\toolchain\toolchain.msi -pdbout T:\package\toolchain\toolchain.wixpdb -cultures:null -ext "C:\Program Files (x86)\WiX Toolset v3.11\bin\\WixUIExtension.dll" -contentsfile T:\package\toolchain\toolchain.wixproj.BindContentsFileListnull.txt -outputsfile T:\package\toolchain\toolchain.wixproj.BindOutputsFileListnull.txt -builtoutputsfile T:\package\toolchain\toolchain.wixproj.BindBuiltOutputsFileListnull.txt -wixprojectfile C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\toolchain.wixproj T:\package\toolchain\toolchain-amd64.wixobj T:\package\toolchain\_ClangResources_dir.wixobj
C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\toolchain-amd64.wxs(685): error LGHT0103: The system cannot find the file 'T:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\ArgumentParserToolInfo.dll'. [C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\toolchain.wixproj]
Done Building Project "C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\toolchain.wixproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\toolchain.wixproj" (default target) (1) ->
(Link target) -> 
  C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\toolchain-amd64.wxs(685): error LGHT0103: The system cannot find the file 'T:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\ArgumentParserToolInfo.dll'. [C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\swift-installer-scripts\platforms\Windows\toolchain.wixproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:05.20

swiftlang/swift-installer-scripts#91 is what is needed.

@compnerd
Copy link
Member

compnerd commented Jan 5, 2023

Please test with following PRs:
swiftlang/swift-installer-scripts#91
swiftlang/swift-package-manager#5884
swiftlang/swift-driver#1218
swiftlang/sourcekit-lsp#673

@swift-ci please build toolchain windows platform

@MaxDesiatov
Copy link
Contributor

@compnerd could it also be Foundation test failures that have some impact?

The following tests FAILED:
	606 - TestFoundation.TestFileManager-test_homedirectoryForUser (ILLEGAL)
	611 - TestFoundation.TestFileManager-test_emptyFilename (Exit code 0xc0000409
)
	1281 - TestFoundation.TestNSString-test_NSHomeDirectoryForUser (Failed)
	1283 - TestFoundation.TestNSString-test_expandingTildeInPath (Failed)
Errors while running CTest

@compnerd
Copy link
Member

compnerd commented Jan 5, 2023

The Foundation tests are something that I am hoping to look into soon, but the error is what I referenced in #59009 (comment). It results in a missing MSI as the manifest is stating that a file needs to be shipped but is not available due to changes in swift-argument-parser. The result is that we cannot build the MSI nor installer as the manifest is no longer correct.

@shahmishal shahmishal merged commit 64e65c9 into swiftlang:main Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants