Skip to content

Commit c753399

Browse files
increase GPT capacity and enhance quota check logic in deployment scripts
1 parent 915a7e7 commit c753399

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- cron: "0 10,22 * * *" # Runs at 10:00 AM and 10:00 PM GMT
1111

1212
env:
13-
GPT_CAPACITY: 250
13+
GPT_CAPACITY: 300
1414
TEXT_EMBEDDING_CAPACITY: 200
1515

1616
jobs:
@@ -220,7 +220,7 @@ jobs:
220220
echo "Validating web app at: $webapp_url"
221221
222222
# Enhanced health check with retry logic
223-
max_attempts=5
223+
max_attempts=7
224224
attempt=1
225225
success=false
226226

.github/workflows/test-automation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
echo "Opening URL: ${{ env.url }}"
4242
python -m webbrowser "${{ env.url }}"
4343
44-
- name: Sleep for 30 seconds
45-
run: sleep 30s
44+
- name: Sleep for 20 seconds
45+
run: sleep 20s
4646
shell: bash
4747

4848
- name: Run tests(1)

Deployment/checkquota.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ foreach ($REGION in $REGIONS) {
6666

6767
foreach ($MODEL in $MIN_CAPACITY.Keys) {
6868

69-
$MODEL_INFO = $QUOTA_INFO | Where-Object { $_.Name -eq $MODEL }
69+
$MODEL_INFO = $QUOTA_INFO | Where-Object { $_.Name.Value -eq $MODEL }
7070

7171
if (-not $MODEL_INFO) {
7272
Write-Host "⚠️ WARNING: No quota information found for model: $MODEL in $REGION. Skipping."
73-
continue
73+
$INSUFFICIENT_QUOTA = $true
74+
break
7475
}
7576

7677
$CURRENT_VALUE = [int]$MODEL_INFO.CurrentValue

0 commit comments

Comments
 (0)