ci: implement quota check in CI Pipeline to ensure resource availability in supported region #1680
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 quota check mechanism to the CI pipeline and updates the related scripts and workflow files. The most important changes include adding a script to check Azure quotas, modifying the CI workflow to run this script, and handling quota check failures.
Quota check implementation:
.github/workflows/ci.yml
: Added steps to run the quota check script, send notifications on quota failure, and fail the pipeline if the quota check fails.scripts/checkquota.sh
: Added a new script to check Azure quotas for specific regions and models, ensuring that the required capacities are available before proceeding with the deployment.Workflow environment variable update:
.github/workflows/ci.yml
: Updated theAZURE_LOCATION
environment variable to use the value set by the quota check script.Does this introduce a breaking change?
No
How to Test
What to Check
Verify that the following are valid
Other Information