Skip to content

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

Merged
merged 8 commits into from
May 8, 2024

Conversation

eramongodb
Copy link
Contributor

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.).

@eramongodb eramongodb requested a review from kevinAlbs April 24, 2024 17:54
@eramongodb eramongodb self-assigned this Apr 24, 2024
Copy link
Collaborator

@kevinAlbs kevinAlbs left a 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.

Copy link
Contributor

@vector-of-bool vector-of-bool left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines 21 to 28
scan_build_directories+=(
# Prefer toolchain scan-build if available.
"/opt/mongodbtoolchain/v4/bin"
"/opt/mongodbtoolchain/v3/bin"

# Use system scan-build otherwise.
"/usr/bin"
)
Copy link
Contributor

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.

Suggested change
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[@]}"
)

@eramongodb eramongodb merged commit b3f4d7d into mongodb:master May 8, 2024
@eramongodb eramongodb deleted the cxx-2792 branch May 8, 2024 16:21
eramongodb added a commit that referenced this pull request Jun 24, 2024
* Add scan-build tasks to EVG config

* Cleanup misc. EVG post command output

* Add Coverity check to release instructions
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.

3 participants