mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
build-docker.yml: Increase retries for integration tests to 5
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
9c6297d8f6
commit
4fdeaf73de
26
.github/workflows/build-docker.yml
vendored
26
.github/workflows/build-docker.yml
vendored
@ -158,13 +158,13 @@ jobs:
|
||||
[[ "${ARCH?}" == "x86" ]] || { sleep 30; cmd+=(--timeout 300); }
|
||||
|
||||
success=false
|
||||
for attempt in {1..3}
|
||||
for attempt in {1..5}
|
||||
do
|
||||
echo ":: Activation Tests (attempt $attempt/3) ::"
|
||||
echo ":: Activation Tests (attempt $attempt/5) ::"
|
||||
"${cmd[@]}" |& awk "{ print \"${LOG_TEST} \" \$0 }"
|
||||
[[ ${PIPESTATUS[0]} -eq 0 ]] || {
|
||||
tail -n 20 geckodriver.log |& awk "{ print \"${LOG_DIAG} \" \$0 }" || true
|
||||
echo -e "${LOG_CICD} Activation test (attempt $attempt/3) failed!"
|
||||
echo -e "${LOG_CICD} Activation test (attempt $attempt/5) failed!"
|
||||
docker exec nextcloudpi bash /usr/local/bin/ncp-diag |& awk "{ print \"${LOG_DIAG} \" \$0 }" || true
|
||||
cat /proc/sys/fs/binfmt_misc/qemu-aarch64 |& awk "{ print \"${LOG_DIAG} (qemu-aarch64) \" \$0 }" || true
|
||||
cat /proc/sys/fs/binfmt_misc/qemu-arm |& awk "{ print \"${LOG_DIAG} (qemu-arm) \" \$0 }" || true
|
||||
@ -193,14 +193,14 @@ jobs:
|
||||
echo -e "${LOG_DCKR} =========="
|
||||
docker logs -f nextcloudpi |& awk "{ print \"${LOG_DCKR} \" \$0 }" &
|
||||
docker exec nextcloudpi bash -c 'tail -f /var/log/ncp.log' |& awk "{ print \"${LOG_NCP} \" \$0 }" &
|
||||
[[ "${ARCH?}" == "x86" ]] || sleep 30
|
||||
[[ "${ARCH?}" == "x86" ]] || sleep 120
|
||||
|
||||
sleep 20
|
||||
|
||||
success=false
|
||||
for attempt in {1..3}
|
||||
for attempt in {1..5}
|
||||
do
|
||||
echo ":: System Tests (attempt $attempt/3) ::"
|
||||
echo ":: System Tests (attempt $attempt/5) ::"
|
||||
python system_tests.py --no-ping --non-interactive |& awk "{ print \"${LOG_TEST} \" \$0 }"
|
||||
[[ ${PIPESTATUS[0]} -eq 0 ]] || {
|
||||
echo -e "${LOG_CICD} System test (attempt $attempt) failed!"
|
||||
@ -219,7 +219,7 @@ jobs:
|
||||
success=false
|
||||
for attempt in {1..3}
|
||||
do
|
||||
echo ":: Nextcloud Tests (attempt $attempt/3) ::"
|
||||
echo ":: Nextcloud Tests (attempt $attempt/5) ::"
|
||||
python nextcloud_tests.py --no-gui localhost 8443 4443 |& awk "{ print \"${LOG_TEST} \" \$0 }"
|
||||
[[ ${PIPESTATUS[0]} -eq 0 ]] || {
|
||||
tail -n 20 geckodriver.log |& awk "{ print \"${LOG_DIAG} \" \$0 }" || true
|
||||
@ -293,9 +293,9 @@ jobs:
|
||||
[[ "${ARCH?}" == "x86" ]] || cmd+=(--timeout 300)
|
||||
|
||||
success=false
|
||||
for attempt in {1..3}
|
||||
for attempt in {1..5}
|
||||
do
|
||||
echo ":: Activation Tests (attempt $attempt/3) ::"
|
||||
echo ":: Activation Tests (attempt $attempt/5) ::"
|
||||
"${cmd[@]}" |& awk "{ print \"${LOG_TEST} \" \$0 }"
|
||||
[[ ${PIPESTATUS[0]} -eq 0 ]] || {
|
||||
tail -n 20 geckodriver.log >&2 |& awk "{ print \"${LOG_DIAG} \" \$0 }" || true
|
||||
@ -314,9 +314,9 @@ jobs:
|
||||
echo -e "${LOG_CICD} Activation test successful"
|
||||
|
||||
success=false
|
||||
for attempt in {1..3}
|
||||
for attempt in {1..5}
|
||||
do
|
||||
echo ":: System Tests (attempt $attempt/3) ::"
|
||||
echo ":: System Tests (attempt $attempt/5) ::"
|
||||
python system_tests.py --no-ping --non-interactive |& awk "{ print \"${LOG_TEST} \" \$0 }"
|
||||
[[ ${PIPESTATUS[0]} -eq 0 ]] || {
|
||||
echo -e "${LOG_CICD} System test (attempt $attempt) failed!"
|
||||
@ -333,9 +333,9 @@ jobs:
|
||||
echo -e "${LOG_CICD} System test successful"
|
||||
|
||||
success=false
|
||||
for attempt in {1..3}
|
||||
for attempt in {1..5}
|
||||
do
|
||||
echo ":: Nextcloud Tests (attempt $attempt/3) ::"
|
||||
echo ":: Nextcloud Tests (attempt $attempt/5) ::"
|
||||
python nextcloud_tests.py --no-gui localhost 8443 4443 |& awk "{ print \"${LOG_TEST} \" \$0 }"
|
||||
[[ ${PIPESTATUS[0]} -eq 0 ]] || {
|
||||
tail -n 20 geckodriver.log >&2 |& awk "{ print \"${LOG_DIAG} \" \$0 }" || true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user