@codyswann/lisa 4.97.0 → 4.97.1
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/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +9 -1
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- 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-agy/plugin.json +1 -1
- 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-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- 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-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-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/scripts/lisa-ci-failure-redispatch.mjs +57 -5
|
@@ -20,7 +20,12 @@
|
|
|
20
20
|
* a newer push or a manual re-run, and bouncing an item for it would
|
|
21
21
|
* re-dispatch an agent for a failure nobody observed. It is not a pass
|
|
22
22
|
* either, so it holds the clear path until it resolves.
|
|
23
|
-
* - Every required check PASSED when each bucket is `pass` or `skipping
|
|
23
|
+
* - Every required check PASSED when each bucket is `pass` or `skipping` AND
|
|
24
|
+
* every required context the PR's base-branch rulesets name has reported.
|
|
25
|
+
* `gh pr checks --required` lists only checks that reported, so a required
|
|
26
|
+
* context with no row — CI never dispatched, or not started — is pending,
|
|
27
|
+
* not passed (CodySwannGT/lisa#4711). A reported failure is still a failure
|
|
28
|
+
* however many contexts are missing.
|
|
24
29
|
* - Anything else is still running: no write.
|
|
25
30
|
*
|
|
26
31
|
* What triggers a decision (CodySwannGT/lisa#4678): a CI workflow run, and
|
|
@@ -212,7 +217,7 @@ function candidatePullRequests(run, repo, gh) {
|
|
|
212
217
|
* @param {object} run - `workflow_run` object.
|
|
213
218
|
* @param {object} contract - Tracker contract.
|
|
214
219
|
* @param {Function} gh - Runner.
|
|
215
|
-
* @returns {{stop?: object, pr?: number, item?: string}} A stop decision or the binding.
|
|
220
|
+
* @returns {{stop?: object, pr?: number, baseRef?: string, item?: string}} A stop decision or the binding.
|
|
216
221
|
*/
|
|
217
222
|
function resolveBinding(run, contract, gh) {
|
|
218
223
|
const repo = contract.repository;
|
|
@@ -235,7 +240,7 @@ function resolveBinding(run, contract, gh) {
|
|
|
235
240
|
"--repo",
|
|
236
241
|
repo,
|
|
237
242
|
"--json",
|
|
238
|
-
"number,state,body,headRefOid,isCrossRepository",
|
|
243
|
+
"number,state,body,headRefOid,isCrossRepository,baseRefName",
|
|
239
244
|
]);
|
|
240
245
|
const base = { pr: pr.number };
|
|
241
246
|
if (pr.state !== "OPEN")
|
|
@@ -255,6 +260,7 @@ function resolveBinding(run, contract, gh) {
|
|
|
255
260
|
try {
|
|
256
261
|
return {
|
|
257
262
|
pr: pr.number,
|
|
263
|
+
baseRef: pr.baseRefName,
|
|
258
264
|
item: soleWorkItem(pr.body ?? "", contract, "pull-request body"),
|
|
259
265
|
};
|
|
260
266
|
} catch (error) {
|
|
@@ -555,6 +561,38 @@ function planClear(ctx) {
|
|
|
555
561
|
};
|
|
556
562
|
}
|
|
557
563
|
|
|
564
|
+
/**
|
|
565
|
+
* Hold a pass whose reported rows leave a required context unreported.
|
|
566
|
+
*
|
|
567
|
+
* `gh pr checks --required` lists only checks that have REPORTED, so a
|
|
568
|
+
* required check that never ran — CI not dispatched on a conflicting PR, or
|
|
569
|
+
* not started yet — is missing from the rows rather than failing in them
|
|
570
|
+
* (CodySwannGT/lisa#4711). The base branch's rulesets are the authority on
|
|
571
|
+
* what is required; a context they name with no row has not passed, so the
|
|
572
|
+
* pass is pending. Read only on a pass, or when no required row has reported
|
|
573
|
+
* at all: a reported failure is a failure whatever else is missing, and a
|
|
574
|
+
* pending verdict is already pending.
|
|
575
|
+
* @param {Array<{name: string}>} checks - Reported required rows.
|
|
576
|
+
* @param {string} baseRef - The PR's base branch.
|
|
577
|
+
* @param {object} contract - Tracker contract.
|
|
578
|
+
* @param {Function} gh - Runner.
|
|
579
|
+
* @param {object} known - Fields already known.
|
|
580
|
+
* @returns {Plan|null} A `checks-pending` stop, or null when nothing is unreported.
|
|
581
|
+
*/
|
|
582
|
+
function holdUnreported(checks, baseRef, contract, gh, known) {
|
|
583
|
+
if (typeof baseRef !== "string" || baseRef === "")
|
|
584
|
+
throw new Error("the pull request read carries no base branch");
|
|
585
|
+
const required = requiredContexts(contract.repository, baseRef, gh);
|
|
586
|
+
const reported = new Set(checks.map(c => c.name));
|
|
587
|
+
const unreported = [...required].filter(context => !reported.has(context));
|
|
588
|
+
if (unreported.length === 0) return null;
|
|
589
|
+
return stop(
|
|
590
|
+
"checks-pending",
|
|
591
|
+
`${unreported.length} of ${required.size} required checks on ${baseRef} have not reported on this head: ${unreported.join(", ")}`,
|
|
592
|
+
known
|
|
593
|
+
);
|
|
594
|
+
}
|
|
595
|
+
|
|
558
596
|
/**
|
|
559
597
|
* Decide what one completed run means for its PR's work item. Reads only.
|
|
560
598
|
* @param {{run: object, repository: string, contract: object, gh: Function}} input - Run and readers.
|
|
@@ -576,8 +614,18 @@ export function planRedispatch({ run, repository, contract, gh }) {
|
|
|
576
614
|
if (!view.open)
|
|
577
615
|
return stop("work-item-closed", "the work item is closed", known);
|
|
578
616
|
const checks = readRequiredChecks(pr, contract.repository, gh);
|
|
617
|
+
// gh answers "no required checks reported" both when nothing is required
|
|
618
|
+
// and when nothing required has reported YET; only the ruleset tells them
|
|
619
|
+
// apart.
|
|
579
620
|
if (checks === null)
|
|
580
|
-
return
|
|
621
|
+
return (
|
|
622
|
+
holdUnreported([], binding.baseRef, contract, gh, known) ??
|
|
623
|
+
stop(
|
|
624
|
+
"no-required-checks",
|
|
625
|
+
`the rulesets on ${binding.baseRef} require no status checks`,
|
|
626
|
+
known
|
|
627
|
+
)
|
|
628
|
+
);
|
|
581
629
|
const { verdict, failing } = classifyRequiredChecks(checks);
|
|
582
630
|
const ctx = {
|
|
583
631
|
...known,
|
|
@@ -589,7 +637,11 @@ export function planRedispatch({ run, repository, contract, gh }) {
|
|
|
589
637
|
events: () => readEvents(view.number, contract.repository, gh),
|
|
590
638
|
};
|
|
591
639
|
if (verdict === "fail") return planFailure(ctx);
|
|
592
|
-
if (verdict === "pass")
|
|
640
|
+
if (verdict === "pass")
|
|
641
|
+
return (
|
|
642
|
+
holdUnreported(checks, binding.baseRef, contract, gh, known) ??
|
|
643
|
+
planClear(ctx)
|
|
644
|
+
);
|
|
593
645
|
return stop(
|
|
594
646
|
"checks-pending",
|
|
595
647
|
"no required check has failed and some have not finished",
|