Skip to content

Commit 52a9221

Browse files
committed
Fix gh-pages push race condition and increase PIT memory
Add retry loop (3 attempts with backoff) to gh-pages push in all workflows to handle concurrent pushes from parallel CI jobs. Increase PIT minion heap from 2048m to 4096m to prevent RUN_ERROR crashes on GitHub Actions runners. Made-with: Cursor
1 parent 2e16060 commit 52a9221

File tree

6 files changed

+26
-11
lines changed

6 files changed

+26
-11
lines changed

.github/workflows/checkerframework.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,8 @@ jobs:
158158
git add -A
159159
git diff --cached --quiet && exit 0
160160
git commit -m "Update Checker Framework data [${DATE}]"
161-
git pull --rebase origin gh-pages || true
162-
git push origin gh-pages
161+
for i in 1 2 3; do
162+
git pull --rebase origin gh-pages && git push origin gh-pages && break
163+
echo "Push attempt $i failed, retrying in $((i * 5))s..."
164+
sleep $((i * 5))
165+
done

.github/workflows/pit.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,5 +201,8 @@ jobs:
201201
git add -A
202202
git diff --cached --quiet && exit 0
203203
git commit -m "Update PIT mutation data [${DATE}]"
204-
git pull --rebase origin gh-pages || true
205-
git push origin gh-pages
204+
for i in 1 2 3; do
205+
git pull --rebase origin gh-pages && git push origin gh-pages && break
206+
echo "Push attempt $i failed, retrying in $((i * 5))s..."
207+
sleep $((i * 5))
208+
done

.github/workflows/plugin-UT.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,5 +226,8 @@ jobs:
226226
git add -A
227227
git diff --cached --quiet && exit 0
228228
git commit -m "Update plugin coverage data [${DATE}]"
229-
git pull --rebase origin gh-pages || true
230-
git push origin gh-pages
229+
for i in 1 2 3; do
230+
git pull --rebase origin gh-pages && git push origin gh-pages && break
231+
echo "Push attempt $i failed, retrying in $((i * 5))s..."
232+
sleep $((i * 5))
233+
done

.github/workflows/spotbugs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,8 @@ jobs:
169169
git add -A
170170
git diff --cached --quiet && exit 0
171171
git commit -m "Update SpotBugs data [${DATE}]"
172-
git pull --rebase origin gh-pages || true
173-
git push origin gh-pages
172+
for i in 1 2 3; do
173+
git pull --rebase origin gh-pages && git push origin gh-pages && break
174+
echo "Push attempt $i failed, retrying in $((i * 5))s..."
175+
sleep $((i * 5))
176+
done

.github/workflows/vstar-UT.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,5 +223,8 @@ jobs:
223223
git add -A
224224
git diff --cached --quiet && exit 0
225225
git commit -m "Update VStar coverage data [${DATE}]"
226-
git pull --rebase origin gh-pages || true
227-
git push origin gh-pages
226+
for i in 1 2 3; do
227+
git pull --rebase origin gh-pages && git push origin gh-pages && break
228+
echo "Push attempt $i failed, retrying in $((i * 5))s..."
229+
sleep $((i * 5))
230+
done

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@
499499
<pathelement path="${test_build}" />
500500
</path>
501501
<!-- export feature activated to write mutants to file -->
502-
<pitest features="+EXPORT" threads="1" pitClasspath="pitest.classpath" classPath="mutation.path" targetClasses="org.aavso.tools.vstar.*" targetTests="org.aavso.tools.vstar.*" excludedtestclasses="org.aavso.tools.vstar.util.period.dcdft.*,org.aavso.tools.vstar.util.stats.DescStatsTest,org.aavso.tools.vstar.util.stats.anova.*" reportDir="${mutation_coverage_dir}" sourceDir="${src}" outputFormats="XML,HTML" timeoutConst="10000" timeoutFactor="2" jvmArgs="-Xmx2048m" />
502+
<pitest features="+EXPORT" threads="1" pitClasspath="pitest.classpath" classPath="mutation.path" targetClasses="org.aavso.tools.vstar.*" targetTests="org.aavso.tools.vstar.*" excludedtestclasses="org.aavso.tools.vstar.util.period.dcdft.*,org.aavso.tools.vstar.util.stats.DescStatsTest,org.aavso.tools.vstar.util.stats.anova.*" reportDir="${mutation_coverage_dir}" sourceDir="${src}" outputFormats="XML,HTML" timeoutConst="10000" timeoutFactor="2" jvmArgs="-Xmx4096m" />
503503
</target>
504504

505505
<!-- Static analysis targets -->

0 commit comments

Comments
 (0)