Skip to content

Commit d3977e8

Browse files
authored
[HUD][Test Insights] Better PR view for test counts (#7040)
* Change UI to get rid of nesting structure in favor of one big table. This might make it harder to determine which file caused the overall change in test times? * Automatically select a sha to do base comparison with * Move merge base query that was originally in Dr. CI to named query Some of the code in this PR isn't directly used here but will be used in a different PR https://torchci-git-csl-tibettertestcountsprview-fbopensource.vercel.app/pytorch/pytorch/commit/72e4786d1635681b8d053d0168c7d16b980e5124 Old <img width="1679" height="520" alt="image" src="https://github.com/user-attachments/assets/477b3023-abac-4c3d-a57b-500587e2d37c" /> New <img width="1675" height="571" alt="image" src="https://github.com/user-attachments/assets/2c3a3e55-f03d-4bec-a520-fa113d1e5a2c" />
1 parent 188f932 commit d3977e8

File tree

5 files changed

+343
-208
lines changed

5 files changed

+343
-208
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"params": {
3+
"shas": "Array(String)",
4+
"repo": "String"
5+
},
6+
"tests": []
7+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
select
2+
sha as head_sha,
3+
merge_base,
4+
merge_base_commit_date,
5+
from
6+
merge_bases
7+
where
8+
sha in {shas: Array(String)}
9+
and merge_base_commit_date != 0
10+
and repo = {repo: String}

0 commit comments

Comments
 (0)