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
7 changed files
with
60 additions
and
3 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: 90 | ||
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" | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: /var/tmp/*.log | ||
cleanup: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Restore clean VM | ||
run: | | ||
cd .. | ||
vagrant halt | ||
- name: Stop md devices | ||
run: sudo mdadm -Ss | ||
- name: Clean logs | ||
run: rm -rf /var/tmp/*.log |
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
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
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 @@ | ||
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