@codyswann/lisa 8.4.0 → 8.6.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/all/copy-overwrite/scripts/lib/private-key-redaction.d.mts +4 -0
- package/all/copy-overwrite/scripts/lib/private-key-redaction.mjs +59 -0
- package/all/copy-overwrite/scripts/lib/push-timing.mjs +2 -0
- package/all/copy-overwrite/scripts/lisa-gates.mjs +90 -7
- package/all/copy-overwrite/scripts/lisa-hooks/block-direct-issue-create.sh +4 -1
- package/all/copy-overwrite/scripts/lisa-hooks/worktree-binding-guard.mjs +56 -1
- package/all/copy-overwrite/scripts/lisa-run-gates.mjs +71 -20
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +3 -3
- package/dist/cli/gate-report-assemble.d.ts +7 -1
- package/dist/cli/gate-report-assemble.d.ts.map +1 -1
- package/dist/cli/gate-report-assemble.js +16 -1
- package/dist/cli/gate-report-assemble.js.map +1 -1
- package/dist/cli/gate-report-cells.d.ts +1 -1
- package/dist/cli/gate-report-cells.d.ts.map +1 -1
- package/dist/cli/gate-report-cells.js +6 -5
- package/dist/cli/gate-report-cells.js.map +1 -1
- package/dist/cli/gate-report-registry.d.ts +3 -0
- package/dist/cli/gate-report-registry.d.ts.map +1 -1
- package/dist/cli/gate-report-registry.js.map +1 -1
- package/dist/cli/gate-report-types.d.ts +5 -0
- package/dist/cli/gate-report-types.d.ts.map +1 -1
- package/dist/cli/gate-report.d.ts.map +1 -1
- package/dist/cli/gate-report.js +2 -5
- package/dist/cli/gate-report.js.map +1 -1
- package/dist/controls/attest-record.d.ts.map +1 -1
- package/dist/controls/attest-record.js +9 -3
- package/dist/controls/attest-record.js.map +1 -1
- package/dist/controls/audit-report-markdown.d.ts.map +1 -1
- package/dist/controls/audit-report-markdown.js +7 -0
- package/dist/controls/audit-report-markdown.js.map +1 -1
- package/dist/controls/carrier-agent-checkout.d.ts +6 -0
- package/dist/controls/carrier-agent-checkout.d.ts.map +1 -0
- package/dist/controls/carrier-agent-checkout.js +101 -0
- package/dist/controls/carrier-agent-checkout.js.map +1 -0
- package/dist/controls/carrier-agent-files.d.ts.map +1 -1
- package/dist/controls/carrier-agent-files.js +2 -1
- package/dist/controls/carrier-agent-files.js.map +1 -1
- package/dist/controls/carrier-agent-program.d.ts +0 -16
- package/dist/controls/carrier-agent-program.d.ts.map +1 -1
- package/dist/controls/carrier-agent-program.js +17 -14
- package/dist/controls/carrier-agent-program.js.map +1 -1
- package/dist/controls/carrier-agent-script.d.ts +2 -0
- package/dist/controls/carrier-agent-script.d.ts.map +1 -1
- package/dist/controls/carrier-agent-script.js +3 -1
- package/dist/controls/carrier-agent-script.js.map +1 -1
- package/dist/controls/carrier-agent-settings.d.ts +20 -0
- package/dist/controls/carrier-agent-settings.d.ts.map +1 -1
- package/dist/controls/carrier-agent-settings.js +91 -15
- package/dist/controls/carrier-agent-settings.js.map +1 -1
- package/dist/controls/carrier-edits.d.ts +1 -1
- package/dist/controls/carrier-edits.d.ts.map +1 -1
- package/dist/controls/carrier-edits.js +13 -3
- package/dist/controls/carrier-edits.js.map +1 -1
- package/dist/controls/carrier-manager-file.d.ts.map +1 -1
- package/dist/controls/carrier-manager-file.js +25 -2
- package/dist/controls/carrier-manager-file.js.map +1 -1
- package/dist/controls/carrier-owned-files.d.ts +4 -1
- package/dist/controls/carrier-owned-files.d.ts.map +1 -1
- package/dist/controls/carrier-owned-files.js +18 -3
- package/dist/controls/carrier-owned-files.js.map +1 -1
- package/dist/controls/carrier-runner-files.d.ts.map +1 -1
- package/dist/controls/carrier-runner-files.js +6 -4
- package/dist/controls/carrier-runner-files.js.map +1 -1
- package/dist/controls/carriers.d.ts.map +1 -1
- package/dist/controls/carriers.js +24 -7
- package/dist/controls/carriers.js.map +1 -1
- package/dist/controls/checks-binding.d.ts.map +1 -1
- package/dist/controls/checks-binding.js +13 -7
- package/dist/controls/checks-binding.js.map +1 -1
- package/dist/controls/commands/attest-before-enforce.d.ts.map +1 -1
- package/dist/controls/commands/attest-before-enforce.js +4 -5
- package/dist/controls/commands/attest-before-enforce.js.map +1 -1
- package/dist/controls/commands/attest-workspace.d.ts.map +1 -1
- package/dist/controls/commands/attest-workspace.js +3 -1
- package/dist/controls/commands/attest-workspace.js.map +1 -1
- package/dist/controls/commands/proof-check.js +1 -1
- package/dist/controls/commands/proof-check.js.map +1 -1
- package/dist/controls/commands/reconcile.d.ts.map +1 -1
- package/dist/controls/commands/reconcile.js +6 -6
- package/dist/controls/commands/reconcile.js.map +1 -1
- package/dist/controls/enforce-entry-outcome.d.ts +2 -1
- package/dist/controls/enforce-entry-outcome.d.ts.map +1 -1
- package/dist/controls/enforce-entry-outcome.js +17 -15
- package/dist/controls/enforce-entry-outcome.js.map +1 -1
- package/dist/controls/enforce-points.d.ts +2 -0
- package/dist/controls/enforce-points.d.ts.map +1 -1
- package/dist/controls/enforce-points.js +7 -2
- package/dist/controls/enforce-points.js.map +1 -1
- package/dist/controls/enforce-report.d.ts.map +1 -1
- package/dist/controls/enforce-report.js +6 -1
- package/dist/controls/enforce-report.js.map +1 -1
- package/dist/controls/enforce-summary.d.ts.map +1 -1
- package/dist/controls/enforce-summary.js +3 -1
- package/dist/controls/enforce-summary.js.map +1 -1
- package/dist/controls/evidence-redact.d.ts.map +1 -1
- package/dist/controls/evidence-redact.js +11 -6
- package/dist/controls/evidence-redact.js.map +1 -1
- package/dist/controls/gates-declaration.d.ts.map +1 -1
- package/dist/controls/gates-declaration.js +6 -1
- package/dist/controls/gates-declaration.js.map +1 -1
- package/dist/controls/proof-copy-preparation.d.ts +33 -0
- package/dist/controls/proof-copy-preparation.d.ts.map +1 -0
- package/dist/controls/proof-copy-preparation.js +159 -0
- package/dist/controls/proof-copy-preparation.js.map +1 -0
- package/dist/controls/proof-copy-prepared-state.d.ts +33 -0
- package/dist/controls/proof-copy-prepared-state.d.ts.map +1 -0
- package/dist/controls/proof-copy-prepared-state.js +117 -0
- package/dist/controls/proof-copy-prepared-state.js.map +1 -0
- package/dist/controls/proof-copy-workspace.d.ts.map +1 -1
- package/dist/controls/proof-copy-workspace.js +17 -4
- package/dist/controls/proof-copy-workspace.js.map +1 -1
- package/dist/controls/proof-copy.d.ts +5 -0
- package/dist/controls/proof-copy.d.ts.map +1 -1
- package/dist/controls/proof-copy.js +17 -15
- package/dist/controls/proof-copy.js.map +1 -1
- package/dist/controls/proof-patch.d.ts +12 -0
- package/dist/controls/proof-patch.d.ts.map +1 -1
- package/dist/controls/proof-patch.js +28 -0
- package/dist/controls/proof-patch.js.map +1 -1
- package/dist/controls/proof-preparation-declaration.d.ts +15 -0
- package/dist/controls/proof-preparation-declaration.d.ts.map +1 -0
- package/dist/controls/proof-preparation-declaration.js +57 -0
- package/dist/controls/proof-preparation-declaration.js.map +1 -0
- package/dist/controls/proof-tools.d.ts +7 -4
- package/dist/controls/proof-tools.d.ts.map +1 -1
- package/dist/controls/proof-tools.js +1 -1
- package/dist/controls/proof-tools.js.map +1 -1
- package/dist/controls/pull-request-executor.d.ts +1 -1
- package/dist/controls/pull-request-executor.d.ts.map +1 -1
- package/dist/controls/pull-request-executor.js +6 -3
- package/dist/controls/pull-request-executor.js.map +1 -1
- package/dist/controls/reconcile-agent-hooks.d.ts +16 -0
- package/dist/controls/reconcile-agent-hooks.d.ts.map +1 -0
- package/dist/controls/reconcile-agent-hooks.js +125 -0
- package/dist/controls/reconcile-agent-hooks.js.map +1 -0
- package/dist/controls/reconcile-carrier-points.d.ts.map +1 -1
- package/dist/controls/reconcile-carrier-points.js +15 -8
- package/dist/controls/reconcile-carrier-points.js.map +1 -1
- package/dist/controls/reconcile-findings.d.ts.map +1 -1
- package/dist/controls/reconcile-findings.js +17 -3
- package/dist/controls/reconcile-findings.js.map +1 -1
- package/dist/controls/reconcile-hook-lines.d.ts +2 -1
- package/dist/controls/reconcile-hook-lines.d.ts.map +1 -1
- package/dist/controls/reconcile-hook-lines.js +6 -4
- package/dist/controls/reconcile-hook-lines.js.map +1 -1
- package/dist/controls/reconcile-hooks.d.ts +10 -0
- package/dist/controls/reconcile-hooks.d.ts.map +1 -1
- package/dist/controls/reconcile-hooks.js +3 -3
- package/dist/controls/reconcile-hooks.js.map +1 -1
- package/dist/controls/reconcile-points.d.ts +9 -5
- package/dist/controls/reconcile-points.d.ts.map +1 -1
- package/dist/controls/reconcile-points.js +100 -2
- package/dist/controls/reconcile-points.js.map +1 -1
- package/dist/controls/reconcile-result.d.ts.map +1 -1
- package/dist/controls/reconcile-result.js +4 -2
- package/dist/controls/reconcile-result.js.map +1 -1
- package/dist/controls/reconcile-types.d.ts +16 -5
- package/dist/controls/reconcile-types.d.ts.map +1 -1
- package/dist/controls/reconcile-types.js +1 -0
- package/dist/controls/reconcile-types.js.map +1 -1
- package/dist/controls/reconcile.d.ts.map +1 -1
- package/dist/controls/reconcile.js +37 -9
- package/dist/controls/reconcile.js.map +1 -1
- package/dist/controls/register-drift.d.ts.map +1 -1
- package/dist/controls/register-drift.js +4 -3
- package/dist/controls/register-drift.js.map +1 -1
- package/dist/controls/secret-scan.d.ts.map +1 -1
- package/dist/controls/secret-scan.js +7 -5
- package/dist/controls/secret-scan.js.map +1 -1
- package/dist/controls/secret-shapes.d.ts +7 -7
- package/dist/controls/secret-shapes.d.ts.map +1 -1
- package/dist/controls/secret-shapes.js +7 -18
- package/dist/controls/secret-shapes.js.map +1 -1
- package/dist/controls/shipped-parts.d.ts +7 -0
- package/dist/controls/shipped-parts.d.ts.map +1 -1
- package/dist/controls/shipped-parts.js +17 -0
- package/dist/controls/shipped-parts.js.map +1 -1
- package/dist/controls/unmapped-gate-evidence.d.ts +9 -0
- package/dist/controls/unmapped-gate-evidence.d.ts.map +1 -0
- package/dist/controls/unmapped-gate-evidence.js +16 -0
- package/dist/controls/unmapped-gate-evidence.js.map +1 -0
- package/dist/controls/verdict-summary.d.ts +8 -0
- package/dist/controls/verdict-summary.d.ts.map +1 -1
- package/dist/controls/verdict-summary.js +22 -0
- package/dist/controls/verdict-summary.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +58 -0
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.json +74 -16
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-attest/SKILL.md +18 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-configure/SKILL.md +19 -6
- package/plugins/lisa/.codex-plugin/skills/lisa-enforce/SKILL.md +7 -9
- package/plugins/lisa/.codex-plugin/skills/lisa-enforce/references/pull-request-executor.md +84 -13
- package/plugins/lisa/hooks/block-direct-issue-create.sh +4 -1
- package/plugins/lisa/hooks/worktree-binding-guard.mjs +56 -1
- package/plugins/lisa/skills/lisa-attest/SKILL.md +18 -2
- package/plugins/lisa/skills/lisa-configure/SKILL.md +19 -6
- package/plugins/lisa/skills/lisa-enforce/SKILL.md +7 -9
- package/plugins/lisa/skills/lisa-enforce/references/pull-request-executor.md +84 -13
- package/plugins/lisa-agy/hooks/block-direct-issue-create.sh +4 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-attest/SKILL.md +18 -2
- package/plugins/lisa-agy/skills/lisa-configure/SKILL.md +19 -6
- package/plugins/lisa-agy/skills/lisa-enforce/SKILL.md +7 -9
- package/plugins/lisa-agy/skills/lisa-enforce/references/pull-request-executor.md +84 -13
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/block-direct-issue-create.sh +4 -1
- package/plugins/lisa-copilot/hooks/worktree-binding-guard.mjs +56 -1
- package/plugins/lisa-copilot/skills/lisa-attest/SKILL.md +18 -2
- package/plugins/lisa-copilot/skills/lisa-configure/SKILL.md +19 -6
- package/plugins/lisa-copilot/skills/lisa-enforce/SKILL.md +7 -9
- package/plugins/lisa-copilot/skills/lisa-enforce/references/pull-request-executor.md +84 -13
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-direct-issue-create.sh +4 -1
- package/plugins/lisa-cursor/hooks/worktree-binding-guard.mjs +56 -1
- package/plugins/lisa-cursor/skills/lisa-attest/SKILL.md +18 -2
- package/plugins/lisa-cursor/skills/lisa-configure/SKILL.md +19 -6
- package/plugins/lisa-cursor/skills/lisa-enforce/SKILL.md +7 -9
- package/plugins/lisa-cursor/skills/lisa-enforce/references/pull-request-executor.md +84 -13
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/block-direct-issue-create.sh +4 -1
- package/plugins/lisa-devin/hooks/worktree-binding-guard.mjs +56 -1
- package/plugins/lisa-devin/skills/lisa-attest/SKILL.md +18 -2
- package/plugins/lisa-devin/skills/lisa-configure/SKILL.md +19 -6
- package/plugins/lisa-devin/skills/lisa-enforce/SKILL.md +7 -9
- package/plugins/lisa-devin/skills/lisa-enforce/references/pull-request-executor.md +84 -13
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/block-direct-issue-create.sh +4 -1
- package/plugins/src/base/hooks/worktree-binding-guard.mjs +56 -1
- package/plugins/src/base/skills/lisa-attest/SKILL.md +18 -2
- package/plugins/src/base/skills/lisa-configure/SKILL.md +19 -6
- package/plugins/src/base/skills/lisa-enforce/SKILL.md +7 -9
- package/plugins/src/base/skills/lisa-enforce/references/pull-request-executor.md +84 -13
- package/rails/copy-overwrite/lefthook.yml +13 -1
- package/rails/copy-overwrite/scripts/lisa-rails-registry-env.sh +24 -0
- package/rails/copy-overwrite/scripts/lisa-rails-registry-gates.sh +32 -0
- package/scripts/lib/phrase-tests/redact.mjs +3 -8
- package/scripts/two-channel-couplings.json +1 -1
- package/typescript/copy-overwrite/.prettierignore +1 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// This file is managed by Lisa and IS replaced on each `lisa` run.
|
|
2
|
+
// Do not edit directly — durable changes belong upstream in Lisa.
|
|
3
|
+
|
|
4
|
+
/** Find private-key boundaries without making the regex traverse their body. */
|
|
5
|
+
const BOUNDARY =
|
|
6
|
+
/-----BEGIN (?:[A-Z ]*PRIVATE KEY-----)?|-----END [A-Z ]*PRIVATE KEY-----/gu;
|
|
7
|
+
const BEGIN = "-----BEGIN ";
|
|
8
|
+
const PLACEHOLDER = "[REDACTED:PRIVATE_KEY]";
|
|
9
|
+
const KEY_PAYLOAD = /^[A-Za-z0-9+/]+={0,2}$/u;
|
|
10
|
+
const KEY_METADATA = /^(?:Proc-Type|DEK-Info):[ \t]*[\w,-]+$/u;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Consume PEM body lines still present when output was cut before the footer.
|
|
14
|
+
* @param {string} text Captured output.
|
|
15
|
+
* @param {number} start First character after the opening boundary.
|
|
16
|
+
* @returns {number} The end of the visible key material, or the given start.
|
|
17
|
+
*/
|
|
18
|
+
function unterminatedKeyEnd(text, start) {
|
|
19
|
+
const rows = /(?:\r\n|\r|\n)([^\r\n]*)/y;
|
|
20
|
+
rows.lastIndex = start;
|
|
21
|
+
let end = start;
|
|
22
|
+
for (let row = rows.exec(text); row !== null; row = rows.exec(text)) {
|
|
23
|
+
const line = row[1].trim();
|
|
24
|
+
if (line === "") continue;
|
|
25
|
+
if (!KEY_PAYLOAD.test(line) && !KEY_METADATA.test(line)) break;
|
|
26
|
+
end = rows.lastIndex;
|
|
27
|
+
}
|
|
28
|
+
return end;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Replace each key up to the first closing line or the next block.
|
|
33
|
+
* When the footer is missing, consume the visible PEM body before any prose.
|
|
34
|
+
* @param {string} text Text which may contain key material.
|
|
35
|
+
* @returns {string} Text with private keys replaced.
|
|
36
|
+
*/
|
|
37
|
+
export function redactPrivateKeyBlocks(text) {
|
|
38
|
+
/** @type {string[]} */
|
|
39
|
+
const output = [];
|
|
40
|
+
/** @type {{ start: number, body: number } | null} */
|
|
41
|
+
let key = null;
|
|
42
|
+
let offset = 0;
|
|
43
|
+
for (const match of text.matchAll(BOUNDARY)) {
|
|
44
|
+
const first = match[0].startsWith(BEGIN);
|
|
45
|
+
const end = match.index + match[0].length;
|
|
46
|
+
if (key !== null && (first || match.index > key.body)) {
|
|
47
|
+
output.push(text.slice(offset, key.start), PLACEHOLDER);
|
|
48
|
+
offset = first ? unterminatedKeyEnd(text, key.body) : end;
|
|
49
|
+
key = null;
|
|
50
|
+
}
|
|
51
|
+
if (first && match[0].length > BEGIN.length)
|
|
52
|
+
key = { start: match.index, body: end };
|
|
53
|
+
}
|
|
54
|
+
if (key !== null) {
|
|
55
|
+
output.push(text.slice(offset, key.start), PLACEHOLDER);
|
|
56
|
+
offset = unterminatedKeyEnd(text, key.body);
|
|
57
|
+
}
|
|
58
|
+
return output.length === 0 ? text : output.join("") + text.slice(offset);
|
|
59
|
+
}
|
|
@@ -40,6 +40,7 @@ const REPORT_NAME = /^\d{4}-\d{2}-\d{2}T\d{2}-\d{2}-\d{2}Z(?:-\d+)?\.json$/u;
|
|
|
40
40
|
/**
|
|
41
41
|
* @typedef {object} GateTiming
|
|
42
42
|
* @property {string} id Gate id.
|
|
43
|
+
* @property {string} [scope] Folder when this record is for a declared part.
|
|
43
44
|
* @property {string|null} level Declared level.
|
|
44
45
|
* @property {string|null} command Command that proved it.
|
|
45
46
|
* @property {string} state PASSED, CACHED, FAILED, UNPROVABLE, KILLED, SKIPPED or NOT_RUN.
|
|
@@ -236,6 +237,7 @@ function gateRecord(entry) {
|
|
|
236
237
|
.replaceAll("-", "_");
|
|
237
238
|
return {
|
|
238
239
|
id: entry.id,
|
|
240
|
+
...(typeof entry.scope === "string" ? { scope: entry.scope } : {}),
|
|
239
241
|
level: entry.level ?? null,
|
|
240
242
|
command: entry.command ?? null,
|
|
241
243
|
state,
|
|
@@ -1518,6 +1518,7 @@ function isNonRunnerProverMode(mode) {
|
|
|
1518
1518
|
* @param {string} options.moment The moment to resolve.
|
|
1519
1519
|
* @param {string} [options.runner] The task runner.
|
|
1520
1520
|
* @param {object|null} [options.scripts] The project's package scripts.
|
|
1521
|
+
* @param {string|null} [options.hostWorkflow] A standalone GitHub workflow's declared path.
|
|
1521
1522
|
* @returns {object[]} One leg per context this moment must post.
|
|
1522
1523
|
*/
|
|
1523
1524
|
export function momentLegs({
|
|
@@ -1525,7 +1526,19 @@ export function momentLegs({
|
|
|
1525
1526
|
moment,
|
|
1526
1527
|
runner = DEFAULT_RUNNER,
|
|
1527
1528
|
scripts = null,
|
|
1529
|
+
hostWorkflow = null,
|
|
1528
1530
|
}) {
|
|
1531
|
+
if (hostWorkflow !== null) {
|
|
1532
|
+
if (
|
|
1533
|
+
moment !== PULL_REQUEST ||
|
|
1534
|
+
!/^\.github\/workflows\/[\w.-]+\.ya?ml$/u.test(hostWorkflow)
|
|
1535
|
+
) {
|
|
1536
|
+
throw new Error(
|
|
1537
|
+
"Use --host-workflow=.github/workflows/<file>.yml with --moment=pull-request."
|
|
1538
|
+
);
|
|
1539
|
+
}
|
|
1540
|
+
return hostWorkflowLegs({ gates, moment, runner, scripts, hostWorkflow });
|
|
1541
|
+
}
|
|
1529
1542
|
const spokenFor = new Set(jobBackedGates());
|
|
1530
1543
|
const legs = [];
|
|
1531
1544
|
for (const gate of resolvedForLegs({ gates, moment, runner, scripts })) {
|
|
@@ -1587,6 +1600,60 @@ export function momentLegs({
|
|
|
1587
1600
|
return legs;
|
|
1588
1601
|
}
|
|
1589
1602
|
|
|
1603
|
+
/**
|
|
1604
|
+
* Plan one GitHub job per gate the host's workflow owns. Scoped parts share
|
|
1605
|
+
* that job and the gate runner judges them together.
|
|
1606
|
+
* @param {object} options Resolution inputs.
|
|
1607
|
+
* @param {object} options.gates The project gates block.
|
|
1608
|
+
* @param {string} options.moment The pull-request moment.
|
|
1609
|
+
* @param {string} options.runner The task runner.
|
|
1610
|
+
* @param {object|null} options.scripts The project's package scripts.
|
|
1611
|
+
* @param {string} options.hostWorkflow The project-owned workflow's path.
|
|
1612
|
+
* @returns {object[]} One leg per declared gate for this workflow.
|
|
1613
|
+
*/
|
|
1614
|
+
function hostWorkflowLegs({ gates, moment, runner, scripts, hostWorkflow }) {
|
|
1615
|
+
const seen = new Set();
|
|
1616
|
+
const prefix = DEFAULT_CALLER_CHAIN.join(CONTEXT_SEPARATOR);
|
|
1617
|
+
return resolveMoment({
|
|
1618
|
+
gates,
|
|
1619
|
+
moment,
|
|
1620
|
+
runner,
|
|
1621
|
+
scripts,
|
|
1622
|
+
includeOff: true,
|
|
1623
|
+
}).flatMap(gate => {
|
|
1624
|
+
const executor = gates?.[gate.id]?.[moment]?.[EXECUTOR_FIELD];
|
|
1625
|
+
if (
|
|
1626
|
+
executor?.platform !== LISA_EXECUTOR_PLATFORM ||
|
|
1627
|
+
executor.path !== hostWorkflow ||
|
|
1628
|
+
seen.has(gate.id) ||
|
|
1629
|
+
isNonRunnerProverMode(gate.mode)
|
|
1630
|
+
)
|
|
1631
|
+
return [];
|
|
1632
|
+
seen.add(gate.id);
|
|
1633
|
+
const action =
|
|
1634
|
+
gate.level === "off"
|
|
1635
|
+
? "report"
|
|
1636
|
+
: gate.scope !== undefined || gate.task
|
|
1637
|
+
? "run"
|
|
1638
|
+
: "unproved";
|
|
1639
|
+
return [
|
|
1640
|
+
{
|
|
1641
|
+
gate: gate.id,
|
|
1642
|
+
label: gate.label,
|
|
1643
|
+
context: runContext(gate, prefix),
|
|
1644
|
+
level: gate.level,
|
|
1645
|
+
action,
|
|
1646
|
+
runner: action === "run" ? "node" : "",
|
|
1647
|
+
task:
|
|
1648
|
+
action === "run"
|
|
1649
|
+
? `scripts/lisa-run-gates.mjs --moment=${PULL_REQUEST} --builtins=none --parts=all --gate=${gate.id}`
|
|
1650
|
+
: "",
|
|
1651
|
+
timeout: gate.costly ? COSTLY_LEG_TIMEOUT_MINUTES : LEG_TIMEOUT_MINUTES,
|
|
1652
|
+
},
|
|
1653
|
+
];
|
|
1654
|
+
});
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1590
1657
|
/**
|
|
1591
1658
|
* The gates a moment's legs are built from, including what a release pass
|
|
1592
1659
|
* inherits.
|
|
@@ -3448,6 +3515,7 @@ export const KNOWN_CONFIG_KEYS = Object.freeze([
|
|
|
3448
3515
|
"deploy",
|
|
3449
3516
|
"quality",
|
|
3450
3517
|
"gates",
|
|
3518
|
+
"controls",
|
|
3451
3519
|
"policy",
|
|
3452
3520
|
"intake",
|
|
3453
3521
|
"monitor",
|
|
@@ -6547,6 +6615,20 @@ function declaredCallerChain(value) {
|
|
|
6547
6615
|
: callerChainFrom({ workflowName: String(value) });
|
|
6548
6616
|
}
|
|
6549
6617
|
|
|
6618
|
+
/**
|
|
6619
|
+
* Use the same spelling for a job's emitted name and its required context.
|
|
6620
|
+
* @param {{callerChain: string[]|string|null, label: string}} gate The resolved gate.
|
|
6621
|
+
* @param {string} prefix The workflow's default caller chain.
|
|
6622
|
+
* @returns The check run's name.
|
|
6623
|
+
*/
|
|
6624
|
+
function runContext(gate, prefix) {
|
|
6625
|
+
const chain =
|
|
6626
|
+
gate.callerChain === null
|
|
6627
|
+
? prefix
|
|
6628
|
+
: declaredCallerChain(gate.callerChain).join(CONTEXT_SEPARATOR);
|
|
6629
|
+
return `${chain}${CONTEXT_SEPARATOR}${gate.label}`;
|
|
6630
|
+
}
|
|
6631
|
+
|
|
6550
6632
|
/**
|
|
6551
6633
|
* The prefix one declaration's derived context carries, from its own chain.
|
|
6552
6634
|
*
|
|
@@ -6648,11 +6730,7 @@ export function contextsFor(gates, options = {}) {
|
|
|
6648
6730
|
// so the caller-wide chain describes a route to it that does not exist.
|
|
6649
6731
|
// Everything below this line is identical either way, which is what
|
|
6650
6732
|
// keeps an override from becoming a second way to spell a context.
|
|
6651
|
-
|
|
6652
|
-
gate.callerChain === null
|
|
6653
|
-
? prefix
|
|
6654
|
-
: declaredCallerChain(gate.callerChain).join(CONTEXT_SEPARATOR);
|
|
6655
|
-
return `${chain}${CONTEXT_SEPARATOR}${gate.label}`;
|
|
6733
|
+
return runContext(gate, prefix);
|
|
6656
6734
|
});
|
|
6657
6735
|
|
|
6658
6736
|
// Explicitly requested overlap remains additive. This option answers a
|
|
@@ -7513,8 +7591,13 @@ function main() {
|
|
|
7513
7591
|
if (command === "legs") {
|
|
7514
7592
|
const moment = flag("moment");
|
|
7515
7593
|
if (!moment)
|
|
7516
|
-
throw new Error(
|
|
7517
|
-
|
|
7594
|
+
throw new Error(
|
|
7595
|
+
"usage: lisa-gates.mjs legs --moment=<moment> [--json] [--host-workflow=<path>]"
|
|
7596
|
+
);
|
|
7597
|
+
const hostWorkflow = rest.includes("--host-workflow")
|
|
7598
|
+
? ""
|
|
7599
|
+
: flag("host-workflow");
|
|
7600
|
+
const legs = momentLegs({ gates, moment, runner, scripts, hostWorkflow });
|
|
7518
7601
|
if (rest.includes("--json")) {
|
|
7519
7602
|
// ONE LINE, deliberately. This is read by `fromJSON()` in a workflow
|
|
7520
7603
|
// through a job output, and a job output is a single line — a
|
|
@@ -729,11 +729,14 @@ HTTP_CLIS = {"curl", "http", "httpie", "wget"}
|
|
|
729
729
|
# and permitting something we demonstrably cannot read. Deliberately narrower
|
|
730
730
|
# than "mentions a tracker CLI" so an ordinary unparseable command
|
|
731
731
|
# (`echo 'it's fine`) still passes.
|
|
732
|
+
# The GitHub collection can create an issue. A complete numeric member path
|
|
733
|
+
# identifies an existing issue. Keep the fallback for other route forms and
|
|
734
|
+
# for independent creation signatures appearing alongside a member path.
|
|
732
735
|
UNPARSEABLE_CREATION = re.compile(
|
|
733
736
|
r"\b(?:gh|jira|linear)\b[^\n]*?\bissue\b[^\n]*?\bcreate\b"
|
|
734
737
|
r"|\bacli\b[^\n]*?\b(?:workitem|issue)s?\b[^\n]*?\bcreate\b"
|
|
735
738
|
r"|\bcreateIssue\b|\bissueCreate\b"
|
|
736
|
-
r"|repos/[^/\s]+/[^/\s]+/issues"
|
|
739
|
+
r"|repos/[^/\s]+/[^/\s]+/issues\b(?!/[0-9]+(?:$|[\s'\"`.,);?#]))"
|
|
737
740
|
r"|atlassian\.net/rest/api/[^/\s]+/issue",
|
|
738
741
|
re.IGNORECASE,
|
|
739
742
|
)
|
|
@@ -442,6 +442,56 @@ function applyCd(current, target) {
|
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
+
const PYTHON_STRING = String.raw`(?:"[^"\\]*"|'[^'\\]*')`;
|
|
446
|
+
const PYTHON_BYTES = `b${PYTHON_STRING}`;
|
|
447
|
+
const PYTHON_NAME = "[A-Za-z_][A-Za-z0-9_]*";
|
|
448
|
+
const PYTHON_BYTES_ASSIGNMENT = new RegExp(
|
|
449
|
+
String.raw`^(${PYTHON_NAME})[ \t]*=[ \t]*${PYTHON_BYTES}$`,
|
|
450
|
+
"u"
|
|
451
|
+
);
|
|
452
|
+
const PYTHON_BYTES_COMPARISON = new RegExp(
|
|
453
|
+
String.raw`^assert[ \t]+(${PYTHON_NAME})\.replace\([ \t]*${PYTHON_BYTES}[ \t]*,[ \t]*${PYTHON_BYTES}[ \t]*\)[ \t]*==[ \t]*(${PYTHON_NAME})$`,
|
|
454
|
+
"u"
|
|
455
|
+
);
|
|
456
|
+
const PYTHON_LITERAL_GIT_CALL = new RegExp(
|
|
457
|
+
String.raw`^subprocess\.check_output\(\[[ \t]*(?:"git"|'git')(?:[ \t]*,[ \t]*${PYTHON_STRING})*[ \t]*\](?:[ \t]*,[ \t]*cwd[ \t]*=[ \t]*b?${PYTHON_STRING})?[ \t]*\)$`,
|
|
458
|
+
"u"
|
|
459
|
+
);
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Ignore the literals of a bounded Python source-byte comparison. The script
|
|
463
|
+
* can assign two bytes values and compare one replacement with the other.
|
|
464
|
+
* Optional literal Git subprocess calls remain visible to the path scanner.
|
|
465
|
+
* Any additional Python statement keeps the full source under inspection.
|
|
466
|
+
* @param {string} text - The bounded source read from the script
|
|
467
|
+
* @returns {string} The source to inspect for directory paths
|
|
468
|
+
*/
|
|
469
|
+
function pythonSourceForPathScan(text) {
|
|
470
|
+
const lines = text
|
|
471
|
+
.split(/\r\n?|\n/u)
|
|
472
|
+
.map(line => line.trim())
|
|
473
|
+
.filter(line => line !== "" && !line.startsWith("#"));
|
|
474
|
+
const importsSubprocess = lines[0] === "import subprocess";
|
|
475
|
+
const [first, second, assertion, ...calls] = lines.slice(
|
|
476
|
+
importsSubprocess ? 1 : 0
|
|
477
|
+
);
|
|
478
|
+
const before = PYTHON_BYTES_ASSIGNMENT.exec(first ?? "")?.[1];
|
|
479
|
+
const after = PYTHON_BYTES_ASSIGNMENT.exec(second ?? "")?.[1];
|
|
480
|
+
const compared = PYTHON_BYTES_COMPARISON.exec(assertion ?? "");
|
|
481
|
+
if (
|
|
482
|
+
before === undefined ||
|
|
483
|
+
after === undefined ||
|
|
484
|
+
before === after ||
|
|
485
|
+
compared?.[1] !== before ||
|
|
486
|
+
compared[2] !== after ||
|
|
487
|
+
(calls.length > 0 && !importsSubprocess) ||
|
|
488
|
+
!calls.every(line => PYTHON_LITERAL_GIT_CALL.test(line))
|
|
489
|
+
) {
|
|
490
|
+
return text;
|
|
491
|
+
}
|
|
492
|
+
return calls.join("\n");
|
|
493
|
+
}
|
|
494
|
+
|
|
445
495
|
/**
|
|
446
496
|
* The foreign worktree an executed script reaches, or null.
|
|
447
497
|
*
|
|
@@ -532,7 +582,12 @@ function scriptReachingForeignTree(payload, bound) {
|
|
|
532
582
|
// Not a readable file: nothing was executed that this can read.
|
|
533
583
|
continue;
|
|
534
584
|
}
|
|
535
|
-
const
|
|
585
|
+
const program = tokenise(segment)[0]?.split("/").at(-1);
|
|
586
|
+
const inspected =
|
|
587
|
+
program === "python" || program === "python3"
|
|
588
|
+
? pythonSourceForPathScan(text)
|
|
589
|
+
: text;
|
|
590
|
+
const foreign = foreignTreeIn(inspected, bound, cwd);
|
|
536
591
|
if (foreign) return { script: path, foreign };
|
|
537
592
|
}
|
|
538
593
|
return null;
|
|
@@ -1527,6 +1527,7 @@ function verdictFor(
|
|
|
1527
1527
|
* True by default, which is every hook a stack template ships. False for a
|
|
1528
1528
|
* caller with none (`--builtins=none`): a gate resolved to `builtin` is then
|
|
1529
1529
|
* reported as not proved, because nothing is left to prove it.
|
|
1530
|
+
* @param {boolean} [options.completeParts] Keep running costly parts after a required part fails.
|
|
1530
1531
|
* @param {() => ({paths: string[]|null, note: string|null})} [options.change]
|
|
1531
1532
|
* Says which paths the change touches (CodySwannGT/lisa#4988), as
|
|
1532
1533
|
* `changeAt` in `lib/changed-paths` answers it. `paths: null` means "not
|
|
@@ -1551,6 +1552,7 @@ export function runGates({
|
|
|
1551
1552
|
cache = null,
|
|
1552
1553
|
selection = null,
|
|
1553
1554
|
builtins = true,
|
|
1555
|
+
completeParts = false,
|
|
1554
1556
|
change = () => ({ paths: null, note: null }),
|
|
1555
1557
|
}) {
|
|
1556
1558
|
const resolved = resolveMoment({ gates, moment, runner, scripts });
|
|
@@ -1645,7 +1647,7 @@ export function runGates({
|
|
|
1645
1647
|
const start = isPart(gate) ? partStart(gate, root) : null;
|
|
1646
1648
|
const verdict = verdictFor(gate, {
|
|
1647
1649
|
proved,
|
|
1648
|
-
blockedBy: blocker,
|
|
1650
|
+
blockedBy: completeParts && isPart(gate) ? null : blocker,
|
|
1649
1651
|
exec,
|
|
1650
1652
|
execArgv,
|
|
1651
1653
|
start,
|
|
@@ -2299,12 +2301,13 @@ function isRunnableFile(path) {
|
|
|
2299
2301
|
* supervisor and blocks there. Neither is a pass.
|
|
2300
2302
|
* @param {string} program The first item of a part's argument list.
|
|
2301
2303
|
* @param {string} cwd The folder the command starts in.
|
|
2304
|
+
* @param {string} [searchPath] The command environment’s executable search path.
|
|
2302
2305
|
* @returns {string|null} Why the program cannot be started, finishing
|
|
2303
2306
|
* `NOTHING_RAN`, or null when a runnable file answers to that name.
|
|
2304
2307
|
*/
|
|
2305
|
-
function programProblem(program, cwd) {
|
|
2308
|
+
function programProblem(program, cwd, searchPath = DEFAULT_SEARCH_PATH) {
|
|
2306
2309
|
if (!program.includes("/")) {
|
|
2307
|
-
const found =
|
|
2310
|
+
const found = searchPath
|
|
2308
2311
|
.split(delimiter)
|
|
2309
2312
|
.some(folder => isRunnableFile(resolve(cwd, folder, program)));
|
|
2310
2313
|
return found ? null : programMissing(program);
|
|
@@ -2347,12 +2350,10 @@ function programMissing(program) {
|
|
|
2347
2350
|
* supervisor's own messages still reach this process's error output.
|
|
2348
2351
|
* @param {readonly string[]} argv The program and its arguments.
|
|
2349
2352
|
* @param {string} cwd The folder to start in.
|
|
2350
|
-
* @param {{capture: boolean, quiet: boolean, budgetMs: number}} how
|
|
2351
|
-
* keep a diagnostic tail of the output, whether to show nothing while the
|
|
2352
|
-
* command runs, and the deadline.
|
|
2353
|
+
* @param {{capture: boolean, quiet: boolean, budgetMs: number, env?: NodeJS.ProcessEnv}} how How to supervise and capture the command.
|
|
2353
2354
|
* @returns {import("node:child_process").SpawnSyncReturns<string>} Result.
|
|
2354
2355
|
*/
|
|
2355
|
-
function superviseArgv(argv, cwd, { capture, quiet, budgetMs }) {
|
|
2356
|
+
function superviseArgv(argv, cwd, { capture, quiet, budgetMs, env }) {
|
|
2356
2357
|
const watch = isWatchablePid(LAUNCH_PARENT_PID)
|
|
2357
2358
|
? [`--watch-pid=${LAUNCH_PARENT_PID}`]
|
|
2358
2359
|
: [];
|
|
@@ -2373,6 +2374,7 @@ function superviseArgv(argv, cwd, { capture, quiet, budgetMs }) {
|
|
|
2373
2374
|
shell: false,
|
|
2374
2375
|
stdio: capture ? [shown, shown, "inherit", "pipe"] : "inherit",
|
|
2375
2376
|
timeout: budgetMs + PROCESS_TREE_REAP_BUDGET_MS,
|
|
2377
|
+
...(env === undefined ? {} : { env }),
|
|
2376
2378
|
}
|
|
2377
2379
|
);
|
|
2378
2380
|
}
|
|
@@ -2422,19 +2424,20 @@ function partBudget(timeoutMs) {
|
|
|
2422
2424
|
* reads from nothing and what it prints is collected instead of shown.
|
|
2423
2425
|
* @param {readonly string[]} argv The program and its arguments.
|
|
2424
2426
|
* @param {string} cwd The folder to start in.
|
|
2425
|
-
* @param {{quiet: boolean, budgetMs: number}} how Whether to collect the
|
|
2427
|
+
* @param {{quiet: boolean, budgetMs: number, env?: NodeJS.ProcessEnv}} how Whether to collect the
|
|
2426
2428
|
* output instead of showing it, and the deadline.
|
|
2427
2429
|
* @returns {{code: number|null, output: string|null, signal?: string, notStarted?: string}}
|
|
2428
2430
|
* Exit code; null with `notStarted` when the program could not be started.
|
|
2429
2431
|
* @throws {Error} When the program was killed at its deadline.
|
|
2430
2432
|
*/
|
|
2431
|
-
function startArgv(argv, cwd, { quiet, budgetMs }) {
|
|
2433
|
+
function startArgv(argv, cwd, { quiet, budgetMs, env }) {
|
|
2432
2434
|
const [program, ...rest] = argv;
|
|
2433
2435
|
const child = boundedSpawnSync(program, rest, {
|
|
2434
2436
|
cwd,
|
|
2435
2437
|
shell: false,
|
|
2436
2438
|
stdio: quiet ? ["ignore", "pipe", "pipe"] : "inherit",
|
|
2437
2439
|
timeout: budgetMs,
|
|
2440
|
+
...(env === undefined ? {} : { env }),
|
|
2438
2441
|
// Only a quiet start collects anything, and a check that prints a great
|
|
2439
2442
|
// deal must still be read rather than cut off as if it could not start.
|
|
2440
2443
|
...(quiet ? { maxBuffer: QUIET_OUTPUT_BYTES } : {}),
|
|
@@ -2470,8 +2473,8 @@ function startArgv(argv, cwd, { quiet, budgetMs }) {
|
|
|
2470
2473
|
* It starts in `cwd` and nowhere else, so `cwd` is required: a part's command
|
|
2471
2474
|
* must never run in whatever folder the runner happened to be started in.
|
|
2472
2475
|
*
|
|
2473
|
-
*
|
|
2474
|
-
*
|
|
2476
|
+
* Gate commands inherit this process's environment. Proof preparation can
|
|
2477
|
+
* supply a copy without repository-selection variables from Git hooks.
|
|
2475
2478
|
*
|
|
2476
2479
|
* ## What it refuses, and how
|
|
2477
2480
|
*
|
|
@@ -2510,6 +2513,7 @@ function startArgv(argv, cwd, { quiet, budgetMs }) {
|
|
|
2510
2513
|
* from 1 to thirty minutes. Thirty minutes when left out.
|
|
2511
2514
|
* @param {boolean} [options.quiet] Show nothing while the command runs, and
|
|
2512
2515
|
* always keep what it printed.
|
|
2516
|
+
* @param {NodeJS.ProcessEnv} [options.env] Environment for this start.
|
|
2513
2517
|
* @returns {{code: number|null, output: string|null, signal?: string, notStarted?: string, timedOut?: true}}
|
|
2514
2518
|
* OS status and diagnostic tail, or why nothing started.
|
|
2515
2519
|
* @throws {TypeError} When `argv` is not a list of text naming a program,
|
|
@@ -2517,7 +2521,7 @@ function startArgv(argv, cwd, { quiet, budgetMs }) {
|
|
|
2517
2521
|
*/
|
|
2518
2522
|
export function spawnArgv(
|
|
2519
2523
|
argv,
|
|
2520
|
-
{ cwd, platform = process.platform, timeoutMs, quiet = false } = {}
|
|
2524
|
+
{ cwd, platform = process.platform, timeoutMs, quiet = false, env } = {}
|
|
2521
2525
|
) {
|
|
2522
2526
|
const problem = argvProblem(argv);
|
|
2523
2527
|
if (problem !== null) {
|
|
@@ -2555,7 +2559,7 @@ export function spawnArgv(
|
|
|
2555
2559
|
: answer;
|
|
2556
2560
|
if (platform === "win32") {
|
|
2557
2561
|
try {
|
|
2558
|
-
return startArgv(argv, cwd, { quiet, budgetMs });
|
|
2562
|
+
return startArgv(argv, cwd, { quiet, budgetMs, env });
|
|
2559
2563
|
} catch (error) {
|
|
2560
2564
|
// A gate keeps what it always had here. Only a start that was given a
|
|
2561
2565
|
// limit of its own is answered instead.
|
|
@@ -2563,11 +2567,12 @@ export function spawnArgv(
|
|
|
2563
2567
|
return atDeadline(killedOrRethrow(error));
|
|
2564
2568
|
}
|
|
2565
2569
|
}
|
|
2566
|
-
const
|
|
2570
|
+
const searchPath = env === undefined ? process.env.PATH : env.PATH;
|
|
2571
|
+
const notStarted = programProblem(argv[0], cwd, searchPath);
|
|
2567
2572
|
if (notStarted !== null) return { code: null, output: null, notStarted };
|
|
2568
2573
|
const capture = quiet || process.env.LISA_GATES_CAPTURE !== "0";
|
|
2569
2574
|
try {
|
|
2570
|
-
const child = superviseArgv(argv, cwd, { capture, quiet, budgetMs });
|
|
2575
|
+
const child = superviseArgv(argv, cwd, { capture, quiet, budgetMs, env });
|
|
2571
2576
|
// A non-timeout `spawnSync` failure arrives on the result, and it means
|
|
2572
2577
|
// the supervisor itself never ran: nothing checked this part.
|
|
2573
2578
|
if (child.error) return { code: null, output: null };
|
|
@@ -2793,7 +2798,10 @@ function readFlag(argv, name) {
|
|
|
2793
2798
|
/** How the command line is written. */
|
|
2794
2799
|
const USAGE =
|
|
2795
2800
|
"usage: lisa-run-gates.mjs --moment=<moment> [--coverage=<file>] " +
|
|
2796
|
-
"[--evidence=<file>] [--builtins=none] [--push-refs=<file>|-] [--parts=all]";
|
|
2801
|
+
"[--evidence=<file>] [--builtins=none] [--push-refs=<file>|-] [--parts=all] [--gate=<id>]";
|
|
2802
|
+
|
|
2803
|
+
/** The gate id a standalone pull-request job is responsible for. */
|
|
2804
|
+
const GATE_FLAG = "gate";
|
|
2797
2805
|
|
|
2798
2806
|
/**
|
|
2799
2807
|
* The flag a push hook uses to hand over what git told it is being pushed.
|
|
@@ -2974,16 +2982,25 @@ export function main(argv = process.argv.slice(2)) {
|
|
|
2974
2982
|
const partsFlag = argv.includes(`--${PARTS_FLAG}`)
|
|
2975
2983
|
? ""
|
|
2976
2984
|
: readFlag(argv, PARTS_FLAG);
|
|
2985
|
+
const onlyGate = argv.includes(`--${GATE_FLAG}`)
|
|
2986
|
+
? ""
|
|
2987
|
+
: readFlag(argv, GATE_FLAG);
|
|
2988
|
+
const standalone = builtinsFlag === NO_BUILTINS;
|
|
2989
|
+
const gateFlagProblem =
|
|
2990
|
+
onlyGate !== null &&
|
|
2991
|
+
(onlyGate === "" || !standalone || moment !== "pull-request")
|
|
2992
|
+
? "Use --gate=<id> with --moment=pull-request and --builtins=none."
|
|
2993
|
+
: null;
|
|
2977
2994
|
const flagProblem =
|
|
2978
2995
|
builtinsFlagProblem(builtinsFlag, coveragePath) ??
|
|
2979
|
-
partsFlagProblem(partsFlag)
|
|
2996
|
+
partsFlagProblem(partsFlag) ??
|
|
2997
|
+
gateFlagProblem;
|
|
2980
2998
|
if (flagProblem) {
|
|
2981
2999
|
console.error(`⚠️ ${flagProblem}`);
|
|
2982
3000
|
console.error(USAGE);
|
|
2983
3001
|
console.error(" Nothing ran, so nothing was proved. This is NOT a pass.");
|
|
2984
3002
|
return EXIT.RUNNER_FAILED;
|
|
2985
3003
|
}
|
|
2986
|
-
const standalone = builtinsFlag === NO_BUILTINS;
|
|
2987
3004
|
// Standard input is read NOW, before anything else is started. Every gate
|
|
2988
3005
|
// command inherits it, and git writes the pushed refs there exactly once:
|
|
2989
3006
|
// read lazily, whichever of the runner and a gate got there first would
|
|
@@ -3063,6 +3080,14 @@ export function main(argv = process.argv.slice(2)) {
|
|
|
3063
3080
|
// has not adopted the registry, so the caller must run its hardcoded steps.
|
|
3064
3081
|
if (!config.gates || Object.keys(config.gates).length === 0) {
|
|
3065
3082
|
if (coveragePath) writeCoverage(coveragePath, []);
|
|
3083
|
+
if (onlyGate !== null) {
|
|
3084
|
+
reportRefusal(
|
|
3085
|
+
moment,
|
|
3086
|
+
[`No gate ${JSON.stringify(onlyGate)} is declared.`],
|
|
3087
|
+
line => console.error(line)
|
|
3088
|
+
);
|
|
3089
|
+
return settle(EXIT.BLOCKED, EVIDENCE_VERDICT.REFUSED);
|
|
3090
|
+
}
|
|
3066
3091
|
// A caller with no built-in checks has no hardcoded steps to run instead,
|
|
3067
3092
|
// so 78 would be an instruction it cannot follow. What is true is that
|
|
3068
3093
|
// nothing is declared and so nothing was checked: the same answer a gates
|
|
@@ -3127,6 +3152,31 @@ export function main(argv = process.argv.slice(2)) {
|
|
|
3127
3152
|
`to see them.`
|
|
3128
3153
|
);
|
|
3129
3154
|
}
|
|
3155
|
+
const gatesToRun =
|
|
3156
|
+
onlyGate === null ? config.gates : { [onlyGate]: config.gates[onlyGate] };
|
|
3157
|
+
if (
|
|
3158
|
+
onlyGate !== null &&
|
|
3159
|
+
(!Object.hasOwn(config.gates, onlyGate) ||
|
|
3160
|
+
!resolveMoment({
|
|
3161
|
+
gates: gatesToRun,
|
|
3162
|
+
moment,
|
|
3163
|
+
runner: config.runner,
|
|
3164
|
+
scripts,
|
|
3165
|
+
}).some(gate => gate.mode === "run"))
|
|
3166
|
+
) {
|
|
3167
|
+
reportRefusal(
|
|
3168
|
+
moment,
|
|
3169
|
+
[
|
|
3170
|
+
`Gate ${JSON.stringify(onlyGate)} has no runnable declaration at this moment.`,
|
|
3171
|
+
],
|
|
3172
|
+
line => console.error(line)
|
|
3173
|
+
);
|
|
3174
|
+
return settle(EXIT.BLOCKED, EVIDENCE_VERDICT.REFUSED, {
|
|
3175
|
+
gates: config.gates,
|
|
3176
|
+
runner: config.runner,
|
|
3177
|
+
scripts,
|
|
3178
|
+
});
|
|
3179
|
+
}
|
|
3130
3180
|
|
|
3131
3181
|
// The stack's push-gate defaults (CodySwannGT/lisa#4611): a TypeScript host
|
|
3132
3182
|
// gets the pass cache, admission and affected tests without declaring them,
|
|
@@ -3272,7 +3322,7 @@ export function main(argv = process.argv.slice(2)) {
|
|
|
3272
3322
|
// (CodySwannGT/lisa#4600) and says so through this channel.
|
|
3273
3323
|
const selection = moment === "push" ? openSelectionReports() : null;
|
|
3274
3324
|
const result = runGates({
|
|
3275
|
-
gates:
|
|
3325
|
+
gates: gatesToRun,
|
|
3276
3326
|
moment,
|
|
3277
3327
|
runner: config.runner,
|
|
3278
3328
|
// Selection reporting wraps the admission-aware `exec`, so a narrowed
|
|
@@ -3286,6 +3336,7 @@ export function main(argv = process.argv.slice(2)) {
|
|
|
3286
3336
|
cache,
|
|
3287
3337
|
selection,
|
|
3288
3338
|
builtins: !standalone,
|
|
3339
|
+
completeParts: onlyGate !== null,
|
|
3289
3340
|
// What the change touches is read HERE and handed down, for the reason
|
|
3290
3341
|
// the manifest is: `runGates` stays a function of its inputs. It is asked
|
|
3291
3342
|
// only if this moment has a part for a folder, so a gates block with no
|
|
@@ -3378,7 +3429,7 @@ export function main(argv = process.argv.slice(2)) {
|
|
|
3378
3429
|
return settle(
|
|
3379
3430
|
result.blocked ? EXIT.BLOCKED : EXIT.PROVED,
|
|
3380
3431
|
result.blocked ? EVIDENCE_VERDICT.BLOCKED : EVIDENCE_VERDICT.PROVED,
|
|
3381
|
-
{ gates:
|
|
3432
|
+
{ gates: gatesToRun, result, runner: config.runner, scripts }
|
|
3382
3433
|
);
|
|
3383
3434
|
}
|
|
3384
3435
|
|
|
@@ -1415,7 +1415,7 @@
|
|
|
1415
1415
|
"children": []
|
|
1416
1416
|
},
|
|
1417
1417
|
"lib/push-timing.mjs": {
|
|
1418
|
-
"sha256": "
|
|
1418
|
+
"sha256": "14df8a7b9ebd0d69e72ee0b02e4801ff72b9b3000e80a6a23324e556efbbcdbb",
|
|
1419
1419
|
"staticImports": [
|
|
1420
1420
|
"lib/bounded-spawn.mjs",
|
|
1421
1421
|
"node:fs",
|
|
@@ -1580,7 +1580,7 @@
|
|
|
1580
1580
|
"children": []
|
|
1581
1581
|
},
|
|
1582
1582
|
"lisa-gates.mjs": {
|
|
1583
|
-
"sha256": "
|
|
1583
|
+
"sha256": "42beca1ca7830cd56f617102c61644c877a232d10a37811b8357bdb1a9c6cc29",
|
|
1584
1584
|
"staticImports": [
|
|
1585
1585
|
"lib/gate-pass-cache.mjs",
|
|
1586
1586
|
"lib/invoked-as-script.mjs",
|
|
@@ -1665,7 +1665,7 @@
|
|
|
1665
1665
|
"children": []
|
|
1666
1666
|
},
|
|
1667
1667
|
"lisa-run-gates.mjs": {
|
|
1668
|
-
"sha256": "
|
|
1668
|
+
"sha256": "32d9ba926ee0c7f8a5f4ab80c9377b6693d01438990667e85be2e33997af42e6",
|
|
1669
1669
|
"staticImports": [
|
|
1670
1670
|
"lib/affected-tests.mjs",
|
|
1671
1671
|
"lib/bounded-spawn.mjs",
|
|
@@ -15,10 +15,16 @@ export interface ResolvedMoment {
|
|
|
15
15
|
/** The moment, `:environment` suffix included. */
|
|
16
16
|
readonly moment: string;
|
|
17
17
|
/** `resolveMoment(..., includeOff: true)` keyed by gate id, or null. */
|
|
18
|
-
readonly resolved:
|
|
18
|
+
readonly resolved: ReadonlyMap<string, readonly ResolvedGate[]> | null;
|
|
19
19
|
/** Why `resolved` is null, when it is. */
|
|
20
20
|
readonly failure: string | null;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Keep every resolved part together under its gate id.
|
|
24
|
+
* @param entries - The registry's resolved entries, in declaration order
|
|
25
|
+
* @returns Each gate and all its resolved entries
|
|
26
|
+
*/
|
|
27
|
+
export declare function groupResolvedGates(entries: readonly ResolvedGate[]): ReadonlyMap<string, readonly ResolvedGate[]>;
|
|
22
28
|
/**
|
|
23
29
|
* Invert the static job table so a gate can name its CI job.
|
|
24
30
|
* @param registry - The shipped registry
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gate-report-assemble.d.ts","sourceRoot":"","sources":["../../src/cli/gate-report-assemble.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EACV,kBAAkB,EAClB,YAAY,EACb,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5E,8CAA8C;AAC9C,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"gate-report-assemble.d.ts","sourceRoot":"","sources":["../../src/cli/gate-report-assemble.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EACV,kBAAkB,EAClB,YAAY,EACb,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAkB,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5E,8CAA8C;AAC9C,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC,GAAG,IAAI,CAAC;IACvE,0CAA0C;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,SAAS,YAAY,EAAE,GAC/B,WAAW,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC,CAK9C;AAkBD;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,kBAAkB,GAC3B,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAiBrB;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CACtB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,SAAS,cAAc,EAAE,EAClC,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GACtC,aAAa,CAoCf"}
|
|
@@ -8,6 +8,15 @@
|
|
|
8
8
|
* @module cli/gate-report-assemble
|
|
9
9
|
*/
|
|
10
10
|
import { buildCell } from "./gate-report-cells.js";
|
|
11
|
+
/**
|
|
12
|
+
* Keep every resolved part together under its gate id.
|
|
13
|
+
* @param entries - The registry's resolved entries, in declaration order
|
|
14
|
+
* @returns Each gate and all its resolved entries
|
|
15
|
+
*/
|
|
16
|
+
export function groupResolvedGates(entries) {
|
|
17
|
+
const ids = new Set(entries.map(entry => entry.id));
|
|
18
|
+
return new Map([...ids].map(id => [id, entries.filter(entry => entry.id === id)]));
|
|
19
|
+
}
|
|
11
20
|
/**
|
|
12
21
|
* A gate-level `run` override from the settings file.
|
|
13
22
|
* @param gates - The gates block
|
|
@@ -54,7 +63,13 @@ export function buildRow(context, moments, id, jobForGate) {
|
|
|
54
63
|
const definition = context.registry.REGISTRY[id];
|
|
55
64
|
const mergeIndex = moments.findIndex(entry => entry.moment === context.mergeMoment);
|
|
56
65
|
const qualityJob = jobForGate.get(id) ?? null;
|
|
57
|
-
const cells = moments.map(moment =>
|
|
66
|
+
const cells = moments.map(moment => {
|
|
67
|
+
const cell = buildCell(context, moment, id, qualityJob);
|
|
68
|
+
const parts = (moment.resolved?.get(id) ?? []).flatMap(part => part.scope === undefined
|
|
69
|
+
? []
|
|
70
|
+
: [{ scope: part.scope, argv: part.argv ?? null }]);
|
|
71
|
+
return parts.length === 0 ? cell : { ...cell, parts };
|
|
72
|
+
});
|
|
58
73
|
return {
|
|
59
74
|
id,
|
|
60
75
|
label: definition?.label ?? id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gate-report-assemble.js","sourceRoot":"","sources":["../../src/cli/gate-report-assemble.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,SAAS,EAAoB,MAAM,wBAAwB,CAAC;AAiBrE;;;;;GAKG;AACH,SAAS,gBAAgB,CACvB,KAA8B,EAC9B,EAAU;IAEV,MAAM,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC;IACvB,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAC3D,MAAM,GAAG,GAAY,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC9C,OAAO,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAC5B,QAA4B;IAE5B,wEAAwE;IACxE,wEAAwE;IACxE,0EAA0E;IAC1E,2EAA2E;IAC3E,6EAA6E;IAC7E,8BAA8B;IAC9B,MAAM,SAAS,GAAG,IAAI,GAAG,CAAS,QAAQ,CAAC,qB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