Add ML-powered query enablement info to analyze finish status report#928
Merged
henrymercer merged 3 commits intomainfrom Feb 15, 2022
Conversation
5e74208 to
c2e40b5
Compare
c2e40b5 to
bcdaad2
Compare
…to-analyze-status-report
…to-analyze-status-report
aeisenberg
approved these changes
Feb 15, 2022
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is a follow up to #907 that includes ML-powered query enablement information in the finish status report that's sent at the end of the
analyzeaction. This allows us to investigate errors in the analysis in theanalyzeworkflow in specifically runs with ML-powered queries enabled.Example status report:
{ "workflow_run_id": 1847681271, "workflow_name": "Code Scanning - Action", "job_name": "CodeQL-Build", "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build", "commit_oid": "5aca76d5ab43b891ed79c1c13bbbd73c06a83f50", "ref": "refs/heads/main", "action_name": "finish", "action_ref": "c2e40b5d5d11d4582a2c11664a48a2c063ec48f4", "action_oid": "unknown", "started_at": "2022-02-15T15:01:58.103Z", "action_started_at": "2022-02-15T15:02:10.965Z", "status": "success", "completed_at": "2022-02-15T15:05:35.759Z", "matrix_vars": "null", "ml_powered_javascript_queries": "~0.0.2" /* NEW */, "analyze_builtin_queries_javascript_duration_ms": 80571, "analyze_custom_queries_javascript_duration_ms": 50830, "interpret_results_javascript_duration_ms": 3565, "raw_upload_size_bytes": 1258548, "zipped_upload_size_bytes": 133852, "num_results_in_sarif": 175 }Merge / deployment checklist