-
Notifications
You must be signed in to change notification settings - Fork 544
CXX-2793 Add scan-build tasks to EVG config #1126
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
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.
LGTM with removal of unused file.
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.
LGTM!
.evergreen/compile-scan-build.sh
Outdated
scan_build_directories+=( | ||
# Prefer toolchain scan-build if available. | ||
"/opt/mongodbtoolchain/v4/bin" | ||
"/opt/mongodbtoolchain/v3/bin" | ||
|
||
# Use system scan-build otherwise. | ||
"/usr/bin" | ||
) |
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.
Recommend consulting $PATH
for other locations.
scan_build_directories+=( | |
# Prefer toolchain scan-build if available. | |
"/opt/mongodbtoolchain/v4/bin" | |
"/opt/mongodbtoolchain/v3/bin" | |
# Use system scan-build otherwise. | |
"/usr/bin" | |
) | |
IFS=: read -ra sys_path <<< "$PATH" | |
scan_build_directories+=( | |
# Prefer toolchain scan-build if available. | |
"/opt/mongodbtoolchain/v4/bin" | |
"/opt/mongodbtoolchain/v3/bin" | |
# Use system scan-build otherwise. | |
"${sys_path[@]}" | |
) |
* Add scan-build tasks to EVG config * Cleanup misc. EVG post command output * Add Coverity check to release instructions
Resolves CXX-2793. Verified by this patch.
This PR adds five new scan-build tasks to the EVG config. The scan-build tasks mostly mirror those for the C Driver, but are parameterized on polyfill library selection and the C++ standard: three for each C++11 polyfill library configuration, one for C++14 with the bsoncxx implementation, and one for C++17 with the standard library. The mnmlstc/core and Boost tasks are expected to be removed as part of CXX-2797.
The release instructions are updated with a new entry instructing the maintainer to check Coverity for new, unexpected, or high severity issues. This step, as well as the regular preceeding "ensure tests are passing" check now that scan-build tasks are included, should be enough to satisfy the requirements for CXX-2793.
As a drive-by improvement, some EVG post commands were tweaked to avoid noisy error messages (empty tar archive, cd failure, etc.).