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

Work around requests version conflict #3469

Merged
merged 1 commit into from Jun 21, 2023

Conversation

dbutenhof
Copy link
Member

PBENCH-1190

The Pbench Agent depends on a version of the requests package of at least 2.27 for the requests.exceptions.JSONDecodeError exception. We'd like to require 2.31 as that resolves a CVE, however Pbench Agent supports Python 3.6 which won't work with 2.31. Adding to this mix, the pquisby package requires exactly 2.25.

For now, in order to move forward with Quisby, we remove the version constraints from requests for Pbench and remove the reference to the JSONDecodeError exception.

(Note that a secondary level of mess here is that the Pbench CI installs all our requirements*.txt files in the same environment, even though Pbench Agent and Pbench Server don't really operate in the same environment and should be completely separate. This currently prevents us from having incompatible requirements between the two and we ought to change that going forward.

PBENCH-1190

The Pbench Agent depends on a version of the `requests` package of at least
2.27 for the `requests.exceptions.JSONDecodeError` exception. We'd like to
require 2.31 as that resolves a CVE, however Pbench Agent supports Python
3.6 which won't work with 2.31. Adding to this mix, the `pquisby` package
requires exactly 2.25.

For now, in order to move forward with Quisby, we remove the version
constraints from `requests` for Pbench and remove the reference to the
`JSONDecodeError` exception.

(Note that a secondary level of mess here is that the Pbench CI installs
*all* our `requirements*.txt` files in the same environment, even though
Pbench Agent and Pbench Server don't really operate in the same environment
and should be completely separate. This currently prevents us from having
incompatible requirements between the two and we ought to change that
going forward.
@dbutenhof dbutenhof added Agent Server Code Infrastructure packaging Issues related to software packaging dependencies Pull requests that update a dependency file testing labels Jun 21, 2023
@dbutenhof dbutenhof self-assigned this Jun 21, 2023
Copy link
Member

@webbnh webbnh left a comment

Choose a reason for hiding this comment

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

👍

exec-tests Show resolved Hide resolved
@dbutenhof dbutenhof merged commit d8e6b81 into distributed-system-analysis:main Jun 21, 2023
4 checks passed
@dbutenhof dbutenhof deleted the info branch June 21, 2023 19:32
ndokos added a commit to ndokos/pbench that referenced this pull request Jul 10, 2023
…) to b0.72

Replace `requests.exceptions.JSONDecodeError' by generic `Exception'.

See distributed-system-analysis#3469 for some details. The upstream issue is

   psf/requests#5794

and the PR is

   psf/requests#5856

but we are running older versions of `requests' in various places.
ndokos added a commit that referenced this pull request Jul 11, 2023
Replace `requests.exceptions.JSONDecodeError' by generic `Exception'.

See #3469 for some details. The upstream issue is

   psf/requests#5794

and the PR is

   psf/requests#5856

but we are running older versions of `requests' in various places.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Agent Code Infrastructure dependencies Pull requests that update a dependency file packaging Issues related to software packaging Server testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants