Skip to content

Commit

Permalink
CI: use self-hosted runner to run tests
Browse files Browse the repository at this point in the history
Use prepared VM machine in GitHub actions to run mdadm tests on it.

Signed-off-by: Kinga Stefaniuk <[email protected]>
  • Loading branch information
ktanska committed Sep 13, 2024
1 parent 9b8933b commit bdf4ace
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/tools/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/bash

cd mdadm
sudo make -j$(nproc) && sudo make install
sudo ./test cleanup
sudo ./test setup
sudo ./test --skip-broken --skip-always-broken --no-error --disable-integrity --disable-multipath --disable-linear --keep-going --dev=loop
sudo ./test cleanup
18 changes: 18 additions & 0 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,21 @@ jobs:
run: mv .github/tools/.checkpatch.conf .
- name: Run checkpatch review
uses: webispy/checkpatch-action@v9
upstream_tests:
runs-on: self-hosted
timeout-minutes: 45
name: upstream tests
steps:
- uses: actions/checkout@v4
- name: 'Run on VM'
run: |
vagrant snapshot restore clean_vm_v1
echo "FYI vagrant restore command finished with exit code: $?"
sleep 2
vagrant status
vagrant up
sleep 2
vagrant ssh -c "cd mdadm && .github/tools/run_tests.sh"
# - uses: actions/download-artifact@v4
# with:
# name: /var/tmp/*.log

0 comments on commit bdf4ace

Please sign in to comment.