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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jinja2
python-daemon
python-pidfile
redis
requests>=2.27.0 # JSONDecodeError, TODO CVE-2023-32681 (2.31)
requests # TODO CVE-2023-32681 (>=2.31)
sh
state-signals>=1.0.1
1 change: 1 addition & 0 deletions exec-tests
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ if [[ "${subtst:-python}" == "python" ]]; then
# used which are not compatible with SQLAlchemy 2.x. Since we are not
# going to switch to 2.x any time soon, we use the big hammer approach
# to avoid the noise.
python3 -m pip list
webbnh marked this conversation as resolved.
Show resolved Hide resolved
SQLALCHEMY_SILENCE_UBER_WARNING=1 PYTHONUNBUFFERED=True _PBENCH_COV_DIR="${_toxenvdir}/cov" ${_ECHO} _time pytest \
--tb=native \
${pytest_jobs_arg} \
Expand Down
3 changes: 1 addition & 2 deletions lib/pbench/cli/agent/commands/results/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from typing import List

import click
import requests

from pbench.agent.base import BaseCommand
from pbench.agent.results import CopyResult, MakeResultTb
Expand Down Expand Up @@ -103,7 +102,7 @@ def execute(self, single_threaded: bool, delete: bool = True) -> int:
if not res.ok:
try:
msg = res.json()["message"]
except requests.exceptions.JSONDecodeError:
except Exception:
msg = res.text if res.text else res.reason
raise CopyResult.FileUploadError(msg)
if self.context.relay:
Expand Down
3 changes: 1 addition & 2 deletions lib/pbench/cli/agent/commands/results/push.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import List

import click
import requests

from pbench.agent.base import BaseCommand
from pbench.agent.results import CopyResult
Expand Down Expand Up @@ -32,7 +31,7 @@ def execute(self) -> int:

try:
msg = res.json()["message"]
except requests.exceptions.JSONDecodeError:
except Exception:
msg = res.text if res.text else res.reason

# dup or other unexpected but non-error status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
def test_pbench_register_tool_trigger_help():
command = ["pbench-register-tool-trigger", "--help"]
out, err, exitcode = pytest.helpers.capture(command)
assert b"Usage: pbench-register-tool-trigger [OPTIONS]" in out
assert b"Usage: pbench-register-tool-trigger" in out
assert exitcode == 0


Expand Down
3 changes: 2 additions & 1 deletion server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ flask-restful>=0.3.9
flask-sqlalchemy
gunicorn
humanize
pquisby
psycopg2
pyesbulk>=2.0.1
PyJwt[crypto]
python-dateutil
requests>=2.31.0 # CVE-2023-32681
requests # TODO CVE-2023-32681 (>=2.31.0)
sdnotify
sqlalchemy>=1.4.23
sqlalchemy_utils>=0.37.6