Refactor: feedback on metrics email structure#1791
Refactor: feedback on metrics email structure#1791MarceloRobert wants to merge 1 commit intokernelci:mainfrom
Conversation
|
Paused work on this PR in order to fix cronjob issues and deployment issues |
|
Some feedback from TSC today: https://docs.google.com/document/d/1z5EVstx7N57FKxQ1loY5FtVKjz1xvi-G0Wwq5qDoX8Q/edit?tab=t.0#bookmark=kix.y0sdm2heccwl
|
|
@broonie you mentioned some confusion regarding the scope of I don't quite got what you were wandering in regard to maestro builds. Do you have a specific question that the team could answer? |
|
Other people were confused about why there are more builds than boots, people were wondering if it was showing only maestro generated builds of if this is also including builds from my non-maestro infrastructure as well. |
40fd35b to
0fe1489
Compare
The previous numbers were just temporary data for the example, they weren't extracted from a real query. The current example now reflects real data, and there are fewer builds than boots |
Done, added the issue comment to the list, see if looks ok |
I'll check it, it should be counting all issues from that origin within the interval and then counting how many of those were the first incident of an issue. Should we count the full number of issues on that origin? |
I think the word "Total" could be misleading in the table header. Maybe "Reported", or something that suggests that we hit that many regressions during the filtered interval |
0fe1489 to
908a36a
Compare
|
|
||
| # Compute the text spacing for the labs so it isn't too big or too small | ||
| lab_spacing = max((len(lab_key) for lab_key in data.lab_maps.keys()), default=0) | ||
| lab_spacing += 5 # add spacing for leading tab and possible * mark for new labs |
There was a problem hiding this comment.
just a nit, but a little more spacing would improve readability
|
@tales-aparecida @bhcopeland do you guys have any comments? |
Can we update the issue with a new version of the report with the changes? |
@bhcopeland the description of the pull request already has an updated example, do you mean adding this example to the issue that the PR closes? |
Ah, okay, apologies, I misread it, then yes LGTM. As for the other comment, I leave that up to you. The report is looking really good. I'll bring it up in TSC tomorrow, but from my side, we are in the final stretch. Great work on this. Thank you. One quick question for you. On maestro I see you have 17 (+7), under Build Regerssion. Which means that 7 have been added during that period (I checked upstream and can see these reports). What is the 17 counting? That bit isn't clear to me. Can we add a bit to the report to make it clear what those two numbers represent? |
Those numbers are the total unique issues that had incidents during that period (17), and number of unique issues that had their first incident during that period (+7). Would you say that fits as a good caption? |
Okay, so total regressions found with existing known issues were 17, and new known issues created were 7. So, in total, 24 regressions have been found, of which 7 are not-seen-before. Maybe a simple (Existing, New) under Reported Regressions would clear that up? |
The meaning is: We hit 17 different regressions, out of which 7 are new |
Yeah, I feel we should add (Existing|New) to the report. Next to Reported Regressions. Apologies, my maths was a bit off, as I added 17 and 7.
|
|
How about a mathy format: |
Another alternative would be The thing is that these 7 new ones are part of the total of 17; so IIUC the |
|
@tales-aparecida @bhcopeland I'll add this Existing/New separation and merge it later since this email is sent every Saturday and we'll have a holiday tomorrow. If there's more feedback on the TSC meeting we can adress them in a separate PR, sounds good? |
908a36a to
397a656
Compare
|
Updated the PR and the example in the PR description |
Changes build query to return n_issues, n_new_issues and total_incidents; Added subquery to return top 3 issues for each origin; Changed lab query to return builds related to the tests of each lab (instead of builds directly related to the lab). Closes kernelci#1780
397a656 to
225b9b0
Compare
Changes
build countbe "builds related to tests performed by each lab" instead of "builds directly related to each lab", and removed origin groupingHow to test
This PR changes the existing queries and format of the metrics summary email, so to test it just connect to a database and run
poetry run python3 manage.py notifications --action metrics_summaryCloses #1780
Example with real data