FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Analyze: Improve log grouping and log the analysis summary in its own group by adityasharad · Pull Request #515 · github/codeql-action · GitHub

Analyze: Improve log grouping and log the analysis summary in its own group - #515

Merged
adityasharad merged 5 commits into
github:mainfrom
adityasharad:analyze/summary-logging
May 20, 2021
Merged

adityasharad merged 5 commits into
github:mainfrom
adityasharad:analyze/summary-logging

Conversation

adityasharad commented May 20, 2021
edited
Loading

Copy link
Copy Markdown
Contributor
  • Fix grouping of the analysis logs, so that custom query logs and the upload steps also get grouped. (Bug spotted by @AlonaHlobina.)
  • 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 metrics computed in the Action.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

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.
adityasharad force-pushed the analyze/summary-logging branch from 25be569 to 741bd73 Compare May 20, 2021 19:33
Comment thread src/codeql.ts Outdated
Comment thread src/analyze.ts
As produced by npm ci && npm run removeNPMAbsolutePaths.
adityasharad merged commit 8fa2ef8 into github:main May 20, 2021
This was referenced May 21, 2021
Comment thread src/codeql.ts
listeners: {
stdout: (data: Buffer) => {
output += data.toString();
output += data.toString("utf8");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL