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

Pin sslyze to v2.x #211

Merged
merged 7 commits into from
Jun 16, 2020
Merged

Pin sslyze to v2.x #211

merged 7 commits into from
Jun 16, 2020

Conversation

cablej
Copy link
Member

@cablej cablej commented Jun 15, 2020

Several issues have been reported due to breaking changes in sslyze's latest versions (#210, #209). This PR takes the same strategy of domain-scan in pinning sslyze to under v3 in order to retain functionality.

@jsf9k jsf9k self-assigned this Jun 15, 2020
@jsf9k
Copy link
Member

jsf9k commented Jun 15, 2020

Thanks for taking care of this @cablej! I'll take a look at the failing build tonight or tomorrow morning.

@jsf9k jsf9k added the bug This issue or pull request addresses broken functionality label Jun 15, 2020
@mcdonnnj
Copy link
Member

Thanks for your contribution @cablej ! I believe the error in the Travis build can be resolved by changing

- pip install flake8 pytest-cov pytest coveralls

to pip install --upgrade flake8 pytest-cov pytest coveralls. It appears that there's an older version of pytest on the Travis instance that is incompatible with newer versions of pytest-cov, and that breaks the pytest run.

@cablej created a PR whose Travis builds failed.  @mcdonnnj tracked
down the cause and found it to be that the Travis machine image has an
old version of pytest.
@jsf9k
Copy link
Member

jsf9k commented Jun 16, 2020

I made @mcdonnnj's suggested change, but now there is another problem where it can't find a suitable wheel for the nassl package. I will revisit this in the morning.

jsf9k and others added 2 commits June 16, 2020 11:11
Python 3.8 appears to require manylinux2010 wheels, while 3.7 can use
manylinux1 wheels.  Now that sslyze is pinned, the version of nassl
that must be installed is 2.2.0, and that is only available on
pypi.org as a manylinux1 wheel.
The image used by the Dockerfile is pulling down a 3.8+ image. The version of
nassl we are trying to install is only compatible on Python 3.7.
Copy link
Member

@jsf9k jsf9k left a comment

Choose a reason for hiding this comment

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

Thanks again to @cablej for taking care of this.

@jsf9k
Copy link
Member

jsf9k commented Jun 16, 2020

I'll temporarily turn off the TravisCI Branch check in order to merge this once there are enough reviews in place.

Copy link
Member

@h-m-f-t h-m-f-t left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@mcdonnnj mcdonnnj left a comment

Choose a reason for hiding this comment

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

Thanks again for the work @cablej 👍

@jsf9k jsf9k merged commit 59f2bb0 into cisagov:develop Jun 16, 2020
chigby added a commit to freedomofpress/securethenews that referenced this pull request Jul 13, 2020
This change is needed before we can install software on the containers
running python 3.7

I'm not exactly sure why libpq-dev was needed, but the pip-tools
commands wouldn't work until I installed it.  It was saying that
`pg_config` was needed.  Something to do with psycopg2?

It's also possible there are version problems with pshtt (again).  The
latest version, 0.6.7, will not compile under pip-tools because it has
conflicting requirements with itself:

```
There are incompatible versions in the resolved dependencies:
  cryptography>=2.8 (from pyopenssl==19.1.0->pshtt==0.6.7->-r requirements.in (line 13))
  cryptography==2.5 (from sslyze==2.1.4->pshtt==0.6.7->-r requirements.in (line 13))
```

So I installed the most recent version that successfully compiles.
It's possible there are bugs?  See
cisagov/pshtt#211 for more information.
chigby added a commit to freedomofpress/securethenews that referenced this pull request Jul 22, 2020
This change is needed before we can install software on the containers
running python 3.7

I'm not exactly sure why libpq-dev was needed, but the pip-tools
commands wouldn't work until I installed it.  It was saying that
`pg_config` was needed.  Something to do with psycopg2?

It's also possible there are version problems with pshtt (again).  The
latest version, 0.6.7, will not compile under pip-tools because it has
conflicting requirements with itself:

```
There are incompatible versions in the resolved dependencies:
  cryptography>=2.8 (from pyopenssl==19.1.0->pshtt==0.6.7->-r requirements.in (line 13))
  cryptography==2.5 (from sslyze==2.1.4->pshtt==0.6.7->-r requirements.in (line 13))
```

So I installed the most recent version that successfully compiles.
It's possible there are bugs?  See
cisagov/pshtt#211 for more information.
chigby added a commit to freedomofpress/securethenews that referenced this pull request Jul 22, 2020
This change is needed before we can install software on the containers
running python 3.7

I'm not exactly sure why libpq-dev was needed, but the pip-tools
commands wouldn't work until I installed it.  It was saying that
`pg_config` was needed.  Something to do with psycopg2?

It's also possible there are version problems with pshtt (again).  The
latest version, 0.6.7, will not compile under pip-tools because it has
conflicting requirements with itself:

```
There are incompatible versions in the resolved dependencies:
  cryptography>=2.8 (from pyopenssl==19.1.0->pshtt==0.6.7->-r requirements.in (line 13))
  cryptography==2.5 (from sslyze==2.1.4->pshtt==0.6.7->-r requirements.in (line 13))
```

So I installed the most recent version that successfully compiles.
It's possible there are bugs?  See
cisagov/pshtt#211 for more information.
chigby added a commit to freedomofpress/securethenews that referenced this pull request Jul 27, 2020
This change is needed before we can install software on the containers
running python 3.7

I'm not exactly sure why libpq-dev was needed, but the pip-tools
commands wouldn't work until I installed it.  It was saying that
`pg_config` was needed.  Something to do with psycopg2?

It's also possible there are version problems with pshtt (again).  The
latest version, 0.6.7, will not compile under pip-tools because it has
conflicting requirements with itself:

```
There are incompatible versions in the resolved dependencies:
  cryptography>=2.8 (from pyopenssl==19.1.0->pshtt==0.6.7->-r requirements.in (line 13))
  cryptography==2.5 (from sslyze==2.1.4->pshtt==0.6.7->-r requirements.in (line 13))
```

So I installed the most recent version that successfully compiles.
It's possible there are bugs?  See
cisagov/pshtt#211 for more information.
harrislapiroff pushed a commit to freedomofpress/securethenews that referenced this pull request Aug 3, 2020
This change is needed before we can install software on the containers
running python 3.7

I'm not exactly sure why libpq-dev was needed, but the pip-tools
commands wouldn't work until I installed it.  It was saying that
`pg_config` was needed.  Something to do with psycopg2?

It's also possible there are version problems with pshtt (again).  The
latest version, 0.6.7, will not compile under pip-tools because it has
conflicting requirements with itself:

```
There are incompatible versions in the resolved dependencies:
  cryptography>=2.8 (from pyopenssl==19.1.0->pshtt==0.6.7->-r requirements.in (line 13))
  cryptography==2.5 (from sslyze==2.1.4->pshtt==0.6.7->-r requirements.in (line 13))
```

So I installed the most recent version that successfully compiles.
It's possible there are bugs?  See
cisagov/pshtt#211 for more information.
harrislapiroff pushed a commit to freedomofpress/securethenews that referenced this pull request Aug 3, 2020
This change is needed before we can install software on the containers
running python 3.7

I'm not exactly sure why libpq-dev was needed, but the pip-tools
commands wouldn't work until I installed it.  It was saying that
`pg_config` was needed.  Something to do with psycopg2?

It's also possible there are version problems with pshtt (again).  The
latest version, 0.6.7, will not compile under pip-tools because it has
conflicting requirements with itself:

```
There are incompatible versions in the resolved dependencies:
  cryptography>=2.8 (from pyopenssl==19.1.0->pshtt==0.6.7->-r requirements.in (line 13))
  cryptography==2.5 (from sslyze==2.1.4->pshtt==0.6.7->-r requirements.in (line 13))
```

So I installed the most recent version that successfully compiles.
It's possible there are bugs?  See
cisagov/pshtt#211 for more information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants