Skip to content

Commit f4790ab

Browse files
committed
Stabilize package workflows with centralized orchestration and reliable result publishing
1 parent 4a20710 commit f4790ab

File tree

829 files changed

+8665
-4435
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

829 files changed

+8665
-4435
lines changed

.github/workflows/test-0xffff.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,14 @@ jobs:
358358
if ! git diff --staged --quiet; then
359359
git commit -m "Update 0xffff test results [skip ci]"
360360
361-
# Pull with rebase and push, retry up to 5 times
362-
for i in {1..5}; do
361+
# Pull with rebase and push, retry up to 20 times
362+
PUSH_SUCCESS=false
363+
for i in {1..20}; do
363364
if git pull --rebase origin ${{ github.ref_name }}; then
364365
# Rebase succeeded, try to push
365366
if git push; then
366367
echo "Successfully pushed test results"
368+
PUSH_SUCCESS=true
367369
break
368370
fi
369371
else
@@ -379,9 +381,14 @@ jobs:
379381
fi
380382
381383
# Wait before retry
382-
echo "Retry attempt $i of 5..."
383-
sleep $((i * 2 + (RANDOM % 5)))
384+
echo "Retry attempt $i of 20..."
385+
sleep $(( (i % 5 + 1) * 2 + (RANDOM % 3) ))
384386
done
387+
388+
if [ "$PUSH_SUCCESS" = false ]; then
389+
echo "❌ Error: Failed to push test results after 20 attempts."
390+
exit 1
391+
fi
385392
else
386393
echo "No changes to commit"
387394
fi

.github/workflows/test-7-zip.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,14 @@ jobs:
365365
if ! git diff --staged --quiet; then
366366
git commit -m "Update 7-zip test results [skip ci]"
367367
368-
# Pull with rebase and push, retry up to 5 times
369-
for i in {1..5}; do
368+
# Pull with rebase and push, retry up to 20 times
369+
PUSH_SUCCESS=false
370+
for i in {1..20}; do
370371
if git pull --rebase origin ${{ github.ref_name }}; then
371372
# Rebase succeeded, try to push
372373
if git push; then
373374
echo "Successfully pushed test results"
375+
PUSH_SUCCESS=true
374376
break
375377
fi
376378
else
@@ -386,9 +388,14 @@ jobs:
386388
fi
387389
388390
# Wait before retry
389-
echo "Retry attempt $i of 5..."
390-
sleep $((i * 2 + (RANDOM % 5)))
391+
echo "Retry attempt $i of 20..."
392+
sleep $(( (i % 5 + 1) * 2 + (RANDOM % 3) ))
391393
done
394+
395+
if [ "$PUSH_SUCCESS" = false ]; then
396+
echo "❌ Error: Failed to push test results after 20 attempts."
397+
exit 1
398+
fi
392399
else
393400
echo "No changes to commit"
394401
fi

.github/workflows/test-AvxToNeon.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,11 @@ jobs:
321321
322322
if ! git diff --staged --quiet; then
323323
git commit -m "Update AvxToNeon test results [skip ci]"
324-
for i in {1..5}; do
324+
for i in {1..20}; do
325325
if git pull --rebase origin ${{ github.ref_name }}; then
326326
if git push; then
327327
echo "Successfully pushed test results"
328+
PUSH_SUCCESS=true
328329
break
329330
fi
330331
else
@@ -333,8 +334,13 @@ jobs:
333334
git add data/test-results/AvxToNeon.json
334335
git rebase --continue || true
335336
fi
336-
sleep $((i * 2 + (RANDOM % 5)))
337+
sleep $(( (i % 5 + 1) * 2 + (RANDOM % 3) ))
337338
done
339+
340+
if [ "$PUSH_SUCCESS" = false ]; then
341+
echo "❌ Error: Failed to push test results after 20 attempts."
342+
exit 1
343+
fi
338344
else
339345
echo "No changes to commit"
340346
fi

.github/workflows/test-CP2K.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,14 @@ jobs:
363363
if ! git diff --staged --quiet; then
364364
git commit -m "Update cp2k test results [skip ci]"
365365
366-
# Pull with rebase and push, retry up to 5 times
367-
for i in {1..5}; do
366+
# Pull with rebase and push, retry up to 20 times
367+
PUSH_SUCCESS=false
368+
for i in {1..20}; do
368369
if git pull --rebase origin ${{ github.ref_name }}; then
369370
# Rebase succeeded, try to push
370371
if git push; then
371372
echo "Successfully pushed test results"
373+
PUSH_SUCCESS=true
372374
break
373375
fi
374376
else
@@ -384,9 +386,14 @@ jobs:
384386
fi
385387
386388
# Wait before retry
387-
echo "Retry attempt $i of 5..."
388-
sleep $((i * 2 + (RANDOM % 5)))
389+
echo "Retry attempt $i of 20..."
390+
sleep $(( (i % 5 + 1) * 2 + (RANDOM % 3) ))
389391
done
392+
393+
if [ "$PUSH_SUCCESS" = false ]; then
394+
echo "❌ Error: Failed to push test results after 20 attempts."
395+
exit 1
396+
fi
390397
else
391398
echo "No changes to commit"
392399
fi

.github/workflows/test-Crystal-Language.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,14 @@ jobs:
379379
if ! git diff --staged --quiet; then
380380
git commit -m "Update crystal-language test results [skip ci]"
381381
382-
# Pull with rebase and push, retry up to 5 times
383-
for i in {1..5}; do
382+
# Pull with rebase and push, retry up to 20 times
383+
PUSH_SUCCESS=false
384+
for i in {1..20}; do
384385
if git pull --rebase origin ${{ github.ref_name }}; then
385386
# Rebase succeeded, try to push
386387
if git push; then
387388
echo "Successfully pushed test results"
389+
PUSH_SUCCESS=true
388390
break
389391
fi
390392
else
@@ -400,9 +402,14 @@ jobs:
400402
fi
401403
402404
# Wait before retry
403-
echo "Retry attempt $i of 5..."
404-
sleep $((i * 2 + (RANDOM % 5)))
405+
echo "Retry attempt $i of 20..."
406+
sleep $(( (i % 5 + 1) * 2 + (RANDOM % 3) ))
405407
done
408+
409+
if [ "$PUSH_SUCCESS" = false ]; then
410+
echo "❌ Error: Failed to push test results after 20 attempts."
411+
exit 1
412+
fi
406413
else
407414
echo "No changes to commit"
408415
fi

.github/workflows/test-DPDK.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,14 @@ jobs:
269269
if ! git diff --staged --quiet; then
270270
git commit -m "Update dpdk test results [skip ci]"
271271
272-
# Pull with rebase and push, retry up to 5 times
273-
for i in {1..5}; do
272+
# Pull with rebase and push, retry up to 20 times
273+
PUSH_SUCCESS=false
274+
for i in {1..20}; do
274275
if git pull --rebase origin ${{ github.ref_name }}; then
275276
# Rebase succeeded, try to push
276277
if git push; then
277278
echo "Successfully pushed test results"
279+
PUSH_SUCCESS=true
278280
break
279281
fi
280282
else
@@ -290,9 +292,14 @@ jobs:
290292
fi
291293
292294
# Wait before retry
293-
echo "Retry attempt $i of 5..."
294-
sleep $((i * 2 + (RANDOM % 5)))
295+
echo "Retry attempt $i of 20..."
296+
sleep $(( (i % 5 + 1) * 2 + (RANDOM % 3) ))
295297
done
298+
299+
if [ "$PUSH_SUCCESS" = false ]; then
300+
echo "❌ Error: Failed to push test results after 20 attempts."
301+
exit 1
302+
fi
296303
else
297304
echo "No changes to commit"
298305
fi

.github/workflows/test-Datree.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,12 +301,14 @@ jobs:
301301
if ! git diff --staged --quiet; then
302302
git commit -m "Update datree test results [skip ci]"
303303
304-
# Pull with rebase and push, retry up to 5 times
305-
for i in {1..5}; do
304+
# Pull with rebase and push, retry up to 20 times
305+
PUSH_SUCCESS=false
306+
for i in {1..20}; do
306307
if git pull --rebase origin ${{ github.ref_name }}; then
307308
# Rebase succeeded, try to push
308309
if git push; then
309310
echo "Successfully pushed test results"
311+
PUSH_SUCCESS=true
310312
break
311313
fi
312314
else
@@ -322,9 +324,14 @@ jobs:
322324
fi
323325
324326
# Wait before retry
325-
echo "Retry attempt $i of 5..."
326-
sleep $((i * 2 + (RANDOM % 5)))
327+
echo "Retry attempt $i of 20..."
328+
sleep $(( (i % 5 + 1) * 2 + (RANDOM % 3) ))
327329
done
330+
331+
if [ "$PUSH_SUCCESS" = false ]; then
332+
echo "❌ Error: Failed to push test results after 20 attempts."
333+
exit 1
334+
fi
328335
else
329336
echo "No changes to commit"
330337
fi

.github/workflows/test-Dgraph-Labs.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,14 @@ jobs:
300300
if ! git diff --staged --quiet; then
301301
git commit -m "Update dgraph-labs test results [skip ci]"
302302
303-
# Pull with rebase and push, retry up to 5 times
304-
for i in {1..5}; do
303+
# Pull with rebase and push, retry up to 20 times
304+
PUSH_SUCCESS=false
305+
for i in {1..20}; do
305306
if git pull --rebase origin ${{ github.ref_name }}; then
306307
# Rebase succeeded, try to push
307308
if git push; then
308309
echo "Successfully pushed test results"
310+
PUSH_SUCCESS=true
309311
break
310312
fi
311313
else
@@ -321,9 +323,14 @@ jobs:
321323
fi
322324
323325
# Wait before retry
324-
echo "Retry attempt $i of 5..."
325-
sleep $((i * 2 + (RANDOM % 5)))
326+
echo "Retry attempt $i of 20..."
327+
sleep $(( (i % 5 + 1) * 2 + (RANDOM % 3) ))
326328
done
329+
330+
if [ "$PUSH_SUCCESS" = false ]; then
331+
echo "❌ Error: Failed to push test results after 20 attempts."
332+
exit 1
333+
fi
327334
else
328335
echo "No changes to commit"
329336
fi

.github/workflows/test-DroneCli.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,14 @@ jobs:
308308
if ! git diff --staged --quiet; then
309309
git commit -m "Update drone test results [skip ci]"
310310
311-
# Pull with rebase and push, retry up to 5 times
312-
for i in {1..5}; do
311+
# Pull with rebase and push, retry up to 20 times
312+
PUSH_SUCCESS=false
313+
for i in {1..20}; do
313314
if git pull --rebase origin ${{ github.ref_name }}; then
314315
# Rebase succeeded, try to push
315316
if git push; then
316317
echo "Successfully pushed test results"
318+
PUSH_SUCCESS=true
317319
break
318320
fi
319321
else
@@ -329,9 +331,14 @@ jobs:
329331
fi
330332
331333
# Wait before retry
332-
echo "Retry attempt $i of 5..."
333-
sleep $((i * 2 + (RANDOM % 5)))
334+
echo "Retry attempt $i of 20..."
335+
sleep $(( (i % 5 + 1) * 2 + (RANDOM % 3) ))
334336
done
337+
338+
if [ "$PUSH_SUCCESS" = false ]; then
339+
echo "❌ Error: Failed to push test results after 20 attempts."
340+
exit 1
341+
fi
335342
else
336343
echo "No changes to commit"
337344
fi

.github/workflows/test-Flume.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,14 @@ jobs:
334334
if ! git diff --staged --quiet; then
335335
git commit -m "Update flume test results [skip ci]"
336336
337-
# Pull with rebase and push, retry up to 5 times
338-
for i in {1..5}; do
337+
# Pull with rebase and push, retry up to 20 times
338+
PUSH_SUCCESS=false
339+
for i in {1..20}; do
339340
if git pull --rebase origin ${{ github.ref_name }}; then
340341
# Rebase succeeded, try to push
341342
if git push; then
342343
echo "Successfully pushed test results"
344+
PUSH_SUCCESS=true
343345
break
344346
fi
345347
else
@@ -355,9 +357,14 @@ jobs:
355357
fi
356358
357359
# Wait before retry
358-
echo "Retry attempt $i of 5..."
359-
sleep $((i * 2 + (RANDOM % 5)))
360+
echo "Retry attempt $i of 20..."
361+
sleep $(( (i % 5 + 1) * 2 + (RANDOM % 3) ))
360362
done
363+
364+
if [ "$PUSH_SUCCESS" = false ]; then
365+
echo "❌ Error: Failed to push test results after 20 attempts."
366+
exit 1
367+
fi
361368
else
362369
echo "No changes to commit"
363370
fi

0 commit comments

Comments
 (0)