Skip to content

Conversation

@phausler
Copy link
Contributor

@phausler phausler commented Mar 8, 2017

fixes rdar://problem/30899471

@phausler
Copy link
Contributor Author

phausler commented Mar 8, 2017

@swift-ci please test and merge

@phausler
Copy link
Contributor Author

phausler commented Mar 8, 2017

@jrose-apple Why would the previous PR build and test ok with the failure? It seems rather fishy.

@jrose-apple
Copy link
Contributor

Terrible reasons. I tried to stir up interest to fix this but there didn't seem to be any takers.

@jrose-apple
Copy link
Contributor

You may be able to avoid this in the future by adding [system] to Foundation's module map, so that it'll be treated as a system module no matter where you import it from.

@phausler
Copy link
Contributor Author

phausler commented Mar 8, 2017

Do I need to add [system] to the shim module map?

@jrose-apple
Copy link
Contributor

jrose-apple commented Mar 8, 2017

...ah. Well, drat. Can you make a PR for that?

@phausler
Copy link
Contributor Author

phausler commented Mar 8, 2017

for adding [system] to the module map like this?

module _SwiftCoreFoundationOverlayShims [system] {
  header "CoreFoundationOverlayShims.h"
}

module _SwiftFoundationOverlayShims [system] {
  header "FoundationOverlayShims.h"
}

@phausler phausler force-pushed the data_shim_nsuinteger_fix branch from afcd410 to 7d51602 Compare March 8, 2017 18:30
@phausler
Copy link
Contributor Author

phausler commented Mar 8, 2017

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Mar 8, 2017

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - afcd4103dd3e82749b00187f29834475b662c9d9
Test requested by - @phausler

@swift-ci
Copy link
Contributor

swift-ci commented Mar 8, 2017

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - afcd4103dd3e82749b00187f29834475b662c9d9
Test requested by - @phausler

@jrose-apple
Copy link
Contributor

No, to change the importer to always import shims as system modules. The only reason we didn't was to catch warnings, but we can add a test that just uses -Wsystem-headers.

@phausler
Copy link
Contributor Author

phausler commented Mar 8, 2017

so you are saying instead that I should change them to be:

#define SHIMS_INCLUDE_FLAG "-isystem"

unconditionally no matter if it is NDEBUG or not?

@jrose-apple
Copy link
Contributor

Yes, I think that's the right thing to do going forward.

@phausler
Copy link
Contributor Author

phausler commented Mar 8, 2017

so to be clear; the [system] change is inappropriate and should not be done then?

@phausler phausler force-pushed the data_shim_nsuinteger_fix branch from 7d51602 to 2712a3c Compare March 8, 2017 19:17
@phausler
Copy link
Contributor Author

phausler commented Mar 8, 2017

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Mar 8, 2017

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 7d516026d6cc6dea182f9570cc3bbe33fe1a7d96
Test requested by - @phausler

@swift-ci
Copy link
Contributor

swift-ci commented Mar 8, 2017

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 7d516026d6cc6dea182f9570cc3bbe33fe1a7d96
Test requested by - @phausler

@phausler phausler force-pushed the data_shim_nsuinteger_fix branch 2 times, most recently from 647b686 to 125ef78 Compare March 8, 2017 21:40
@phausler
Copy link
Contributor Author

phausler commented Mar 8, 2017

@swift-ci please test and merge

@gottesmm
Copy link
Contributor

gottesmm commented Mar 8, 2017

@phausler I think the OS X platform build failed again. The UI is just a bit messed up I believe. See:

https://ci.swift.org/job/swift-PR-osx/5888/

It looks like it is testing your latest commit and it failed.

…ead of conditionally marking them in debug versus non debug builds.
@phausler phausler force-pushed the data_shim_nsuinteger_fix branch from 125ef78 to 00f3908 Compare March 9, 2017 16:40
@phausler
Copy link
Contributor Author

phausler commented Mar 9, 2017

@swift-ci please test and merge

@phausler
Copy link
Contributor Author

phausler commented Mar 9, 2017

Started by upstream project Swift Test and Merge build number 1566
originally caused by:
GitHub pull request #7979 of commit 125ef78a518e340a0bd6226bc6ecabfe478002fc, no merge conflicts.

that is the wrong sha1; it should be 00f3908
yet again another failure by the CI not picking up the right commits

@phausler
Copy link
Contributor Author

phausler commented Mar 9, 2017

the latest build is showing a build of 00f3908 which is correct
however this is now failing due to something that looks like something completely different?

/Users/buildnode/jenkins/workspace/swift-PR-osx/branch-master/swift/validation-test/compiler_crashers/28697-anonymous-namespace-findcapturedvars-checktype-swift-type-swift-sourceloc.swift:9:1: error: top-level statement cannot begin with a closure expression
09:58:04 {{extension{init(UInt=_=1 + 1 as?Int?Int){var f=nil?Int
09:58:04 ^

@jrose-apple should I just revert this whole ball of wax?

@jrose-apple
Copy link
Contributor

It's possible we have a non-deterministic test. We should really try to get this in because it's blocking all our no-asserts builds. Let's just merge by hand once we pass a test.

@swift-ci Please smoke test macOS

@jrose-apple
Copy link
Contributor

(I blame Past Me for leaving this trap in there.)

@dabrahams
Copy link
Contributor

@jrose-apple I can force the merge even with tests failing if you think that's the right thing to do.

@jrose-apple
Copy link
Contributor

It passed the smoke tests, so no force needed.

Thanks, Philippe!

@jrose-apple jrose-apple merged commit ce3ccfb into swiftlang:master Mar 10, 2017
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.

5 participants