forgedock 1.56.0 → 1.58.0
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/bin/config-schema.mjs +1 -1
- package/bin/engine/outcome-codes.mjs +2 -1
- package/bin/engine/phases.mjs +4 -3
- package/bin/engine-cli.mjs +48 -12
- package/bin/forgedock.mjs +52 -3
- package/bin/gc.mjs +43 -6
- package/bin/help-text.mjs +4 -2
- package/bin/lean/batch-health.mjs +5 -1
- package/bin/lean/batch-health.test.mjs +7 -1
- package/bin/lean/batch.mjs +7 -2
- package/bin/lean/batch.test.mjs +45 -0
- package/bin/lean/conformance.e2e.test.mjs +3 -2
- package/bin/lean/conformance.mjs +118 -20
- package/bin/lean/conformance.test.mjs +172 -3
- package/bin/lean/decisions.mjs +98 -1
- package/bin/lean/decisions.test.mjs +30 -1
- package/bin/lean/depcache.mjs +124 -13
- package/bin/lean/depcache.test.mjs +121 -3
- package/bin/lean/design-gate.mjs +144 -0
- package/bin/lean/design-gate.test.mjs +169 -0
- package/bin/lean/effects-cap.test.mjs +17 -0
- package/bin/lean/effects.mjs +58 -13
- package/bin/lean/heavy.mjs +25 -8
- package/bin/lean/hostload.test.mjs +28 -0
- package/bin/lean/intake.mjs +97 -0
- package/bin/lean/intake.test.mjs +105 -0
- package/bin/lean/interfaces.mjs +181 -0
- package/bin/lean/interfaces.test.mjs +192 -0
- package/bin/lean/issuewatch-install.mjs +52 -12
- package/bin/lean/issuewatch-install.test.mjs +50 -0
- package/bin/lean/issuewatch-parity.mjs +16 -3
- package/bin/lean/issuewatch-parity.test.mjs +32 -0
- package/bin/lean/issuewatch-reconcile.mjs +29 -1
- package/bin/lean/issuewatch-reconcile.test.mjs +21 -0
- package/bin/lean/issuewatch.mjs +34 -3
- package/bin/lean/issuewatch.test.mjs +49 -1
- package/bin/lean/lanecheck.test.mjs +15 -4
- package/bin/lean/lean.mjs +110 -24
- package/bin/lean/lean.test.mjs +183 -4
- package/bin/lean/orchestrate-blocked.test.mjs +18 -2
- package/bin/lean/orchestrate-owned.test.mjs +14 -5
- package/bin/lean/orchestrate.mjs +26 -4
- package/bin/lean/orphan-pr.mjs +3 -2
- package/bin/lean/orphan-pr.test.mjs +8 -1
- package/bin/lean/pagegate.mjs +35 -12
- package/bin/lean/pagegate.test.mjs +39 -1
- package/bin/lean/preflight.mjs +35 -1
- package/bin/lean/preflight.test.mjs +27 -1
- package/bin/lean/prompts.mjs +2 -1
- package/bin/lean/reap.test.mjs +39 -0
- package/bin/lean/recovery.test.mjs +28 -3
- package/bin/lean/release-config.mjs +169 -0
- package/bin/lean/release-config.test.mjs +132 -0
- package/bin/lean/release-control.mjs +171 -0
- package/bin/lean/release-control.test.mjs +167 -0
- package/bin/lean/release-deploy.mjs +209 -0
- package/bin/lean/release-deploy.test.mjs +217 -0
- package/bin/lean/release-fence.mjs +50 -0
- package/bin/lean/release-fence.test.mjs +105 -0
- package/bin/lean/release-flakes.mjs +139 -0
- package/bin/lean/release-flakes.test.mjs +116 -0
- package/bin/lean/release-gates.mjs +230 -0
- package/bin/lean/release-gates.test.mjs +146 -0
- package/bin/lean/release-ledger.mjs +176 -0
- package/bin/lean/release-ledger.test.mjs +226 -0
- package/bin/lean/release-minutes.mjs +102 -0
- package/bin/lean/release-minutes.test.mjs +107 -0
- package/bin/lean/release-nightly.mjs +75 -0
- package/bin/lean/release-nightly.test.mjs +48 -0
- package/bin/lean/release-postmerge.mjs +8 -2
- package/bin/lean/release-review.e2e.test.mjs +1 -0
- package/bin/lean/release-review.mjs +54 -7
- package/bin/lean/release-review.test.mjs +76 -7
- package/bin/lean/release-status.mjs +300 -0
- package/bin/lean/release-status.test.mjs +220 -0
- package/bin/lean/release-unitmap.mjs +35 -0
- package/bin/lean/release-unitmap.test.mjs +41 -0
- package/bin/lean/release-verify.mjs +221 -0
- package/bin/lean/release-verify.test.mjs +176 -0
- package/bin/lean/release.mjs +244 -22
- package/bin/lean/release.test.mjs +44 -0
- package/bin/lean/render.mjs +3 -1
- package/bin/lean/run-issue-placement.test.mjs +82 -0
- package/bin/lean/sandbox-remote.mjs +16 -0
- package/bin/lean/schedd.mjs +1 -1
- package/bin/lean/seam.mjs +115 -0
- package/bin/lean/seam.test.mjs +118 -0
- package/bin/lean/selftest-journey.mjs +40 -2
- package/bin/lean/selftest-journey.test.mjs +43 -3
- package/bin/lean/statuscomment.mjs +168 -0
- package/bin/lean/statuscomment.test.mjs +133 -0
- package/bin/lean/ui-quality.mjs +57 -0
- package/bin/lean/ui-quality.test.mjs +55 -0
- package/bin/lean/visual-gate.test.mjs +63 -0
- package/bin/pool/agent.mjs +16 -2
- package/bin/pool/router.mjs +5 -1
- package/bin/review-staging.mjs +5 -3
- package/bin/stats/card.mjs +117 -0
- package/bin/stats/card.test.mjs +109 -0
- package/bin/stats/conformance-outcomes.test.mjs +2 -1
- package/bin/stats/depth.mjs +1 -1
- package/bin/stats/gh-retry.test.mjs +152 -0
- package/bin/stats/github-source.mjs +147 -14
- package/bin/stats/index.mjs +35 -2
- package/bin/stats/stats.test.mjs +31 -3
- package/bin/vendor/js-yaml/LICENSE +21 -0
- package/bin/vendor/js-yaml/PIN.md +7 -0
- package/bin/vendor/js-yaml/js-yaml.mjs +3851 -0
- package/commands/design-render-critique-loop.md +2 -0
- package/commands/design.md +2 -0
- package/commands/issue.md +1 -1
- package/commands/milestone.md +1 -1
- package/commands/review-pr-agents/frontend.md +1 -0
- package/commands/review-pr-staging.md +5 -0
- package/docs/CONFIG.md +95 -2
- package/docs/ISSUE-WATCH.md +7 -0
- package/docs/OUTCOME-CODES.md +1 -0
- package/docs/STATS.md +10 -0
- package/docs/design/visual-gate.md +25 -0
- package/docs/eval/adversarial-bench.md +2 -2
- package/docs/eval/corpus/adversarial-v1.json +3 -3
- package/docs/site/start-a-new-project.md +7 -0
- package/docs/spec/forge-protocol-v1.md +31 -0
- package/package.json +1 -1
- package/pool/README.md +2 -0
- package/scripts/acceptance-red-green.sh +15 -1
- package/scripts/acceptance-red-green.test.sh +12 -0
- package/scripts/bench-adversarial.mjs +4 -0
- package/scripts/bench-lightlane.mjs +4 -1
- package/scripts/bootstrap-create.mjs +8 -2
- package/scripts/ci-local/scoping.mjs +19 -0
- package/scripts/ci-local.test.sh +16 -3
- package/scripts/fixtures/ci-local/gha-dorny/.github/workflows/ci.yml +4 -0
- package/scripts/plan-validate-live.mjs +9 -6
- package/scripts/review-prepare.sh +7 -1
- package/scripts/review-roster.sh +5 -2
- package/scripts/review-roster.test.sh +9 -0
- package/scripts/visual-gate.mjs +64 -0
- package/templates/bootstrap/technical-spike.md +17 -0
- package/templates/contracts/seam-check.mjs +236 -0
package/bin/stats/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* deletable cache; ~/.forge/runs is an optional extra source for runs that predate telemetry.
|
|
7
7
|
*/
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
9
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
10
10
|
import { dirname, join } from "node:path";
|
|
11
11
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
12
12
|
import { aggregate, computeAlerts, DEFAULT_ALERTS, DEFAULT_MIN_N } from "./aggregate.mjs";
|
|
@@ -14,6 +14,7 @@ import { defaultGh, fetchGithubRecords, isValidRepo, toModel } from "./github-so
|
|
|
14
14
|
import { readLanes, readLocalLaneRuns, readLocalRuns, runsDir } from "./local-source.mjs";
|
|
15
15
|
import { parseForgeYaml } from "../forge-utils.mjs";
|
|
16
16
|
import { renderCompact, renderJson, renderMarkdown } from "./render.mjs";
|
|
17
|
+
import { buildCard, renderCardMarkdown, renderCardPng, renderCardSvg } from "./card.mjs";
|
|
17
18
|
import { edgeQuery, parseEdge, verdictMix, contextPackAb, renderContextAb, builderTierReport, renderTiers, exploreAb, renderExploreAb, laneProfileReport, renderLaneProfiles } from "./query.mjs";
|
|
18
19
|
import { batchEfficiency, windowEfficiency, compareEfficiency, formatEfficiencyLines, formatCompareLines, parseWindows } from "./efficiency.mjs";
|
|
19
20
|
import { releaseMetrics, renderReleaseMetrics, metricsComment, postMetrics } from "./release.mjs";
|
|
@@ -46,6 +47,7 @@ export const HELP = `Usage: forgedock stats [--since <version|date>] [--repo <ow
|
|
|
46
47
|
forgedock stats --compounding [--window 30d] [--bucket 100,500] [--since <date>] [--min-n N] [--repo <owner/repo>] [--json]
|
|
47
48
|
forgedock stats --conformance-outcomes [--repo <owner/repo>] [--since <date>] [--window-days 7] [--min-n 20] [--json]
|
|
48
49
|
forgedock stats --efficiency [--batch <id>] [--window 7d,30d] [--compare <date|version>] [--offline] [--repo <owner/repo>] [--json]
|
|
50
|
+
forgedock stats --card [--week|--month] [--include-repo-names] [--public-repo] [--out <dir>] [--repo <owner/repo>]
|
|
49
51
|
forgedock stats --depth [--since <version|date>] [--min-n N] [--offline] [--repo <owner/repo>] [--json]
|
|
50
52
|
|
|
51
53
|
Version-over-version report: Cost, Time, Flow, Review funnel, Gates and Issue flow per (version, repo), with a
|
|
@@ -54,6 +56,9 @@ delta against the previous version and a low-n flag for samples under 10. Missin
|
|
|
54
56
|
--since <v|date> only versions >= <v> (e.g. 1.16.0) or activity on/after <date> (YYYY-MM-DD);
|
|
55
57
|
also bounds the GitHub crawl to that window
|
|
56
58
|
--repo <owner/repo> target repo (default: forge.yaml project, else the git origin remote)
|
|
59
|
+
--card shareable aggregate-only card (Markdown on stdout, or stats-card.svg + .png + .md in --out);
|
|
60
|
+
--week/--month bound it to the last 7/30 days; --include-repo-names adds the repo name;
|
|
61
|
+
--public-repo (repo is public) also adds a run-history link
|
|
57
62
|
--json machine-readable output
|
|
58
63
|
--refresh ignore the local cache and re-read everything from GitHub
|
|
59
64
|
(progress is printed to stderr while crawling)
|
|
@@ -160,7 +165,7 @@ Lane profile baseline (forge#4436; local run logs only, every run of each issue,
|
|
|
160
165
|
export function experimentExit(opts, report) { return opts.requireMet && report.targets_met !== true ? 1 : 0; }
|
|
161
166
|
|
|
162
167
|
export function parseArgs(argv) {
|
|
163
|
-
const o = { depth: false, conformanceOutcomes: false, windowDays: null, since: null, repo: null, edge: null, milestone: null, contextAb: false, exploreAb: false, tiers: false, compounding: false, selfFiled: false, origin: false, firstMerge: false, bucket: null, laneProfile: false, issues: null, efficiency: false, pool: false, batch: null, windows: null, compare: null, by: null, experiment: null, emitEvent: false, requireMet: false, postMetrics: null, offline: false, json: false, refresh: false, compact: false, local: true, cache: true, minN: DEFAULT_MIN_N, releaseTimes: null, help: false };
|
|
168
|
+
const o = { card: false, week: false, month: false, includeRepoNames: false, publicRepo: false, out: null, depth: false, conformanceOutcomes: false, windowDays: null, since: null, repo: null, edge: null, milestone: null, contextAb: false, exploreAb: false, tiers: false, compounding: false, selfFiled: false, origin: false, firstMerge: false, bucket: null, laneProfile: false, issues: null, efficiency: false, pool: false, batch: null, windows: null, compare: null, by: null, experiment: null, emitEvent: false, requireMet: false, postMetrics: null, offline: false, json: false, refresh: false, compact: false, local: true, cache: true, minN: DEFAULT_MIN_N, releaseTimes: null, help: false };
|
|
164
169
|
const val = (i, name) => {
|
|
165
170
|
const v = argv[i + 1];
|
|
166
171
|
if (v == null || v.startsWith("--")) throw new Error(`${name} needs a value`);
|
|
@@ -209,6 +214,12 @@ export function parseArgs(argv) {
|
|
|
209
214
|
else if (name === "--require-met") o.requireMet = true;
|
|
210
215
|
else if (name === "--offline") o.offline = true;
|
|
211
216
|
else if (name === "--min-n") { const v = take(); if (!/^\d+$/.test(v)) throw new Error("--min-n must be a non-negative integer"); o.minN = Number(v); o.minNSet = true; }
|
|
217
|
+
else if (name === "--card") o.card = true;
|
|
218
|
+
else if (name === "--week") o.week = true;
|
|
219
|
+
else if (name === "--month") o.month = true;
|
|
220
|
+
else if (name === "--include-repo-names") o.includeRepoNames = true;
|
|
221
|
+
else if (name === "--public-repo") o.publicRepo = true;
|
|
222
|
+
else if (name === "--out") o.out = take();
|
|
212
223
|
else if (name === "--json") o.json = true;
|
|
213
224
|
else if (name === "--refresh") o.refresh = true;
|
|
214
225
|
else if (name === "--compact") o.compact = true;
|
|
@@ -217,6 +228,10 @@ export function parseArgs(argv) {
|
|
|
217
228
|
else if (name === "--help" || name === "-h") o.help = true;
|
|
218
229
|
else throw new Error(`unknown argument: ${a}`);
|
|
219
230
|
}
|
|
231
|
+
if ((o.week || o.month || o.includeRepoNames || o.publicRepo || o.out) && !o.card) throw new Error("--week, --month, --include-repo-names, --public-repo and --out need --card");
|
|
232
|
+
if (o.week && o.month) throw new Error("--week and --month are mutually exclusive");
|
|
233
|
+
if (o.card && (o.depth || o.pool || o.efficiency || o.compounding || o.selfFiled || o.conformanceOutcomes || o.contextAb || o.exploreAb || o.tiers || o.laneProfile || o.edge || o.milestone || o.experiment || o.by)) throw new Error("--card cannot be combined with another query mode");
|
|
234
|
+
if (o.card && (o.week || o.month) && o.since) throw new Error("--week/--month and --since are mutually exclusive");
|
|
220
235
|
if (o.batch && !o.efficiency) throw new Error("--batch and --window need --efficiency");
|
|
221
236
|
if (o.windows && !o.efficiency && !o.pool && !o.compounding) throw new Error("--batch and --window need --efficiency");
|
|
222
237
|
if (o.bucket && !o.compounding) throw new Error("--bucket needs --compounding");
|
|
@@ -335,6 +350,11 @@ export function readAlertConfig(cwd = process.cwd()) {
|
|
|
335
350
|
return out;
|
|
336
351
|
}
|
|
337
352
|
|
|
353
|
+
/** forge.yaml `branding.show_attribution` (default true): the card footer link. */
|
|
354
|
+
export function readAttribution(cwd = process.cwd()) {
|
|
355
|
+
try { return String(parseForgeYaml(readFileSync(join(cwd, "forge.yaml"), "utf8"))?.branding?.show_attribution ?? "true") !== "false"; } catch { return true; }
|
|
356
|
+
}
|
|
357
|
+
|
|
338
358
|
/** Build the report object. deps: { gh, env, localRuns, now, onProgress, warn, sleep } for tests. Never touches the network when `gh` is stubbed. */
|
|
339
359
|
export async function buildReport(opts, deps = {}) {
|
|
340
360
|
const env = deps.env ?? process.env;
|
|
@@ -482,8 +502,21 @@ export async function runStats(argv, deps = {}) {
|
|
|
482
502
|
process.stderr.write(`forgedock stats: could not resolve a valid owner/repo (pass --repo owner/repo)\n`);
|
|
483
503
|
return 2;
|
|
484
504
|
}
|
|
505
|
+
if (opts.card && (opts.week || opts.month)) opts.since = new Date((deps.now?.() ?? Date.now()) - (opts.week ? 7 : 30) * 86400000).toISOString().slice(0, 10);
|
|
485
506
|
try {
|
|
486
507
|
const report = await buildReport(opts, { onProgress: makeProgressPrinter(), ...deps });
|
|
508
|
+
if (opts.card) {
|
|
509
|
+
const card = buildCard(report, { includeRepoNames: opts.includeRepoNames, publicRepo: opts.publicRepo, attribution: readAttribution(), repo: opts.repo,
|
|
510
|
+
windowLabel: opts.week ? "last 7 days" : opts.month ? "last 30 days" : opts.since ? `since ${opts.since}` : "all time" });
|
|
511
|
+
if (opts.out) {
|
|
512
|
+
mkdirSync(opts.out, { recursive: true });
|
|
513
|
+
writeFileSync(join(opts.out, "stats-card.svg"), `${renderCardSvg(card)}\n`);
|
|
514
|
+
writeFileSync(join(opts.out, "stats-card.png"), renderCardPng(card));
|
|
515
|
+
writeFileSync(join(opts.out, "stats-card.md"), `${renderCardMarkdown(card)}\n`);
|
|
516
|
+
}
|
|
517
|
+
process.stdout.write(`${opts.json ? renderJson(card) : renderCardMarkdown(card)}\n`);
|
|
518
|
+
return 0;
|
|
519
|
+
}
|
|
487
520
|
if (report.query?.release_metrics) {
|
|
488
521
|
const rm = report.query.release_metrics;
|
|
489
522
|
if (opts.postMetrics) await postMetrics({ gh: deps.gh ?? defaultGh, repo: opts.repo, pr: opts.postMetrics, body: metricsComment(rm) });
|
package/bin/stats/stats.test.mjs
CHANGED
|
@@ -20,6 +20,25 @@ const here = dirname(fileURLToPath(import.meta.url));
|
|
|
20
20
|
const fx = (f) => join(here, "fixtures", f);
|
|
21
21
|
const load = (f) => JSON.parse(readFileSync(fx(f), "utf8"));
|
|
22
22
|
const ENV = { FORGE_TRAIL_TRUSTED_ASSOCIATIONS: "OWNER,MEMBER,COLLABORATOR" };
|
|
23
|
+
/** #5530: numbers mode reads aliased GraphQL batches; answer one from per-number REST stub replies (issues/N, issues/N/comments). */
|
|
24
|
+
async function gqlBatch(args, rest) {
|
|
25
|
+
const q = args.find((a) => typeof a === "string" && a.startsWith("query=")) ?? "";
|
|
26
|
+
const user = (u) => (u ? { __typename: u.type === "Bot" ? "Bot" : "User", login: u.login ?? null } : null);
|
|
27
|
+
const repository = {};
|
|
28
|
+
for (const [, n] of q.matchAll(/i(\d+): issueOrPullRequest/g)) {
|
|
29
|
+
const raw = await rest(["api", `repos/o/r/issues/${n}`]);
|
|
30
|
+
const it = raw ? (typeof raw === "string" ? JSON.parse(raw || "null") : raw) : null;
|
|
31
|
+
const item = Array.isArray(it) ? it[0] : it;
|
|
32
|
+
if (!item || !Number.isInteger(item.number)) { repository[`i${n}`] = null; continue; }
|
|
33
|
+
const cr = await rest(["api", "--paginate", `repos/o/r/issues/${n}/comments`]);
|
|
34
|
+
const comments = (typeof cr === "string" ? JSON.parse(cr || "[]") : cr) ?? [];
|
|
35
|
+
repository[`i${n}`] = { __typename: item.pull_request ? "PullRequest" : "Issue", number: item.number, createdAt: item.created_at ?? null, closedAt: item.closed_at ?? null,
|
|
36
|
+
updatedAt: item.updated_at ?? null, milestone: item.milestone ?? null, labels: { nodes: (item.labels ?? []).map((l) => ({ name: typeof l === "string" ? l : l?.name })) }, author: user(item.user),
|
|
37
|
+
comments: { pageInfo: { hasNextPage: false }, nodes: comments.map((c) => ({ body: c.body, authorAssociation: c.author_association ?? null, author: user(c.user) })) } };
|
|
38
|
+
}
|
|
39
|
+
return JSON.stringify({ data: { repository } });
|
|
40
|
+
}
|
|
41
|
+
const isBatch = (args) => args[0] === "api" && args[1] === "graphql" && args.some((a) => typeof a === "string" && /issueOrPullRequest/.test(a));
|
|
23
42
|
|
|
24
43
|
// A fake `gh`: lists the fixture issues (honouring `since`), serves comments per number. Counts every call.
|
|
25
44
|
function fakeGh() {
|
|
@@ -398,7 +417,8 @@ describe("cache", () => {
|
|
|
398
417
|
const comments = [telemetryComment(2, "e1", "x", ts(2)), telemetryComment(4, "e2", "x", ts(3))];
|
|
399
418
|
const h = storeGh(mkItems(50), { comments });
|
|
400
419
|
const events = [];
|
|
401
|
-
const
|
|
420
|
+
const gh = (args) => (isBatch(args) ? gqlBatch(args, h.gh) : h.gh(args));
|
|
421
|
+
const r = await fetchGithubRecords({ repo: "o/r", gh, env, numbers: [4, 2, 2], onProgress: (e) => events.push(e) });
|
|
402
422
|
assert.deepEqual(r.items.map((i) => i.number).sort((a, b) => a - b), [2, 4]);
|
|
403
423
|
assert.equal(r.records.length, 2);
|
|
404
424
|
assert.ok(h.calls.every((c) => /issues\/(2|4)(\/comments)?$/.test(c)), h.calls.join(","));
|
|
@@ -408,6 +428,7 @@ describe("cache", () => {
|
|
|
408
428
|
it("--conformance-outcomes crawls only the joined PR and closing-issue numbers (#5363)", async () => {
|
|
409
429
|
const calls = [];
|
|
410
430
|
const gh = (args) => {
|
|
431
|
+
if (isBatch(args)) return gqlBatch(args, gh);
|
|
411
432
|
calls.push(args.join(" "));
|
|
412
433
|
if (/issues\/\d+\/comments/.test(args.join(" "))) return "[]";
|
|
413
434
|
const m = /issues\/(\d+)$/.exec(args.join(" "));
|
|
@@ -419,10 +440,17 @@ describe("cache", () => {
|
|
|
419
440
|
const crawl = calls.filter((c) => /issues/.test(c));
|
|
420
441
|
assert.ok(crawl.length > 0 && crawl.every((c) => /issues\/(3|4|9)(\/comments)?$/.test(c)), crawl.join(","));
|
|
421
442
|
});
|
|
422
|
-
it("budget: AlterLab-scale conformance crawl costs
|
|
443
|
+
it("budget: AlterLab-scale conformance crawl costs one GraphQL call per 20 joined issues, no comments scan or listing (#5363, #5530, R1 instrumentation)", async () => {
|
|
423
444
|
let n = 0;
|
|
445
|
+
const rest = (args) => {
|
|
446
|
+
const a = args.join(" ");
|
|
447
|
+
if (/issues\/\d+\/comments/.test(a)) return "[]";
|
|
448
|
+
const m = /issues\/(\d+)$/.exec(a);
|
|
449
|
+
return m ? JSON.stringify({ number: Number(m[1]), state: "closed", labels: [], created_at: ts(1), updated_at: ts(2) }) : null;
|
|
450
|
+
};
|
|
424
451
|
const gh = (args) => {
|
|
425
452
|
const a = args.join(" "); n++;
|
|
453
|
+
if (isBatch(args)) return gqlBatch(args, rest);
|
|
426
454
|
if (/issues\/\d+\/comments/.test(a)) return "[]";
|
|
427
455
|
const m = /issues\/(\d+)$/.exec(a);
|
|
428
456
|
if (m) return JSON.stringify({ number: Number(m[1]), state: "closed", labels: [], created_at: ts(1), updated_at: ts(2) });
|
|
@@ -431,7 +459,7 @@ describe("cache", () => {
|
|
|
431
459
|
const prs = Array.from({ length: 400 }, (_, i) => ({ number: 5000 + i, closingIssues: [{ number: 100 + i }] }));
|
|
432
460
|
await buildReport({ repo: "o/r", conformanceOutcomes: true, local: false, cache: false, minN: 10, since: "2026-10-01" },
|
|
433
461
|
{ gh, env: ENV, releaseTimes: [], gatherConformanceOutcomes: async () => ({ prs }), now: () => Date.UTC(2026, 10, 10), git: null });
|
|
434
|
-
assert.ok(n <=
|
|
462
|
+
assert.ok(n <= Math.ceil(800 / 20), `calls ${n}`);
|
|
435
463
|
});
|
|
436
464
|
it("progress printer shows an ETA when one is known (#5363)", () => {
|
|
437
465
|
const out = [];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2011-2015 by Vitaly Puzrin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Vendored js-yaml (#5551)
|
|
2
|
+
|
|
3
|
+
- Package: js-yaml 4.1.0 (MIT, see LICENSE), file `dist/js-yaml.mjs`, unmodified.
|
|
4
|
+
- Source: `npm pack js-yaml@4.1.0`
|
|
5
|
+
- sha256 of js-yaml.mjs: 16f210b939b359b6ec8dde581eb62c157185711dc7b719b33779c43db5c31a91
|
|
6
|
+
- Used only by `bin/lean/release-config.mjs` (`.forge/release.yaml`, JSON_SCHEMA, duplicate keys throw).
|
|
7
|
+
- To bump: re-vendor the new file, update version and sha256 here, run `bin/lean/release-config.test.mjs`.
|