Commit edf2983
authored
Add running time check on ci (#2165)
# Summary
- This PR started as an attempt to make CI use the `@size-limit/time`
plugin to measure the execution time of each client bundle and ensure it
doesn't exceed the base branch execution time by more than 20%.
- Later, found that the `@size-limit/time` plugin is not good at all at
detecting that because of the runtime noise on CI.
- So, CI will only look for the `download time` of chunks at the browser
for now, until finding another tool that run the code multiple time on
CI and get average execution time to get rid of runtime noise.
- However, the following changes are made:
- The feature of measring the execution time and comparing it to the
base branch is already added to the `bin/compare-bundle-sizes` script,
so if you can run it locally with a noise mitigated environment you can
do that by changing the `running` values at `.size-limit.json` file to
`true`.
- Removed the `compare` command from the `scripts/bundle-size.mjs`
script as it's not needed and used the default comparison behavior at
the `size-limit` package.1 parent fdb9082 commit edf2983
File tree
7 files changed
+80
-230
lines changed- .github/workflows
- bin
- scripts
7 files changed
+80
-230
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
114 | | - | |
| 117 | + | |
115 | 118 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 2 | | |
60 | 3 | | |
61 | 4 | | |
62 | 5 | | |
63 | | - | |
| 6 | + | |
| 7 | + | |
64 | 8 | | |
65 | 9 | | |
66 | 10 | | |
67 | 11 | | |
68 | 12 | | |
69 | | - | |
| 13 | + | |
| 14 | + | |
70 | 15 | | |
71 | 16 | | |
72 | 17 | | |
73 | 18 | | |
74 | 19 | | |
75 | | - | |
| 20 | + | |
| 21 | + | |
76 | 22 | | |
77 | 23 | | |
78 | 24 | | |
79 | 25 | | |
80 | 26 | | |
81 | | - | |
| 27 | + | |
| 28 | + | |
82 | 29 | | |
83 | 30 | | |
84 | 31 | | |
85 | 32 | | |
86 | 33 | | |
87 | | - | |
| 34 | + | |
| 35 | + | |
88 | 36 | | |
89 | 37 | | |
90 | 38 | | |
91 | 39 | | |
92 | 40 | | |
93 | | - | |
| 41 | + | |
| 42 | + | |
94 | 43 | | |
95 | 44 | | |
96 | 45 | | |
97 | 46 | | |
98 | 47 | | |
99 | | - | |
| 48 | + | |
| 49 | + | |
100 | 50 | | |
101 | 51 | | |
102 | 52 | | |
103 | 53 | | |
104 | 54 | | |
105 | | - | |
| 55 | + | |
| 56 | + | |
106 | 57 | | |
107 | 58 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
66 | | - | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | | - | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
0 commit comments