Skip to content

Conversation

@arseny114
Copy link
Contributor

@arseny114 arseny114 commented Jan 27, 2026

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_query_state

@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.99%. Comparing base (9093955) to head (acb8b0c).

Additional details and impacted files
@@             Coverage Diff             @@
##           master      #74       +/-   ##
===========================================
+ Coverage   71.25%   84.99%   +13.73%     
===========================================
  Files           8       10        +2     
  Lines         668      893      +225     
===========================================
+ Hits          476      759      +283     
+ Misses        192      134       -58     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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_query_state
@arseny114 arseny114 changed the title [PGPRO-16769] Fix Travis CI [PGPRO-16769] Fix Travis CI failures Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant