Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-7723] [Ubuntu 18.04] Test Case 'TestURLSession.test_taskTimeout' failed #3703

Closed
shahmishal opened this issue May 18, 2018 · 14 comments
Closed
Assignees

Comments

@shahmishal
Copy link
Member

Previous ID SR-7723
Radar None
Original Reporter @shahmishal
Type Bug
Status Closed
Resolution Done

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee @spevans
Priority Medium

Watchers: @shahmishal

md5: 9b3bb9b62a3c01ec9e5c3bd161de1fec

Issue Description:

Test Case 'TestURLSession.test_taskTimeout' started at 2018-05-18 04:05:05.590

TestFoundation/TestURLSession.swift:297: error: TestURLSession.test_taskTimeout : XCTAssertNil failed: "URLError(_nsError: The operation could not be completed)" - error = URLError(_nsError: The operation could not be completed)

Test Case 'TestURLSession.test_taskTimeout' failed (5.005 seconds)

TestFoundation/TestURLSession.swift:276: error: TestURLSession.test_verifyHttpAdditionalHeaders : XCTAssertNotNil failed - 
TestFoundation/TestURLSession.swift:277: error: TestURLSession.test_verifyHttpAdditionalHeaders : XCTAssertNil failed: "URLError(_nsError: The operation could not be completed)" - error = URLError(_nsError: The operation could not be completed)
Fatal error: Unexpectedly found nil while unwrapping an Optional value: file TestFoundation/TestURLSession.swift, line 278
Current stack trace:
0    libswiftCore.so                    0x00007f5450dbfe60 _swift_stdlib_reportFatalErrorInFile + 215
1    libswiftCore.so                    0x00007f5450d4b2af <unavailable> + 4506287
2    libswiftCore.so                    0x00007f5450a8fb3a <unavailable> + 1641274
3    libswiftCore.so                    0x00007f5450d4b10d <unavailable> + 4505869
4    libswiftCore.so                    0x00007f5450d4b077 <unavailable> + 4505719
5    libswiftCore.so                    0x00007f5450a8fb3a <unavailable> + 1641274
6    libswiftCore.so                    0x00007f5450cd466a <unavailable> + 4019818
7    libswiftCore.so                    0x00007f5450cd4587 <unavailable> + 4019591
8    libswiftCore.so                    0x00007f5450a8fb3a <unavailable> + 1641274
9    libswiftCore.so                    0x00007f5450a8f1e0 _fatalErrorMessage(_:_:file:line:flags:) + 129
10   TestFoundation                     0x000055bbcfd68519 <unavailable> + 8402201
11   TestFoundation                     0x000055bbcfd7594c <unavailable> + 8456524
12   libFoundation.so                   0x00007f544ff9b942 <unavailable> + 7227714
13   libFoundation.so                   0x00007f544fe3e610 BlockOperation.main() + 143
14   libFoundation.so                   0x00007f544fe3c8f0 Operation.start() + 230
15   libFoundation.so                   0x00007f544fe3fff0 OperationQueue._runOperation() + 267
16   libFoundation.so                   0x00007f544fe48267 <unavailable> + 5837415
17   libFoundation.so                   0x00007f544fe3cc70 <unavailable> + 5790832
18   libdispatch.so                     0x00007f5451069f55 <unavailable> + 364373
19   libdispatch.so                     0x00007f5451067e7a <unavailable> + 355962
20   libdispatch.so                     0x00007f545106857d <unavailable> + 357757
21   libdispatch.so                     0x00007f545106ac3a <unavailable> + 367674
22   libpthread.so.0                    0x00007f54506e76db <unavailable> + 30427
23   libc.so.6                          0x00007f544c262850 clone + 63
/home/buildnode/jenkins/workspace/oss-swift-incremental-RA-linux-ubuntu-18_04/swift/utils/build-script-impl: line 262: 97829 Illegal instruction     (core dumped) "$@"
@belkadan
Copy link

cc @millenomi

@shahmishal
Copy link
Member Author

cc ianpartridge (JIRA User)

@swift-ci
Copy link
Contributor

Comment by Ian Partridge (JIRA)

Is this intermittent, or a constant failure on 18.04?

@shahmishal
Copy link
Member Author

It has been failing for multiple builds - https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-18_04/

@swift-ci
Copy link
Contributor

Comment by Ian Partridge (JIRA)

Thank you. Has this test ever passed on 18.04? Sorry, I find Jenkins extremely difficult to navigate and understand.

@shahmishal
Copy link
Member Author

Looks like it passed once before

https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-18_04/5/consoleFull#console-section-11

Test Case 'TestURLSession.test_taskTimeout' started at 2018-05-18 02:36:19.180 
Test Case 'TestURLSession.test_taskTimeout' passed (0.011 seconds)

@swift-ci
Copy link
Contributor

Comment by Ian Partridge (JIRA)

OK, thank you. I think we should probably comment this test out for now, pending an investigation. Is that ok?

@shahmishal
Copy link
Member Author

@parkera, Are you ok with ianpartridge (JIRA User) suggestion?

@parkera
Copy link
Member

parkera commented May 23, 2018

Can we disable it only for Ubuntu 18.04?

Otherwise, my usual objection applies. Disabling the test just hides the failure, which means we ship a known bug.

@shahmishal
Copy link
Member Author

@parkera Not sure if lit has a support for disabling test for specific OS version.

@parkera
Copy link
Member

parkera commented Jun 12, 2018

If we need to unblock things here, we can comment out the test and use this bug to track it.

@shahmishal
Copy link
Member Author

ianpartridge (JIRA User), can you comment out the test?

@swift-ci
Copy link
Contributor

Comment by Ian Partridge (JIRA)

#1599

@spevans
Copy link
Collaborator

spevans commented Jun 21, 2018

This was fixed, along with some other `TestURLSession` issues that had been exposed on Ubuntu 18.04, in #1602

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants