Analysis failures on one of our projects, and not seeing new pull requests (analysis hangs, but don’t see any information in background tasks/etc)
CI system - GitHub Actions
Analysis Method - Automatic Analysis Enabled
Error Analysis Failure
Analysis status
The last analysis has failed. If it keeps on failing after several attempts, please contact us on Community forum (opens in new tab) and provide the following failing analysis ID: ed14d11b-cc72-47f2-95a8-5e51c4e88b6b.
Error new pull requests not seen in sonar UI, gh action hangs:
SonarCloud Code AnalysisExpected — Waiting for status to be reported
Analysis ID failures
ed14d11b-cc72-47f2-95a8-5e51c4e88b6b
5793a972-66f4-4f86-9f82-690741a644a1
Steps to reproduce
Toggled automatic analysis off/on to trigger new scan, analysis fails every time (with new analysis id)
Welcome to the community and thanks for this report!
Analysis errored-out because it hit a YAML file it couldn’t handle. Unfortunately I don’t have the name of the file, but you could set an exclusion for *.yaml (or whichever suffix you use) and that should work.
Odd, we didn’t add any new yaml files since it started failing, nor did adding an exclusion for yaml files that did change since failure have any effect.
Do you have the error it returned so we can narrow down and not do a blanket yaml exclusion policy?
Yeah – I had just figured it out, believe that’s a change in behavior since we’ve had some of these files around for months. Context: We have some yaml files that act as placeholders, they don’t contain {}, completely empty files so no bytes of data.
Our scans are working again though, thanks for the assistance.