- ALM used: GitHub
- CI system used: Travis CI
- Error observed
The build-in cache of the sonarscanner (CFamily) does not seem to work correctly. Files analyzed in the previous build are not found in the cache, even though they did not change.
- Steps to reproduce
We have merged a PR affecting multiple files, which had to be analyzed again. For that reason we hit the Travis 50 min build deadline.
We have tried to skip some folders, which led to a successful build and a cache update.
However, when we reverted the changes, the build failed on timeout.
Closer inspection of the log shows that files that have been analyzed in the earlier build (and should be in the cache), were analyzed again in the latest build.
As you can see from the commits, there were no other changes between the builds.
I don’t see any obvious reason why the files are analyzed again, and I would be grateful for any hints.