-
Notifications
You must be signed in to change notification settings - Fork 112
[AIMIGRAPHX-364] Upgrade ASAN and libstdc++ tests to Clang 17 #4466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR upgrades the Clang version from 14 to 17 for ASAN (AddressSanitizer) and libstdc++ debug tests to resolve intermittent segfault issues that have been fixed in Clang 17. The change avoids Clang 20 (shipped with ROCm 7.0) due to ODR (One Definition Rule) violation false positives that cannot be easily disabled.
Key Changes:
- Updated compiler paths from
/usr/bin/clang++-14to/usr/bin/clang++-17in CI/CD pipeline - Modified Dockerfile to install Clang 17 using the official LLVM installation script
- Removed the
clang-14package from the dependency list
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| Jenkinsfile | Updated compiler paths to clang++-17 for both the "Clang ASAN" and "Clang libstdc++ Debug" test stages |
| Dockerfile | Added Clang 17 installation via llvm.sh script and removed clang-14 from the apt package list |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4466 +/- ##
========================================
Coverage 92.21% 92.21%
========================================
Files 561 561
Lines 27218 27228 +10
========================================
+ Hits 25097 25107 +10
Misses 2121 2121 🚀 New features to boost your workflow:
|
Motivation
Clang ASAN tests currently fail intermittently due to a segfault issue that has been fixed in Clang 17 and onward.
Technical Details
Upgrades to Clang 17. Clang 20 that comes with ROCm 7.0 cannot be used for ASAN tests as it results in tests failing due to an ODR violation. There did not appear to be a way to properly disable the check without disabling all global variable checking through ASAN.
Changelog Category