forked from md-raid-utilities/mdadm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: use self-hosted runner to run tests
Use prepared VM machine in GitHub actions to run mdadm tests on it. Signed-off-by: Kinga Stefaniuk <[email protected]>
- Loading branch information
Showing
5 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/bash | ||
|
||
sudo make clean | ||
sudo make -j$(nproc) | ||
sudo make install | ||
sudo mdadm -Ss | ||
sudo ./test setup | ||
sudo ./test --skip-broken --no-error --disable-integrity --disable-multipath --disable-linear --keep-going | ||
sudo ./test cleanup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: review | ||
on: | ||
pull_request: | ||
paths: | ||
- '*.c' | ||
- '*.h' | ||
jobs: | ||
upstream_tests: | ||
if: ${{ github.repository == 'md-raid-utilities/mdadm' }} | ||
runs-on: self-hosted | ||
timeout-minutes: 120 | ||
name: upstream tests | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
- name: 'Prepare machine' | ||
run: | | ||
cd .. | ||
vagrant halt | ||
vagrant status | ||
vagrant up | ||
- name: 'Run tests' | ||
run: | | ||
cd .. | ||
vagrant ssh -c "cd /home/vagrant/host/mdadm && .github/tools/run_mdadm_tests.sh" | ||
- name: "Save artifacts" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: "Logs from failed tests" | ||
path: /var/tmp/fail*.log | ||
cleanup: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Restore clean VM | ||
run: | | ||
cd .. | ||
vagrant ssh -c "sudo mdadm -Ss" | ||
vagrant halt | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
always fails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
always fails | ||
|
||
hangs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
always fails |