Closed ccecvb closed 11 months ago
Log output contains execution time of the proparse sensor, as well as execution time of each rule (search for AST Generation
in log). Could you include the log here?
FWIW, no difference has been spotted during regression testing.
found this significant difference, it causes extra 44 minutes
build 148
INFO: Rule rssw-oe-main:eu.rssw.antlr.proparse.checks.LowerCaseKeywords | time=545494 ms
vs build 151 (got wrong number before)
INFO: Rule rssw-oe-main:eu.rssw.antlr.proparse.checks.KeywordCase | time=1593736 ms
and apparently I forgot to turn off the deprecated one
INFO: Rule rssw-oe-main:eu.rssw.antlr.proparse.checks.LowerCaseKeywords | time=1622626 ms
I'll attach the logs
scan148.log scan151.log scan152.log
Just had a look at the version number of the plugins. Build 148 is using 2.25.0-SNAPSHOT that I sent you, while builds 151 and 152 are using 2.24.2. There's strictly no difference between those two versions except for the IndentationCheck rule, so the difference is coming from your systems.
I think the number iof detections did not change but I don't know how to verify this . Is there a way to detect the number of violations in the log or check in sonarqube; old and new rule report same amount in current log
You can check the Activity tab on the project. You can see the total number of issues over time.
If you have hundreds of thousands or millions of issues being reported by this rule, you can expect it to take quite some time. As an example, on a 1M LOC project, where the coding standard is uppercase, it takes 11 seconds to execute the rule to report lowercase keywords. If I switch the config to report uppercase keywords, then it takes 230 seconds to execute the rule (and report 1.5 million issues).
@gquerret FYI the Activity tab indication shows a growth consistent with testing the same issue with 2 rules, new and deprecated. I'll drop the rule from the scanner rules and try use it only in SonarLint interactive checking.
I noticed our sonarscan is taking a lot longer now than before.
scan now, build 151, using 2.24.x, takes 1 hour 14 minutes
same scan build 148, before using snapshot 2.25, took 26 minutes
One difference on our side is that build 150 was during office hours and build 148 was during the night. I should have data of the next nightly build tomorrow. I also activated a few extra rules, but I would not expect this performance impact. I'll attach full scanner logs for both builds
Versions