kfp-tekton/backend
Tommy Li ff8bb50dc4
chore(tests): add unit tests for tekton template v1 (#1444)
* add unit tests for tekton template v1

* update license
2024-01-03 23:34:11 +00:00
..
api feat(api): upgrade grpc-gateway to v2 with protoname (#1337) 2023-09-01 22:22:26 +00:00
metadata_writer fix(backend): Fix metadata writer dependencies (#1193) 2023-03-21 19:15:42 +00:00
src chore(tests): add unit tests for tekton template v1 (#1444) 2024-01-03 23:34:11 +00:00
test fix(backend): Fix integration test template object bugs (#1216) 2023-04-26 22:34:35 +00:00
third_party_licenses chore(backend): update to tekton 0.53.2 (#1420) 2023-11-22 22:39:57 +00:00
Dockerfile Chore(backend) update kube and python dependency for backend (#1162) 2023-02-20 18:43:39 +00:00
Dockerfile.cacheserver update tekton version to 0.41 (#1070) 2022-11-14 21:18:27 +00:00
Dockerfile.persistenceagent feat(backend): Optimize persistence agent to pass yaml directly to db and minio client (#1244) 2023-05-24 19:59:19 +00:00
Dockerfile.scheduledworkflow update tekton version to 0.41 (#1070) 2022-11-14 21:18:27 +00:00
Dockerfile.viewercontroller feat(backend): update go version and license files (#949) 2022-05-24 21:13:33 +00:00
Makefile chore(backend): update to tekton 0.53.2 (#1420) 2023-11-22 22:39:57 +00:00
README.md KFP 1.8.4 Rebase (#1024) 2022-08-11 16:39:03 +00:00
requirements.in Kfp 1.8.0 api and frontend rebase (#862) 2022-03-03 00:58:28 +00:00
update_requirements.sh fix(python): Remove python 3.7 support (#1207) 2023-04-12 21:55:42 +00:00

README.md

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

Building & Testing

To run all unit tests for backend:

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

To run the API server unit tests:

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

The API server itself can be built using:

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

Building APIServer Image using Remote Build Execution

If you are a dev in the Kubeflow Pipelines team, you can use Remote Build Execution Service to build the API Server image using Bazel with use of a shared cache for speeding up the build. To do so, execute the following command:

./build_api_server.sh -i gcr.io/cloud-ml-pipelines-test/api-server:dev

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

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.

    go install github.com/google/go-licenses@d483853
    
  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 and pin the transitive dependencies.