Closed benlangmuir closed 2 years ago
Looks like more configurations of this project are failing with same error in:
https://ci.swift.org/job/swift-main-source-compat-suite/6084/
https://ci.swift.org/job/swift-main-source-compat-suite-debug/4198/
https://ci.swift.org/job/swift-5.5-source-compat-suite/139/
XFAILing in https://github.com/apple/swift-source-compat-suite/pull/576
Still XFAIL'd on main @ 8edaf2accf0de5
This is happening because of the xcode 12.5 update which deprecates XCTest’s legacy Swift overlay library.
See https://developer.apple.com/documentation/xcode-release-notes/xcode-12_5-release-notes
I managed to confirm that building the project at the specified revision with ENABLE_TESTING_SEARCH_PATHS
and removing -weak-lswiftXCTest
allows the project to pass. I noticed this was actually fixed in RxSwift with https://github.com/ReactiveX/RxSwift/commit/b56f7a426e0c4bf4a5a2caec5dfd80fd347f9686#
This will require a project revision update for RxSwift within the source compatibility suite
Hi @kzaher 👋 , as mentioned above, the RxSwift project is currently failing to build within the source compatibility suite due to an outdated revision.
I'd recommend updating the project definition in the source compat suite if you want your project to be continuously tested with compiler changes properly.
https://github.com/apple/swift-source-compat-suite/blob/main/projects.json#L2405
Hey @justice-adams-apple - I can help. Can you tell me exactly what changes need to be made?
Thanks,.
:wave: @freak4pc I'd recommend opening a PR against https://github.com/apple/swift-source-compat-suite and update the following line which specified the revision of RxSwift to build within the source compatibility suite
https://github.com/apple/swift-source-compat-suite/blob/main/projects.json#L2405
Currently, we are using an outdated revision 70b8a3
What revision you update to is up to you (most people just take the head of main at the time of the PR). This will require you to update some of the associated xfails, and if you feel it necessary, you may want to update the project maintainer listed here: https://github.com/apple/swift-source-compat-suite/blob/main/projects.json#L2402
This will ensure your project is tested correctly as we continue making changes to swift. If you have any questions about changes, feel free to open a PR at swift-source-compat-suite and tag me directly and I'll get back to you
@justice-adams-apple thanks! is there any way to test locally that my changes are correct, or I'd have to open a PR to test them?
Yeah you can test it locally, https://github.com/apple/swift-source-compat-suite#building-projects should give you some more insight into building your project locally. You'll likely want to run something along the lines of
./runner.py --projects projects.json --include-actions 'action.startswith("Build")' --include-repos 'path == "RxSwift"' --swiftc <YOUR_SWIFTC_PATH>
@freak4pc 👋 Hi , just wanted to ping you again. We typically ask that authors update their project within two weeks of being notified of an outdated source issue. Generally after this time period we simply remove said outdated project from the suite. Let me know if you still plan to update the RxSwift revision.
If you want to remove the RxSwift project form the source compatibility suite feel free to let me know and I can remove it. If you don't have the time currently, you are more than welcome to re-add the project to the compatibility suite at a later time if you decide to do so.
-Justice
Hey @justice-adams-apple - I appreciate you reaching out again :)
If it's not possible and the only measure is removing the project we can do that, but that's a bit unfortunate.
Thanks!
@freak4pc
from the get go instead of pushing it in the last second this way
Very valid point 👍 My mistake for not being clear, I was attempting to give you a heads up. In any case, we won't remove the project. No rush. That "rule" is typically in place for when authors don't respond to our notices in any way.
We are more then happy to wait until you have the time. I'll reach out again in a couple weeks if I haven't heard anything and we can go from there
I really appreciate it. Thank you!
Hi @freak4pc 👋 , just checking in to inquire about the status of the RxSwift revision update
@justice-adams-apple see https://github.com/apple/swift-source-compat-suite/pull/723
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 5feab7218a5310806d4d21013d2df92dIssue Description:
Jenkins URL: https://ci.swift.org/job/swift-main-source-compat-suite/5899