File tree 4 files changed +46
-6
lines changed
4 files changed +46
-6
lines changed Original file line number Diff line number Diff line change 41
41
run : |
42
42
echo "TEST_START_DATE=$(date +"%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV
43
43
nix-shell --run "./scripts/pytest-tests.sh"
44
- - name : Test Report
44
+ - name : Pytest BDD Report
45
45
if : always()
46
46
uses : pmeier/pytest-results-action@main
47
47
with :
50
50
display-options : a
51
51
fail-on-empty : true
52
52
title : Test results
53
+ - run : |
54
+ if [ -d test/python/reports ]; then
55
+ mkdir -p ci-report
56
+ mv test/python/reports ci-report/python
57
+ fi
58
+ nix-shell --run "./scripts/ci-report.sh"
59
+ if: failure()
60
+ - uses : actions/upload-artifact@v4
61
+ if : failure()
62
+ with :
63
+ name : ci-report-bdd
64
+ path : ./ci-report/ci-report.tar.gz
53
65
- name : Cleanup
54
66
if : always()
55
67
run : nix-shell --run "./scripts/pytest-tests.sh --clean-all-exit"
Original file line number Diff line number Diff line change @@ -49,21 +49,28 @@ jobs:
49
49
run : |
50
50
echo "TEST_START_DATE=$(date +"%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV
51
51
nix-shell --run "./scripts/grpc-test.sh"
52
- mkdir js-reports
52
+ mkdir -p ci-report/js
53
53
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"
54
+ echo "<testsuites>" > "ci-report/js /$file"
55
+ cat $file >> "ci-report/js /$file"
56
+ echo "</testsuites>" >> "ci-report/js /$file"
57
57
done
58
58
- name : Test Report
59
59
if : always()
60
60
uses : pmeier/pytest-results-action@main
61
61
with :
62
- path : ' js-reports /*-xunit-report.xml'
62
+ path : ' ci-report/js /*-xunit-report.xml'
63
63
summary : true
64
64
display-options : a
65
65
fail-on-empty : true
66
66
title : Test results
67
+ - run : nix-shell --run "./scripts/ci-report.sh"
68
+ if : failure()
69
+ - uses : actions/upload-artifact@v4
70
+ if : failure()
71
+ with :
72
+ name : ci-report-int
73
+ path : ./ci-report/ci-report.tar.gz
67
74
- name : Cleanup
68
75
if : always()
69
76
run : nix-shell --run "./scripts/clean-cargo-tests.sh"
Original file line number Diff line number Diff line change @@ -43,3 +43,4 @@ ansible-hosts
43
43
/package.json
44
44
/rust-toolchain.toml
45
45
/test /python /reports
46
+ /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