Skip to content

Commit 71729d4

Browse files
updated the waf and nonwaf pipeline
1 parent bd42066 commit 71729d4

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

.github/workflows/deploy-waf.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
schedule:
88
- cron: "0 11,23 * * *" # Runs at 11:00 AM and 11:00 PM GMT
9+
workflow_dispatch:
910

1011
jobs:
1112
deploy:
@@ -21,7 +22,9 @@ jobs:
2122
export AZURE_TENANT_ID=${{ secrets.AZURE_TENANT_ID }}
2223
export AZURE_CLIENT_SECRET=${{ secrets.AZURE_CLIENT_SECRET }}
2324
export AZURE_SUBSCRIPTION_ID="${{ secrets.AZURE_SUBSCRIPTION_ID }}"
24-
export GPT_MIN_CAPACITY="150"
25+
export GPT_MIN_CAPACITY="1"
26+
export O4_MINI_MIN_CAPACITY="1"
27+
export GPT41_MINI_MIN_CAPACITY="1"
2528
export AZURE_REGIONS="${{ vars.AZURE_REGIONS }}"
2629
2730
chmod +x infra/scripts/checkquota.sh
@@ -116,7 +119,9 @@ jobs:
116119
solutionName=${{ env.SOLUTION_PREFIX }} \
117120
location="${{ env.AZURE_LOCATION }}" \
118121
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
119-
gptModelCapacity=5 \
122+
gptModelCapacity=${{ env.GPT_MIN_CAPACITY }} \
123+
gpt4_1ModelCapacity=${{ env.GPT41_MINI_MIN_CAPACITY }} \
124+
gptReasoningModelCapacity=${{ env.O4_MINI_MIN_CAPACITY }} \
120125
enableTelemetry=true \
121126
enableMonitoring=true \
122127
enablePrivateNetworking=true \

.github/workflows/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ on:
1313
- cron: "0 11,23 * * *" # Runs at 11:00 AM and 11:00 PM GMT
1414
workflow_dispatch: #Allow manual triggering
1515
env:
16-
GPT_MIN_CAPACITY: 1
16+
GPT_MIN_CAPACITY: 150
17+
O4_MINI_MIN_CAPACITY: 50
18+
GPT41_MINI_MIN_CAPACITY: 50
1719
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
1820

1921
jobs:
@@ -36,7 +38,9 @@ jobs:
3638
export AZURE_TENANT_ID=${{ secrets.AZURE_TENANT_ID }}
3739
export AZURE_CLIENT_SECRET=${{ secrets.AZURE_CLIENT_SECRET }}
3840
export AZURE_SUBSCRIPTION_ID="${{ secrets.AZURE_SUBSCRIPTION_ID }}"
39-
export GPT_MIN_CAPACITY="1"
41+
export GPT_MIN_CAPACITY="150"
42+
export O4_MINI_MIN_CAPACITY="50"
43+
export GPT41_MINI_MIN_CAPACITY="50"
4044
export AZURE_REGIONS="${{ vars.AZURE_REGIONS }}"
4145
4246
chmod +x infra/scripts/checkquota.sh

infra/scripts/checkquota.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ IFS=', ' read -ra REGIONS <<< "$AZURE_REGIONS"
55

66
SUBSCRIPTION_ID="${AZURE_SUBSCRIPTION_ID}"
77
GPT_MIN_CAPACITY="${GPT_MIN_CAPACITY}"
8+
O4_MINI_MIN_CAPACITY="${O4_MINI_MIN_CAPACITY}"
9+
GPT41_MINI_MIN_CAPACITY="${GPT41_MINI_MIN_CAPACITY}"
810
AZURE_CLIENT_ID="${AZURE_CLIENT_ID}"
911
AZURE_TENANT_ID="${AZURE_TENANT_ID}"
1012
AZURE_CLIENT_SECRET="${AZURE_CLIENT_SECRET}"
@@ -17,8 +19,10 @@ if ! az login --service-principal -u "$AZURE_CLIENT_ID" -p "$AZURE_CLIENT_SECRET
1719
fi
1820

1921
echo "🔄 Validating required environment variables..."
20-
if [[ -z "$SUBSCRIPTION_ID" || -z "$GPT_MIN_CAPACITY" || -z "$REGIONS" ]]; then
22+
if [[ -z "$SUBSCRIPTION_ID" || -z "$REGIONS" ]]; then
2123
echo "❌ ERROR: Missing required environment variables."
24+
echo "Required: AZURE_SUBSCRIPTION_ID, AZURE_REGIONS"
25+
echo "Optional: O4_MINI_MIN_CAPACITY (default: 50), GPT41_MINI_MIN_CAPACITY (default: 50)"
2226
exit 1
2327
fi
2428

@@ -31,9 +35,9 @@ echo "✅ Azure subscription set successfully."
3135

3236
# Define models and their minimum required capacities
3337
declare -A MIN_CAPACITY=(
34-
["OpenAI.GlobalStandard.o4-mini"]=50
35-
["OpenAI.GlobalStandard.gpt4.1"]=150
36-
["OpenAI.GlobalStandard.gpt4.1-mini"]=50
38+
["OpenAI.GlobalStandard.o4-mini"]="${O4_MINI_MIN_CAPACITY}"
39+
["OpenAI.GlobalStandard.gpt4.1"]="${GPT_MIN_CAPACITY}"
40+
["OpenAI.GlobalStandard.gpt4.1-mini"]="${GPT41_MINI_MIN_CAPACITY}"
3741
)
3842

3943
VALID_REGION=""

infra/scripts/upload_team_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def check_team_exists(backend_url, team_id, user_principal_id):
4040
backend_url = sys.argv[1]
4141
directory_path = sys.argv[2]
4242
user_principal_id = sys.argv[3] if len(sys.argv) > 3 and sys.argv[3].strip() != "" else "00000000-0000-0000-0000-000000000000"
43-
print("User principal from py : " + user_principal_id)
4443

4544
# Convert to absolute path if provided as relative
4645
directory_path = os.path.abspath(directory_path)

0 commit comments

Comments
 (0)