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

Add smoke tests for urllib3. #446

Merged
merged 4 commits into from
Mar 16, 2016
Merged

Add smoke tests for urllib3. #446

merged 4 commits into from
Mar 16, 2016

Conversation

Lukasa
Copy link
Member

@Lukasa Lukasa commented Mar 14, 2016

@hynek is worried about breaking urllib3 with changes, so he wants some smoke tests for urllib3. This adds them to the Travis environment.

Because urllib3 doesn't install its test suites when pip installed, we need to do a git clone of the repository. This means that this test failing can potentially severely dirty the user's working copy, so it's deliberately excluded from the Travis envlist.

@reaperhulk
Copy link
Member

I assume you mean tox envlist and not travis since you definitely added it to travis 😃

@Lukasa
Copy link
Member Author

Lukasa commented Mar 14, 2016

Ok, so I've got tests running. We do have some breakage. Part of that is that PyOpenSSL is raising new warnings that urllib3 is not expecting: we should fix that on urllib3's end. Some other bits are a bit more surprising, but I just realised that I maybe know where they're coming from.

@hynek
Copy link
Contributor

hynek commented Mar 14, 2016

Sounds like it was already worth it. :)

@Lukasa
Copy link
Member Author

Lukasa commented Mar 14, 2016

The failing builds should be fixed when urllib3/urllib3#813 is merged to master.

@Lukasa Lukasa closed this Mar 14, 2016
@Lukasa Lukasa reopened this Mar 14, 2016
@codecov-io
Copy link

Current coverage is 87.76%

Merging #446 into master will not affect coverage as of 01cb68f

@@            master    #446   diff @@
======================================
  Files            7       7       
  Stmts         2035    2035       
  Branches       372     372       
  Methods          0       0       
======================================
  Hit           1786    1786       
  Partial        117     117       
  Missed         132     132       

Review entire Coverage Diff as of 01cb68f

Powered by Codecov. Updated on successful CI builds.

@hynek
Copy link
Contributor

hynek commented Mar 14, 2016

Let's whitelist /bin/rm to get rid of this warning: https://travis-ci.org/pyca/pyopenssl/jobs/115940344#L339

@Lukasa
Copy link
Member Author

Lukasa commented Mar 14, 2016

Hmm, that test failure is unrelated, but concerning.

@hynek
Copy link
Contributor

hynek commented Mar 15, 2016

Yeah that failure is a really weird flake I have seen only on OS X so far. I tried to step through it and it indeed never reaches the callback. @reaperhulk any idea about it? https://travis-ci.org/pyca/pyopenssl/jobs/115946570 It’s indeed scary but I’m not sure if it’s a pyOpenSSL issue.

set -e
set -x

git clone https://github.com/shazow/urllib3.git
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use --depth 1 we don’t need the whole history.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@hynek
Copy link
Contributor

hynek commented Mar 16, 2016

FTR I’ve opened #447 for the test flake mentioned.

hynek added a commit that referenced this pull request Mar 16, 2016
Add smoke tests for urllib3.
@hynek hynek merged commit aa2e6de into pyca:master Mar 16, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants