Skip to content

Commit b6a51f1

Browse files
committed
Merge branch '2.16' into upgrade_216
2 parents 4932cad + 0633624 commit b6a51f1

File tree

9 files changed

+16
-8
lines changed

9 files changed

+16
-8
lines changed

.github/workflows/add-remove-labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Run add remove labels
4040
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
GITHUB_TOKEN: ${{ secrets.RHODS_CI_BOT_PAT }}
4242
GITHUB_PR_NUMBER: "${{ github.event.pull_request.number || github.event.issue.number }}"
4343
GITHUB_EVENT_ACTION: ${{ github.event.action }}
4444
GITHUB_EVENT_REVIEW_STATE: ${{ github.event.review.state }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ENV BIN_DIR="$HOME_DIR/.local/bin"
1212
ENV PATH="$PATH:$BIN_DIR"
1313

1414
RUN apt-get update \
15-
&& apt-get install -y ssh gnupg software-properties-common curl gpg wget vim \
15+
&& apt-get install -y ssh gnupg curl gpg wget vim \
1616
&& apt-get clean autoclean \
1717
&& apt-get autoremove --yes \
1818
&& rm -rf /var/lib/{apt,dpkg,cache,log}/

conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def pytest_addoption(parser: Parser) -> None:
3333
runtime_group = parser.getgroup(name="Runtime details")
3434
upgrade_group = parser.getgroup(name="Upgrade options")
3535
platform_group = parser.getgroup(name="Platform")
36+
must_gather_group = parser.getgroup(name="MustGather")
3637

3738
# AWS config and credentials options
3839
aws_group.addoption(
@@ -112,6 +113,13 @@ def pytest_addoption(parser: Parser) -> None:
112113
help="RHOAI/ODH applications namespace",
113114
)
114115

116+
must_gather_group.addoption(
117+
"--collect-must-gather",
118+
help="Indicate if must-gather should be collected on failure.",
119+
action="store_true",
120+
default=False,
121+
)
122+
115123

116124
def pytest_cmdline_main(config: Any) -> None:
117125
config.option.basetemp = py_config["tmp_base_dir"] = f"{config.option.basetemp}-{shortuuid.uuid()}"

tests/model_registry/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,4 +459,4 @@ def model_registry_client(
459459
author="opendatahub-test",
460460
user_token=current_client_token,
461461
is_secure=False,
462-
)
462+
)

tests/model_registry/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ class ModelRegistryEndpoints:
1515
Annotations.KubernetesIo.NAME: DB_RESOURCES_NAME,
1616
Annotations.KubernetesIo.INSTANCE: DB_RESOURCES_NAME,
1717
Annotations.KubernetesIo.PART_OF: DB_RESOURCES_NAME,
18-
}
18+
}

tests/model_registry/test_model_registry_creation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ def test_registering_model(
4343
model = register_model(model_registry_client=model_registry_client)
4444
get_and_validate_registered_model(
4545
model_registry_client=model_registry_client, model_name=MODEL_NAME, registered_model=model
46-
)
46+
)

tests/model_registry/upgrade/test_model_registry_upgrade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ def test_retrieving_model_post_upgrade(
2828
self: Self,
2929
model_registry_client: ModelRegistryClient,
3030
):
31-
model_registry_client.get_registered_model(name=MODEL_NAME)
31+
model_registry_client.get_registered_model(name=MODEL_NAME)

tests/model_registry/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,4 @@ def get_and_validate_registered_model(
166166

167167

168168
class ModelRegistryV1Alpha1(ModelRegistry):
169-
api_version = f"{ModelRegistry.ApiGroup.MODELREGISTRY_OPENDATAHUB_IO}/{ModelRegistry.ApiVersion.V1ALPHA1}"
169+
api_version = f"{ModelRegistry.ApiGroup.MODELREGISTRY_OPENDATAHUB_IO}/{ModelRegistry.ApiVersion.V1ALPHA1}"

utilities/jira.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def is_jira_open(jira_id: str, admin_client: DynamicClient) -> bool:
5252
# Check if the operator version in ClusterServiceVersion is greater than the jira fix version
5353
jira_fix_versions: list[Version] = []
5454
for fix_version in jira_fields.fixVersions:
55-
if _fix_version := re.search(r"\d.\d+.\d+", fix_version.name):
55+
if _fix_version := re.search(r"\d+\.\d+(?:\.\d+)?", fix_version.name):
5656
jira_fix_versions.append(Version(_fix_version.group()))
5757

5858
if not jira_fix_versions:

0 commit comments

Comments
 (0)