I am facing an issue while doing coverity scan in eclipse ..
I am scanning for this project for the first time.
It's giving me an error message
[ERROR] No snapshot in stream "XXXXXXXXXX" has analysis summaries
and a Code Version Date on or before 2023-04-10T15:37:00+05:30.
Review the snapshot list in Coverity Connect and enable the
"Has Analysis Summaries" column. It may be necessary to
enable Desktop Analysis in the stream configuration and then
commit a new snapshot
.
Tried with new configurations,
Tried by cloning the project agaian.
Coverity Desktop Analysis requires that a full scan of the entire code base has been previously done and the results committed to the Coverity Connect server as a snapshot (analysis results instance). This is needed so the desktop analysis, which only looks at a subset of code, knows the behavior of the rest of the code outside that subset. The error "No snapshot in stream ... has analysis summaries" means the required snapshot is not present on the server.
To fix this, one must perform and commit a full scan, typically using the
cov-build
,cov-analyze
, andcov-commit-defects
sequence of commands, although the details can vary; see the linked documentation below. Once that is done, desktop analysis should be able to find that snapshot and retrieve its behavior summary information, resolving the error.Relevant documentation:
Creating analysis summaries: Explains the need for a snapshot with summaries and hints at how to make one.
Steps to generate an analysis: Explains in detail how to perform a full analysis and commit its results.
Coverity Desktop Analysis: User Guide: Covers desktop analysis generally.
cov-build
command line reference.cov-analyze
command line reference.cov-commit-defects
command line reference.Troubleshooting Desktop Analysis: [ERROR] No snapshot in stream "X" has analysis summaries...: Steps to follow when encountering this error message when using
cov-run-desktop
directly. (The advice here is potentially helpful even when using the plugin.)Troubleshooting Coverity Desktop for Eclipse: [ERROR] No snapshot in stream "streamName" has analysis summaries...: Steps to follow for this error message when using the Eclipse plugin.
Collect Diagnostics: Describes how to get all of the relevant log files and other diagnostic information for the Eclipse plugin as a single
.zip
file.