Skip to content
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

Add ML-powered query enablement info to analyze finish status report #928

Conversation

henrymercer
Copy link
Contributor

@henrymercer henrymercer commented Feb 15, 2022

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 analyze action. This allows us to investigate errors in the analysis in the analyze workflow 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

  • 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.

@henrymercer henrymercer force-pushed the henrymercer/add-ml-powered-query-enablement-to-analyze-status-report branch from 5e74208 to c2e40b5 Compare February 15, 2022 15:00
@henrymercer henrymercer force-pushed the henrymercer/add-ml-powered-query-enablement-to-analyze-status-report branch from c2e40b5 to bcdaad2 Compare February 15, 2022 15:04
@henrymercer henrymercer marked this pull request as ready for review February 15, 2022 15:09
@henrymercer henrymercer requested a review from a team as a code owner February 15, 2022 15:09
@henrymercer henrymercer merged commit 621c8c7 into main Feb 15, 2022
@henrymercer henrymercer deleted the henrymercer/add-ml-powered-query-enablement-to-analyze-status-report branch February 15, 2022 19:11
This was referenced Feb 17, 2022
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.

None yet

2 participants