-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test script which generates a report tar with useful information such as journalctl logs and nvme devices. Upload this tar on github actions. Signed-off-by: Tiago Castro <[email protected]>
- Loading branch information
1 parent
59b1d88
commit ce32acd
Showing
4 changed files
with
47 additions
and
7 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
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 |
---|---|---|
|
@@ -43,3 +43,4 @@ ansible-hosts | |
/package.json | ||
/rust-toolchain.toml | ||
/test/python/reports | ||
/ci-report/ |
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,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPT_DIR="$(dirname "$0")" | ||
export ROOT_DIR="$SCRIPT_DIR/.." | ||
SUDO=$(which sudo) | ||
CI_REPORT_START_DATE=${CI_REPORT_START_DATE:--3h} | ||
|
||
set -eu | ||
|
||
mkdir -p "$ROOT_DIR/ci-report" | ||
cd "$ROOT_DIR/ci-report" | ||
|
||
journalctl --since="$CI_REPORT_START_DATE" -o short-precise > journalctl.txt | ||
journalctl -k -b0 -o short-precise > dmesg.txt | ||
lsblk -tfa > lsblk.txt | ||
$SUDO nvme list -v > nvme.txt | ||
$SUDO nvme list-subsys -v >> nvme.txt | ||
cat /proc/meminfo > meminfo.txt | ||
|
||
find . -type f \( -name "*.txt" -o -name "*.xml" \) -print0 | xargs -0 tar -czvf ci-report.tar.gz |