-
Notifications
You must be signed in to change notification settings - Fork 107
[file report] Lots of changes, mainly due to using new CH table #7480
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
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
8a28466 to
28edea3
Compare
d33d535 to
89fd3d2
Compare
…he head commit picker
89fd3d2 to
6d68e1a
Compare
| self, start_date, stop_date | ||
| ) -> list[dict[str, Any]]: | ||
| response = requests.get( | ||
| f"http://localhost:3000/api/flaky-tests/fileReport?startDate={start_date}&endDate={stop_date}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, swapped to https://hud.pytorch.org
| invoking_file, | ||
| classname, | ||
| name | ||
| LIMIT 200 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[optional]do you want to do pagination token for the api? see the example
the api returns next_token if there are more
the api:
list_regression_summary_reports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try that in a different PR, thanks for the references
yangw-dev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left some comments
| select | ||
| distinct | ||
| id, | ||
| regexp_replace( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might make the query slow, just in case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's probably worth it to do the regexp replace here instead of later due to the grouping. This might be better as a materialized column in the table though, I imagine it could be useful in other places too
| replaceAll(invoking_file, '.', '/') as invoking_file, | ||
| all_test_runs.name as name, | ||
| classname, | ||
| multiIf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a cancelled_count here that we need to handle?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think cancelled is more of a job conclusion rather than a test conclusion
huydhn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Mainly review the SQL file :)
1a6e89e to
8f6683b
Compare
https://torchci-git-csl-filereportusech-fbopensource.vercel.app/tests/fileReport
old

new

old


new
old

new
