Skip to content

Conversation

@Priyanka-Microsoft
Copy link
Contributor

Purpose

  • ...
    This pull request introduces a new quota check mechanism in the deployment workflow to ensure sufficient resources are available before proceeding with the deployment. The most important changes include adding a quota check script, updating the deployment region based on quota availability, and handling quota check failures by sending notifications and failing the pipeline if necessary.

Quota check implementation:

Deployment region handling:

Quota check script:

Does this introduce a breaking change?

No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

…gion and prevent failures due to insufficient quota.
Copilot AI review requested due to automatic review settings February 25, 2025 07:17
@Priyanka-Microsoft Priyanka-Microsoft changed the title ci: implement quota check in CI Pipeline to ensure resource availability in supported region ci: implement quota check in CI Pipeline to ensure resource availability in supported region for RA Feb 25, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment on lines +30 to +32
if ! ResearchAssistant/Deployment/scripts/checkquota.sh; then
# If quota check fails due to insufficient quota, set the flag
if grep -q "No region with sufficient quota found" ResearchAssistant/Deployment/scripts/checkquota.sh; then
Copy link

Copilot AI Feb 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using 'grep' on the script file to detect a quota check failure may not work as intended. Consider capturing and checking the output of the script execution instead.

Suggested change
if ! ResearchAssistant/Deployment/scripts/checkquota.sh; then
# If quota check fails due to insufficient quota, set the flag
if grep -q "No region with sufficient quota found" ResearchAssistant/Deployment/scripts/checkquota.sh; then
QUOTA_OUTPUT=$(ResearchAssistant/Deployment/scripts/checkquota.sh)
if [ $? -ne 0 ]; then
# If quota check fails due to insufficient quota, set the flag
if echo "$QUOTA_OUTPUT" | grep -q "No region with sufficient quota found"; then

Copilot uses AI. Check for mistakes.
@Roopan-Microsoft Roopan-Microsoft merged commit 549ad7c into main Feb 25, 2025
8 checks passed
@Roopan-Microsoft Roopan-Microsoft deleted the task/ci-pipeline-quota-check-research-assistant branch April 14, 2025 06:25
@github-actions
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants