Skip to content

Conversation

@jrose-apple
Copy link
Contributor

The mock SDK has mock overlays to go with its mock headers, and until now such overlays have always been manually compiled to swiftmodules or included via the old-and-broken -enable-source-import. Instead, we can use the new-and-exciting swiftinterface format to have them automatically compiled and cached each test run.

Still to fix:

  • Move all the "-enable-source-import hackaround" manual compilers of overlays over to this.

  • Dependency tracking is including the cached module files, which seems like a bad idea. (See test/Frontend/dependencies.swift.)

  • We're definitely compiling the same swiftinterface with more than one configuration in the same compilation, and we need to not do that. (I suspect this is the difference between a top-level import and a recursive import.)

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple
Copy link
Contributor Author

The high addition count is just from copying the existing mock overlay sources over and tweaking them to be valid/good swiftinterfaces.

@slavapestov
Copy link
Contributor

Cool!

@swift-ci
Copy link
Contributor

swift-ci commented Dec 3, 2018

Build failed
Swift Test Linux Platform
Git Sha - 7c327d2aa0168974ff5e28399af8ace5634bf443

@swift-ci
Copy link
Contributor

swift-ci commented Dec 3, 2018

Build failed
Swift Test OS X Platform
Git Sha - 7c327d2aa0168974ff5e28399af8ace5634bf443

...or where they're already using %clang-importer-sdk, which implies
it.
We can't remove the non-parseable-interface mock overlays yet because
of all the existing code using %clang-importer-sdk-nosource and
manually compiling the overlays, but this is a start!
@jrose-apple jrose-apple force-pushed the interface-your-fears branch from 7c327d2 to f84008a Compare July 11, 2019 04:33
@jrose-apple
Copy link
Contributor Author

I think this is still a lot slower than running the tests the normal way, and I need to find out why, but to check that it's not just my laptop…

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - f84008a

@jrose-apple
Copy link
Contributor Author

Confirmed slow. :-(

@CodaFi
Copy link
Contributor

CodaFi commented Nov 18, 2019

@jrose-apple Should we close this then?

@jrose-apple
Copy link
Contributor Author

I think it's still desirable to get to a place where this works, because the current clang-importer-sdk mechanisms are a hack. But it's gonna have to be owned by someone other than me. I'll close it but leave the branch around.

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.

4 participants