Skip to content

Commit 8223ce8

Browse files
[PATCH] add diognostics to checkmake wrapper (- WIP #488 -)
Changes in file .github/tools/checkmake.bash: * added fail-case diognostics to checkmake wrapper tool
1 parent d7be67e commit 8223ce8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/tools/checkmake.bash

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,14 @@ process_checkmake_output() {
155155
local file="$1"
156156
local emsg="$2"
157157

158-
if ! output=$(checkmake "${file}" 2>&1); then
159-
printf "%s\n" "::error::checkmake failed!"
158+
# PATCH for GHI reactive-firewall-org/multicast#488
159+
local random_id="${RANDOM}${RANDOM}${RANDOM}${RANDOM}${RANDOM}"
160+
local chmk_elog="checkmake_${random_id}_error_log.log"
161+
162+
if ! output=$(checkmake "${file}" 2>"${chmk_elog}"); then
163+
printf "%s\n" "::error title='failure'::checkmake failed!"
164+
printf "%s '%s'\n" "::error title='stderr'::checkmake error:" \
165+
$(head -n 5000 "${chmk_elog}") >&2;
160166

161167
printf "%s\n" "${output}" | \
162168
sed -e 's/ /:/g' | \

0 commit comments

Comments
 (0)