You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/vite_task_bin/tests/e2e_snapshots/fixtures/ipc_client_test/snapshots.toml
+14-11Lines changed: 14 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -225,52 +225,55 @@ steps = [
225
225
]
226
226
227
227
[[e2e]]
228
-
name = "disable_cache_forces_reexecution"
228
+
name = "disable_cache_noop_allows_cache_hit"
229
229
comment = """
230
-
Exercises `disableCache`. The tool asks the runner not to cache this run,
231
-
so the next invocation re-executes instead of hitting a prior entry.
230
+
Exercises the temporary `disableCache` no-op workaround. The tool asks the
231
+
runner not to cache this run, but the client ignores that request, so the next
232
+
invocation hits the cache.
232
233
"""
233
234
ignore = true
234
235
steps = [
235
236
{ argv = [
236
237
"vt",
237
238
"run",
238
239
"disable-cache",
239
-
], comment = "first run — tool calls disableCache" },
240
+
], comment = "first run — tool calls disableCache, currently ignored by the client" },
240
241
{ argv = [
241
242
"vt",
242
243
"run",
243
244
"disable-cache",
244
-
], comment = "cache miss (NotFound) because nothing was cached" },
245
+
], comment = "cache hit because disableCache is temporarily a no-op" },
245
246
{ argv = [
246
247
"vt",
247
248
"run",
248
249
"--last-details",
249
-
], comment = "summary names the opt-out as the not-cached reason" },
250
+
], comment = "summary reports the replayed cache hit" },
250
251
]
251
252
252
253
[[e2e]]
253
-
name = "disable_cache_works_with_explicit_inputs"
254
+
name = "disable_cache_noop_with_explicit_inputs"
254
255
comment = """
255
-
Exercises `disableCache` on a cached task with explicit inputs. The runner must still inject IPC even when fspy auto-input inference is disabled, or the tool's cache opt-out becomes a no-op and the second run incorrectly hits.
256
+
Exercises the temporary `disableCache` no-op workaround on a cached task with
257
+
explicit inputs. The client ignores the opt-out request, so the second run hits
258
+
even when fspy auto-input inference is disabled.
256
259
"""
257
260
ignore = true
258
261
steps = [
259
262
{ argv = [
260
263
"vt",
261
264
"run",
262
265
"disable-cache-explicit-input",
263
-
], comment = "first run uses input: [] and asks the runner not to cache" },
266
+
], comment = "first run uses input: [] and calls disableCache, currently ignored by the client" },
264
267
{ argv = [
265
268
"vt",
266
269
"run",
267
270
"disable-cache-explicit-input",
268
-
], comment = "re-executes because the first run was not cached" },
271
+
], comment = "cache hit because disableCache is temporarily a no-op" },
269
272
{ argv = [
270
273
"vt",
271
274
"run",
272
275
"--last-details",
273
-
], comment = "summary names the opt-out as the not-cached reason" },
276
+
], comment = "summary reports the replayed cache hit" },
Exercises `disableCache` on a cached task with explicit inputs. The runner must still inject IPC even when fspy auto-input inference is disabled, or the tool's cache opt-out becomes a no-op and the second run incorrectly hits.
3
+
Exercises the temporary `disableCache` no-op workaround on a cached task with
4
+
explicit inputs. The client ignores the opt-out request, so the second run hits
5
+
even when fspy auto-input inference is disabled.
4
6
5
7
## `vt run disable-cache-explicit-input`
6
8
7
-
first run uses input: [] and asks the runner not to cache
9
+
first run uses input: [] and calls disableCache, currently ignored by the client
8
10
9
11
```
10
12
$ node scripts/disable_cache.mjs
11
13
```
12
14
13
15
## `vt run disable-cache-explicit-input`
14
16
15
-
re-executes because the first run was not cached
17
+
cache hit because disableCache is temporarily a no-op
name = "vite_dev_disable_cache_noop_allows_cache_hit"
3
3
comment = """
4
-
`vt run --cache dev` brings up a Vite dev server programmatically on an ephemeral port and closes it immediately. Vite's `_createServer` calls `disableCache()` via `@voidzero-dev/vite-task-client`, so this run is never stored — the next invocation re-executes (cache miss / NotFound).
4
+
`vt run --cache dev` brings up a Vite dev server programmatically on an
5
+
ephemeral port and closes it immediately. Vite calls `disableCache()` via
6
+
`@voidzero-dev/vite-task-client`, but the client temporarily ignores that
7
+
request, so the next invocation hits the cache.
5
8
"""
6
9
ignore = true
7
10
steps = [
@@ -10,11 +13,11 @@ steps = [
10
13
"run",
11
14
"--cache",
12
15
"dev",
13
-
], comment = "first run — Vite dev start calls disableCache" },
16
+
], comment = "first run — Vite dev calls disableCache, currently ignored by the client" },
14
17
{ argv = [
15
18
"vt",
16
19
"run",
17
20
"--cache",
18
21
"dev",
19
-
], comment = "cache miss (NotFound) because the first run was not stored" },
22
+
], comment = "cache hit because disableCache is temporarily a no-op" },
Copy file name to clipboardExpand all lines: crates/vite_task_bin/tests/e2e_snapshots/fixtures/vite_dev_disable_cache/snapshots/vite_dev_disables_cache.md
0 commit comments