<font face="Verdana,Arial,Helvetica,sans-serif" size="2"><div>I've just started working on loopback tests with a simple in-process http server, for URLSession. </div><div><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><font><font><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div dir="ltr" style="font-style: normal;"><br><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">Pushkar N Kulkarni,</font></div>
<div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">IBM Runtimes</font></div><div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><br></font></div><div dir="ltr"><font face="serif, Times New Roman, Times, serif"><i>Simplicity is prerequisite for reliability - Edsger W. Dijkstra</i></font></div>
<div dir="ltr" style="font-style: normal; font-size: 10.5pt; font-family: Arial;"><br></div></div></div></div></font></font></font></div><br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" color="#000000"><font color="#990099"><a href="mailto:-----swift-dev-bounces@swift.org" target="_blank">-----swift-dev-bounces@swift.org</a> wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: Philippe Hausler <<a href="mailto:phausler@apple.com" target="_blank">phausler@apple.com</a>><br>From: Tony Parker via swift-dev <swift-dev@swift.org><br>Sent by: <a href="mailto:swift-dev-bounces@swift.org" target="_blank">swift-dev-bounces@swift.org</a><br>Date: 08/26/2016 03:39AM<br>Cc: swift-dev <<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>>, <a href="mailto:github@christopherweems.com" target="_blank">github@christopherweems.com</a><br>Subject: Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #7167<br><br><!--Notes ACF
<meta http-equiv="Content-Type" content="text/html charset=utf8">-->It seems like we have a bug to fix in the timeout logic if it didn’t stop after 12 (seconds I assume) and instead went for 45 minutes.<div class=""><br class=""></div><div class="">Perhaps we need to accelerate plans to have our test suite start up some kind of local socket to send data over, so these tests are not connecting over the real network.</div><div class=""><br class=""></div><div class="">- Tony</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 25, 2016, at 3:06 PM, Philippe Hausler <<a href="mailto:phausler@apple.com" class="">phausler@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><!--Notes ACF
<meta http-equiv="Content-Type" content="text/html charset=utf8" class="">--><div class=""><div class="">This is an un-related timeout on the build. </div><div class=""><br class=""></div><div class="">This test took 8 seconds to pass</div><div class=""><br class=""></div><div class=""> func test_downloadTaskWithURL() {<br class=""> let urlString = "<a href="https://swift.org/LICENSE.txt" class="">https://swift.org/LICENSE.txt</a>"<br class=""> let url = URL(string: urlString)! <br class=""> let d = DownloadTask(with: expectation(description: "download task with delegate"))<br class=""> d.run(with: url)<br class=""> waitForExpectations(timeout: 12)<br class=""> }<br class=""><br class="">This one caused the tests to timeout which actually caused a hang for 45 minutes)</div><div class=""><br class=""> func test_downloadTaskWithURLRequest() {<br class=""> let urlString = "<a href="https://swift.org/LICENSE.txt" class="">https://swift.org/LICENSE.txt</a>"<br class=""> let urlRequest = NSURLRequest(url: URL(string: urlString)!) <br class=""> let d = DownloadTask(with: expectation(description: "download task with delegate"))<br class=""> d.run(with: urlRequest)<br class=""> waitForExpectations(timeout: 12)<br class=""> }</div><div class=""><br class=""></div><div class="">@Tony, what do we want to do with these tests? they are validating things but I am not certain we can really have tests like this be flaky.</div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Aug 25, 2016, at 2:48 PM, <a href="mailto:no-reply@swift.org" class="">no-reply@swift.org</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><h2 class=""></h2><h1 class="">[<font class="FAILURE" style="color: red;">FAILURE</font>] oss-swift-incremental-RA-linux-ubuntu-14_04 [#7167]</h1><table class=""><tbody class=""><tr style="text-align: left;" class=""><th class="">Build URL:</th><td class=""><a href="https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04/7167/" style="text-decoration: none;" class=""><font color="#007aff">https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04/7167/</font></a></td></tr><tr style="text-align: left;" class=""><th class="">Project:</th><td class="">oss-swift-incremental-RA-linux-ubuntu-14_04</td></tr><tr style="text-align: left;" class=""><th class="">Date of build:</th><td class="">Thu, 25 Aug 2016 13:48:19 -0700</td></tr><tr style="text-align: left;" class=""><th class="">Build duration:</th><td class="">1 hr 0 min</td></tr></tbody></table><h2 class="">Identified problems:</h2><ul class=""><li class="">Timeout: This build was marked as FAIL because it timed out.<ul class=""><li class=""><a href="https://ci.swift.org//job/oss-swift-incremental-RA-linux-ubuntu-14_04/7167/consoleFull#89513194756633f0f-8823-4f82-9a4a-0c0d97ce7760" style="text-decoration: none;" class=""><font color="#007aff">Indication 1</font></a></li></ul></li></ul><h2 class="">Tests:</h2><table width="100%" class=""><tbody class=""><tr style="text-align: left;" class=""><td class="bg1" colspan="2"></td></tr><tr style="text-align: left;" class=""><td class="bg2" colspan="2">Name:<span class="Apple-converted-space"> </span><b class="">Swift(linux-x86_64)</b><br class="">Failed: 0 test(s), Passed: 8274 test(s), Total: 8274 test(s)</td></tr><tr style="text-align: left;" class=""><td class=""></td></tr><tr style="text-align: left;" class=""><td class="bg2" colspan="2">Name:<span class="Apple-converted-space"> </span><b class="">Swift-Unit</b><br class="">Failed: 0 test(s), Passed: 230 test(s), Total: 230 test(s)</td></tr><tr style="text-align: left;" class=""><td class=""></td></tr></tbody></table><br class=""><h2 class="">Changes</h2><ul class=""><li class="">Commit<span class="Apple-converted-space"> </span><b class="">99493a4928c083e42a92b72d71d5ec28a02291cd</b><span class="Apple-converted-space"> </span>by<span class="Apple-converted-space"> </span><b class="">github:</b><p class="commit-message" style="font-family: Menlo, fixed; white-space: pre-wrap;">Remove the dep on CUUID for Foundation (#595)</p><ul class=""><li class="change-edit"><b class="">edit</b>: Foundation/UUID.swift</li></ul></li><br class=""><li class="">Commit<span class="Apple-converted-space"> </span><b class="">80e0f056716497f30525ae423ab56602595d5b25</b><span class="Apple-converted-space"> </span>by<span class="Apple-converted-space"> </span><b class="">phausler:</b><p class="commit-message" style="font-family: Menlo, fixed; white-space: pre-wrap;">Enable NSLocale keyed archiving unit tests (#596)</p><ul class=""><li class="change-edit"><b class="">edit</b>: TestFoundation/TestNSKeyedArchiver.swift</li><li class="change-edit"><b class="">edit</b>: Foundation/NSLocale.swift</li></ul></li></ul></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div><div><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>swift-dev mailing list<br><a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-dev">https://lists.swift.org/mailman/listinfo/swift-dev</a><br></font></div></swift-dev@swift.org></div></div></font></font><BR>