CDCgov / prime-simplereport

SimpleReport is a fast, free, and easy way for COVID-19 testing facilities to report results to public health departments.
https://simplereport.gov
Creative Commons Zero v1.0 Universal
55 stars 58 forks source link

Investigate failed Sonarqube builds #7802

Closed fzhao99 closed 6 days ago

fzhao99 commented 3 weeks ago

Description

Sonarcube seems to be intermittently failing to build in CI jobs. See examples here and here

Steps to reproduce

  1. Open a PR
  2. Sonar will try building but fail with the following error code
> Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property.

Kicking the job seems to fix it somehow, so wondering if it's just an issue on first creation?

Expected behavior

Sonar building on the first try when unrelated code is put up for review

fzhao99 commented 3 weeks ago

@shanice-skylight I seem to be able to repro this pretty consistently when I'm manually rerunning the sonar job, even after the first build succeeded. See this PR for an example

shanice-skylight commented 1 week ago

Notes on why this error is triggered:

Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property. Reference used

I added the sonar.java.binaries property, now I'm working through fixing a message that says Could not calculate hash for class, fixed the hash error by providing the full path to java classes