Commit e2efc38
authored
Fixes lf_rollover_percentage query (#6493)
After working on #6489 I
wanted to do the same fixes for `lf_rollover_percentage`. So check there
for the description of the fixes.
I noticed a problem: when there is no data for a period for either LF or
Meta (a case that happens when no job is running in one of the clusters)
it skip returning those times, so it is zero for both LF and Meta in the
graph.
The user can't know if this was period where 100% was in Meta or LF
fleet, as both appear zeroed.
There is no merge with itself strategy that can deal with this edge
case, as it will always match at least the same row, so outer join does
not have an effect. This is not a problem for the experiment query,
where 0 means no job running in the experiment or no job running at all.
So, I created two selects, one with LF rows and one with Meta rows, then
outer joined them. This allows to have data for the period where one of
the fleets are zero. But it does not allow to have the complementary
graph (% at meta, % at lf). So to avoid overcomplicating this query with
two merges and then combining both tables, I return only one of the %s.
The choice for the LF fleet is given the title of the graph "Percentage
of Jobs rolled over Linux Foundation".
1 parent 8541b42 commit e2efc38
File tree
1 file changed
+40
-32
lines changed- torchci/clickhouse_queries/lf_rollover_percentage
1 file changed
+40
-32
lines changedLines changed: 40 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | | - | |
45 | 42 | | |
46 | 43 | | |
47 | 44 | | |
| |||
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
53 | | - | |
54 | 50 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 51 | + | |
| 52 | + | |
58 | 53 | | |
59 | 54 | | |
60 | 55 | | |
61 | 56 | | |
62 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
63 | 74 | | |
64 | 75 | | |
65 | 76 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | | - | |
| 80 | + | |
| 81 | + | |
74 | 82 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | | - | |
| 90 | + | |
89 | 91 | | |
90 | | - | |
91 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
0 commit comments