Keep getting intermittent “Last analysis failed”. I just do an empty commit to rebuild and it works fine, so there is nothing wrong with the code. Just Sonar failing for some unknown reason and no way to re-run the scan. Frustrating and makes our team want to drop Sonar since it slows us down for no reason.
ALM used: GitHub
CI system used: Buildkite
Languages of the repository: Ruby
Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
There is a specific file that is causing the scan to fail. I’ll private message you the filename so you can add an exclusion to prevent it from causing the failure.
Thanks. I got the private message and will fix. It’s a bummer SonarCloud crashes if a single file has a syntax issue instead of reporting that file which would be valuable and part of a good security analysis. Thanks for getting back quickly though.
The behavior varies across the languages we support—some analyses proceed and report parsing errors, while others fail outright. I’ll share this feedback with the team who works on Ruby analysis.