Skip to content

Commit c60c036

Browse files
committed
Merge remote-tracking branch 'upstream/main' into jonburdo-20260422-sync
Signed-off-by: Jon Burdo <jon@jonburdo.com>
2 parents 8a440df + 075e42f commit c60c036

37 files changed

Lines changed: 1158 additions & 281 deletions

.github/workflows/go-mod-tidy-diff-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
go-version: "1.25.7"
2525

2626
- name: Cache Go modules
27-
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
27+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
2828
with:
2929
path: ~/go/pkg/mod
3030
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--- a/catalog/clients/python/src/catalog_openapi/models/catalog_model.py
2+
+++ b/catalog/clients/python/src/catalog_openapi/models/catalog_model.py
3+
@@ -79,10 +79,7 @@
4+
* OpenAPI `readOnly` fields are excluded.
5+
* OpenAPI `readOnly` fields are excluded.
6+
"""
7+
- excluded_fields: Set[str] = set([
8+
- "create_time_since_epoch",
9+
- "last_update_time_since_epoch",
10+
- ])
11+
+ excluded_fields: Set[str] = set([])
12+
13+
_dict = self.model_dump(
14+
by_alias=True,

clients/ui/bff/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ require (
1212
github.com/rs/cors v1.11.1
1313
github.com/stretchr/testify v1.11.1
1414
gopkg.in/yaml.v3 v3.0.1
15-
k8s.io/api v0.35.3
16-
k8s.io/apimachinery v0.35.3
15+
k8s.io/api v0.35.4
16+
k8s.io/apimachinery v0.35.4
1717
k8s.io/client-go v0.35.3
1818
sigs.k8s.io/controller-runtime v0.23.3
1919
)

clients/ui/bff/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
153153
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
154154
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
155155
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
156-
k8s.io/api v0.35.3 h1:pA2fiBc6+N9PDf7SAiluKGEBuScsTzd2uYBkA5RzNWQ=
157-
k8s.io/api v0.35.3/go.mod h1:9Y9tkBcFwKNq2sxwZTQh1Njh9qHl81D0As56tu42GA4=
156+
k8s.io/api v0.35.4 h1:P7nFYKl5vo9AGUp1Z+Pmd3p2tA7bX2wbFWCvDeRv988=
157+
k8s.io/api v0.35.4/go.mod h1:yl4lqySWOgYJJf9RERXKUwE9g2y+CkuwG+xmcOK8wXU=
158158
k8s.io/apiextensions-apiserver v0.35.0 h1:3xHk2rTOdWXXJM+RDQZJvdx0yEOgC0FgQ1PlJatA5T4=
159159
k8s.io/apiextensions-apiserver v0.35.0/go.mod h1:E1Ahk9SADaLQ4qtzYFkwUqusXTcaV2uw3l14aqpL2LU=
160-
k8s.io/apimachinery v0.35.3 h1:MeaUwQCV3tjKP4bcwWGgZ/cp/vpsRnQzqO6J6tJyoF8=
161-
k8s.io/apimachinery v0.35.3/go.mod h1:jQCgFZFR1F4Ik7hvr2g84RTJSZegBc8yHgFWKn//hns=
160+
k8s.io/apimachinery v0.35.4 h1:xtdom9RG7e+yDp71uoXoJDWEE2eOiHgeO4GdBzwWpds=
161+
k8s.io/apimachinery v0.35.4/go.mod h1:NNi1taPOpep0jOj+oRha3mBJPqvi0hGdaV8TCqGQ+cc=
162162
k8s.io/client-go v0.35.3 h1:s1lZbpN4uI6IxeTM2cpdtrwHcSOBML1ODNTCCfsP1pg=
163163
k8s.io/client-go v0.35.3/go.mod h1:RzoXkc0mzpWIDvBrRnD+VlfXP+lRzqQjCmKtiwZ8Q9c=
164164
k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=

clients/ui/bff/internal/integrations/kubernetes/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const ComponentLabelValue = "model-registry"
1212
const ComponentLabelValueCatalog = "model-catalog"
1313

1414
const CatalogSourceKey = "sources.yaml"
15-
const CatalogSourceDefaultConfigMapName = "model-catalog-default-sources"
15+
const CatalogSourceDefaultConfigMapName = "default-catalog-sources"
1616
const CatalogSourceUserConfigMapName = "model-catalog-sources"
1717

1818
type KubernetesClientInterface interface {

clients/ui/bff/internal/integrations/kubernetes/k8mocks/base_testenv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ catalogs:
347347
}
348348

349349
if _, err := k8sClient.CoreV1().ConfigMaps(namespace).Create(ctx, cm, metav1.CreateOptions{}); err != nil {
350-
return fmt.Errorf("failed to create model-catalog-default-sources configmap: %w", err)
350+
return fmt.Errorf("failed to create default-catalog-sources configmap: %w", err)
351351
}
352352

353353
return nil

clients/ui/frontend/src/__mocks__/mockCatalogSourceList.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,25 @@ export const mockCatalogSourceActive = (): CatalogSource => ({
5656
status: 'available',
5757
});
5858

59+
export const mockTwoProviderSources = (): CatalogSource[] => [
60+
mockCatalogSource({ labels: ['Provider one'] }),
61+
mockCatalogSource({
62+
id: 'source-2',
63+
name: 'Provider Two Source',
64+
labels: ['Provider two'],
65+
}),
66+
];
67+
68+
export const mockProviderAndCustomSources = (): CatalogSource[] => [
69+
mockCatalogSource({ labels: ['Provider one'] }),
70+
mockCatalogSource({ id: 'custom-source', name: 'Custom Source', labels: [] }),
71+
];
72+
73+
export const mockDefaultSources = (): CatalogSource[] => [
74+
mockCatalogSource({}),
75+
mockCatalogSource({ id: 'source-2', name: 'source 2' }),
76+
];
77+
5978
export const mockCatalogSourceList = (partial?: Partial<CatalogSourceList>): CatalogSourceList => ({
6079
items: [
6180
mockCatalogSourceActive(),

clients/ui/frontend/src/__tests__/cypress/cypress/pages/modelCatalog.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ class ModelCatalog {
168168
return cy.findByTestId('model-long-description');
169169
}
170170

171+
findModelCardMarkdown() {
172+
return cy.findByTestId('model-card-markdown');
173+
}
174+
171175
findModelArchitecture() {
172176
return cy.findByTestId('model-architecture');
173177
}

clients/ui/frontend/src/__tests__/cypress/cypress/pages/modelCatalogSettings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class CatalogSourceConfigRow extends TableRow {
9797
return this;
9898
}
9999

100-
shouldHaveValidationStatus(status: 'Connected' | 'Failed' | 'Starting' | 'Unknown' | '-') {
100+
shouldHaveValidationStatus(status: 'Ready' | 'Failed' | 'Starting' | 'Unknown' | '-') {
101101
this.findValidationStatus().contains(status);
102102
return this;
103103
}

clients/ui/frontend/src/__tests__/cypress/cypress/pages/modelRegistryView/modelTransferJobs.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ class ModelTransferJobsTableRow extends TableRow {
44
findJobName() {
55
return this.find().findByTestId('job-name');
66
}
7+
8+
findStatus() {
9+
return this.find().findByTestId('job-status');
10+
}
11+
12+
findErrorMessage() {
13+
return this.find().findByTestId('job-error-message');
14+
}
15+
16+
findRetryButton() {
17+
return this.find().findByTestId('job-retry-button');
18+
}
719
}
820

921
class ModelTransferJobsPage {
@@ -57,6 +69,14 @@ class ModelTransferJobsPage {
5769
findEmptyState() {
5870
return cy.findByTestId('empty-model-transfer-jobs');
5971
}
72+
73+
findRetryModal() {
74+
return cy.findByTestId('retry-job-modal');
75+
}
76+
77+
findRetryModalSubmitButton() {
78+
return this.findRetryModal().findByTestId('retry-job-submit-button');
79+
}
6080
}
6181

6282
export const modelTransferJobsPage = new ModelTransferJobsPage();

0 commit comments

Comments
 (0)