mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
Add check to Lockbud CI job (#6898)
This commit is contained in:
17
scripts/ci/check-lockbud.sh
Executable file
17
scripts/ci/check-lockbud.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Run lockbud to check for deadlocks and capture the output
|
||||
output=$(cargo lockbud -k deadlock -b -l tokio_util 2>&1)
|
||||
|
||||
# Check if lockbud returned any issues
|
||||
if echo "$output" | grep -q '"bug_kind"'; then
|
||||
# Print the JSON payload
|
||||
echo "Lockbud detected issues:"
|
||||
echo "$output"
|
||||
|
||||
# Exit with a non-zero status to indicate an error
|
||||
exit 1
|
||||
else
|
||||
echo "No issues detected by Lockbud."
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user