Skip to content

Commit 74366d0

Browse files
committed
Improve logging
1 parent 76fbf99 commit 74366d0

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/cpp-ci-serial-programs-base.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,21 +149,18 @@ jobs:
149149
EOF
150150
151151
files=$(jq -r '.[].file' SerialPrograms/bin/compile_commands.json)
152-
echo "$files" | xargs -r --max-args=50 clang-query -p SerialPrograms/bin/ -f query.txt > output.txt 2> error_log.txt || true
152+
echo "$files" | xargs --max-args=50 clang-query -p SerialPrograms/bin/ -f query.txt > clang-query-output.txt 2> clang-query-error.txt || true
153153
154-
if [ -s error_log.txt ] && grep -qi "error:" error_log.txt; then
155-
echo "::error title=Clang-Query Failed::The tool itself encountered an error. Check the logs below."
156-
cat error_log.txt
154+
if [ -s clang-query-error.txt ]; then
155+
echo "::error title=The tool itself encountered an error. Check clang-query-output.txt below."
157156
exit 1
158157
fi
159158
160159
FOUND_FORBIDDEN=0
161-
162160
if grep -q "Binding for 'path_error'" output.txt; then
163161
echo "::error title=std::filesystem::path created from std::string. More information https://discord.com/channels/695809740428673034/1462210406616531259/1462567541825339635"
164162
FOUND_FORBIDDEN=1
165163
fi
166-
167164
if grep -q "Binding for 'view_error'" output.txt; then
168165
echo "::error title=ImageViewRGB32 created from VideoSnapshot&& that is stored. It is a dangling pointer as nothing hold the data anymore"
169166
FOUND_FORBIDDEN=1

0 commit comments

Comments
 (0)