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

Potential workaround for a CI issue #404

Merged
merged 2 commits into from
Apr 13, 2023
Merged

Conversation

neonichu
Copy link
Contributor

The macOS CI does not seem to work with Xcode 14.2 as superior, hitting

error: Error Domain=NSCocoaErrorDomain Code=4 "The file "swiftpm" doesn't exist." UserInfo={NSFilePath=/Users/ec2-user/jenkins/workspace/pr-swift-tools-support-core-macos/branch-main/swift-tools-support-core/Utilities/ci.xcworkspace/xcshareddata/swiftpm, NSUnderlyingError=0x600000a5a310 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

I have a theory that this is triggered by us using a workspace that does not contain a resolved file, but that case works for me with SwiftPM 5.9 locally, so not sure.

The macOS CI does not seem to work with Xcode 14.2 as superior, hitting

```
error: Error Domain=NSCocoaErrorDomain Code=4 "The file "swiftpm" doesn't exist." UserInfo={NSFilePath=/Users/ec2-user/jenkins/workspace/pr-swift-tools-support-core-macos/branch-main/swift-tools-support-core/Utilities/ci.xcworkspace/xcshareddata/swiftpm, NSUnderlyingError=0x600000a5a310 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
```

I have a theory that this is triggered by us using a workspace that does not contain a resolved file, but that case works for me with SwiftPM 5.9 locally, so not sure.
@neonichu
Copy link
Contributor Author

@swift-ci please test

macOS 12 comes with updated python.
@neonichu
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this file required to be committed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yah, we need it to avoid

error: Error Domain=NSCocoaErrorDomain Code=4 "The file "swiftpm" doesn't exist." UserInfo={NSFilePath=/Users/ec2-user/jenkins/workspace/pr-swift-tools-support-core-macos/branch-main/swift-tools-support-core/Utilities/ci.xcworkspace/xcshareddata/swiftpm, NSUnderlyingError=0x600000a5a310 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

I haven't looked deeply into why that is, I wasn't able to reproduce locally. My theory is that there was an issue in Xcode 14.2 / SwiftPM 5.7 that we maybe never found but accidentally fixed in 5.8 or 5.9.

@MaxDesiatov
Copy link
Contributor

@swift-ci test windows

@compnerd
Copy link
Member

Ooh, can we get this merged? There is a fairly annoying Windows issue that I would like to see get resolved.

@neonichu
Copy link
Contributor Author

Yep, just need @tomerd to approve

Copy link
Contributor

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

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

Would my review approval be enough for merging? 🙂

@neonichu
Copy link
Contributor Author

Looks like it is, it isn't sufficient on the SwiftPM repo anymore :)

@neonichu neonichu merged commit d8681ff into swiftlang:main Apr 13, 2023
@neonichu neonichu deleted the ci-workaround branch April 13, 2023 16:30
@neonichu neonichu mentioned this pull request Apr 25, 2023
MaxDesiatov pushed a commit that referenced this pull request May 11, 2023
* Potential workaround for a CI issue

The macOS CI does not seem to work with Xcode 14.2 as superior, hitting

```
error: Error Domain=NSCocoaErrorDomain Code=4 "The file "swiftpm" doesn't exist." UserInfo={NSFilePath=/Users/ec2-user/jenkins/workspace/pr-swift-tools-support-core-macos/branch-main/swift-tools-support-core/Utilities/ci.xcworkspace/xcshareddata/swiftpm, NSUnderlyingError=0x600000a5a310 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
```

I have a theory that this is triggered by us using a workspace that does not contain a resolved file, but that case works for me with SwiftPM 5.9 locally, so not sure.

* Use python 3

macOS 12 comes with updated python.
tomerd pushed a commit that referenced this pull request May 15, 2023
* Potential workaround for a CI issue (#404)

* Potential workaround for a CI issue

The macOS CI does not seem to work with Xcode 14.2 as superior, hitting

```
error: Error Domain=NSCocoaErrorDomain Code=4 "The file "swiftpm" doesn't exist." UserInfo={NSFilePath=/Users/ec2-user/jenkins/workspace/pr-swift-tools-support-core-macos/branch-main/swift-tools-support-core/Utilities/ci.xcworkspace/xcshareddata/swiftpm, NSUnderlyingError=0x600000a5a310 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
```

I have a theory that this is triggered by us using a workspace that does not contain a resolved file, but that case works for me with SwiftPM 5.9 locally, so not sure.

* Use python 3

macOS 12 comes with updated python.

* Try empty resolved file (#417)

We only added the resolved file as a workaround, we may not need any concrete pins for that.

---------

Co-authored-by: Boris Bügling <bbuegling@apple.com>
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.

3 participants