@@ -190,8 +190,9 @@ jobs:
190
190
191
191
if [[ "$health_status" == "200" ]]; then
192
192
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"
195
196
break
196
197
else
197
198
echo "⏳ Health check attempt $attempt failed, retrying..."
@@ -206,16 +207,18 @@ jobs:
206
207
207
208
# Test desktop snapshot with retry
208
209
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"
210
212
for attempt in {1..5}; do
211
213
echo "DEBUG: Attempting desktop snapshot $attempt"
212
214
snapshot_status=$(curl -f -s -w "%{http_code}" http://localhost:5000/desktop-snapshot -o /dev/null || echo "failed")
213
215
echo "DEBUG: Snapshot status code: $snapshot_status"
214
216
215
217
if [[ "$snapshot_status" == "200" ]]; then
216
218
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"
219
222
break
220
223
else
221
224
echo "⏳ Desktop snapshot attempt $attempt failed, retrying..."
0 commit comments