Skip to content

Commit 35145e0

Browse files
committed
Enhance health check and desktop snapshot tests with detailed debug logging for api_success tracking
1 parent 45bba6f commit 35145e0

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/test-dynamic-method.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,9 @@ jobs:
190190
191191
if [[ "$health_status" == "200" ]]; then
192192
echo "✅ Health check passed on attempt $attempt"
193-
((api_success++))
194-
echo "DEBUG: api_success value is now $api_success"
193+
echo "DEBUG: api_success before: $api_success"
194+
api_success=$((api_success + 1))
195+
echo "DEBUG: api_success after: $api_success"
195196
break
196197
else
197198
echo "⏳ Health check attempt $attempt failed, retrying..."
@@ -206,16 +207,18 @@ jobs:
206207
207208
# Test desktop snapshot with retry
208209
echo "Testing desktop snapshot..."
209-
echo "DEBUG: Starting desktop snapshot test"
210+
echo "DEBUG: Starting desktop snapshot test with set -e state: $-"
211+
echo "DEBUG: Testing if we get here"
210212
for attempt in {1..5}; do
211213
echo "DEBUG: Attempting desktop snapshot $attempt"
212214
snapshot_status=$(curl -f -s -w "%{http_code}" http://localhost:5000/desktop-snapshot -o /dev/null || echo "failed")
213215
echo "DEBUG: Snapshot status code: $snapshot_status"
214216
215217
if [[ "$snapshot_status" == "200" ]]; then
216218
echo "✅ Desktop snapshot passed on attempt $attempt"
217-
((api_success++))
218-
echo "DEBUG: api_success value is now $api_success"
219+
echo "DEBUG: api_success before: $api_success"
220+
api_success=$((api_success + 1))
221+
echo "DEBUG: api_success after: $api_success"
219222
break
220223
else
221224
echo "⏳ Desktop snapshot attempt $attempt failed, retrying..."

0 commit comments

Comments
 (0)