pipelines/backend
Dharmit Dalvi 5399585b6a
feat(backend): Enable logging for KFP components (#10288)
2024-01-05 01:47:08 +00:00
..
api chore(release): bumped version to 2.0.5 2023-12-08 18:00:49 +00:00
conformance feat(conformance): containerize KFP conformance test. (#7738) 2022-05-23 19:31:01 +00:00
metadata_writer fix(backend): update requirements scripts (#10009) 2023-09-21 20:35:37 +00:00
src feat(backend): Enable logging for KFP components (#10288) 2024-01-05 01:47:08 +00:00
test feat(backend): add postgres initialization (#9798) 2023-08-10 21:51:05 +00:00
third_party_licenses feat(backend): Added metrics to be collected from failed/successful workflows (#9576) 2023-10-10 20:25:21 +00:00
Dockerfile feat(backend): Enable logging for KFP components (#10288) 2024-01-05 01:47:08 +00:00
Dockerfile.cacheserver chore: upgrade to Argo v3.3.10 (#9336) 2023-05-08 08:38:55 +00:00
Dockerfile.conformance chore: upgrade to Argo v3.3.10 (#9336) 2023-05-08 08:38:55 +00:00
Dockerfile.driver feat(backend): Update driver and launcher images (#10076) 2023-10-10 23:02:19 +00:00
Dockerfile.launcher feat(backend): Update driver and launcher images (#10076) 2023-10-10 23:02:19 +00:00
Dockerfile.persistenceagent feat(backend): Enable logging for KFP components (#10288) 2024-01-05 01:47:08 +00:00
Dockerfile.scheduledworkflow feat(backend): Enable logging for KFP components (#10288) 2024-01-05 01:47:08 +00:00
Dockerfile.viewercontroller chore: upgrade to Argo v3.3.10 (#9336) 2023-05-08 08:38:55 +00:00
Dockerfile.visualization fix(backend): update requirements scripts (#10009) 2023-09-21 20:35:37 +00:00
Makefile chore(backend): Update driver and launcher license files (#10072) 2023-10-10 01:02:19 +00:00
OWNERS chore(backend): Propose Tomcli to be the backend reviewer (#10291) 2023-12-06 23:36:54 +00:00
README.md fix(backend): update requirements scripts (#10009) 2023-09-21 20:35:37 +00:00
requirements.in chore(samples/backend/frontend): Update preload control-flow and data-passing pipelines to v2 (#9563) 2023-06-07 22:06:57 +00:00
requirements.txt fix(backend): update requirements scripts (#10009) 2023-09-21 20:35:37 +00:00
update_requirements.sh fix(backend): update requirements scripts (#10009) 2023-09-21 20:35:37 +00:00

README.md

This directory contains code for the components that comprise the Kubeflow Pipelines backend.

Building & Testing

To run all unittests for backend:

go test -v -cover ./backend/...

The API server itself can be built using:

go build -o /tmp/apiserver backend/src/apiserver/*.go

Code Style

Backend codebase follows the Google's Go Style Guide. Please, take time to get familiar with the best practices. It is not intended to be exhaustive, but it often helps minimizing guesswork among developers and keep codebase uniform and consistent.

We use golangci-lint tool that can catch common mistakes locally (see detailed configuration here). It can be conveniently integrated with multiple popular IDEs such as VS Code or Vim.

Finally, it is advised to install pre-commit in order to automate linter checks (see configuration here)

Building APIServer image locally

The API server image can be built from the root folder of the repo using:

export API_SERVER_IMAGE=api_server
docker build -f backend/Dockerfile . --tag $API_SERVER_IMAGE

Deploy APIServer with the image you own build

Run

kubectl edit deployment.v1.apps/ml-pipeline -n kubeflow

You'll see the field reference the api server docker image. Change it to point to your own build, after saving and closing the file, apiserver will restart with your change.

Building client library and swagger files

After making changes to proto files, the Go client libraries, Python client libraries and swagger files need to be regenerated and checked-in. Refer to backend/api for details.

Updating licenses info

  1. Install go-licenses tool and refer to its documentation for how to use it.

  2. Run the tool to update all licenses:

    make all
    

Updating python dependencies

pip-tools is used to manage python dependencies. To update dependencies, edit requirements.in and run ./update_requirements.sh to update and pin the transitive dependencies.

Visualization Server Instructions

Updating python dependencies

pip-tools is used to manage python dependencies. To update dependencies, edit requirements.in and run ./update_requirements.sh to update and pin the transitive dependencies.

Building conformance tests (WIP)

Run

docker build . -f backend/Dockerfile.conformance -t <tag>