Skip to content

Commit 1e513c6

Browse files
Priyanka-MicrosoftHarmanpreet-MicrosoftHarmanpreet Kaur
authored
chore: Upgrade Poetry to Latest Version in setupEnv.sh (#1957)
Co-authored-by: Harmanpreet-Microsoft <[email protected]> Co-authored-by: Harmanpreet Kaur <[email protected]>
1 parent 4d9411a commit 1e513c6

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.devcontainer/setupEnv.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
pip install --upgrade pip
44

5-
pip install poetry
5+
pip install --upgrade poetry
66

77
# https://pypi.org/project/poetry-plugin-export/
8-
pip install poetry-plugin-export
8+
pip install --upgrade poetry-plugin-export
99

1010
poetry env use python3.11
1111

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
7474
EMAIL_BODY=$(cat <<EOF
7575
{
76+
"subject": "CWYD Pipeline - Quota Check Failed",
7677
"body": "<p>Dear Team,</p><p>The quota check has failed, and the pipeline cannot proceed.</p><p><strong>Build URL:</strong> ${RUN_URL}</p><p>Please take necessary action.</p><p>Best regards,<br>Your Automation Team</p>"
7778
}
7879
EOF
@@ -88,8 +89,8 @@ jobs:
8889

8990
- name: Set Deployment Region
9091
run: |
91-
echo "Selected Region: $VALID_REGION"
92-
echo "AZURE_LOCATION=$VALID_REGION" >> $GITHUB_ENV
92+
echo "Selected Region: $VALID_REGION"
93+
echo "AZURE_LOCATION=$VALID_REGION" >> $GITHUB_ENV
9394
9495
- name: Generate Resource Group Name
9596
id: generate_rg_name
@@ -175,13 +176,13 @@ jobs:
175176
176177
# Try to extract URLs from deployment logs as backup
177178
echo "=== Extracting URLs from deployment logs ==="
178-
grep -oE "https://[a-zA-Z0-9.-]*\.azurewebsites\.net/" deploy_output.log | head -2 | tee extracted_urls.txt || echo "No URLs found in logs"
179+
grep -oE "https://[a-zA-Z0-9.-]*\.azurewebsites\.net/" deploy_output.log | sort | uniq | head -2 | tee extracted_urls.txt || echo "No URLs found in logs"
179180
180181
# Check if we have admin URL in logs
181-
grep -E "Done: Deploying service adminweb" -A 2 deploy_output.log | grep -oE "https://[a-zA-Z0-9.-]*\.azurewebsites\.net/" > log_admin_url.txt || echo "" > log_admin_url.txt
182+
grep -E "Done: Deploying service adminweb" -A 2 deploy_output.log | grep -oE "https://[a-zA-Z0-9.-]*\.azurewebsites\.net/" | head -1 > log_admin_url.txt || echo "" > log_admin_url.txt
182183
183184
# Check if we have web URL in logs
184-
grep -E "Done: Deploying service web" -A 2 deploy_output.log | grep -oE "https://[a-zA-Z0-9.-]*\.azurewebsites\.net/" > log_web_url.txt || echo "" > log_web_url.txt
185+
grep -E "Done: Deploying service web" -A 2 deploy_output.log | grep -oE "https://[a-zA-Z0-9.-]*\.azurewebsites\.net/" | head -1 > log_web_url.txt || echo "" > log_web_url.txt
185186
186187
echo "URLs from logs:"
187188
echo "Admin URL from logs: $(cat log_admin_url.txt)"
@@ -217,8 +218,8 @@ jobs:
217218
run: |
218219
# Method 1: Check files created by Makefile
219220
echo "=== Method 1: Files from Makefile ==="
220-
if [ -f "web_url.txt" ]; then
221-
WEB_URL=$(cat web_url.txt | tr -d '\n\r' | xargs)
221+
if [ -f "frontend_url.txt" ]; then
222+
WEB_URL=$(cat frontend_url.txt | tr -d '\n\r' | xargs)
222223
echo "Web URL from makefile: '$WEB_URL'"
223224
fi
224225
@@ -248,7 +249,7 @@ jobs:
248249
# Set outputs
249250
if [ -n "$WEB_URL" ] && [ "$WEB_URL" != "null" ] && [ "$WEB_URL" != "" ]; then
250251
echo "web_url=$WEB_URL" >> $GITHUB_OUTPUT
251-
echo "WEB_WEBSITE_URL=$WEB_URL" >> $GITHUB_ENV
252+
echo "FRONTEND_WEBSITE_URL=$WEB_URL" >> $GITHUB_ENV
252253
echo "✅ Web URL: $WEB_URL"
253254
else
254255
echo "web_url=" >> $GITHUB_OUTPUT
@@ -272,17 +273,15 @@ jobs:
272273
273274
- name: Display URLs
274275
run: |
275-
echo "Web URL: ${{ env.WEB_WEBSITE_URL }}"
276+
echo "Web URL: ${{ env.FRONTEND_WEBSITE_URL }}"
276277
echo "Admin URL: ${{ env.ADMIN_WEBSITE_URL }}"
277-
echo "web_url=$WEB_URL" >> $GITHUB_OUTPUT
278-
echo "admin_url=$ADMIN_URL" >> $GITHUB_OUTPUT
279278
280279
- name: Disable Authentication with Script
281280
run: |
282281
chmod +x scripts/disable_auth.sh
283282
./scripts/disable_auth.sh
284283
env:
285-
FRONTEND_WEBSITE_URL: ${{ env.WEB_WEBSITE_URL }}
284+
FRONTEND_WEBSITE_URL: ${{ env.FRONTEND_WEBSITE_URL }}
286285
ADMIN_WEBSITE_URL: ${{ env.ADMIN_WEBSITE_URL }}
287286
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
288287
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
@@ -380,8 +379,8 @@ jobs:
380379
echo "DEPLOYMENT_SUCCESS=true" >> $GITHUB_OUTPUT
381380
382381
383-
- name: Wait for 5 minutes for propagation
384-
run: sleep 300
382+
- name: Wait for 25 minutes for propagation
383+
run: sleep 1500
385384

386385

387386
e2e-test:
@@ -434,6 +433,7 @@ jobs:
434433
RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
435434
EMAIL_BODY=$(cat <<EOF
436435
{
436+
"subject": "CWYD Pipeline - Deployment Failed",
437437
"body": "<p>Dear Team,</p><p>The CWYD Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Build URL:</strong> ${RUN_URL}</p><p>Please investigate.</p><p>Best regards,<br>Your Automation Team</p>"
438438
}
439439
EOF

tests/e2e-test/tests/test_chat_with_your_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def validate_admin_page_loaded(page, admin_page, home_page):
2323

2424
def validate_files_are_uploaded(page, admin_page, home_page):
2525
admin_page.click_delete_data_tab()
26-
page.wait_for_timeout(5000)
26+
page.wait_for_timeout(20000)
2727
checkbox_count = page.locator(admin_page.DELETE_CHECK_BOXES).count()
2828
assert checkbox_count >= 1, "No files available to delete"
2929

0 commit comments

Comments
 (0)