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

[requirements.txt]: Downgrade idna to < 3.0 #1345

Merged
merged 1 commit into from
May 5, 2021

Conversation

oleorhagen
Copy link
Contributor

This is needed, since the requests library does not yet support idna > 2.x.

See this for information:

psf/requests#5710

This shows up in Alpine containers during install as:

ERROR: Cannot install -r tests/integration/mender_integration/tests/requirements/python-requirements.txt (line 54) and idna==3.1 because these package versions have conflicting dependencies.
The conflict is caused by:
    The user requested idna==3.1
    requests 2.25.1 depends on idna<3 and >=2.5

But not in containers with these dependencies already installed.

Like this is from a mender-qa pipeline from a container running on the
docker image:

Requirement already satisfied: idna==3.1 in /usr/lib/python3.8/site-packages (from -r /builds/Northern.tech/Mender/integration/tests/requirements/python-requirements.txt (line 23)) (3.1)
Requirement already satisfied: requests==2.25.1 in /usr/lib/python3.8/site-packages (from -r /builds/Northern.tech/Mender/integration/tests/requirements/python-requirements.txt (line 54)) (2.25.1)

This is due to the installation in the requirements/apk-requirements.txt file,
already installing this, in some cases:

�[32;1m$ apk add $(cat ${WORKSPACE}/integration/tests/requirements/apk-requirements.txt)�[0;m
(1/73) Installing readline (8.1.0-r0)
  .
  .
  .
(55/73) Installing py3-idna (3.1-r0)

Never the less, the requirements file is still wrong.

Changelog: None
Signed-off-by: Ole Petter ole.orhagen@northern.tech

This is needed, since the requests library does not yet support `idna > 2.x`.

See this for information:

psf/requests#5710

This shows up in Alpine containers during install as:

```
ERROR: Cannot install -r tests/integration/mender_integration/tests/requirements/python-requirements.txt (line 54) and idna==3.1 because these package versions have conflicting dependencies.
The conflict is caused by:
    The user requested idna==3.1
    requests 2.25.1 depends on idna<3 and >=2.5
```

But not in containers with these dependencies already installed.

Like this is from a `mender-qa` pipeline from a container running on the
`docker` image:

```
Requirement already satisfied: idna==3.1 in /usr/lib/python3.8/site-packages (from -r /builds/Northern.tech/Mender/integration/tests/requirements/python-requirements.txt (line 23)) (3.1)
Requirement already satisfied: requests==2.25.1 in /usr/lib/python3.8/site-packages (from -r /builds/Northern.tech/Mender/integration/tests/requirements/python-requirements.txt (line 54)) (2.25.1)
```

This is due to the installation in the `requirements/apk-requirements.txt` file,
already installing this, in some cases:

```
�[32;1m$ apk add $(cat ${WORKSPACE}/integration/tests/requirements/apk-requirements.txt)�[0;m
(1/73) Installing readline (8.1.0-r0)
  .
  .
  .
(55/73) Installing py3-idna (3.1-r0)
```

Never the less, the requirements file is still wrong.

Changelog: None
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
@mender-test-bot
Copy link

@oleorhagen, Let me know if you want to start the integration pipeline by mentioning me and the command "start pipeline".

@oleorhagen
Copy link
Contributor Author

See if this makes sense to you too

@oleorhagen
Copy link
Contributor Author

@mender-test-bot start pipeline

@mender-test-bot
Copy link

Hello 😸 I created a pipeline for you here: Pipeline-297466094

Build Configuration Matrix

Key Value
AUDITLOGS_REV origin/master
BUILD_CLIENT false
CREATE_ARTIFACT_WORKER_REV origin/master
DEPLOYMENTS_ENTERPRISE_REV origin/master
DEPLOYMENTS_REV origin/master
DEVICEAUTH_REV origin/master
DEVICECONFIG_REV origin/master
DEVICECONNECT_REV origin/master
GUI_REV origin/master
INTEGRATION_REV pull/1345/head
INVENTORY_ENTERPRISE_REV origin/master
INVENTORY_REV origin/master
MENDER_ARTIFACT_REV origin/master
MENDER_CLI_REV origin/master
MENDER_CONNECT_REV origin/master
MENDER_REV origin/master
MTLS_AMBASSADOR_REV origin/master
RUN_INTEGRATION_TESTS true
TENANTADM_REV origin/master
USERADM_ENTERPRISE_REV origin/master
USERADM_REV origin/master
WORKFLOWS_ENTERPRISE_REV origin/master
WORKFLOWS_REV origin/master

@oleorhagen oleorhagen merged commit feab6c2 into mendersoftware:master May 5, 2021
@oleorhagen oleorhagen deleted the downgrade-idna branch May 5, 2021 08:41
@oleorhagen
Copy link
Contributor Author

Cherry 2.7.x: #1348

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants