Merge pull request #1142 from plarson/fix/pending-review-not-failed

fix(engine): do not fail tasks parked for pending review
This commit is contained in:
gsxdsm
2026-05-29 08:05:48 -07:00
committed by GitHub
4 changed files with 14 additions and 9 deletions

View File

@@ -241,7 +241,7 @@ describe("Workflow Steps Execution", () => {
await executor.execute(baseTask as any);
expect(mockedCreateFnAgent).toHaveBeenCalledTimes(1);
expect(store.updateTask).toHaveBeenCalledWith("FN-5436-A", {
expect(store.updateTask).not.toHaveBeenCalledWith("FN-5436-A", {
status: "failed",
error: "executor-exit-while-review-pending",
});
@@ -253,7 +253,7 @@ describe("Workflow Steps Execution", () => {
undefined,
expect.objectContaining({ agentId: "executor" }),
);
expect(onError).toHaveBeenCalledWith(
expect(onError).not.toHaveBeenCalledWith(
expect.objectContaining({ id: "FN-5436-A" }),
expect.objectContaining({ message: "executor-exit-while-review-pending" }),
);
@@ -291,7 +291,7 @@ describe("Workflow Steps Execution", () => {
await executor.execute(baseTask as any);
expect(mockedCreateFnAgent).toHaveBeenCalledTimes(1);
expect(store.updateTask).toHaveBeenCalledWith("FN-5436-B", {
expect(store.updateTask).not.toHaveBeenCalledWith("FN-5436-B", {
status: "failed",
error: "executor-exit-while-review-pending",
});

View File

@@ -85,7 +85,7 @@ describe("reliability interactions: FN-5436 executor pending-review skip", () =>
const executor = new TaskExecutor(store as any, "/repo");
await executor.execute(task);
expect(store.updateTask).toHaveBeenCalledWith("FN-5436-RI-C", {
expect(store.updateTask).not.toHaveBeenCalledWith("FN-5436-RI-C", {
status: "failed",
error: "executor-exit-while-review-pending",
});