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,5 +1,6 @@
1
1
# Changelog
2
2
3
+
-**Added** Runner-aware tools can now call `ignoreInput(path)` to exclude non-semantic reads from auto-inferred task cache inputs.
3
4
-**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.
4
5
-**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)).
5
6
-**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
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,34 @@
1
+
[[e2e]]
2
+
name = "ignore_input_keeps_cache_valid"
3
+
comment = """
4
+
Exercises `ignoreInput` through `@voidzero-dev/vite-task-client`. The runner treats `cache_like/` as non-input, so mutations under it between runs do not invalidate the cache.
5
+
"""
6
+
ignore = true
7
+
steps = [
8
+
{ argv = [
9
+
"vtt",
10
+
"write-file",
11
+
"cache_like/input.txt",
12
+
"before",
13
+
], comment = "seed the file the task will read and ignore" },
14
+
{ argv = [
15
+
"vt",
16
+
"run",
17
+
"ignore-input",
18
+
], comment = "populate the cache" },
19
+
{ argv = [
20
+
"vtt",
21
+
"write-file",
22
+
"cache_like/input.txt",
23
+
"after",
24
+
], comment = "mutate the ignored input — would invalidate if tracked" },
25
+
{ argv = [
26
+
"vt",
27
+
"run",
28
+
"ignore-input",
29
+
], comment = "cache hit: cache_like/ was ignored via ignoreInput" },
Exercises `ignoreInput` through `@voidzero-dev/vite-task-client`. The runner treats `cache_like/` as non-input, so mutations under it between runs do not invalidate the cache.
4
+
5
+
## `vtt write-file cache_like/input.txt before`
6
+
7
+
seed the file the task will read and ignore
8
+
9
+
```
10
+
```
11
+
12
+
## `vt run ignore-input`
13
+
14
+
populate the cache
15
+
16
+
```
17
+
$ node scripts/ignore_input.mjs
18
+
```
19
+
20
+
## `vtt write-file cache_like/input.txt after`
21
+
22
+
mutate the ignored input — would invalidate if tracked
23
+
24
+
```
25
+
```
26
+
27
+
## `vt run ignore-input`
28
+
29
+
cache hit: cache_like/ was ignored via ignoreInput
0 commit comments