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
@@ -2,6 +2,7 @@
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
4
-**Added** Runner-aware tools can now call `ignoreOutput(path)` to exclude non-semantic writes from read/write overlap checks.
5
+
-**Added** Cached tasks can opt into automatic output restoration with `output: [{ auto: true }]`.
5
6
-**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.
6
7
-**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)).
7
8
-**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
@@ -58,6 +58,35 @@ steps = [
58
58
], comment = "restored from the explicit output archive" },
59
59
]
60
60
61
+
[[e2e]]
62
+
name = "explicit_auto_output_restores_written_files"
63
+
comment = """
64
+
Exercises `output: [{ auto: true }]` with explicit inputs disabled. The runner attaches fspy for output tracking, archives the written file, and restores it on cache hit.
65
+
"""
66
+
ignore = true
67
+
steps = [
68
+
{ argv = [
69
+
"vt",
70
+
"run",
71
+
"auto-output-explicit",
72
+
], comment = "first run writes dist/auto.txt and archives fspy-tracked outputs" },
73
+
{ argv = [
74
+
"vtt",
75
+
"rm",
76
+
"dist/auto.txt",
77
+
], comment = "remove the output so restoration is observable" },
78
+
{ argv = [
79
+
"vt",
80
+
"run",
81
+
"auto-output-explicit",
82
+
], comment = "cache hit: fspy-tracked output is restored" },
83
+
{ argv = [
84
+
"vtt",
85
+
"print-file",
86
+
"dist/auto.txt",
87
+
], comment = "restored from the auto output archive" },
Exercises `output: [{ auto: true }]` with explicit inputs disabled. The runner attaches fspy for output tracking, archives the written file, and restores it on cache hit.
4
+
5
+
## `vt run auto-output-explicit`
6
+
7
+
first run writes dist/auto.txt and archives fspy-tracked outputs
8
+
9
+
```
10
+
$ vtt write-file dist/auto.txt ok
11
+
```
12
+
13
+
## `vtt rm dist/auto.txt`
14
+
15
+
remove the output so restoration is observable
16
+
17
+
```
18
+
```
19
+
20
+
## `vt run auto-output-explicit`
21
+
22
+
cache hit: fspy-tracked output is restored
23
+
24
+
```
25
+
$ vtt write-file dist/auto.txt ok ◉ cache hit, replaying
0 commit comments