Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
fe83495
refactor notification subject
Vamshi-Microsoft Mar 16, 2026
ca95dff
Minor fixes on e2e test
Vamshi-Microsoft Mar 16, 2026
483f098
fix: update email subject formatting in notification messages
Vamshi-Microsoft Mar 17, 2026
0703365
fix: update email subject formatting in notification messages
Vamshi-Microsoft Mar 17, 2026
468887a
Merge branch 'main' into psl-update-notification
Vamshi-Microsoft Mar 17, 2026
95962cd
fix: update Docker image tag for main and default branches
Vamshi-Microsoft Mar 17, 2026
4a17136
refactor: remove input validation step from notification job
Vamshi-Microsoft Mar 17, 2026
31aa051
Potential fix for pull request finding
Vamshi-Microsoft Mar 17, 2026
3b3f172
fix: update GPT_MIN_CAPACITY and enhance notification email formatting
Vamshi-Microsoft Mar 17, 2026
117ad84
Merge branch 'psl-update-notification' of https://github.com/microsof…
Vamshi-Microsoft Mar 17, 2026
70b06a6
Refactor configuration
Vamshi-Microsoft Mar 17, 2026
74a2f4e
fix: enhance cleanup status messaging for better clarity
Vamshi-Microsoft Mar 17, 2026
b7387bb
fix: update condition for Existing URL Success Notification to includ…
Vamshi-Microsoft Mar 18, 2026
792928a
fix: update notification subjects for clarity and consistency
Vamshi-Microsoft Mar 20, 2026
07d21cb
fix: implement retry logic for data upload and agent creation scripts
Vamshi-Microsoft Mar 20, 2026
c98c56b
Minor fix
Vamshi-Microsoft Mar 20, 2026
617c7ce
Merge pull request #139 from microsoft/psl-update-notification
Roopan-Microsoft Mar 20, 2026
98f63d0
fix: update email subjects to include status icons
Vamshi-Microsoft Mar 24, 2026
5b3e780
Merge pull request #149 from microsoft/psl-refactor-email
Roopan-Microsoft Mar 24, 2026
fe17ab2
Update RBAC role name in Deployment Guide
Thanusree-Microsoft Mar 26, 2026
c69aac1
docs: Update RBAC role name in Deployment Guide
Avijit-Microsoft Mar 27, 2026
fa11fcf
Merge pull request #156 from microsoft/dev
Roopan-Microsoft Mar 30, 2026
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
37 changes: 18 additions & 19 deletions .github/workflows/deploy-orchestrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,25 @@ jobs:
TEST_SUITE: ${{ inputs.trigger_type == 'workflow_dispatch' && inputs.run_e2e_tests || 'GoldenPath-Testing' }}
secrets: inherit

send-notification:
if: "!cancelled()"
cleanup-deployment:
if: "always() && needs.deploy.outputs.RESOURCE_GROUP_NAME != '' && inputs.existing_webapp_url == '' && (inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources)"
needs: [docker-build, deploy, e2e-test]
uses: ./.github/workflows/job-cleanup-deployment.yml
with:
runner_os: ${{ inputs.runner_os }}
trigger_type: ${{ inputs.trigger_type }}
cleanup_resources: ${{ inputs.cleanup_resources }}
existing_webapp_url: ${{ inputs.existing_webapp_url }}
RESOURCE_GROUP_NAME: ${{ needs.deploy.outputs.RESOURCE_GROUP_NAME }}
AZURE_LOCATION: ${{ needs.deploy.outputs.AZURE_LOCATION }}
AZURE_ENV_OPENAI_LOCATION: ${{ needs.deploy.outputs.AZURE_ENV_OPENAI_LOCATION }}
ENV_NAME: ${{ needs.deploy.outputs.ENV_NAME }}
IMAGE_TAG: ${{ needs.deploy.outputs.IMAGE_TAG }}
secrets: inherit

send-notification:
if: "!cancelled()"
needs: [docker-build, deploy, e2e-test, cleanup-deployment]
uses: ./.github/workflows/job-send-notification.yml
with:
trigger_type: ${{ inputs.trigger_type }}
Expand All @@ -120,21 +135,5 @@ jobs:
QUOTA_FAILED: ${{ needs.deploy.outputs.QUOTA_FAILED }}
TEST_SUCCESS: ${{ needs.e2e-test.outputs.TEST_SUCCESS }}
TEST_REPORT_URL: ${{ needs.e2e-test.outputs.TEST_REPORT_URL }}
secrets: inherit

cleanup-deployment:
if: "always() && needs.deploy.outputs.RESOURCE_GROUP_NAME != '' && inputs.existing_webapp_url == '' && (inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources)"
needs: [docker-build, deploy, e2e-test]

uses: ./.github/workflows/job-cleanup-deployment.yml
with:
runner_os: ${{ inputs.runner_os }}
trigger_type: ${{ inputs.trigger_type }}
cleanup_resources: ${{ inputs.cleanup_resources }}
existing_webapp_url: ${{ inputs.existing_webapp_url }}
RESOURCE_GROUP_NAME: ${{ needs.deploy.outputs.RESOURCE_GROUP_NAME }}
AZURE_LOCATION: ${{ needs.deploy.outputs.AZURE_LOCATION }}
AZURE_ENV_OPENAI_LOCATION: ${{ needs.deploy.outputs.AZURE_ENV_OPENAI_LOCATION }}
ENV_NAME: ${{ needs.deploy.outputs.ENV_NAME }}
IMAGE_TAG: ${{ needs.deploy.outputs.IMAGE_TAG }}
cleanup_result: ${{ needs.cleanup-deployment.result }}
secrets: inherit
46 changes: 27 additions & 19 deletions .github/workflows/job-deploy-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ jobs:

# Set additional parameters
azd env set AZURE_SUBSCRIPTION_ID="${{ secrets.AZURE_SUBSCRIPTION_ID }}"
azd env set AZURE_ENV_AI_SERVICE_LOCATION="$INPUT_AZURE_ENV_OPENAI_LOCATION"
azd env set AZURE_ENV_OPENAI_LOCATION="$INPUT_AZURE_ENV_OPENAI_LOCATION"
azd env set AZURE_LOCATION="$INPUT_AZURE_LOCATION"
azd env set AZURE_RESOURCE_GROUP="$INPUT_RESOURCE_GROUP_NAME"
azd env set AZURE_ENV_IMAGETAG="$INPUT_IMAGE_TAG"
Expand Down Expand Up @@ -409,15 +409,19 @@ jobs:
# Navigate to workspace root
cd $GITHUB_WORKSPACE

# Run the data upload script (it will pull parameters from azd env and install its own requirements)
bash ./infra/scripts/data_scripts/run_upload_data_scripts.sh

if [[ $? -eq 0 ]]; then
echo "✅ Data upload completed successfully"
else
echo "❌ Data upload failed"
exit 1
fi
MAX_RETRIES=3
RETRY_DELAY=30
for attempt in $(seq 1 $MAX_RETRIES); do
echo "🔄 Attempt $attempt of $MAX_RETRIES..."
bash ./infra/scripts/data_scripts/run_upload_data_scripts.sh && break
if [[ $attempt -eq $MAX_RETRIES ]]; then
echo "❌ Data upload failed after $MAX_RETRIES attempts"
exit 1
fi
echo "⚠️ Attempt $attempt failed. Retrying in ${RETRY_DELAY}s..."
sleep $RETRY_DELAY
done
echo "✅ Data upload completed successfully"
- name: Run Agent Creation Scripts
shell: bash
run: |
Expand All @@ -426,15 +430,19 @@ jobs:
# Navigate to workspace root
cd $GITHUB_WORKSPACE

# Run the agent creation script (it will pull parameters from azd env and install its own requirements)
bash ./infra/scripts/agent_scripts/run_create_agents_scripts.sh

if [[ $? -eq 0 ]]; then
echo "✅ Agent creation completed successfully"
else
echo "❌ Agent creation failed"
exit 1
fi
MAX_RETRIES=3
RETRY_DELAY=30
for attempt in $(seq 1 $MAX_RETRIES); do
echo "🔄 Attempt $attempt of $MAX_RETRIES..."
bash ./infra/scripts/agent_scripts/run_create_agents_scripts.sh && break
if [[ $attempt -eq $MAX_RETRIES ]]; then
echo "❌ Agent creation failed after $MAX_RETRIES attempts"
exit 1
fi
echo "⚠️ Attempt $attempt failed. Retrying in ${RETRY_DELAY}s..."
sleep $RETRY_DELAY
done
echo "✅ Agent creation completed successfully"

- name: Wait for Data Propagation
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job-deploy-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ jobs:

# Set additional parameters
azd env set AZURE_SUBSCRIPTION_ID="${{ secrets.AZURE_SUBSCRIPTION_ID }}"
azd env set AZURE_ENV_AI_SERVICE_LOCATION="$env:INPUT_AZURE_ENV_OPENAI_LOCATION"
azd env set AZURE_ENV_OPENAI_LOCATION="$env:INPUT_AZURE_ENV_OPENAI_LOCATION"
azd env set AZURE_LOCATION="$env:INPUT_AZURE_LOCATION"
azd env set AZURE_RESOURCE_GROUP="$env:INPUT_RESOURCE_GROUP_NAME"
azd env set AZURE_ENV_IMAGETAG="$env:INPUT_IMAGE_TAG"
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/job-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ on:
value: ${{ jobs.azure-setup.outputs.QUOTA_FAILED }}

env:
GPT_MIN_CAPACITY: 150
GPT_MIN_CAPACITY: 50
BRANCH_NAME: ${{ github.event.workflow_run.head_branch || github.head_ref || github.ref_name }}
WAF_ENABLED: ${{ inputs.trigger_type == 'workflow_dispatch' && (inputs.waf_enabled || false) || false }}
EXP: ${{ inputs.trigger_type == 'workflow_dispatch' && (inputs.EXP || false) || false }}
CLEANUP_RESOURCES: ${{ inputs.trigger_type != 'workflow_dispatch' || inputs.cleanup_resources }}
# RUN_E2E_TESTS: ${{ inputs.trigger_type == 'workflow_dispatch' && (inputs.run_e2e_tests || 'GoldenPath-Testing') || 'GoldenPath-Testing' }}
RUN_E2E_TESTS: ${{ inputs.trigger_type == 'workflow_dispatch' && (inputs.run_e2e_tests || 'GoldenPath-Testing') || 'GoldenPath-Testing' }}
BUILD_DOCKER_IMAGE: ${{ inputs.trigger_type == 'workflow_dispatch' && (inputs.build_docker_image || false) || false }}

jobs:
Expand All @@ -121,7 +121,7 @@ jobs:
INPUT_EXP: ${{ inputs.EXP }}
INPUT_WAF_ENABLED: ${{ inputs.waf_enabled }}
INPUT_CLEANUP_RESOURCES: ${{ inputs.cleanup_resources }}
# INPUT_RUN_E2E_TESTS: ${{ inputs.run_e2e_tests }}
INPUT_RUN_E2E_TESTS: ${{ inputs.run_e2e_tests }}
INPUT_AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID: ${{ inputs.AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID }}
INPUT_AZURE_EXISTING_AI_PROJECT_RESOURCE_ID: ${{ inputs.AZURE_EXISTING_AI_PROJECT_RESOURCE_ID }}
INPUT_DOCKER_IMAGE_TAG: ${{ inputs.docker_image_tag }}
Expand Down Expand Up @@ -176,16 +176,16 @@ jobs:
echo "✅ cleanup_resources: '$INPUT_CLEANUP_RESOURCES' is valid"
fi

# # Validate run_e2e_tests (specific allowed values)
# if [[ -n "$INPUT_RUN_E2E_TESTS" ]]; then
# ALLOWED_VALUES=("None" "GoldenPath-Testing" "Smoke-Testing")
# if [[ ! " ${ALLOWED_VALUES[@]} " =~ " ${INPUT_RUN_E2E_TESTS} " ]]; then
# echo "❌ ERROR: run_e2e_tests '$INPUT_RUN_E2E_TESTS' is invalid. Allowed values: ${ALLOWED_VALUES[*]}"
# VALIDATION_FAILED=true
# else
# echo "✅ run_e2e_tests: '$INPUT_RUN_E2E_TESTS' is valid"
# fi
# fi
# Validate run_e2e_tests (specific allowed values)
if [[ -n "$INPUT_RUN_E2E_TESTS" ]]; then
ALLOWED_VALUES=("None" "GoldenPath-Testing" "Smoke-Testing")
if [[ ! " ${ALLOWED_VALUES[@]} " =~ " ${INPUT_RUN_E2E_TESTS} " ]]; then
echo "❌ ERROR: run_e2e_tests '$INPUT_RUN_E2E_TESTS' is invalid. Allowed values: ${ALLOWED_VALUES[*]}"
VALIDATION_FAILED=true
else
echo "✅ run_e2e_tests: '$INPUT_RUN_E2E_TESTS' is valid"
fi
fi

# Validate AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID (Azure Resource ID format)
if [[ -n "$INPUT_AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID" ]]; then
Expand Down Expand Up @@ -393,14 +393,14 @@ jobs:
echo "Current branch: $BRANCH_NAME"

if [[ "$BRANCH_NAME" == "main" ]]; then
IMAGE_TAG="latest"
IMAGE_TAG="latest_v2"
elif [[ "$BRANCH_NAME" == "dev" ]]; then
IMAGE_TAG="dev"
elif [[ "$BRANCH_NAME" == "demo" ]]; then
IMAGE_TAG="demo"
else
IMAGE_TAG="latest"
echo "Using default for branch '$BRANCH_NAME' - image tag: latest"
IMAGE_TAG="latest_v2"
echo "Using default for branch '$BRANCH_NAME' - image tag: latest_v2"
fi
echo "Using existing Docker image tag: $IMAGE_TAG"
fi
Expand Down
Loading
Loading