Commit 0613141
committed
Remove filesystem image layer cache
The image layer cache was not thread-safe and caused random
redhat_manifests.redhat_manifests_missing violations when validating
multiple images sharing layers (#1109). All Tekton tasks
already disabled it via EC_CACHE=false, and benchmarking showed no
measurable performance gain from caching.
Remove the cache entirely rather than fixing it:
- Remove imgCache/initCache and cache.Image wrapping from OCI client
- Remove EC_CACHE env var from Tekton task definitions
- Remove EC_CACHE=false from benchmark setup
- Remove related test (TestCacheInit) and simplify TestImage
- Remove stale caching TODO in Layer()
Ref: EC-1706
Ref: EC-1669
Signed-off-by: Rob Nester <rnester@redhat.com>
Assisted-by: Cursor
Made-with: Cursor1 parent b84ac3b commit 0613141
6 files changed
Lines changed: 25 additions & 109 deletions
File tree
- benchmark/simple
- internal/utils/oci
- tasks
- verify-conforma-konflux-ta/0.1
- verify-conforma-konflux-vsa-ta/0.1
- verify-enterprise-contract/0.1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 100 | | |
104 | 101 | | |
105 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | | - | |
27 | | - | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
31 | 27 | | |
32 | | - | |
33 | 28 | | |
34 | 29 | | |
35 | 30 | | |
| |||
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 41 | | |
69 | 42 | | |
70 | 43 | | |
| |||
217 | 190 | | |
218 | 191 | | |
219 | 192 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 193 | + | |
230 | 194 | | |
231 | 195 | | |
232 | 196 | | |
| |||
236 | 200 | | |
237 | 201 | | |
238 | 202 | | |
239 | | - | |
240 | | - | |
241 | 203 | | |
242 | 204 | | |
243 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
101 | 99 | | |
102 | 100 | | |
103 | 101 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 102 | | |
118 | 103 | | |
119 | 104 | | |
120 | 105 | | |
121 | | - | |
122 | | - | |
| 106 | + | |
123 | 107 | | |
124 | 108 | | |
125 | 109 | | |
| |||
130 | 114 | | |
131 | 115 | | |
132 | 116 | | |
133 | | - | |
134 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
135 | 124 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 125 | + | |
| 126 | + | |
141 | 127 | | |
142 | 128 | | |
| 129 | + | |
143 | 130 | | |
144 | 131 | | |
145 | | - | |
| 132 | + | |
146 | 133 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | 134 | | |
155 | 135 | | |
156 | 136 | | |
157 | 137 | | |
158 | 138 | | |
159 | 139 | | |
160 | | - | |
161 | | - | |
| 140 | + | |
162 | 141 | | |
163 | 142 | | |
164 | 143 | | |
| |||
174 | 153 | | |
175 | 154 | | |
176 | 155 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 156 | + | |
| 157 | + | |
181 | 158 | | |
182 | | - | |
183 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
184 | 162 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
191 | 166 | | |
192 | | - | |
193 | | - | |
194 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
195 | 170 | | |
196 | 171 | | |
197 | 172 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | 508 | | |
514 | 509 | | |
515 | 510 | | |
| |||
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
295 | 293 | | |
296 | 294 | | |
297 | 295 | | |
| |||
371 | 369 | | |
372 | 370 | | |
373 | 371 | | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | 372 | | |
381 | 373 | | |
382 | 374 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | 399 | | |
405 | 400 | | |
406 | 401 | | |
| |||
0 commit comments