Skip to content

Commit

Permalink
CI: Added more waiting time in between retries
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Dec 1, 2020
1 parent 114f1b5 commit a002d3a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 18 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/php-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -143,6 +143,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10

- name: Test Base
run: |
Expand All @@ -153,7 +154,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -162,6 +163,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10


# ------------------------------------------------------------
Expand All @@ -176,7 +178,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -185,6 +187,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10

- name: Test Mods
run: |
Expand All @@ -195,7 +198,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -204,6 +207,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10


# ------------------------------------------------------------
Expand All @@ -218,7 +222,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -227,6 +231,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10

- name: Test Prod
run: |
Expand All @@ -237,7 +242,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -246,6 +251,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10


# ------------------------------------------------------------
Expand All @@ -260,7 +266,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -269,6 +275,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10

- name: Test Work
run: |
Expand All @@ -279,7 +286,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -288,6 +295,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10


# ------------------------------------------------------------
Expand All @@ -314,7 +322,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand Down Expand Up @@ -349,6 +357,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10
# https://help.github.com/en/github/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions#functions
if: github.event.pull_request.base.repo.id == github.event.pull_request.head.repo.id
&& (
Expand Down
27 changes: 18 additions & 9 deletions .github/workflows/php-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -147,6 +147,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10

- name: Test Base
run: |
Expand All @@ -157,7 +158,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -166,6 +167,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10


# ------------------------------------------------------------
Expand All @@ -180,7 +182,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -189,6 +191,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10

- name: Test Mods
run: |
Expand All @@ -199,7 +202,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -208,6 +211,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10


# ------------------------------------------------------------
Expand All @@ -222,7 +226,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -231,6 +235,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10

- name: Test Prod
run: |
Expand All @@ -241,7 +246,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -250,6 +255,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10


# ------------------------------------------------------------
Expand All @@ -264,7 +270,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -273,6 +279,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10

- name: Test Work
run: |
Expand All @@ -283,7 +290,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand All @@ -292,6 +299,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10


# ------------------------------------------------------------
Expand All @@ -318,7 +326,7 @@ jobs:
echo "[SUCC] ${n}/${RETRIES}";
return 0;
fi;
sleep 2;
sleep ${PAUSE};
echo "[FAIL] ${n}/${RETRIES}";
done;
return 1;
Expand Down Expand Up @@ -353,6 +361,7 @@ jobs:
env:
VERSION: ${{ matrix.version }}
RETRIES: 20
PAUSE: 10
# https://help.github.com/en/github/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions#functions
if: github.event.pull_request.base.repo.id == github.event.pull_request.head.repo.id
&& (
Expand Down

0 comments on commit a002d3a

Please sign in to comment.