-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Commit cb64dbe
committed
fix(cmd/go): only invalidate coverage cache when coverpkg sources change
Instead of invalidating all test cache when covered packages change,
only invalidate the coverage report cache. This improves performance
by allowing test results to remain cached while ensuring coverage
reports are updated when covered packages are modified.
- Remove covered packages hash from main test ID calculation
- Move coverage invalidation to coverProfileAndInputKey function
- Remove unnecessary build dependencies for covered packages
Fixes #74873 1 parent 6fbad4b commit cb64dbe
File tree
2 files changed
+162
-3
lines changed- src/cmd/go
- internal/test
- testdata/script
2 files changed
+162
-3
lines changedLines changed: 25 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1290 | 1290 |
| |
1291 | 1291 |
| |
1292 | 1292 |
| |
1293 | - | ||
1294 | - | ||
1293 | + | ||
1295 | 1294 |
| |
1296 | 1295 |
| |
1297 | 1296 |
| |
| |||
1927 | 1926 |
| |
1928 | 1927 |
| |
1929 | 1928 |
| |
1929 | + | ||
1930 | + | ||
1931 | + | ||
1932 | + | ||
1933 | + | ||
1934 | + | ||
1935 | + | ||
1936 | + | ||
1937 | + | ||
1938 | + | ||
1939 | + | ||
1940 | + | ||
1941 | + | ||
1942 | + | ||
1943 | + | ||
1944 | + | ||
1945 | + | ||
1946 | + | ||
1947 | + | ||
1930 | 1948 |
| |
1931 | 1949 |
| |
1932 | 1950 |
| |
| |||
2071 | 2089 |
| |
2072 | 2090 |
| |
2073 | 2091 |
| |
2074 | - | ||
2092 | + | ||
2093 | + | ||
2094 | + | ||
2095 | + | ||
2096 | + | ||
2075 | 2097 |
| |
2076 | 2098 |
| |
2077 | 2099 |
| |
|
Lines changed: 137 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
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 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + | ||
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
127 | + | ||
128 | + | ||
129 | + | ||
130 | + | ||
131 | + | ||
132 | + | ||
133 | + | ||
134 | + | ||
135 | + | ||
136 | + | ||
137 | + |
0 commit comments