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: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# Changelog
2
2
3
3
-**Added** Runner-aware tools can now call `ignoreInput(path)` to exclude non-semantic reads from auto-inferred task cache inputs.
4
+
-**Added** Runner-aware tools can now call `ignoreOutput(path)` to exclude non-semantic writes from read/write overlap checks.
4
5
-**Changed** Tracked environment values in task cache fingerprints are now stored only as SHA-256 digests, and env-related cache miss details report names without values.
5
6
-**Added** Runner-aware `getEnvs` match sets can now participate in task cache fingerprints, so changing, adding, or removing a matching env var invalidates the cache ([#450](https://github.com/voidzero-dev/vite-task/pull/450)).
6
7
-**Added** Runner-aware `getEnvs` calls now return env values served by the runner for matching env glob patterns ([#449](https://github.com/voidzero-dev/vite-task/pull/449)).
Copy file name to clipboardExpand all lines: crates/vite_task_bin/tests/e2e_snapshots/fixtures/ipc_client_test/snapshots.toml
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,35 @@ steps = [
29
29
], comment = "cache hit: cache_like/ was ignored via ignoreInput" },
30
30
]
31
31
32
+
[[e2e]]
33
+
name = "ignore_output_allows_read_write_overlap"
34
+
comment = """
35
+
Exercises `ignoreOutput`. The task reads and writes `sidecar/tmp.txt`; without the ignore the runner's read-write overlap check would refuse to cache the run.
36
+
"""
37
+
ignore = true
38
+
steps = [
39
+
{ argv = [
40
+
"vt",
41
+
"run",
42
+
"ignore-output",
43
+
], comment = "first run populates the cache" },
44
+
{ argv = [
45
+
"vtt",
46
+
"rm",
47
+
"dist/out.txt",
48
+
], comment = "remove the real output so the cache-hit restore is observable" },
49
+
{ argv = [
50
+
"vt",
51
+
"run",
52
+
"ignore-output",
53
+
], comment = "cache hit: sidecar/ writes were ignored" },
54
+
{ argv = [
55
+
"vtt",
56
+
"print-file",
57
+
"dist/out.txt",
58
+
], comment = "restored from the explicit output archive" },
Exercises `ignoreOutput`. The task reads and writes `sidecar/tmp.txt`; without the ignore the runner's read-write overlap check would refuse to cache the run.
4
+
5
+
## `vt run ignore-output`
6
+
7
+
first run populates the cache
8
+
9
+
```
10
+
$ node scripts/ignore_output.mjs
11
+
```
12
+
13
+
## `vtt rm dist/out.txt`
14
+
15
+
remove the real output so the cache-hit restore is observable
0 commit comments