Skip to content

Enable URLSession tests in TestFoundation #895

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

Merged
merged 1 commit into from
Mar 3, 2017

Conversation

pushkarnk
Copy link
Member

URLSessions tests had been disabled because of a libkqueue failure seen in CI. See: https://bugs.swift.org/browse/SR-3464

Given that we've done away with libkqueue in Dispatch and SR-3464 is no longer relevant, can we re-enable the URLSession tests in TestFoundation?

cc @gparker42

@parkera
Copy link
Contributor

parkera commented Feb 25, 2017

@swift-ci please test

@parkera
Copy link
Contributor

parkera commented Feb 25, 2017

Yah, let's make sure this passes at least once then re-enable it for good. If it starts failing intermittently again we can re-disable it.

@alblue
Copy link
Contributor

alblue commented Feb 27, 2017

The only annoying thing about this test is that when run on Darwin the triggering of running the HTTP server (that is fired up to test the client) invokes the macOS firewall asking if you want to allow/deny connections. Can we make it conditional so that it doesn't run when kicked off from a desktop build in some way?

@pushkarnk
Copy link
Member Author

Unrelated failure. Re-triggering test.

@swift-ci please test

@pushkarnk
Copy link
Member Author

@alblue For that, we'd need to figure out how to disable the firewall in code. Btw, I came across a command that can enable/disable the firewall here: http://krypted.com/mac-os-x/command-line-alf-on-mac-os-x/

@alblue
Copy link
Contributor

alblue commented Feb 28, 2017 via email

@pushkarnk
Copy link
Member Author

pushkarnk commented Mar 1, 2017

@alblue I am OK with that. What do you think @parkera and @naithar ?

@naithar
Copy link
Contributor

naithar commented Mar 1, 2017

I think that if tests will be disabled for XCode, there should be at least some notification that they are disabled, since URLSession is not fully implemented.

Also, using commands from the link didn't give any results on disabling/enabling firewall, but maybe it's just me.

@pushkarnk
Copy link
Member Author

I think we could continue the discussion around the proposal for disabling URLSession tests in Xcode over the mailing list.

@pushkarnk
Copy link
Member Author

@swift-ci please test and merge

@swift-ci swift-ci merged commit f0f1209 into swiftlang:master Mar 3, 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