-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/usr/bin/jq: Argument list too long #187
Comments
Hi, thank you for your issue! Are you talking about SonarQube CE or any paid version? Sascha |
Thanks |
Any updates? |
|
Could you checkout #189 and see, if it works? I reduced the "chunk" size. At least it works on a clean ubuntu installation. If it does not work, I have to rewrite the script completely. |
@darkspirit510 tested with your changes. Less arguments too long but still the behavior is not stable. And also for Score calculation literally is not correct. Using SonarQube Enterprise 9.9 LTS, Can clearly see the run populates close to ~18K Vulnerability Issues and ~1200 Hotspot. However, the benchmark script is only processing ~200 Vulnerability. Guess the runSonarqube.sh scripts needs a fundamental re-write. |
@darkspirit510 did you enter enterprise credentials to the script? (the community edition reports way less results). i don't have access to an enterprise instance. But I guess, jq is not made for generating such a big json file (but I am not sure about this). Feel free to fix it 😉 |
yes, most probably JQ can not handle the size of SonarQube JSON, the more rules the bigger the size of JSON array . Please check this PR. To avoid JQ errors reduced page size to 20 while writing results incrementally in to 2 files. Tracking this with SonarSource as well (Re Broken Benchmark and PR): https://community.sonarsource.com/t/tech-story-takeaways-from-building-a-sast-product-and-why-owasp-benchmark-is-not-enough/15126/4 |
I ran the runSonarQube.sh file successfully. But at the end of the build process, it waits for a few minutes and then gives me this error:
My OS is ubuntu 2022 and I use SonarQube verison 9.7.1.
I guess it reaches the maximum size of
ARG_MAX
in linux which is related to size of args buffer. It is mentioned here and here.I couldn't fix it by myself.
The text was updated successfully, but these errors were encountered: