ci: implement quota check in CI Pipeline to ensure resource availability in supported region #76
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request introduces a new quota check mechanism to the deployment pipeline and adjusts the deployment region configuration based on the quota availability. The most important changes include adding a quota check step, sending notifications on quota failure, and updating the deployment region dynamically.
Quota Check Mechanism:
.github/workflows/deploy.yml: Added a new step to run a quota check script and set a flag if the quota is insufficient.deploy/scripts/checkquota.sh: Introduced a new script to check Azure regions for sufficient quota for specific models and set the deployment region accordingly.Notification and Failure Handling:
.github/workflows/deploy.yml: Added steps to send a notification if the quota check fails and to fail the pipeline if the quota is insufficient.Deployment Region Configuration:
.github/workflows/deploy.yml: Updated the resource group creation and deployment steps to use the dynamically set deployment region. [1] [2]Does this introduce a breaking change?
No
How to Test
What to Check
Verify that the following are valid
Other Information