Skip to content

Commit f257a0b

Browse files
committed
Force prepackage to run
1 parent 061eec6 commit f257a0b

3 files changed

Lines changed: 9 additions & 18 deletions

File tree

.github/workflows/azure-dev.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}
3232
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
3333
# Project-specific variables
34-
AZURE_RESOURCE_GROUP: ${{ vars.AZURE_RESOURCE_GROUP }}
3534
AZURE_SEARCH_SERVICE_LOCATION: ${{ vars.AZURE_SEARCH_SERVICE_LOCATION }}
3635
AZURE_SEARCH_SERVICE: ${{ vars.AZURE_SEARCH_SERVICE }}
3736
AZURE_SEARCH_INDEX: ${{ vars.AZURE_SEARCH_INDEX }}
@@ -41,11 +40,8 @@ jobs:
4140
AZURE_STORAGE_ACCOUNT_LOCATION: ${{ vars.AZURE_STORAGE_ACCOUNT_LOCATION }}
4241
AZURE_STORAGE_ACCOUNT_RESOURCE_GROUP: ${{ vars.AZURE_STORAGE_ACCOUNT_RESOURCE_GROUP }}
4342
AZURE_STORAGE_ACCOUNT: ${{ vars.AZURE_STORAGE_ACCOUNT }}
44-
AZURE_APP_SERVICE_PLAN: ${{ vars.AZURE_APP_SERVICE_PLAN }}
45-
AZURE_API_SERVICE: ${{ vars.AZURE_API_SERVICE }}
4643
AZURE_API_SERVICE_LOCATION: ${{ vars.AZURE_API_SERVICE_LOCATION }}
4744
AZURE_API_SERVICE_RESOURCE_GROUP: ${{ vars.AZURE_API_SERVICE_RESOURCE_GROUP }}
48-
AZURE_FRONTEND_SERVICE_NAME: ${{ vars.AZURE_FRONTEND_SERVICE_NAME }}
4945
AZURE_LOG_ANALYTICS: ${{ vars.AZURE_LOG_ANALYTICS }}
5046
AZURE_APPINSIGHTS: ${{ vars.AZURE_APPINSIGHTS }}
5147
AZURE_COMPUTER_VISION_ACCOUNT: ${{ vars.AZURE_COMPUTER_VISION_ACCOUNT }}

infra/main.parameters.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,12 @@
4141
"storageAccountName": {
4242
"value": "${AZURE_STORAGE_ACCOUNT}"
4343
},
44-
"appServicePlanName": {
45-
"value": "${AZURE_APP_SERVICE_PLAN}"
46-
},
47-
"apiServiceName": {
48-
"value": "${AZURE_API_SERVICE}"
49-
},
5044
"apiServiceLocation": {
5145
"value": "${AZURE_API_SERVICE_LOCATION}"
5246
},
5347
"apiServiceResourceGroupName": {
5448
"value": "${AZURE_API_SERVICE_RESOURCE_GROUP}"
5549
},
56-
"frontendServiceName": {
57-
"value": "${AZURE_FRONTEND_SERVICE_NAME}"
58-
},
5950
"logAnalyticsName": {
6051
"value": "${AZURE_LOG_ANALYTICS}"
6152
},

scripts/smoke_test.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,23 @@ def wait_for_url(base_url: str, max_retries: int = 30, delay: int = 10) -> None:
1919
"""Wait for the URL to be reachable with retries."""
2020
url = base_url.rstrip("/") + "/"
2121
print(f"Waiting for {url} to be reachable...")
22-
22+
2323
for attempt in range(1, max_retries + 1):
2424
try:
2525
with urllib.request.urlopen(url, timeout=10) as response:
2626
if response.status == 200:
2727
print(f"Service is reachable (status: {response.status})")
2828
return
2929
except (urllib.error.URLError, urllib.error.HTTPError, TimeoutError) as e:
30-
print(f"Attempt {attempt}/{max_retries}: Not ready yet ({e}), waiting {delay} seconds...")
30+
print(
31+
f"Attempt {attempt}/{max_retries}: Not ready yet ({e}), waiting {delay} seconds..."
32+
)
3133
if attempt < max_retries:
3234
time.sleep(delay)
33-
34-
raise Exception(f"Service at {url} did not become reachable after {max_retries} attempts")
35+
36+
raise Exception(
37+
f"Service at {url} did not become reachable after {max_retries} attempts"
38+
)
3539

3640

3741
def run_test(pw: Playwright, base_url: str) -> None:
@@ -71,7 +75,7 @@ def main() -> int:
7175
try:
7276
# First wait for the URL to be reachable
7377
wait_for_url(base_url)
74-
78+
7579
# Then run the UI test
7680
with sync_playwright() as pw:
7781
run_test(pw, base_url)

0 commit comments

Comments
 (0)