You have written unit tests for a Kubeflow Pipeline that require custom libraries. You want to automate the execution of unit tests with each new push to your development branch in Cloud Source Repositories. What should you do?
A.
Write a script that sequentially performs the push to your development branch and executes the unit tests on Cloud Run.
B.
Using Cloud Build, set an automated trigger to execute the unit tests when changes are pushed to your development branch.
C.
Set up a Cloud Logging sink to a Pub/Sub topic that captures interactions with Cloud Source Repositories. Configure a Pub/Sub trigger for Cloud Run, and execute the unit tests on Cloud Run.
D.
Set up a Cloud Logging sink to a Pub/Sub topic that captures interactions with Cloud Source Repositories. Execute the unit tests using a Cloud Function that is triggered when messages are sent to the Pub/Sub topic.
B. GCP recommends to use Cloud Build when building KubeFlow Pipelines. It's possible to run unit tests in Cloud Build. And, the others seems overly complex/unnecessary
B makes sense because of this: https://cloud.google.com/architecture/architecture-for-mlops-using-tfx-kubeflow-pipelines-and-cloud-build#cicd_architecture
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
maartenalexander
Highly Voted 3 years, 5 months agomousseUwU
Highly Voted 3 years, 1 month agomousseUwU
3 years, 1 month agobludw
Most Recent 5 months agoPhilipKoku
5 months, 3 weeks agoSum_Sum
1 year agoSamuelTsch
1 year, 4 months agoScipione_
1 year, 6 months agoM25
1 year, 6 months agoenghabeth
1 year, 9 months agowish0035
1 year, 11 months agoEFIGO
2 years agoGCP72
2 years, 3 months agomorgan62
2 years, 7 months agoDanny2021
3 years, 2 months ago