@feigi/fleet-ctl 3.30.22 → 3.30.23
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/ticket-router.mjs +10 -1
package/package.json
CHANGED
|
@@ -333,7 +333,12 @@ function fitTickets({ features, members, verdicts, window, cutoff }) {
|
|
|
333
333
|
}
|
|
334
334
|
// A ruling whose date is not YYYY-MM-DD cannot be placed against the cut, and
|
|
335
335
|
// a string `<=` would drop 'abc' or '2027' unseen: it is left in, so `rulingFor`
|
|
336
|
-
// refuses it when its ticket is an input
|
|
336
|
+
// refuses it when its ticket is an input ticket. An input ticket is one the
|
|
337
|
+
// fit reads — its last in-range row is an exploration row or has `sizing_src`
|
|
338
|
+
// `rule`, which the skip below keeps — not every ticket with an in-range
|
|
339
|
+
// features row. `fit --due` also refuses for a ticket the skip drops:
|
|
340
|
+
// `mergedSince` calls `verdictOf` on every ticket with an in-window row dated
|
|
341
|
+
// after `fitted_through`, with no such skip.
|
|
337
342
|
const rulings = rulingsByTicket(verdicts.filter((r) => !DATE.test(r.run_date) || upToThrough(r)));
|
|
338
343
|
const lastPulls = lastPullByTicket(inRange);
|
|
339
344
|
const out = [];
|
|
@@ -536,6 +541,10 @@ function main() {
|
|
|
536
541
|
const members = read("members", parseMemberTsv);
|
|
537
542
|
const verdicts = read("verdicts", parseTierOutcomes);
|
|
538
543
|
// The join throws on a features row it cannot place and on a ruling of an input ticket it cannot place.
|
|
544
|
+
// For `fit` and `--check` an input ticket is one `fitTickets` reads (its last in-range row is an
|
|
545
|
+
// exploration row or has `sizing_src` `rule`), not every ticket with an in-range features row. `fit --due` also
|
|
546
|
+
// covers a ticket `fitTickets` skips, because `mergedSince` calls `verdictOf` on every ticket with an in-window
|
|
547
|
+
// row dated after `fitted_through`, with no such skip.
|
|
539
548
|
const joined = (fit) => {
|
|
540
549
|
try { return fit(); } catch (e) { die(`cannot join --features ${need("features")} with --verdicts ${need("verdicts")}: ${e.message}`); }
|
|
541
550
|
};
|