Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on: [push, pull_request]

jobs:
drift:
uses: tap/taphouse/.github/workflows/drift-check.yml@v6
uses: tap/taphouse/.github/workflows/drift-check.yml@v7
with:
ref: v6
ref: v7
icon: MuTap

clang-tidy:
Expand Down
8 changes: 7 additions & 1 deletion scripts/tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ echo "== clang-tidy ($tidy) over ${#files[@]} file(s) =="
fail=0
for f in "${files[@]}"; do
out="$("$tidy" -p "$build" "$f" 2>/dev/null || true)"
if printf '%s\n' "$out" | grep -qE "warning:|error:"; then
# Test the captured output in-process, never through a pipe. Under pipefail,
# `printf '%s\n' "$out" | grep -q …` fails whenever grep quits at its first
# match while printf still has more than a pipe buffer to write (SIGPIPE) —
# and the `if` then took the CLEAN branch over real warnings. TapHouse's
# scripts/test-tidy.sh feeds this script multi-megabyte output to prove the
# verdict holds.
if [[ "$out" =~ (warning:|error:) ]]; then
printf '%s\n' "$out"
fail=1
fi
Expand Down
Loading