Open Lmh-java opened 6 months ago
Please share a reliable project/ config combination to reproduce this with.
Please share a reliable project/ config combination to reproduce this with.
Done, updated in the issue description. Please see whether that's sufficient to reproduce.
Looks good, thank you @Lmh-java
Discovered at https://github.com/checkstyle/checkstyle/pull/14791#issuecomment-2053817456
Regression report displays exceptions inconsistently.
Sometimes there is a full stacktrace for an exception: https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/8039a13_2024203306/reports/diff/elasticsearch/index.html#A139
Sometimes there is only a line of the exception name: https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/8039a13_2024203306/reports/diff/elasticsearch/index.html#A1
Both these two cases came from the same report generation: https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/8039a13_2024203306/reports/diff/index.html
To reproduce
Some analysis
After investigation, this difference presents before the results are sent to
patch-diff-report-tool
to compare. This difference is presented incheckstyle-result.xml
. For example:This means, when the checkstyle report is generated, this difference is already there. I also noticed that the single line stacktrace has


(\n) at the very end. This might be the cause of the incorrect termination of the line.