-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
Debugging notes from my lunch break:
I also have Dockerfiles for Swift 5.0, 5.1, and 5.2 in Linux added. I added each to see if there was a difference in output for the different flavors of swift 5. (this is temp!) - 5.0 doesn't support the
In my next debugging session, I'm going to see if I can narrow down both this compilation issue and what's happening with the REPL. When using
|
I've added Dockerfiles for swift 5.0, 5.1 and 5.2 - 5.0 doesn't do "--enable-test-discovery", which ends up being an annoyance. In breaking those up, I've identified that when The same applies for the tests, and unfortunately the whole thing about test discovery appears to rely on having that index store operating at the same time as the tests are compiling. For the current segment of this branch, you can use the following command to do the initial building and then drop you into an interactive terminal session inside the container:
From there, running I'm still not 100% clear on if this is related to the error we're seeing in the test output itself, where it's throwing an expiation with an array out of bounds. The current fatal error being thrown:
It seems implausible that there's an error the standard library, but maybe there's a very unexpected interaction within XCTest and the stdlib when being invoked on Linux. I may well hit the OSS forums and share what I've learned and ask for open ended advice there... |
morning coffee debugging note:
as a side note, my local docker instance would not allow me to run reduce these security constraints while running doing a "docker build", so the path for checking on this appears to require setting up a container, loading the source into it, and then running it with the lower security constraints in order to run the tests. The short-cut trick of setting it all up within the |
Narrowed it down - apparently the REPL that is used underneath all this is specifically dependent on the security constraint being loosened: |
…ainer there with more open permissions
closing in favor of Matt's update in #17 |
WIP to address #1
(process note: I'm editing with Xcode, but testing on linux leveraging the
swift-docker
mechanism that Iain Smith recently crafted. Interactive local tests (assuming you have docker and the tooling installed) can be run with:swift docker test --args --enable-test-discovery