-
Notifications
You must be signed in to change notification settings - Fork 98
Conversation
This adds the CI support for the Windows platform. Although this may successfully build in CI, some changes are going to be needed beyond getting it to build. Those are already in review.
Bump Swift to 5.5 to get access to `_InternalSwiftSyntaxParser`.
The current Windows failure:
I think that the Package.resolved is preventing the version specific manifest from bumping the version of swift-syntax? CC: @MaxDesiatov @mattt |
@compnerd That seems to be what's breaking things, yeah. Since |
Yeah, that does work, I have been running with that locally as a workaround. |
This comment has been minimized.
This comment has been minimized.
@mattt getting this sorted would be really nice. #258 and #269 together would bring the state of swift-doc to the point where we can start trying to figure out packaging and releasing for Windows. I have ideas on how to address that problem. That problem is related with getting the GHA support for swift-doc, rather than the local use of this package which is what these two PRs are addressing. |
I'll let this run for about an hour. I suspect that there is something going on with file endings thats preventing the tests from passing. Id like to get the CI coverage for building at least, and we can follow up with testing. |
Weird, I wonder why this is now failing. Perhaps a flake? |
I'm not sure what is going on here. But, with #276 I can actually get a build of swift-doc on Windows (see compnerd/swift-build#364, https://github.com/compnerd/swift-build/releases/tag/swift-doc-5.5-DEVELOPMENT-SNAPSHOT-2021-05-02-a). |
Run CI on PR to any branch
Pin SwiftSyntaxHighlighter to ~> 1.2.4
Specify revisions for SwiftSemantics and SwiftSyntaxHighlighter
With the current version of the manifest:
|
Hmm, the fact that it didn't fail immediately is interesting. I think that there is some cached state that is causing problems with this PR :-( |
@compnerd Yeah, I'd gotten my hopes up after it didn't fail immediately. But after 20 minutes, I gave up. Weird log line to call out from that run: https://github.com/SwiftDocOrg/swift-doc/pull/269/checks?check_run_id=2577029218#step:11:55 To clarify your comment #269 (comment), is that with 85eff87? I believe some combination of |
Interesting; I think that is now cached; that occurs sometimes on CI, but I've never been able to catch the output to figure out what is going on :-( |
Okay 85eff87 does resolve fine. Can you explain to me why that works? |
Set name for windows job
Apple's documentation for
The problem stems from an incompatibility of requirement types. If two direct dependencies ( The error message is a bit cryptic, as it mostly discusses version ranges and "stable/unstable versions" (which AFAICT is terminology not found elsewhere). And, honestly, I'm not particularly confident in my assessment. All I know is that the last time I got this kind of message, pinning to specific releases got things building 🤷♂️ |
I don't understand what is going on with this PR; I say that we merge the manifest changes, discard this change and create a new PR for the CI. |
Remove swift clean
@compnerd Please hold off on that — there's one last thing I want to try first. If this fails, we can try again with a new PR. My latest change removes the |
@compnerd I cancelled the latest run after ~30 minutes. Can you make anything out of these logs? https://github.com/SwiftDocOrg/swift-doc/runs/2577613424 Feel free to close and create a new PR if you think that'd help. Also, curious to know — how long does a clean build take on your local machine? |
Clean builds on my personal machine take ~10m. It takes ~20m on GitHub: https://github.com/compnerd/swift-build/actions/runs/829993385 |
#279 seems to get further, Im going to close this off. |
This adds the CI support for the Windows platform. Although this may successfully build in CI, some changes are going to be needed beyond getting it to build. Those are already in review.