@feigi/fleet-ctl 3.82.25 → 3.82.26
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.
- package/package.json +1 -1
- package/scripts/reclaim-scratch.mjs +19 -15
package/package.json
CHANGED
|
@@ -39,17 +39,20 @@
|
|
|
39
39
|
// A claim worktree that cannot be checked — `git worktree list`
|
|
40
40
|
// failing, a .worktrees/ that cannot be read, or a directory there
|
|
41
41
|
// named for N that git does not list — keeps it, with that reason.
|
|
42
|
-
// reports/<member>.json
|
|
43
|
-
// a member's report file
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
// impl-<N>[-x] report goes
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
//
|
|
42
|
+
// reports/<member>.json, reports/<member>.check.json
|
|
43
|
+
// a member's report file, and the Check-step record written beside
|
|
44
|
+
// it. `reports/` itself is never removed, and is not aged out
|
|
45
|
+
// whole: each file is judged on its own, by the entry it goes
|
|
46
|
+
// with. A fix-pr-<M>[-x], finisher-pr-<M>[-x] or review-pr-<M>[-x]
|
|
47
|
+
// report goes with pr<M>/ — the same verdict, the same live-token
|
|
48
|
+
// holds, though no pr<M>/ need exist; an impl-<N>[-x] report goes
|
|
49
|
+
// with impl-<N>/ the same way; the <member>.check.json record is
|
|
50
|
+
// judged exactly as <member>.json is (one `.check` infix only:
|
|
51
|
+
// <member>.check.check.json and <member>.checkx.json are "anything
|
|
52
|
+
// else"); any other file in it (a merge-bot-<n> report or record,
|
|
53
|
+
// which names no PR and no ticket) is judged as "anything else"
|
|
54
|
+
// below, so it is removed only when idle past the retention and
|
|
55
|
+
// its member's token is not live.
|
|
53
56
|
// anything else, and a keyed name whose number GitHub resolves to the
|
|
54
57
|
// other type (a pr<N> that is an issue, an impl-<N> that is a PR) or to
|
|
55
58
|
// nothing
|
|
@@ -140,11 +143,12 @@ const REMOVE = [
|
|
|
140
143
|
const PR_ENTRY = /^pr([1-9][0-9]*)$/;
|
|
141
144
|
const IMPL_ENTRY = /^impl-([1-9][0-9]*)$/;
|
|
142
145
|
const DISPOSITIONS_ENTRY = /^dispositions-fix-pr-([1-9][0-9]*)(?:-[a-z])?\.json$/;
|
|
143
|
-
// A member's report file, `reports/<member>.json
|
|
144
|
-
//
|
|
146
|
+
// A member's report file, `reports/<member>.json`, and its Check-step record,
|
|
147
|
+
// `reports/<member>.check.json`: one that names a PR goes with that PR's
|
|
148
|
+
// entries, one that names a ticket with that ticket's.
|
|
145
149
|
const REPORTS_DIR = "reports";
|
|
146
|
-
const REPORT_PR_ENTRY = /^(?:fix-pr|finisher-pr|review-pr)-([1-9][0-9]*)(?:-[a-z])?\.json$/;
|
|
147
|
-
const REPORT_IMPL_ENTRY = /^impl-([1-9][0-9]*)(?:-[a-z])?\.json$/;
|
|
150
|
+
const REPORT_PR_ENTRY = /^(?:fix-pr|finisher-pr|review-pr)-([1-9][0-9]*)(?:-[a-z])?(?:\.check)?\.json$/;
|
|
151
|
+
const REPORT_IMPL_ENTRY = /^impl-([1-9][0-9]*)(?:-[a-z])?(?:\.check)?\.json$/;
|
|
148
152
|
const RUN_ROOT = /^run-/;
|
|
149
153
|
|
|
150
154
|
function how(r) {
|