ERROR while coverity scan : No snapshot in stream has analysis summaries

166 views Asked by At

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.

1

There are 1 answers

7
Scott McPeak On

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, and cov-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: