databricks / mlops-stacks

This repo provides a customizable stack for starting new ML projects on Databricks that follow production best-practices out of the box.
https://docs.databricks.com/en/dev-tools/bundles/mlops-stacks.html
Apache License 2.0
429 stars 143 forks source link

Change Azure DevOp pipelines to be run automatically on a repo level #36

Closed jerrylian-db closed 1 year ago

jerrylian-db commented 1 year ago

Description

Before this PR, ADO pipelines created by MLOps Stacks for one repo in an ADO project would be run on pull requests against all other repos in the same ADO project. This PR isolates the ADO branch policies on a repo level. It also augments the names of provisioned things with the repo name for clarity.

Testing

I created two MLOps Stack projects based off of this feature branch and ran through the bootstrap scripts for both of them as two repos in the same ADO project. This resulted in the following ADO pipelines:

Screen Shot 2022-12-12 at 3 28 40 PM

Then, I created one ML code PR and one Databricks Config PR for one of the repos. See below that only the ADO pipelines for that repo were triggered:

Screen Shot 2022-12-12 at 3 29 49 PM Screen Shot 2022-12-12 at 3 30 13 PM