Skip to content

Commit 7dba092

Browse files
author
Arseny Kositsyn
committed
[PGPRO-16769] Fix Travis CI failures
Two issues were causing Travis CI failures: 1. Alpine Linux removed clang15 from its package repositories in recent versions. Fixed by removing clang15 from Dockerfile dependencies. 2. scan-build with clang-21 fails when analyzing PostgreSQL extensions built via PGXS. The issue occurs because: - scan-build sets CLANG environment variable to the analyzer path - PGXS resets CLANG to an empty string - ccc-analyzer v21 does not check the CLANG variable for an empty string - This causes ccc-analyzer to attempt executing an empty command string Fixed by explicitly passing CLANG as a make command-line argument. Tags: pg_pathman
1 parent 9acc373 commit 7dba092

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apk add --no-cache \
99
coreutils linux-headers \
1010
make musl-dev gcc bison flex \
1111
zlib-dev libedit-dev \
12-
pkgconf icu-dev clang clang15 clang-analyzer;
12+
pkgconf icu-dev clang clang-analyzer;
1313

1414
# Need this for Travis CI to pass
1515
RUN if [ "${PG_VERSION}" == "13" ] ; then apk add --no-cache clang19; fi

run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ if [ "$LEVEL" = "scan-build" ] || \
108108
[ "$LEVEL" = "nightmare" ]; then
109109

110110
# perform static analyzis
111-
scan-build --status-bugs make USE_PGXS=1 || status=$?
111+
scan-build --status-bugs make USE_PGXS=1 CLANG=clang || status=$?
112112

113113
# something's wrong, exit now!
114114
if [ $status -ne 0 ]; then exit 1; fi

0 commit comments

Comments
 (0)