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 #1348

Merged

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
(cherry picked from commit 81a5b35)
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>
(cherry picked from commit 81a5b35)
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

@mender-test-bot start pipeline

@mender-test-bot
Copy link

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

Build Configuration Matrix

Key Value
AUDITLOGS_REV 1.1.x
BUILD_CLIENT false
CREATE_ARTIFACT_WORKER_REV 1.0.x
DEPLOYMENTS_ENTERPRISE_REV 2.3.x
DEPLOYMENTS_REV 2.3.x
DEVICEAUTH_REV 2.6.x
DEVICECONFIG_REV 1.0.x
DEVICECONNECT_REV 1.1.x
GUI_REV 2.7.x
INTEGRATION_REV pull/1348/head
INVENTORY_ENTERPRISE_REV 2.3.x
INVENTORY_REV 2.3.x
MENDER_ARTIFACT_REV 3.5.x
MENDER_CLI_REV 1.7.x
MENDER_CONNECT_REV 1.1.x
MENDER_REV 2.6.x
MTLS_AMBASSADOR_REV 1.0.x
RUN_INTEGRATION_TESTS true
TENANTADM_REV 3.1.x
USERADM_ENTERPRISE_REV 1.14.x
USERADM_REV 1.14.x
WORKFLOWS_ENTERPRISE_REV 1.4.x
WORKFLOWS_REV 1.4.x

@oleorhagen
Copy link
Contributor Author

I fail to see the relation to the failure...

merging!

@oleorhagen oleorhagen merged commit 2e302ef into mendersoftware:2.7.x May 5, 2021
@oleorhagen oleorhagen deleted the idna-downgrade-2.7.x-cherry branch May 5, 2021 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants