@feigi/fleet-ctl 3.30.31 → 3.30.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -45,8 +45,12 @@ from the repository root by `sh -c`:
|
|
|
45
45
|
where an appended test file or test name lands as an argument to the test
|
|
46
46
|
runner. The cache reader refuses a command whose first word does not
|
|
47
47
|
resolve from the repository root (a builtin, a `PATH` entry, or an
|
|
48
|
-
executable path), one ending in `;`, `&` or a newline,
|
|
49
|
-
word that starts with
|
|
48
|
+
executable path), one ending in `;`, `&` or a newline, one containing a
|
|
49
|
+
word that starts with `#`, and one with an unquoted pattern that matches no
|
|
50
|
+
file tracked from the repository root. Quote a pattern that a program
|
|
51
|
+
resolves under its own directory option, e.g.
|
|
52
|
+
`git -C web ls-files -- '*.test.ts'`: the reader accepts a quoted pattern
|
|
53
|
+
unchecked.
|
|
50
54
|
|
|
51
55
|
## 2. Prove it — this procedure exactly
|
|
52
56
|
|
package/package.json
CHANGED
|
@@ -377,7 +377,11 @@ esac
|
|
|
377
377
|
# redirection is the program's own to read, or selects no test, and is
|
|
378
378
|
# accepted unprobed too. The scan stops at a `cd` or `pushd`, past which a
|
|
379
379
|
# pattern no longer resolves from <repo>, and at a word that is not split but
|
|
380
|
-
# ends in an operator then `cd` or `pushd`. A
|
|
380
|
+
# ends in an operator then `cd` or `pushd`. A program's own directory option,
|
|
381
|
+
# such as `git -C`, does not stop it: whether that option moves where the
|
|
382
|
+
# program resolves a pattern is the program's to say, so a Recipe must quote a
|
|
383
|
+
# pattern that a program resolves under its own directory option, as in
|
|
384
|
+
# `git -C web ls-files -- '*.test.ts'`. A word right after an option
|
|
381
385
|
# written without `=`, with no operator between them, is accepted unless it
|
|
382
386
|
# has a `/` or a `.`: it may be that option's value, which names no path. A
|
|
383
387
|
# pattern under a path git ignores names generated output, such as a build
|
|
@@ -483,7 +487,7 @@ if [ "$field" = test ]; then
|
|
|
483
487
|
git -C "$repo" check-ignore -q --no-index -- "$piece" 2>"$errf" || ignored=$?
|
|
484
488
|
case $ignored in
|
|
485
489
|
0) ;;
|
|
486
|
-
1) die "the Recipe cache at $cache is invalid: its test command's pattern '$piece' matches no file tracked in $where — a Test entrypoint that selects no tests passes having run nothing, so the Recipe is stale, not a finding; $derive" ;;
|
|
490
|
+
1) die "the Recipe cache at $cache is invalid: its test command's pattern '$piece' matches no file tracked in $where — a Test entrypoint that selects no tests passes having run nothing, so the Recipe is stale, not a finding; a pattern that a program resolves under its own directory option, such as git -C, must be quoted; $derive" ;;
|
|
487
491
|
*) die "cannot ask git whether $repo ignores its test command's pattern '$piece' (git check-ignore exit $ignored): $(cat "$errf" 2>/dev/null)" ;;
|
|
488
492
|
esac
|
|
489
493
|
done
|
package/scripts/fleet-tick.mjs
CHANGED
|
@@ -1280,8 +1280,9 @@ function main() {
|
|
|
1280
1280
|
const prev = readState(path, NAME);
|
|
1281
1281
|
const digest = createHash("sha256").update(lines.join("\n")).digest("hex");
|
|
1282
1282
|
const acts = actionable(rows);
|
|
1283
|
-
// `ticked`, fleet-tick's own liveness key: written on
|
|
1284
|
-
//
|
|
1283
|
+
// `ticked`, fleet-tick's own liveness key: written on every tick that gets
|
|
1284
|
+
// past its refusals — a refused tick (exit 2) writes none; this tick
|
|
1285
|
+
// reaching here IS the occurrence.
|
|
1285
1286
|
writeState(path, NAME, prev, { quiet: acts ? 0 : prev.quiet + 1, digest, ticked: { at: Date.now() } });
|
|
1286
1287
|
|
|
1287
1288
|
// Fold only when BOTH hold: nothing to act on, and nothing new to say. A
|