-
Notifications
You must be signed in to change notification settings - Fork 357
Send new per-query alert count event reports for QA telemetry #1741
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
Conversation
46b340a
to
b84eeb1
Compare
b84eeb1
to
c5f557c
Compare
c5f557c
to
5156052
Compare
I've set the feature to |
I can see that in your test run. But it does not look like the data enters the database. Is that intentional?
Results in 34035006 reports with length 0 event_reports, and nothing else. |
@esbena Thank you for pointing this out. I looked at the debug logs of the run more closely and it looks like the request returned an error because I had sent the date/times for the |
This change sends a list of event reports representing the per-query alert counts from a run, appended as a field to the
analyze
status report, when theqa_telemetry
feature flag is set. Theevent_report
schema in the data warehouse is mimicked in theEventReport
interface here.We generate an event report just after
codeql database-interpret results
is run for each language, so the event reports are language-specific. Theproperties
field of the event report is an object representing the per-query alert counts processed from a single SARIF file.I have manually tested this by setting the environment variable
CODEQL_ACTION_QA_TELEMETRY: true
in a test run (GitHub internal only link) to confirm that the event report and alert counts are being generated appropriately. I have also modified the existingrunQueries
test to confirm that the appropriateevent_report
status report field is set with event propertycodeql database interpret-results
.Merge / deployment checklist