Skip to content

Commit 38c6a9e

Browse files
author
devizer
committed
Actions on VM: Retry for tests, In-process, Framework 4.8? All the VM images, Combine always, 1 worker, 2GB RAM, 4 CPUs, Host Ubuntu 20.04, Upload VM Artifact, Tests on VM with timeout, more vms
1 parent 4cfca68 commit 38c6a9e

1 file changed

Lines changed: 20 additions & 13 deletions

File tree

.github/workflows/CpuUsage-Tests-Matrix.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,26 @@ jobs:
8080
try-and-retry docker pull "devizervlad/crossplatform-pipeline:${{ matrix.os }}"
8181
8282
- name: Run Tests
83-
run: |
84-
set -ue; set -o pipefail
85-
cat << 'EOF' > "$HOME/Artifacts/letsrock.sh"
86-
Say "STARTING TESTS";
87-
free -m;
88-
nunit3-console --inprocess --workers=1 Universe.CpuUsage.Tests.dll | tee /job/PRECISION.LOG;
89-
Say "TESTS COMPLETED"
90-
EOF
91-
cat "$HOME/Artifacts/letsrock.sh"
92-
timeout 666 docker run --privileged -e VM_MEM=1000M -e VM_CPUS=2 -e QEMU_TCG_ACCELERATOR=tcg --name VM --hostname VM --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined -t \
93-
-v "$HOME/Artifacts":/job \
94-
"devizervlad/crossplatform-pipeline:${{ matrix.os }}" \
95-
bash -e letsrock.sh
83+
uses: nick-fields/retry@v3
84+
with:
85+
timeout_minutes: 12
86+
max_attempts: 3
87+
shell: powershell
88+
retry_wait_seconds: 1
89+
on_retry_command: 'docker rm -f VM || true'
90+
command: |
91+
set -ue; set -o pipefail
92+
cat << 'EOF' > "$HOME/Artifacts/lets-rock.sh"
93+
Say "STARTING TESTS";
94+
free -m;
95+
nunit3-console --inprocess --workers=1 Universe.CpuUsage.Tests.dll | tee /job/PRECISION.LOG;
96+
Say "TESTS COMPLETED"
97+
EOF
98+
cat "$HOME/Artifacts/lets-rock.sh"
99+
timeout 666 docker run --privileged -e VM_MEM=1000M -e VM_CPUS=2 -e QEMU_TCG_ACCELERATOR=tcg --name VM --hostname VM --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined -t \
100+
-v "$HOME/Artifacts":/job \
101+
"devizervlad/crossplatform-pipeline:${{ matrix.os }}" \
102+
bash -e lets-rock.sh
96103
97104
- name: PREPARE Artifact
98105
run: |

0 commit comments

Comments
 (0)