Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): a PR watch tells the agent when the checks finish after a failure #39596

Mergedaglowienka(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/39596/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 149 additions and 1 deletion (loading 3).

x
0 of 4 viewed, 4 left
149 additions and 1 deletionapps/server/src/orchestration-v2/pullRequestWatch.test.tsModified
View file
@@ -176,6 +176,11 @@
assert.deepEqual(failed.changes, [
{ kind: "checks-failed", failed: [check("test", "failure")] },
+ {
+ kind: "checks-finished",
+ passed: 0,
+ failing: [check("lint", "failure"), check("test", "failure")],
+ },
]);
const clean = evaluatePullRequestWatch(
failed.next,
@@ -206,7 +211,7 @@
detail({ checks: [check("lint", "failure"), check("test", "success")] }),
noRemarks,
).changes,
- [],
+ [{ kind: "checks-finished", passed: 1, failing: [check("lint", "failure")] }],
assert.deepEqual(
evaluatePullRequestWatch(
@@ -653,6 +658,149 @@
assert.deepEqual(evaluatePullRequestWatch(final.next, lateResult, noRemarks).changes, []);
});
​
+ // regression: #30530 a failure told while other checks ran left the agent waiting for them forever
+ it.each([true, false])(
+ "wakes once when the other checks finish after one failed (required: %s)",