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

Merge model registry codebase from https://github.com/opendatahub-io/model-registry #6

Merged
merged 255 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
255 commits
Select commit Hold shift + click to select a range
8b06c75
Working PutArtifactType() for grpcurl -plaintext
dhirajsb Aug 31, 2023
9920796
Add glog flags
dhirajsb Aug 31, 2023
a2b71fc
Fixed simple PutArtifactType test
dhirajsb Aug 31, 2023
2d32716
Fixed artifact and property insert
dhirajsb Sep 1, 2023
c829f17
Added support for loading metadata libraries
dhirajsb Sep 1, 2023
4f9845a
Created api directory for grpc protos
dhirajsb Sep 1, 2023
d48651d
Fixed clean target
dhirajsb Sep 1, 2023
feb3b35
Added short and long cmd descriptions
dhirajsb Sep 1, 2023
9c2bad4
Fixed ID sizes in DB model
dhirajsb Sep 1, 2023
3476ac7
Removed unused parent_type table
dhirajsb Sep 1, 2023
96799ae
Fixed makefile proto rules
dhirajsb Sep 2, 2023
bef3c6d
Initial mock GraphQL server
dhirajsb Sep 5, 2023
a5603d8
Initial README.md
dhirajsb Sep 5, 2023
1bdf8ac
Added GraphQL playground to readme
dhirajsb Sep 5, 2023
ddb9583
Updated pre-requisites in readme, minor updates to Makefile
dhirajsb Sep 5, 2023
d9d7d77
cmux java client grpc fix
dhirajsb Sep 6, 2023
06a2a08
Fixed python client command and lib dependencies in readme
dhirajsb Sep 6, 2023
a1e8195
Fixed makefile to create sqlite DB automatically
dhirajsb Sep 6, 2023
ba454cc
Fixed metadata library properties parsing
dhirajsb Sep 6, 2023
a24e1ba
Fixed mock graphql schemas
dhirajsb Sep 7, 2023
960bb98
Updated db model from ml-metadata mysql schema, includes indices
dhirajsb Sep 10, 2023
e29bda6
Added DB model relationships
dhirajsb Sep 10, 2023
e227e85
Changed README title
dhirajsb Sep 15, 2023
b9874dc
Fixed go project repository references
dhirajsb Sep 15, 2023
97d4c5f
Moved packages to pkg directory
dhirajsb Sep 16, 2023
0f8e163
Added lint to Makefile
dhirajsb Sep 17, 2023
4aae325
Added go tools install commands to README
dhirajsb Sep 19, 2023
88ca5d5
Fix golangci-lint local install instructions
lampajr Sep 20, 2023
11f65a9
Added go-enum local install instructions
dhirajsb Sep 20, 2023
7782ec4
Made pkg code private
dhirajsb Sep 20, 2023
bba97d2
Refactored metadata_library
dhirajsb Sep 20, 2023
a73c7a6
Removed generated gRPC go model in .gitignore
dhirajsb Sep 20, 2023
11f7d39
Update issue templates
dhirajsb Sep 20, 2023
3300cd8
Add labels to issue templates
dhirajsb Sep 20, 2023
8809d3e
adding PR template per discussion
tarilabs Sep 21, 2023
5f25946
Reproducible builds (#6)
tarilabs Sep 22, 2023
ca80c24
Serve correct grpc listener
lampajr Sep 22, 2023
0ac30c6
Avoid repeated nil check
tarilabs Sep 25, 2023
7293d51
Implement gRPC GetArtifactType (#26)
tarilabs Sep 27, 2023
b844d91
Fixes #35, refactor DB schema
dhirajsb Sep 20, 2023
f05b0aa
Fix failing assertion in python test
dhirajsb Sep 27, 2023
2208ae0
Use protoc version v24.3 and add link in README.md
dhirajsb Sep 27, 2023
e1e7f08
Remove wrong copyright headers
tarilabs Oct 2, 2023
d8277f5
Add Dockerfile for registry, part of #15, fixes #40
dhirajsb Sep 27, 2023
57395c7
Add first draft of Data Access Layer, with test (#34)
tarilabs Oct 4, 2023
4211667
Integrate MR GitHub issues into ODH dashboard (#54)
tarilabs Oct 4, 2023
cabad69
add support for reading config file using viper, fixes #12
dhirajsb Oct 1, 2023
6644876
Update GHA to use github-app token (#56)
tarilabs Oct 4, 2023
ab5d90a
Fix makefile dep target to only download missing tools in bin/*
dhirajsb Sep 20, 2023
e3df569
Fixes #37, add pprof support
dhirajsb Sep 27, 2023
2aa1893
Fixes #11, add gRPC to/from DB type converter
dhirajsb Sep 27, 2023
4adb60d
Add unit test for grpc converter utility functions
dhirajsb Sep 27, 2023
ec62f3e
Code cleanup in grpc_converter_util, add Makefile test target
dhirajsb Sep 29, 2023
29a8eae
Cache type ids and names for gRPC converter
dhirajsb Oct 4, 2023
ae4ca20
Define the Model Registry OpenAPI (#51)
tarilabs Oct 10, 2023
e9991bc
Bump golang.org/x/net from 0.14.0 to 0.17.0 (#69)
dependabot[bot] Oct 12, 2023
5ef8c07
Extend GHA to cover for Docker build (#64)
tarilabs Oct 13, 2023
b27dc7c
Enhance GHA to check uncommitted changes (#63)
tarilabs Oct 16, 2023
c664d5f
Add build status badge on README (#71)
lampajr Oct 17, 2023
659ec4e
Refactor model registry openapi definition. (#66)
dhirajsb Oct 18, 2023
86204d4
Implement MR service layer (#68)
lampajr Oct 20, 2023
89af156
Fix MetadataValue to use named property value types, add registeredMo…
dhirajsb Oct 20, 2023
2c36e23
Setup image build and push to quay (#72)
lampajr Oct 23, 2023
23fe7ed
Metadata mapping OpenAPI/gRPC for Bool and Struct (#84)
tarilabs Oct 24, 2023
4a16cab
Manage prefix for owned entities (#79)
tarilabs Oct 25, 2023
d53fd86
Add in REST findModelArtifact modelVersionID query param (#81)
tarilabs Oct 25, 2023
9335982
Bump google.golang.org/grpc from 1.57.0 to 1.57.1 (#86)
dependabot[bot] Oct 26, 2023
744273c
Export QUAY_ORG for latest tag (#88)
lampajr Oct 26, 2023
eb05f45
Adding the tracker template for issue creation (#91)
rareddy Oct 26, 2023
c2213f3
Rename tracker.md to tracker.yml (#92)
tarilabs Oct 26, 2023
e46529c
Create dependabot.yml (#94)
dhirajsb Oct 26, 2023
1a03b4c
Bump ubi8/ubi-minimal from 8.6 to 8.8 (#97)
dependabot[bot] Oct 27, 2023
67ba664
Bump actions/checkout from 3 to 4 (#98)
dependabot[bot] Oct 27, 2023
14bfc9b
Bump github.com/vektah/gqlparser/v2 from 2.5.8 to 2.5.10 (#99)
dependabot[bot] Oct 27, 2023
cf10dfc
Bump gorm.io/gorm from 1.25.4 to 1.25.5 (#103)
dependabot[bot] Oct 27, 2023
1914ba4
Bump golang.org/x/sync from 0.3.0 to 0.4.0 (#101)
dependabot[bot] Oct 27, 2023
240bed6
Bump google.golang.org/grpc from 1.57.1 to 1.59.0 (#102)
dependabot[bot] Oct 27, 2023
9966a13
Bump github.com/spf13/viper from 1.16.0 to 1.17.0 (#100)
dependabot[bot] Oct 27, 2023
52d2151
Automate ml-metadata proto download (#89)
lampajr Oct 27, 2023
270521d
Skip pr checks when changing files not affecting the build (#106)
lampajr Oct 27, 2023
a309537
Improve core layer testing (#85)
lampajr Oct 30, 2023
2561513
Bump github.com/docker/docker (#111)
dependabot[bot] Oct 30, 2023
1d29332
workflows: fix branch restriction on pull requests (#112)
isinyaaa Oct 30, 2023
9fc3c30
Bump github.com/google/uuid from 1.3.1 to 1.4.0 (#114)
dependabot[bot] Oct 31, 2023
2fe3c9d
Bump gorm.io/driver/sqlite from 1.5.3 to 1.5.4 (#115)
dependabot[bot] Oct 31, 2023
fe5a522
Bump github.com/99designs/gqlgen from 0.17.36 to 0.17.40 (#116)
dependabot[bot] Oct 31, 2023
7f452cf
Bump github.com/testcontainers/testcontainers-go from 0.25.0 to 0.26.…
dependabot[bot] Oct 31, 2023
888c3cd
Bump github.com/grpc-ecosystem/go-grpc-middleware/v2 from 2.0.0 to 2.…
dependabot[bot] Oct 31, 2023
fe762a1
Improve core layer optional params management (#113)
lampajr Oct 31, 2023
e2c190a
Add property description to BaseResourceUpdate (#119)
dhirajsb Oct 31, 2023
c9ec94b
Update the README (#124)
lampajr Nov 6, 2023
b6aaaae
Implement core layer mapper using Goverter (#123)
lampajr Nov 6, 2023
268cc31
Bump github.com/spf13/cobra from 1.7.0 to 1.8.0 (#126)
dependabot[bot] Nov 7, 2023
20cb231
Bump golang.org/x/sync from 0.4.0 to 0.5.0 (#127)
dependabot[bot] Nov 7, 2023
c0d00e5
Implement REST API Server for Model Registry (#108)
tarilabs Nov 7, 2023
902d428
py: create model registry client
isinyaaa Oct 31, 2023
bafef82
py: define base MLMD proto types for model registration
isinyaaa Oct 31, 2023
8c19bd8
py: add Mappable interface and test implementers
isinyaaa Oct 31, 2023
c968d5f
py: add MetadataStore wrapper
isinyaaa Oct 31, 2023
f0f9f12
py: add basic model registry functionality
isinyaaa Oct 31, 2023
d8e625a
py: add support for name prefixes
isinyaaa Oct 31, 2023
e1dbb8c
py: add params to artifact query
isinyaaa Oct 31, 2023
d4e9e18
py: add queries for lists
isinyaaa Oct 31, 2023
a07964c
py: add additional params to context query
isinyaaa Oct 31, 2023
8f1fe8e
workflows: don't generate PR image builds on Python client updates
isinyaaa Oct 31, 2023
24b3f65
add GHA workflows for the python client
isinyaaa Oct 31, 2023
958630a
py: Release v0.1
isinyaaa Oct 31, 2023
7218dd9
Implement Model Serving API in the GO Core layer (#128)
lampajr Nov 9, 2023
571bc6b
Move runtime from Artifact to InferenceService (#134)
tarilabs Nov 10, 2023
04aa366
Change mlmd hostname and port cmdline options to k8s style hyphen cas…
dhirajsb Nov 10, 2023
6595e84
Update(Dockerfile): Use ubi9 images that contains required glibc vers…
rkubis Nov 13, 2023
d5fc068
py: remove runtime property from model artifact
isinyaaa Nov 7, 2023
acec96c
py: reinsert model on get_mv_by_params
isinyaaa Nov 7, 2023
04d6a4b
py: client: fix typing issues
isinyaaa Nov 7, 2023
b31473e
py: client: fix docs for get_model_artifacts
isinyaaa Nov 7, 2023
303bb38
py: tests: separate cases for get_model_artifacts
isinyaaa Nov 7, 2023
1a7a413
Make model registry core importable as library (#140)
lampajr Nov 14, 2023
9d9d48f
Create BuildListOption for REST query params (#139)
tarilabs Nov 14, 2023
2c1381e
python check: do not ignore the workflow itself
lampajr Nov 14, 2023
3ad11b9
Bump actions/checkout from 3 to 4
dependabot[bot] Nov 14, 2023
3c39415
Improve converter testing (#141)
lampajr Nov 14, 2023
4932968
Make core models importable (#149)
lampajr Nov 14, 2023
310b9c9
Fix docker compose setup (#142)
lampajr Nov 15, 2023
8005f07
Update build-image-pr.yml: swich to pull_request event (#153)
lampajr Nov 16, 2023
9ed849d
Fix core library issue (#154)
lampajr Nov 16, 2023
5a98a6b
Revert "Update(Dockerfile): Use ubi9 images that contains required gl…
rkubis Nov 17, 2023
3e286f3
Remove go-server code from repository (#155)
lampajr Nov 17, 2023
0394402
gha: upload code coverage to codecov.io
dtrifiro Nov 17, 2023
e9d0541
README: add codecov badge
dtrifiro Nov 17, 2023
507e93f
Use canAddFields option in mlmd type setup (#160)
lampajr Nov 19, 2023
9feaaf9
Fix GetModelArtifactByParams when no results (#165)
lampajr Nov 19, 2023
36fe1f3
gha: set up go code coverage using codecov.io
dtrifiro Nov 20, 2023
b9d8808
gha: always run python tests
dtrifiro Nov 20, 2023
6f4d25d
Fix strict symbol validation in MR Python client
tarilabs Nov 18, 2023
5afff25
python client: remove duplicated imports
dtrifiro Nov 21, 2023
3ac38fc
python client: improve ci by running a linting step
dtrifiro Nov 21, 2023
7deb5a3
python client: add target-version to ruff config
dtrifiro Nov 21, 2023
9f23f30
Fix format logging and make ModelRegistryService public (#183)
lampajr Nov 22, 2023
11a7749
Refactor robot test to use REST Vs Python variants
tarilabs Nov 16, 2023
de3c5f1
Align prefix behaviour in Python for ModelArtifact
tarilabs Nov 16, 2023
a499a19
Simplify accessory MLMD functions
tarilabs Nov 16, 2023
5dedce9
Align default also for Go proxy cmd
tarilabs Nov 16, 2023
c9e0753
Test description property and refactors
tarilabs Nov 16, 2023
33e088a
Minor change of naming
tarilabs Nov 16, 2023
245c7df
Add doc with diagram for Robot Framework role
tarilabs Nov 20, 2023
3f3be43
Remove BDD with Godog, as now using RobotFramework (#162)
tarilabs Nov 23, 2023
e0f2925
Add state properties for RegisteredModel, ModelVersion, and Inference…
dhirajsb Nov 23, 2023
06ea855
Add autogenerated type asserts for new states (#197)
lampajr Nov 23, 2023
2fac150
Override not editable fields during updates (#200)
lampajr Nov 27, 2023
17dea15
py: indicate overriden methods using typing_extensions
isinyaaa Nov 21, 2023
965733a
py: client: get rid of _unmap helper
isinyaaa Nov 21, 2023
7b31d6b
py: require type_id when mapping
isinyaaa Nov 21, 2023
e3ed413
py: fix get_registered_models with empty options
isinyaaa Nov 21, 2023
864fba6
py: share Mapped class among tests
isinyaaa Nov 21, 2023
7f967e7
py: add ruff rules
isinyaaa Nov 21, 2023
4bc9b8d
py: fix artifact storage docstrings
isinyaaa Nov 21, 2023
b4eebd6
py: remove type annotations on docstrings
isinyaaa Nov 23, 2023
9e09b42
build(deps): bump github.com/golang/glog from 1.1.2 to 1.2.0 (#202)
dependabot[bot] Nov 28, 2023
0839600
py: add dev dependencies to pyproject
isinyaaa Nov 21, 2023
4fc5f2e
py: noxfile: specify python versions for mypy and lint
isinyaaa Nov 21, 2023
a695436
gha: py: run lint and mypy as separate jobs
isinyaaa Nov 21, 2023
cf20780
Align MLMD Properties for Artifact
tarilabs Nov 28, 2023
5940bdd
Align author in OpenAPI and Core layer (#189)
tarilabs Nov 28, 2023
0b314cd
py: use plain model_name on MV
isinyaaa Nov 28, 2023
bf56ee2
py: get rid of versions on RM
isinyaaa Nov 28, 2023
0374d63
py: return None on missing object
isinyaaa Nov 28, 2023
7dce2a9
py: tests: extract populated store wrapper
isinyaaa Nov 28, 2023
2ae6e46
py: add higher-level API
isinyaaa Nov 28, 2023
ee64553
Improve core testing using single test container (#213)
lampajr Nov 30, 2023
da45646
Enhance go api for serving (#219)
lampajr Dec 1, 2023
63807ee
Add go core library documentation (#207)
lampajr Dec 1, 2023
259b393
py: Fix typo in README.md
tarilabs Dec 1, 2023
bd5191d
Improve err mgmt when providing wrong entity (#220)
lampajr Dec 4, 2023
0621864
py: types: add state property to contexts
isinyaaa Dec 1, 2023
da35fd3
py: noxfile: lint entire project
isinyaaa Dec 5, 2023
8ee2d82
Document helpful tips for dev on Apple-silicon/ARM (#215)
tarilabs Dec 11, 2023
89fc84e
build(deps): bump actions/setup-python from 4 to 5 (#232)
dependabot[bot] Dec 12, 2023
3f53d77
build(deps): bump github.com/spf13/viper from 1.17.0 to 1.18.1 (#234)
dependabot[bot] Dec 12, 2023
c694a9e
build(deps): bump actions/setup-go from 4 to 5 (#233)
dependabot[bot] Dec 12, 2023
84a03e0
GHA: add workflow to publish python client on PyPI
isinyaaa Dec 5, 2023
f752ce4
GHA: fix py release version check cwd
isinyaaa Dec 12, 2023
f720231
GHA: fix pypi publish activation rules
isinyaaa Dec 12, 2023
b07bace
GHA: fix py release on manual dispatch
isinyaaa Dec 12, 2023
df45e90
Fix typo: move opeanpi -> openapi
isinyaaa Dec 12, 2023
c2664e5
robot: fix Py client import
isinyaaa Dec 12, 2023
077be7c
robot: fix Py client obj creation
isinyaaa Dec 13, 2023
7b351c2
GHA: fetch tags on py release checkout action
isinyaaa Dec 13, 2023
e56fc36
py: using Testcontainers and test strategy as go (#225)
tarilabs Dec 15, 2023
51b45f1
Change state to desiredState for InferenceService (#243)
lampajr Dec 15, 2023
eaaae59
Fix rest params order (#245)
lampajr Dec 15, 2023
b19176f
build(deps): bump google.golang.org/grpc from 1.59.0 to 1.60.0 (#247)
dependabot[bot] Dec 19, 2023
c52b188
build(deps): bump actions/upload-artifact from 3 to 4 (#250)
dependabot[bot] Dec 19, 2023
e9b0e9d
build(deps): bump github.com/google/uuid from 1.4.0 to 1.5.0 (#248)
dependabot[bot] Dec 19, 2023
77b889d
build(deps): bump github.com/containerd/containerd from 1.7.7 to 1.7.…
dependabot[bot] Dec 20, 2023
dc5da9b
build(deps): bump github.com/go-chi/chi/v5 from 5.0.10 to 5.0.11 (#255)
dependabot[bot] Jan 2, 2024
807e605
build(deps): bump github.com/spf13/viper from 1.18.1 to 1.18.2 (#257)
dependabot[bot] Jan 2, 2024
7a89412
build(deps): bump google.golang.org/grpc from 1.60.0 to 1.60.1 (#258)
dependabot[bot] Jan 2, 2024
53b7446
build(deps): bump google.golang.org/protobuf from 1.31.0 to 1.32.0 (#…
dependabot[bot] Jan 2, 2024
0deba86
build(deps-dev): bump jinja2 from 3.1.2 to 3.1.3 in /clients/python (…
dependabot[bot] Jan 15, 2024
97a976b
ADR: Remote-only packaging of MLMD Python lib (#261)
tarilabs Jan 15, 2024
32b2bfc
New(workflow): Run Robot Framework tests with every push (#208)
rkubis Jan 17, 2024
4944d7b
py: client: fix return types and docstrings
isinyaaa Jan 3, 2024
7adacc2
py: contexts: fix MV prefix type
isinyaaa Jan 3, 2024
622ce61
py: ctx: remove tags prop
isinyaaa Jan 3, 2024
0d7e4a3
py: base: simplify unmap
isinyaaa Jan 3, 2024
37f7591
py: wrapper: skip type check on _get_type_id
isinyaaa Jan 3, 2024
fc3ccbc
py: client: add params for metadata input on register
isinyaaa Jan 3, 2024
0497cf4
py: add support for huggingface imports
isinyaaa Jan 3, 2024
225a2d7
fix Dockerfile NodeJS version for openapi-generator-cli (#273)
tarilabs Jan 25, 2024
46d1f1c
build(deps): bump actions/setup-python from 4 to 5 (#270)
dependabot[bot] Jan 25, 2024
655e4da
Decouple MLMD types setup from Go core library (#267)
tarilabs Jan 26, 2024
ff9abb5
chore: Add kind integration test, fixes #251 (#252)
dhirajsb Jan 26, 2024
9787f7c
Added Dockerfile without generation phase (#274)
lampajr Jan 26, 2024
6456367
fix: update image build and push to handle tags, fixes RHOAIENG-2300 …
dhirajsb Jan 27, 2024
915bae8
Remove ODH tracker.yml (#266)
tarilabs Jan 27, 2024
22df0a4
remove auto-add-issue-to-project.yml (#275)
tarilabs Jan 27, 2024
d6f4300
Updated depreciated commands to use RETURN Keywords (#268)
tonyxrmdavidson Jan 27, 2024
a4b0ccd
build(deps): bump github.com/google/uuid from 1.5.0 to 1.6.0 (#279)
dependabot[bot] Jan 30, 2024
4575b5b
build(deps): bump google.golang.org/grpc from 1.60.1 to 1.61.0 (#280)
dependabot[bot] Jan 30, 2024
199f56b
build(deps): bump codecov/codecov-action from 3.1.4 to 3.1.5 (#281)
dependabot[bot] Jan 30, 2024
dd68866
build(deps): bump helm/kind-action from 1.4.0 to 1.8.0 (#282)
dependabot[bot] Jan 30, 2024
13a24ab
update instructions for remote-only MLMD Python lib (#283)
tarilabs Jan 31, 2024
3c6b279
fix test_hf_import test_hf_import_missing_author (#287)
tarilabs Feb 2, 2024
c34041a
build(deps): bump github.com/opencontainers/runc from 1.1.5 to 1.1.12…
dependabot[bot] Feb 2, 2024
041dc29
update to python/client README to give commands for running python te…
tonyxrmdavidson Feb 2, 2024
0e681d1
build(deps): bump arduino/setup-protoc from 2 to 3 (#290)
dependabot[bot] Feb 6, 2024
212d47f
build(deps): bump codecov/codecov-action from 3.1.5 to 4.0.1 (#291)
dependabot[bot] Feb 6, 2024
c893ea8
add pre-commit hooks
isinyaaa Feb 1, 2024
44ce399
Remove lint from the build/odh cmd (#293)
lampajr Feb 7, 2024
351a7f2
chore: fix documentation info section version in rest api, fixes RHOA…
dhirajsb Feb 8, 2024
83e2535
rename model artifact state mapping function
isinyaaa Feb 5, 2024
3b0d790
define OpenAPIModel as type constraint interface
isinyaaa Feb 5, 2024
cf1345a
Makefile: add HTML output on test-cover
isinyaaa Feb 8, 2024
70eefeb
add DocArtifact type
isinyaaa Feb 5, 2024
79492e8
add RobotFramework for doc-artifact REST test
tarilabs Feb 9, 2024
4708b34
add Homepage, Issues on pyproject.toml for PyPI
tarilabs Feb 9, 2024
901f874
apply poetry conventions in pyproject.toml
tarilabs Feb 9, 2024
921b05e
add Shell script openshift-ci make some REST call to MR (#295)
tarilabs Feb 12, 2024
44d87e4
build(deps): bump helm/kind-action from 1.8.0 to 1.9.0 (#300)
dependabot[bot] Feb 12, 2024
3a38263
remove test_hf_import_missing_author test
tarilabs Feb 13, 2024
dbcacad
Creating OWNERS file needed for openshift-ci (#302)
tonyxrmdavidson Feb 13, 2024
90f7ddc
Automate openapi server generation (#308)
lampajr Feb 15, 2024
22bea2d
This commit will remove tonyxrmdavidson and nehachopra27 from OWNERS …
tonyxrmdavidson Feb 15, 2024
4060a21
Add parentResourceID param for FindInferenceService (#311)
lampajr Feb 15, 2024
3ead8fc
doc: Document MR Logical Model (#301)
tarilabs Feb 16, 2024
c00098b
py: default metadata capture environment vars (#307)
tarilabs Feb 16, 2024
78b0971
Improvements to Makefile (#314)
sabre1041 Feb 17, 2024
ec8618e
feat: add kustomize manifests for kubeflow, fixes RHOAIENG-1947 (#292)
dhirajsb Feb 17, 2024
54b3792
fix: istio manifest cleanup, fixes RHOAIENG-1947 (#318)
dhirajsb Feb 19, 2024
ba26588
Merge branch 'clean-odh-main' into merge-odh-mr
dhirajsb Feb 19, 2024
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
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Do this '...'
2. Do that '....'
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Additional context**
Add any other context about the problem here.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/chore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Chore issue template
about: General purpose issues related to chores, project management, etc.
title: ''
labels: 'chore'
assignees: ''

---
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'feature'
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
17 changes: 17 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->

## Merge criteria:
<!--- This PR will be merged by any repository approver when it meets all the points in the checklist -->
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->

- [ ] The commits and have meaningful messages; the author will squash them [after approval](https://github.com/opendatahub-io/opendatahub-community/blob/main/contributor-cheatsheet.md#:~:text=Usually%20this%20is%20done%20in%20last%20phase%20of%20a%20PR%20revision) or will ask to merge with squash.
- [ ] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
- [ ] The developer has manually tested the changes and verified that the changes work
68 changes: 68 additions & 0 deletions .github/workflows/build-and-push-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Container image build and tag
on:
push:
branches:
- 'main'
tags:
- 'v*'
paths-ignore:
- 'LICENSE*'
- '**.gitignore'
- '**.md'
- '**.txt'
- '.github/ISSUE_TEMPLATE/**'
- '.github/dependabot.yml'
- 'docs/**'
env:
QUAY_ORG: opendatahub
QUAY_IMG_REPO: model-registry
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
PUSH_IMAGE: true
jobs:
build-image:
runs-on: ubuntu-latest
steps:
# Assign context variable for various action contexts (tag, main, CI)
- name: Assigning tag context
if: github.head_ref == '' && startsWith(github.ref, 'refs/tags/v')
run: echo "BUILD_CONTEXT=tag" >> $GITHUB_ENV
- name: Assigning main context
if: github.head_ref == '' && github.ref == 'refs/heads/main'
run: echo "BUILD_CONTEXT=main" >> $GITHUB_ENV
# checkout branch
- uses: actions/checkout@v4
# set image version
- name: Set main-branch environment
if: env.BUILD_CONTEXT == 'main'
run: |
commit_sha=${{ github.event.after }}
tag=main-${commit_sha:0:7}
echo "VERSION=${tag}" >> $GITHUB_ENV
- name: Set tag environment
if: env.BUILD_CONTEXT == 'tag'
run: |
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Build and Push Image
shell: bash
run: ./scripts/build_deploy.sh
- name: Tag Latest
if: env.BUILD_CONTEXT == 'main'
shell: bash
env:
IMG: quay.io/${{ env.QUAY_ORG }}/${{ env.QUAY_IMG_REPO }}
BUILD_IMAGE: false
run: |
docker tag ${{ env.IMG }}:$VERSION ${{ env.IMG }}:latest
# BUILD_IMAGE=false skip the build
./scripts/build_deploy.sh
- name: Tag Main
if: env.BUILD_CONTEXT == 'main'
shell: bash
env:
IMG: quay.io/${{ env.QUAY_ORG }}/${{ env.QUAY_IMG_REPO }}
BUILD_IMAGE: false
run: |
docker tag ${{ env.IMG }}:$VERSION ${{ env.IMG }}:main
# BUILD_IMAGE=false skip the build
./scripts/build_deploy.sh
54 changes: 54 additions & 0 deletions .github/workflows/build-image-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Test container image build and deployment
on:
pull_request:
paths-ignore:
- 'LICENSE*'
- '**.gitignore'
- '**.md'
- '**.txt'
- '.github/ISSUE_TEMPLATE/**'
- '.github/dependabot.yml'
- 'docs/**'
- 'clients/python/**'
env:
QUAY_IMG_REPO: model-registry
PUSH_IMAGE: false
BRANCH: ${{ github.base_ref }}
jobs:
build-and-test-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate Tag
shell: bash
id: tags
run: |
commit_sha=${{ github.event.after }}
tag=main-${commit_sha:0:7}
echo "tag=${tag}" >> $GITHUB_OUTPUT
- name: Build Image
shell: bash
env:
VERSION: ${{ steps.tags.outputs.tag }}
run: ./scripts/build_deploy.sh
- name: Start Kind Cluster
uses: helm/[email protected]
- name: Load Local Registry Test Image
env:
IMG: "quay.io/opendatahub/model-registry:${{ steps.tags.outputs.tag }}"
run: |
kind load docker-image -n chart-testing ${IMG}
- name: Deploy Operator With Test Image
env:
IMG: "quay.io/opendatahub/model-registry:${{ steps.tags.outputs.tag }}"
run: |
echo "Deploying operator from model-registry-operator branch ${BRANCH}"
kubectl apply -k "https://github.com/opendatahub-io/model-registry-operator.git/config/default?ref=${BRANCH}"
kubectl set env -n model-registry-operator-system deployment/model-registry-operator-controller-manager REST_IMAGE="${IMG}"
- name: Create Test Registry
run: |
kubectl apply -k "https://github.com/opendatahub-io/model-registry-operator.git/config/samples?ref=${BRANCH}"
kubectl get mr
- name: Wait for Test Registry Deployment
run: |
kubectl wait --for=condition=Available=true modelregistries/modelregistry-sample --timeout=5m
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build
on:
push:
branches:
- 'main'
pull_request:
paths-ignore:
- 'LICENSE*'
- 'DOCKERFILE*'
- '**.gitignore'
- '**.md'
- '**.txt'
- '.github/ISSUE_TEMPLATE/**'
- '.github/dependabot.yml'
- 'docs/**'
- 'scripts/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.19'
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "24.3"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install makefile dependencies
run: make deps
- name: Clean
run: make clean
- name: Build
run: make build
- 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
- name: Unit tests
run: make test-cover
- name: Upload coverage to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage.txt
fail_ci_if_error: true
5 changes: 5 additions & 0 deletions .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pip==23.3.1
nox==2023.04.22
nox-poetry==1.0.2
poetry==1.6.1
virtualenv==20.24.6
50 changes: 50 additions & 0 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release Python client
on:
push:
tags:
- py-v*
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
id-token: write
env:
FORCE_COLOR: "1"
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: "3.10"
- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
poetry --version
- name: Check version
working-directory: clients/python
run: |
set -o pipefail
LATEST_TAG=$(git describe --tags --match="py-v*")
if [[ "$LATEST_TAG" =~ $(poetry version | cut -d' ' -f1) ]]; then
echo "::error title='$LATEST_TAG tag does not match project version'::"
exit 1
fi
- name: Build package
working-directory: clients/python
run: |
poetry build --ansi
- name: Publish package on PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
print-hash: true
packages-dir: clients/python/dist/
Loading