[Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #7167

This is an un-related timeout on the build.

This test took 8 seconds to pass

    func test_downloadTaskWithURL() {
        let urlString = "https://swift.org/LICENSE.txt"
        let url = URL(string: urlString)!
        let d = DownloadTask(with: expectation(description: "download task with delegate"))
        d.run(with: url)
        waitForExpectations(timeout: 12)
    }

This one caused the tests to timeout which actually caused a hang for 45 minutes)

    func test_downloadTaskWithURLRequest() {
       let urlString = "https://swift.org/LICENSE.txt"
       let urlRequest = NSURLRequest(url: URL(string: urlString)!)
       let d = DownloadTask(with: expectation(description: "download task with delegate"))
       d.run(with: urlRequest)
       waitForExpectations(timeout: 12)
    }

@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.

···

On Aug 25, 2016, at 2:48 PM, no-reply@swift.org wrote:

[FAILURE] oss-swift-incremental-RA-linux-ubuntu-14_04 [#7167]

Build URL: https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04/7167/
Project: oss-swift-incremental-RA-linux-ubuntu-14_04
Date of build: Thu, 25 Aug 2016 13:48:19 -0700
Build duration: 1 hr 0 min
Identified problems:

Timeout: This build was marked as FAIL because it timed out.
Indication 1 <https://ci.swift.org//job/oss-swift-incremental-RA-linux-ubuntu-14_04/7167/consoleFull#89513194756633f0f-8823-4f82-9a4a-0c0d97ce7760&gt;
Tests:

Name: Swift(linux-x86_64)
Failed: 0 test(s), Passed: 8274 test(s), Total: 8274 test(s)
Name: Swift-Unit
Failed: 0 test(s), Passed: 230 test(s), Total: 230 test(s)

Changes

Commit 99493a4928c083e42a92b72d71d5ec28a02291cd by github:
Remove the dep on CUUID for Foundation (#595)

edit: Foundation/UUID.swift

Commit 80e0f056716497f30525ae423ab56602595d5b25 by phausler:
Enable NSLocale keyed archiving unit tests (#596)

edit: TestFoundation/TestNSKeyedArchiver.swift
edit: Foundation/NSLocale.swift

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.

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.

- Tony

···

On Aug 25, 2016, at 3:06 PM, Philippe Hausler <phausler@apple.com> wrote:

This is an un-related timeout on the build.

This test took 8 seconds to pass

    func test_downloadTaskWithURL() {
        let urlString = "https://swift.org/LICENSE.txt&quot;
        let url = URL(string: urlString)!
        let d = DownloadTask(with: expectation(description: "download task with delegate"))
        d.run(with: url)
        waitForExpectations(timeout: 12)
    }

This one caused the tests to timeout which actually caused a hang for 45 minutes)

    func test_downloadTaskWithURLRequest() {
       let urlString = "https://swift.org/LICENSE.txt&quot;
       let urlRequest = NSURLRequest(url: URL(string: urlString)!)
       let d = DownloadTask(with: expectation(description: "download task with delegate"))
       d.run(with: urlRequest)
       waitForExpectations(timeout: 12)
    }

@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.

On Aug 25, 2016, at 2:48 PM, no-reply@swift.org <mailto:no-reply@swift.org> wrote:

[FAILURE] oss-swift-incremental-RA-linux-ubuntu-14_04 [#7167]

Build URL: https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04/7167/
Project: oss-swift-incremental-RA-linux-ubuntu-14_04
Date of build: Thu, 25 Aug 2016 13:48:19 -0700
Build duration: 1 hr 0 min
Identified problems:

Timeout: This build was marked as FAIL because it timed out.
Indication 1 <https://ci.swift.org//job/oss-swift-incremental-RA-linux-ubuntu-14_04/7167/consoleFull#89513194756633f0f-8823-4f82-9a4a-0c0d97ce7760&gt;
Tests:

Name: Swift(linux-x86_64)
Failed: 0 test(s), Passed: 8274 test(s), Total: 8274 test(s)
Name: Swift-Unit
Failed: 0 test(s), Passed: 230 test(s), Total: 230 test(s)

Changes

Commit 99493a4928c083e42a92b72d71d5ec28a02291cd by github:
Remove the dep on CUUID for Foundation (#595)

edit: Foundation/UUID.swift

Commit 80e0f056716497f30525ae423ab56602595d5b25 by phausler:
Enable NSLocale keyed archiving unit tests (#596)

edit: TestFoundation/TestNSKeyedArchiver.swift
edit: Foundation/NSLocale.swift

I've just started working on loopback tests with a simple in-process http server, for URLSession.

Pushkar N Kulkarni,

IBM Runtimes

Simplicity is prerequisite for reliability - Edsger W. Dijkstra

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.

  • Tony
···

On Aug 25, 2016, at 3:06 PM, Philippe Hausler phausler@apple.com wrote:

This is an un-related timeout on the build.

This test took 8 seconds to pass

func test_downloadTaskWithURL() {
let urlString = "https://swift.org/LICENSE.txt"
let url = URL(string: urlString)!
let d = DownloadTask(with: expectation(description: "download task with delegate"))
d.run(with: url)
waitForExpectations(timeout: 12)
}

This one caused the tests to timeout which actually caused a hang for 45 minutes)

func test_downloadTaskWithURLRequest() {
   let urlString = "[https://swift.org/LICENSE.txt](https://swift.org/LICENSE.txt)"
   let urlRequest = NSURLRequest(url: URL(string: urlString)!)  
   let d = DownloadTask(with: expectation(description: "download task with delegate"))
   d.run(with: urlRequest)
   waitForExpectations(timeout: 12)
}

@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.

On Aug 25, 2016, at 2:48 PM, no-reply@swift.org wrote:

[FAILURE] oss-swift-incremental-RA-linux-ubuntu-14_04 [#7167]

Build URL:
https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-14_04/7167/
Project:
oss-swift-incremental-RA-linux-ubuntu-14_04
Date of build:
Thu, 25 Aug 2016 13:48:19 -0700
Build duration:
1 hr 0 min

Identified problems:

  • Timeout: This build was marked as FAIL because it timed out.

Tests:

Name: Swift(linux-x86_64)
Failed: 0 test(s), Passed: 8274 test(s), Total: 8274 test(s)
Name: Swift-Unit
Failed: 0 test(s), Passed: 230 test(s), Total: 230 test(s)

Changes

  • Commit 99493a4928c083e42a92b72d71d5ec28a02291cd by github:
    Remove the dep on CUUID for Foundation (#595)
  • edit: Foundation/UUID.swift

  • Commit 80e0f056716497f30525ae423ab56602595d5b25 by phausler:
    Enable NSLocale keyed archiving unit tests (#596)

  • edit: TestFoundation/TestNSKeyedArchiver.swift
  • edit: Foundation/NSLocale.swift

swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

To: Philippe Hausler phausler@apple.com
From: Tony Parker via swift-dev
Sent by: swift-dev-bounces@swift.org
Date: 08/26/2016 03:39AM
Cc: swift-dev swift-dev@swift.org, github@christopherweems.com
Subject: Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #7167

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.

-----swift-dev-bounces@swift.org wrote: -----