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

periodic sync upstream KF to midstream ODH #169

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
13534e6
build(deps-dev): bump react-router-dom from 7.1.3 to 7.1.5 in /client…
dependabot[bot] Feb 4, 2025
c6bffbf
Fix golang base version (#757)
lucferbux Feb 4, 2025
5cbf43c
chore: bump py version to next v0.2.14 (#756)
tarilabs Feb 4, 2025
7bbc881
build(deps-dev): bump webpack-cli from 5.1.4 to 6.0.1 in /clients/ui/…
dependabot[bot] Feb 5, 2025
0d47ddb
fix(python): client autogen to include verify_ssl param (#764)
Al-Pragliola Feb 6, 2025
5bffa1f
change uname check in scripts/install_protoc.sh for compatibility wit…
lugi0 Feb 6, 2025
5c763d8
feat(isvc): made name and url optional - added support to svc url ann…
Al-Pragliola Feb 6, 2025
1ceb682
fix: high cpu load when idle (#769)
pboyd Feb 6, 2025
b550932
fix(isvc): switched to the correct annotation in mr svc (#772)
Al-Pragliola Feb 10, 2025
b996185
fix(frontend): fixes error screen alignment (#744)
jenny-s51 Feb 10, 2025
95fa900
build(deps-dev): bump ruff from 0.9.4 to 0.9.5 in /clients/python (#777)
dependabot[bot] Feb 10, 2025
dc36ee2
build(deps-dev): bump mypy from 1.14.1 to 1.15.0 in /clients/python (…
dependabot[bot] Feb 10, 2025
90c45a2
build(deps): bump aiohttp from 3.11.11 to 3.11.12 in /clients/python …
dependabot[bot] Feb 10, 2025
2f990fd
build(deps-dev): bump coverage from 7.6.10 to 7.6.11 in /clients/pyth…
dependabot[bot] Feb 10, 2025
4ffe3aa
fix(frontend): fixes URI field alignment (#743)
jenny-s51 Feb 10, 2025
88ac5fb
fix(frontend): update path icon alignment, remove Split and revert to…
jenny-s51 Feb 10, 2025
fa37a64
fix(frontend): Hide title icon and add divider (#770)
jenny-s51 Feb 10, 2025
ea9acd9
Fix build issue (#787)
lucferbux Feb 10, 2025
8f9da8c
feat(gha): added gha to check if python client autogen code is in syn…
Al-Pragliola Feb 10, 2025
c27b8b1
build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 in…
dependabot[bot] Feb 10, 2025
e964e3b
fix(frontend): Remove extra page padding (#763)
jenny-s51 Feb 11, 2025
6eccd45
fix(frontend): Fix alignment of "Register" toolbar action (#788)
jenny-s51 Feb 11, 2025
00b562b
fix(frontend): Update disabled dropdown styling to match with KF (#775)
jenny-s51 Feb 12, 2025
796ac44
fix(frontend): Fix breadcrumb padding (#792)
jenny-s51 Feb 12, 2025
9198b2d
feat(manifests): add securityContext to deployments (#768)
pboyd Feb 12, 2025
e8d2db3
test: E2E pytest for ModelVersion.name length (#790)
tarilabs Feb 12, 2025
550e294
Prepare kubeflow manifest for release (#794)
lucferbux Feb 12, 2025
2b1b4d6
feat(openapi): make items a required field in List requests (#797)
Al-Pragliola Feb 13, 2025
2e7fd2d
docs: clarify python client installation steps (#796)
Crazyglue Feb 13, 2025
14c0d1d
fix(frontend): Fix alignment of pagination nav control buttons (#791)
jenny-s51 Feb 14, 2025
118d0f6
Remove description in mui-theme and revert back changes in default th…
lucferbux Feb 14, 2025
43ce6a7
Merge sync remote-tracking branch 'upstream/main' into tarilabs-20250…
tarilabs Feb 14, 2025
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
47 changes: 47 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,53 @@ jobs:
nox --python=${{ matrix.python }}
fi

check-autogen:
name: Check autogenerated code is in sync
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.12"]
nodejs: ["20"]
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.nodejs }}
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pipx install --pip-args=--constraint=${{ github.workspace }}/.github/workflows/constraints.txt poetry
poetry --version
- name: Install openapi-generator-cli
run: |
make bin/openapi-generator-cli
- name: Generate Python client
working-directory: clients/python
run: |
make clean install tidy
- name: Check if there are uncommitted file changes
run: |
clean=$(git status --porcelain)
if [[ -z "$clean" ]]; then
echo "Empty git status --porcelain: $clean"
else
echo "Uncommitted file changes detected: $clean"
git diff
exit 1
fi

test:
name: Test against Py ${{ matrix.python }} and K8s ${{ matrix.kubernetes-version }}
runs-on: ubuntu-latest
Expand Down
14 changes: 14 additions & 0 deletions api/openapi/model-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,8 @@ components:
type: array
items:
$ref: "#/components/schemas/ModelVersion"
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
ModelArtifactList:
description: List of ModelArtifact entities.
Expand All @@ -1236,6 +1238,8 @@ components:
type: array
items:
$ref: "#/components/schemas/ModelArtifact"
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
RegisteredModelCreate:
description: A registered model in model registry. A registered model has ModelVersion children.
Expand Down Expand Up @@ -1507,6 +1511,8 @@ components:
type: array
items:
$ref: "#/components/schemas/Artifact"
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
ModelArtifactUpdate:
description: An ML model artifact to be updated.
Expand Down Expand Up @@ -1612,6 +1618,8 @@ components:
items:
$ref: "#/components/schemas/ServingEnvironment"
readOnly: false
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
RegisteredModelList:
description: List of RegisteredModels.
Expand All @@ -1624,6 +1632,8 @@ components:
items:
$ref: "#/components/schemas/RegisteredModel"
readOnly: false
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
ServingEnvironment:
description: A Model Serving environment for serving `RegisteredModels`.
Expand Down Expand Up @@ -1656,6 +1666,8 @@ components:
items:
$ref: "#/components/schemas/InferenceService"
readOnly: false
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
ServeModelList:
description: List of ServeModel entities.
Expand All @@ -1667,6 +1679,8 @@ components:
type: array
items:
$ref: "#/components/schemas/ServeModel"
required:
- items
- $ref: "#/components/schemas/BaseResourceList"
ServeModel:
description: An ML model serving action.
Expand Down
4 changes: 2 additions & 2 deletions clients/python/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ IMG_VERSION ?= latest

.PHONY: install
install:
../../bin/openapi-generator-cli generate -i ../../api/openapi/model-registry.yaml -g python -o src/ --package-name mr_openapi --additional-properties=library=asyncio,generateSourceCodeOnly=true,useOneOfDiscriminatorLookup=true
mv src/mr_openapi{_,/}README.md
../../bin/openapi-generator-cli generate -i ../../api/openapi/model-registry.yaml -g python -o src/ --package-name mr_openapi --additional-properties=library=asyncio,generateSourceCodeOnly=true,useOneOfDiscriminatorLookup=true --template-dir templates/
mv src/mr_openapi_README.md src/mr_openapi/README.md
git apply patches/*
poetry install

Expand Down
25 changes: 20 additions & 5 deletions clients/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,31 @@ Currently, the Model Registry backend treats model lists as a circular buffer, a

## Development

### Using the Makefile

The `Makefile` contains most common development tasks

To install dependencies:

```bash
make
```

Then you can run tests:

```bash
make test test-e2e
```

### Using Nox

Common tasks, such as building documentation and running tests, can be executed using [`nox`](https://github.com/wntrblm/nox) sessions.

Use `nox -l` to list sessions and execute them using `nox -s [session]`.

Alternatively, use `make install` to setup a local Python virtual environment with `poetry`.
### Testing requirements

To run the tests you will need `docker` (or equivalent) and the `compose` extension command.
This is necessary as the test suite will manage a Model Registry server and an MLMD instance to ensure a clean state on
each run.
You can use `make test` to execute `pytest`.
To run the e2e tests you will need [kind](https://kind.sigs.k8s.io/) to be installed. This is necessary as the e2e test suite will manage a Model Registry deployment and an MLMD deployment to ensure a clean MR target on each run.

### Running Locally on Mac M1 or M2 (arm64 architecture)

Expand Down
Loading
Loading