File tree 5 files changed +49
-7
lines changed
5 files changed +49
-7
lines changed Original file line number Diff line number Diff line change 29
29
- name : Setup Test Pre-Requisites
30
30
run : |
31
31
sudo sysctl -w vm.nr_hugepages=2560
32
+ sudo apt-get update
32
33
sudo apt-get install linux-modules-extra-$(uname -r)
33
34
for module in nvme_tcp nbd nvme_rdma; do
34
35
sudo modprobe $module
41
42
run : |
42
43
echo "TEST_START_DATE=$(date +"%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV
43
44
nix-shell --run "./scripts/pytest-tests.sh"
44
- - name : Test Report
45
+ - name : Pytest BDD Report
45
46
if : always()
46
47
uses : pmeier/pytest-results-action@main
47
48
with :
50
51
display-options : a
51
52
fail-on-empty : true
52
53
title : Test results
54
+ - run : |
55
+ if [ -d test/python/reports ]; then
56
+ mkdir -p ci-report
57
+ mv test/python/reports ci-report/python
58
+ fi
59
+ nix-shell --run "./scripts/ci-report.sh"
60
+ if: failure()
61
+ - uses : actions/upload-artifact@v4
62
+ if : failure()
63
+ with :
64
+ name : ci-report-bdd
65
+ path : ./ci-report/ci-report.tar.gz
53
66
- name : Cleanup
54
67
if : always()
55
68
run : nix-shell --run "./scripts/pytest-tests.sh --clean-all-exit"
Original file line number Diff line number Diff line change 13
13
CI : 1
14
14
15
15
jobs :
16
- image-build-test :
16
+ image-build-push :
17
17
runs-on : ubuntu-latest
18
18
steps :
19
19
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 31
31
- name : Setup Test Pre-Requisites
32
32
run : |
33
33
sudo sysctl -w vm.nr_hugepages=3584
34
+ sudo apt-get update
34
35
sudo apt-get install linux-modules-extra-$(uname -r)
35
36
for module in nvme_tcp nbd nvme_rdma; do
36
37
sudo modprobe $module
@@ -49,21 +50,28 @@ jobs:
49
50
run : |
50
51
echo "TEST_START_DATE=$(date +"%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV
51
52
nix-shell --run "./scripts/grpc-test.sh"
52
- mkdir js-reports
53
+ mkdir -p ci-report/js
53
54
for file in *-xunit-report.xml; do
54
- echo "<testsuites>" > "js-reports /$file"
55
- cat $file >> "js-reports /$file"
56
- echo "</testsuites>" >> "js-reports /$file"
55
+ echo "<testsuites>" > "ci-report/js /$file"
56
+ cat $file >> "ci-report/js /$file"
57
+ echo "</testsuites>" >> "ci-report/js /$file"
57
58
done
58
59
- name : Test Report
59
60
if : always()
60
61
uses : pmeier/pytest-results-action@main
61
62
with :
62
- path : ' js-reports /*-xunit-report.xml'
63
+ path : ' ci-report/js /*-xunit-report.xml'
63
64
summary : true
64
65
display-options : a
65
66
fail-on-empty : true
66
67
title : Test results
68
+ - run : nix-shell --run "./scripts/ci-report.sh"
69
+ if : failure()
70
+ - uses : actions/upload-artifact@v4
71
+ if : failure()
72
+ with :
73
+ name : ci-report-int
74
+ path : ./ci-report/ci-report.tar.gz
67
75
- name : Cleanup
68
76
if : always()
69
77
run : nix-shell --run "./scripts/clean-cargo-tests.sh"
Original file line number Diff line number Diff line change @@ -44,3 +44,4 @@ ansible-hosts
44
44
/* -xunit-report.xml
45
45
/rust-toolchain.toml
46
46
/test /python /reports
47
+ /ci-report /
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ SCRIPT_DIR=" $( dirname " $0 " ) "
4
+ export ROOT_DIR=" $SCRIPT_DIR /.."
5
+ SUDO=$( which sudo)
6
+ CI_REPORT_START_DATE=${CI_REPORT_START_DATE:- -3h}
7
+
8
+ set -eu
9
+
10
+ mkdir -p " $ROOT_DIR /ci-report"
11
+ cd " $ROOT_DIR /ci-report"
12
+
13
+ journalctl --since=" $CI_REPORT_START_DATE " -o short-precise > journalctl.txt
14
+ journalctl -k -b0 -o short-precise > dmesg.txt
15
+ lsblk -tfa > lsblk.txt
16
+ $SUDO nvme list -v > nvme.txt
17
+ $SUDO nvme list-subsys -v >> nvme.txt
18
+ cat /proc/meminfo > meminfo.txt
19
+
20
+ find . -type f \( -name " *.txt" -o -name " *.xml" \) -print0 | xargs -0 tar -czvf ci-report.tar.gz
You can’t perform that action at this time.
0 commit comments