Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflows for all endpoints #2203

Merged
merged 21 commits into from
Apr 13, 2023
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b592181
Add workflows for all endpoints
vs-li Apr 11, 2023
6866e9d
Fixed online vs batch endpoint workflow command bug
vs-li Apr 12, 2023
45c1bb0
Testing workflows catting endpoint .yml files
vs-li Apr 12, 2023
a48ebc9
Removed all newly generated non-endpoint related workflows that were …
vs-li Apr 12, 2023
5e1c998
Testing workflows deleting endpoints before creation if exists
vs-li Apr 12, 2023
f5fdda9
Add continue on failure for delete endpoint
vs-li Apr 12, 2023
8cfaebd
Testing replacing endpoint names during action and deleting
vs-li Apr 12, 2023
bdddd24
Testing extra delete section
vs-li Apr 12, 2023
57ea219
Testing -n over -f
vs-li Apr 12, 2023
3c6e0d5
Testing new endpoint names
vs-li Apr 12, 2023
032af2d
Reduced endpoint names to 32 chars max
vs-li Apr 12, 2023
3b3307b
Replaced lowercase endpoint_name with uppercase, added quotes
vs-li Apr 12, 2023
b2112f5
Removed uai create endpoint workflow
vs-li Apr 12, 2023
149ec1d
Added create deployment sections to workflows if exist
vs-li Apr 12, 2023
33d5985
Standardized all usages of conda*.yml to use .yaml ending in cli/endp…
vs-li Apr 12, 2023
67f1d5d
Standardized all usages of conda*.yml to use .yaml ending in cli/endp…
vs-li Apr 12, 2023
b20bd52
Used same modified endpoint name for deployments in workflow
vs-li Apr 12, 2023
e495439
Temporarily removed deployments and endpoints which were failing due …
vs-li Apr 13, 2023
a592910
Removed extra print statement and comment
vs-li Apr 13, 2023
9c3c1c0
Added missing name for deployment
vs-li Apr 13, 2023
a9a4856
Added 1-sai-create-endpoint to ignore list
vs-li Apr 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This code is autogenerated.
# Code is generated by running custom script: python3 readme.py
# Any manual changes to this file may cause incorrect behavior.
# Any manual changes will be overwritten if the code is regenerated.

name: cli-endpoints-batch-deploy-models-custom-outputs-parquet-endpoint
on:
workflow_dispatch:
schedule:
- cron: "18 11/12 * * *"
pull_request:
branches:
- main
paths:
- cli/endpoints/batch/deploy-models/custom-outputs-parquet/**
- infra/**
- .github/workflows/cli-endpoints-batch-deploy-models-custom-outputs-parquet-endpoint.yml
- cli/setup.sh
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v2
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZUREML_CREDENTIALS}}
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
bash setup.sh
working-directory: cli
continue-on-error: true
- name: delete endpoint if existing
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
az ml batch-endpoint delete -n customoutputsparquetendpoint -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
cat endpoints/batch/deploy-models/custom-outputs-parquet/endpoint.yml
az ml batch-endpoint create -n customoutputsparquetendpoint -f endpoints/batch/deploy-models/custom-outputs-parquet/endpoint.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
az ml batch-endpoint delete -n customoutputsparquetendpoint -y
working-directory: cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This code is autogenerated.
# Code is generated by running custom script: python3 readme.py
# Any manual changes to this file may cause incorrect behavior.
# Any manual changes will be overwritten if the code is regenerated.

name: cli-endpoints-batch-deploy-models-heart-classifier-mlflow-endpoint
on:
workflow_dispatch:
schedule:
- cron: "18 11/12 * * *"
pull_request:
branches:
- main
paths:
- cli/endpoints/batch/deploy-models/heart-classifier-mlflow/**
- infra/**
- .github/workflows/cli-endpoints-batch-deploy-models-heart-classifier-mlflow-endpoint.yml
- cli/setup.sh
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v2
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZUREML_CREDENTIALS}}
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
bash setup.sh
working-directory: cli
continue-on-error: true
- name: delete endpoint if existing
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
az ml batch-endpoint delete -n heartclassifiermlflowendpoint -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
cat endpoints/batch/deploy-models/heart-classifier-mlflow/endpoint.yml
az ml batch-endpoint create -n heartclassifiermlflowendpoint -f endpoints/batch/deploy-models/heart-classifier-mlflow/endpoint.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
az ml batch-endpoint delete -n heartclassifiermlflowendpoint -y
working-directory: cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This code is autogenerated.
# Code is generated by running custom script: python3 readme.py
# Any manual changes to this file may cause incorrect behavior.
# Any manual changes will be overwritten if the code is regenerated.

name: cli-endpoints-batch-deploy-models-huggingface-text-summarization-endpoint
on:
workflow_dispatch:
schedule:
- cron: "18 11/12 * * *"
pull_request:
branches:
- main
paths:
- cli/endpoints/batch/deploy-models/huggingface-text-summarization/**
- infra/**
- .github/workflows/cli-endpoints-batch-deploy-models-huggingface-text-summarization-endpoint.yml
- cli/setup.sh
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v2
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZUREML_CREDENTIALS}}
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
bash setup.sh
working-directory: cli
continue-on-error: true
- name: delete endpoint if existing
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
az ml batch-endpoint delete -n facetextsummarizationendpoint -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
cat endpoints/batch/deploy-models/huggingface-text-summarization/endpoint.yml
az ml batch-endpoint create -n facetextsummarizationendpoint -f endpoints/batch/deploy-models/huggingface-text-summarization/endpoint.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
az ml batch-endpoint delete -n facetextsummarizationendpoint -y
working-directory: cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This code is autogenerated.
# Code is generated by running custom script: python3 readme.py
# Any manual changes to this file may cause incorrect behavior.
# Any manual changes will be overwritten if the code is regenerated.

name: cli-endpoints-batch-deploy-models-imagenet-classifier-endpoint
on:
workflow_dispatch:
schedule:
- cron: "18 11/12 * * *"
pull_request:
branches:
- main
paths:
- cli/endpoints/batch/deploy-models/imagenet-classifier/**
- infra/**
- .github/workflows/cli-endpoints-batch-deploy-models-imagenet-classifier-endpoint.yml
- cli/setup.sh
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v2
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZUREML_CREDENTIALS}}
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
bash setup.sh
working-directory: cli
continue-on-error: true
- name: delete endpoint if existing
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
az ml batch-endpoint delete -n elsimagenetclassifierendpoint -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
cat endpoints/batch/deploy-models/imagenet-classifier/endpoint.yml
az ml batch-endpoint create -n elsimagenetclassifierendpoint -f endpoints/batch/deploy-models/imagenet-classifier/endpoint.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
az ml batch-endpoint delete -n elsimagenetclassifierendpoint -y
working-directory: cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This code is autogenerated.
# Code is generated by running custom script: python3 readme.py
# Any manual changes to this file may cause incorrect behavior.
# Any manual changes will be overwritten if the code is regenerated.

name: cli-endpoints-batch-deploy-models-mnist-classifier-endpoint
on:
workflow_dispatch:
schedule:
- cron: "18 11/12 * * *"
pull_request:
branches:
- main
paths:
- cli/endpoints/batch/deploy-models/mnist-classifier/**
- infra/**
- .github/workflows/cli-endpoints-batch-deploy-models-mnist-classifier-endpoint.yml
- cli/setup.sh
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v2
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZUREML_CREDENTIALS}}
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
bash setup.sh
working-directory: cli
continue-on-error: true
- name: delete endpoint if existing
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
az ml batch-endpoint delete -n modelsmnistclassifierendpoint -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
cat endpoints/batch/deploy-models/mnist-classifier/endpoint.yml
az ml batch-endpoint create -n modelsmnistclassifierendpoint -f endpoints/batch/deploy-models/mnist-classifier/endpoint.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
az ml batch-endpoint delete -n modelsmnistclassifierendpoint -y
working-directory: cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This code is autogenerated.
# Code is generated by running custom script: python3 readme.py
# Any manual changes to this file may cause incorrect behavior.
# Any manual changes will be overwritten if the code is regenerated.

name: cli-endpoints-online-custom-container-minimal-multimodel-minimal-multimodel-endpoint
on:
workflow_dispatch:
schedule:
- cron: "8 7/12 * * *"
pull_request:
branches:
- main
paths:
- cli/endpoints/online/custom-container/minimal/multimodel/**
- infra/**
- .github/workflows/cli-endpoints-online-custom-container-minimal-multimodel-minimal-multimodel-endpoint.yml
- cli/setup.sh
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v2
- name: azure login
uses: azure/login@v1
with:
creds: ${{secrets.AZUREML_CREDENTIALS}}
- name: bootstrap resources
run: |
bash bootstrap.sh
working-directory: infra
continue-on-error: false
- name: setup-cli
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
bash setup.sh
working-directory: cli
continue-on-error: true
- name: delete endpoint if existing
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
az ml online-endpoint delete -n odelminimalmultimodelendpoint -y
working-directory: cli
continue-on-error: true
- name: create endpoint
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
cat endpoints/online/custom-container/minimal/multimodel/minimal-multimodel-endpoint.yml
az ml online-endpoint create -n odelminimalmultimodelendpoint -f endpoints/online/custom-container/minimal/multimodel/minimal-multimodel-endpoint.yml
working-directory: cli
- name: cleanup endpoint
run: |
source "${{ github.workspace }}/infra/sdk_helpers.sh";
source "${{ github.workspace }}/infra/init_environment.sh";
az ml online-endpoint delete -n odelminimalmultimodelendpoint -y
working-directory: cli
Loading