-
Notifications
You must be signed in to change notification settings - Fork 321
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
Analyze: Improve log grouping and log the analysis summary in its own group #515
Analyze: Improve log grouping and log the analysis summary in its own group #515
Conversation
Fix grouping of the analysis logs, so that custom query logs also get grouped. Capture the stdout of codeql database analyze, which contains the analysis summary from summary and diagnostic queries. Log this output in its own group, along with the baseline computed in the Action.
25be569
to
741bd73
Compare
As produced by npm ci && npm run removeNPMAbsolutePaths.
@@ -717,7 +717,7 @@ function getCodeQLForCmd(cmd: string): CodeQL { | |||
await new toolrunner.ToolRunner(cmd, args, { | |||
listeners: { | |||
stdout: (data: Buffer) => { | |||
output += data.toString(); | |||
output += data.toString("utf8"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adityasharad Is CodeQL guaranteed to output UTF-8 ? Doesn't it output things in the "system" encoding to make sure things render correctly when running in a non-UTF-8 terminal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, it uses the Java default, so that's a little harder to anticipate here. Is it better to just avoid passing in a locale?
codeql database analyze
, which contains the analysis summary from summary and diagnostic queries. Log this output in its own group, along with the baseline metrics computed in the Action.Merge / deployment checklist