[swift-corelibs-dev] Build failure and differences between test and build

Alex Blewitt alblue at apple.com
Wed Jun 21 08:30:37 CDT 2017


We had a test failure on swift-corelibs-foundation recently on master, which was related to this pull request being merged by me:

https://github.com/apple/swift-corelibs-foundation/pull/1043 <https://github.com/apple/swift-corelibs-foundation/pull/1043>

The automated tests passed, but after being committed to master, they then failed. I subsequently rolled them back with this pull request:

https://github.com/apple/swift-corelibs-foundation/pull/1056 <https://github.com/apple/swift-corelibs-foundation/pull/1056>

A few interim builds have failed; if you see messages like failing to compare metric and imperial measurements, that could have been caused by this. Rebasing and redoing such test failures should fix the issues.

It's a bit concerning that the test case failed after merge but passed in the pull request test. Is this expected?

Alex
Test Case 'TestNSLengthFormatter.test_stringFromMetersMetric' started at 2017-06-21 10:16:31.688
TestFoundation/TestNSLengthFormatter.swift:71: error: TestNSLengthFormatter.test_stringFromMetersMetric : XCTAssertEqual failed: ("-6.214 mi") is not equal to ("-10 km") - 
TestFoundation/TestNSLengthFormatter.swift:72: error: TestNSLengthFormatter.test_stringFromMetersMetric : XCTAssertEqual failed: ("-0.001 mi") is not equal to ("-0.001 km") - 
TestFoundation/TestNSLengthFormatter.swift:73: error: TestNSLengthFormatter.test_stringFromMetersMetric : XCTAssertEqual failed: ("0 in") is not equal to ("0.01 mm") - 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20170621/503a359c/attachment.html>


More information about the swift-corelibs-dev mailing list