Skip to content

Commit eb3dc02

Browse files
authored
Add basic descriptions to YAML pipelines (#200)
* Add basic descriptions to YAML pipelines * Updated comments to address review feedback * Add missing feedback fix
1 parent 07da4ef commit eb3dc02

12 files changed

+21
-8
lines changed

.pipelines/azdo-abtest-pipeline.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Pipeline for the canary deployment workflow.
12
pr: none
23
trigger:
34
branches:
@@ -23,7 +24,6 @@ variables:
2324
- name: 'SCORE_SCRIPT'
2425
value: 'scoreA.py'
2526

26-
2727
stages:
2828
- stage: 'Building'
2929
jobs:
@@ -50,7 +50,6 @@ stages:
5050
- publish: $(System.DefaultWorkingDirectory)/charts
5151
artifact: allcharts
5252

53-
5453
- stage: 'Blue_Staging'
5554
jobs:
5655
- deployment: "Deploy_to_Staging"

.pipelines/azdo-base-pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Pipeline template to run linting, unit tests with code coverage, and publish the results.
12
steps:
23
- script: |
34
flake8 --output-file=lint-testresults.xml --format junit-xml

.pipelines/azdo-helm-install.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
# Pipeline template for installing helm on the agent.
12
steps:
23
- task: Bash@3
34
displayName: 'Install Helm $(helmVersion)'
45
inputs:
56
targetType: inline
6-
script: wget -q $(helmDownloadURL) -O /tmp/$FILENAME && tar -zxvf /tmp/$FILENAME -C /tmp && sudo mv /tmp/linux-amd64/helm /usr/local/bin/helm
7+
script: wget -q $(helmDownloadURL) -O /tmp/$FILENAME && tar -zxvf /tmp/$FILENAME -C /tmp && sudo mv /tmp/linux-amd64/helm /usr/local/bin/helm
78
env:
89
HELM_VERSION: $(helmVersion)
910
FILENAME: helm-$(helmVersion)-linux-amd64.tar.gz

.pipelines/azdo-helm-upgrade.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
# Pipeline template for deploying / upgrading using Helm.
12
parameters:
23
chartPath: ''
34
releaseName: ''
45
overrideValues: ''
5-
6+
67
steps:
78
- template: azdo-helm-install.yml
89
- task: HelmDeploy@0

.pipelines/azdo-pr-build-train.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Pipeline to run basic code quality tests as part of pull requests to the master branch.
12
trigger: none
23
pr:
34
branches:

.pipelines/diabetes_regression-ci-build-train.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Continuous Integration (CI) pipeline that orchestrates the training, evaluation, registration, deployment, and testing of the diabetes_regression model.
12
pr: none
23
trigger:
34
branches:
@@ -84,6 +85,7 @@ stages:
8485
timeoutInMinutes: 0
8586
steps:
8687
- template: diabetes_regression-template-get-model-version.yml
88+
8789
- stage: 'Deploy_ACI'
8890
displayName: 'Deploy to ACI'
8991
dependsOn: Trigger_AML_Pipeline

.pipelines/diabetes_regression-ci-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Builds the container image that is used by other pipelines for scoring.
12
pr: none
23
trigger:
34
branches:
@@ -10,7 +11,7 @@ trigger:
1011
- diabetes_regression/scoring/
1112
exclude:
1213
- diabetes_regression/scoring/deployment_config_aci.yml
13-
- diabetes_regression/scoring/deployment_config_aks.yml
14+
- diabetes_regression/scoring/deployment_config_aks.yml
1415

1516
pool:
1617
vmImage: 'ubuntu-latest'
@@ -23,7 +24,6 @@ variables:
2324
value: 'scoreB.py'
2425

2526
steps:
26-
2727
- task: AzureCLI@1
2828
inputs:
2929
azureSubscription: '$(WORKSPACE_SVC_CONNECTION)'
@@ -32,6 +32,6 @@ steps:
3232
inlineScript: |
3333
set -e
3434
export SUBSCRIPTION_ID=$(az account show --query id -o tsv)
35-
python3 -m ml_service.util.create_scoring_image
35+
python3 -m ml_service.util.create_scoring_image
3636
displayName: 'Create Scoring Image'
3737

.pipelines/diabetes_regression-template-get-model-version.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Pipeline template that attempts to get the latest model version and adds it to the environment for subsequent tasks to use.
12
steps:
23
- task: AzureCLI@1
34
inputs:

.pipelines/diabetes_regression-variables.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
# Pipeline template that defines common runtime environment variables.
12
variables:
23
# Azure ML Workspace Variables
34
- name: EXPERIMENT_NAME
45
value: mlopspython
5-
# AML Compute Cluster Config
6+
7+
# AML Compute Cluster Config
68
- name: AML_COMPUTE_CLUSTER_CPU_SKU
79
value: STANDARD_DS2_V2
810
- name: AML_COMPUTE_CLUSTER_NAME
@@ -13,6 +15,7 @@ variables:
1315
value: 4
1416
- name: AML_CLUSTER_PRIORITY
1517
value: lowpriority
18+
1619
# Training Config
1720
- name: BUILD_TRAIN_SCRIPT
1821
value: diabetes_regression_build_train_pipeline.py
@@ -22,6 +25,7 @@ variables:
2225
value: sklearn_regression_model.pkl
2326
- name: MODEL_VERSION
2427
value: "1"
28+
2529
# AML Pipeline Config
2630
- name: TRAINING_PIPELINE_NAME
2731
value: "diabetes-Training-Pipeline"

environment_setup/docker-image-pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Pipeline that builds and pushes the microsoft/mlopspython image.
12
resources:
23
- repo: self
34

environment_setup/iac-create-environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# CI/PR Pipeline that deploys an ARM template to create or update the resources needed by the other pipelines.
12
trigger:
23
branches:
34
include:

environment_setup/iac-remove-environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Pipeline that removes the resources created by the IaC Create Environment pipeline.
12
pr: none
23
trigger: none
34

0 commit comments

Comments
 (0)