Topic 1 Question 19
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?
Write a script that sequentially performs the push to your development branch and executes the unit tests on Cloud Run.
Using Cloud Build, set an automated trigger to execute the unit tests when changes are pushed to your development branch.
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.
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.
ユーザの投票
コメント(10)
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
👍 15maartenalexander2021/06/22B makes sense because of this: https://cloud.google.com/architecture/architecture-for-mlops-using-tfx-kubeflow-pipelines-and-cloud-build#cicd_architecture
👍 7mousseUwU2021/10/19Easy one, B, Cloud Build is the tool for CI/CD.
👍 5Danny20212021/09/08
シャッフルモード