Skip to content

Commit 0209f9d

Browse files
authored
Merge branch 'main' into signing
2 parents f882a10 + 9a1ab3b commit 0209f9d

File tree

12 files changed

+990
-897
lines changed

12 files changed

+990
-897
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ minimum_pre_commit_version: 3.3.0
22
default_install_hook_types: [pre-commit, commit-msg]
33

44
default_language_version:
5-
python: python3.13
5+
python: python3.14
66

77
repos:
88
- repo: https://github.com/pre-commit/pre-commit-hooks

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
FROM fedora:42
1+
FROM fedora:43
22

33
ARG USER=odh
44
ARG HOME=/home/$USER
55
ARG TESTS_DIR=$HOME/opendatahub-tests/
6-
ENV UV_PYTHON=python3.13
6+
ENV UV_PYTHON=python3.14
77
ENV UV_COMPILE_BYTECODE=1
88
ENV UV_NO_SYNC=1
99
ENV UV_NO_CACHE=1
1010

1111
ENV BIN_DIR="$HOME_DIR/.local/bin"
1212
ENV PATH="$PATH:$BIN_DIR"
1313

14-
# Install Python 3.13 and other dependencies using dnf
14+
# Install system dependencies using dnf
1515
RUN dnf update -y \
16-
&& dnf install -y python3.13 python3.13-pip ssh gnupg curl gpg wget vim httpd-tools rsync openssl openssl-devel\
16+
&& dnf install -y python3 python3-pip ssh gnupg curl gpg wget vim httpd-tools rsync openssl openssl-devel\
1717
&& dnf clean all \
1818
&& rm -rf /var/cache/dnf
1919

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dev = [
3131
]
3232

3333
[project]
34-
requires-python = "==3.13.*"
34+
requires-python = "==3.14.*"
3535
name = "opendatahub-tests"
3636
version = "0.1.0"
3737
description = "Tests repository for Open Data Hub (ODH)"

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ def gpu_count_on_cluster(nodes: list[Any]) -> int:
835835
if key in allowed_exact or any(key.startswith(p) for p in allowed_prefixes):
836836
try:
837837
total_gpus += int(val)
838-
except (ValueError, TypeError):
838+
except ValueError, TypeError:
839839
LOGGER.debug(f"Skipping non-integer allocatable for {key} on {node.name}: {val!r}")
840840
continue
841841
return total_gpus

tests/model_registry/model_catalog/search/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def _validate_single_criterion(
405405
else:
406406
LOGGER.warning(f"Unknown key_type: {key_type}")
407407
return False, f"{key_name}: unknown type {key_type}"
408-
except (ValueError, TypeError):
408+
except ValueError, TypeError:
409409
return False, f"{key_name}: conversion error"
410410

411411
# Perform comparison based on type

tests/model_serving/model_server/kserve/inference_graph/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ def dog_breed_inference_graph(
128128

129129
try:
130130
name = request.param["name"]
131-
except (AttributeError, KeyError):
131+
except AttributeError, KeyError:
132132
name = "dog-breed-pipeline"
133133

134134
try:
135135
if not request.param["external-route"]:
136136
labels[networking_label] = "cluster-local"
137-
except (AttributeError, KeyError):
137+
except AttributeError, KeyError:
138138
pass
139139

140140
with InferenceGraph(
@@ -256,7 +256,7 @@ def bare_service_account(
256256
try:
257257
if request.param["name"]:
258258
name = request.param["name"]
259-
except (AttributeError, KeyError):
259+
except AttributeError, KeyError:
260260
name = "sa-" + token_hex(4)
261261

262262
with ServiceAccount(

tests/model_serving/model_server/maas_billing/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def mint_token(
9999
)
100100
try:
101101
body = resp.json()
102-
except (JSONDecodeError, ValueError):
102+
except JSONDecodeError, ValueError:
103103
body = {}
104104
return resp, body
105105

@@ -400,7 +400,7 @@ def get_total_tokens(resp: Response, *, fail_if_missing: bool = False) -> int |
400400
if header_val is not None:
401401
try:
402402
return int(header_val)
403-
except (TypeError, ValueError):
403+
except TypeError, ValueError:
404404
if fail_if_missing:
405405
raise AssertionError(
406406
f"Token usage header is not parseable as int; headers={dict(resp.headers)} body={resp.text[:500]}"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ skipsdist = True
44

55
#Unused code
66
[testenv:unused-code]
7-
basepython = python3
7+
basepython = python3.14
88
recreate=True
99
setenv =
1010
PYTHONPATH = {toxinidir}

utilities/infra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ def wait_for_serverless_pods_deletion(resource: Project | Namespace, admin_clien
969969
LOGGER.info(f"Waiting for {KServeDeploymentType.SERVERLESS} pod {pod.name} to be deleted")
970970
pod.wait_deleted(timeout=Timeout.TIMEOUT_1MIN)
971971

972-
except (ResourceNotFoundError, NotFoundError):
972+
except ResourceNotFoundError, NotFoundError:
973973
LOGGER.info(f"Pod {pod.name} is deleted")
974974

975975

utilities/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class RedactedString(str):
1414
Used to redact the representation of a sensitive string.
1515
"""
1616

17-
def __new__(cls, *, value: object) -> "RedactedString": # noqa: PYI034
17+
def __new__(cls, *, value: object) -> RedactedString: # noqa: PYI034
1818
return super().__new__(cls, value)
1919

2020
def __repr__(self) -> str:

0 commit comments

Comments
 (0)