mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-19 04:00:38 +09:00
test(ui): fix heartbeat run fixture drift
This commit is contained in:
parent
0162bb332c
commit
1cd0281b4d
3 changed files with 2 additions and 24 deletions
|
|
@ -135,6 +135,7 @@ function makeRun(id: string, status: HeartbeatRun["status"], createdAt: string,
|
||||||
errorCode: null,
|
errorCode: null,
|
||||||
externalRunId: null,
|
externalRunId: null,
|
||||||
processPid: null,
|
processPid: null,
|
||||||
|
processGroupId: null,
|
||||||
processStartedAt: null,
|
processStartedAt: null,
|
||||||
retryOfRunId: null,
|
retryOfRunId: null,
|
||||||
processLossRetryCount: 0,
|
processLossRetryCount: 0,
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ function createLiveRun(overrides: Partial<LiveRunForIssue> = {}): LiveRunForIssu
|
||||||
function createActiveRun(overrides: Partial<ActiveRunForIssue> = {}): ActiveRunForIssue {
|
function createActiveRun(overrides: Partial<ActiveRunForIssue> = {}): ActiveRunForIssue {
|
||||||
return {
|
return {
|
||||||
id: "run-1",
|
id: "run-1",
|
||||||
companyId: "company-1",
|
|
||||||
agentId: "agent-1",
|
agentId: "agent-1",
|
||||||
agentName: "CodexCoder",
|
agentName: "CodexCoder",
|
||||||
adapterType: "codex_local",
|
adapterType: "codex_local",
|
||||||
|
|
@ -31,30 +30,7 @@ function createActiveRun(overrides: Partial<ActiveRunForIssue> = {}): ActiveRunF
|
||||||
status: "running",
|
status: "running",
|
||||||
startedAt: new Date("2026-04-08T21:00:00.000Z"),
|
startedAt: new Date("2026-04-08T21:00:00.000Z"),
|
||||||
finishedAt: null,
|
finishedAt: null,
|
||||||
error: null,
|
|
||||||
wakeupRequestId: null,
|
|
||||||
exitCode: null,
|
|
||||||
signal: null,
|
|
||||||
usageJson: { inputTokens: 1 },
|
|
||||||
resultJson: { summary: "partial" },
|
|
||||||
sessionIdBefore: null,
|
|
||||||
sessionIdAfter: null,
|
|
||||||
logStore: null,
|
|
||||||
logRef: null,
|
|
||||||
logBytes: null,
|
|
||||||
logSha256: null,
|
|
||||||
logCompressed: false,
|
|
||||||
stdoutExcerpt: null,
|
|
||||||
stderrExcerpt: null,
|
|
||||||
errorCode: null,
|
|
||||||
externalRunId: null,
|
|
||||||
processPid: null,
|
|
||||||
processStartedAt: null,
|
|
||||||
retryOfRunId: null,
|
|
||||||
processLossRetryCount: 0,
|
|
||||||
contextSnapshot: null,
|
|
||||||
createdAt: new Date("2026-04-08T21:00:00.000Z"),
|
createdAt: new Date("2026-04-08T21:00:00.000Z"),
|
||||||
updatedAt: new Date("2026-04-08T21:00:00.000Z"),
|
|
||||||
...overrides,
|
...overrides,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,7 @@ describe("FailedRunInboxRow", () => {
|
||||||
errorCode: null,
|
errorCode: null,
|
||||||
externalRunId: null,
|
externalRunId: null,
|
||||||
processPid: null,
|
processPid: null,
|
||||||
|
processGroupId: null,
|
||||||
processStartedAt: null,
|
processStartedAt: null,
|
||||||
retryOfRunId: null,
|
retryOfRunId: null,
|
||||||
processLossRetryCount: 0,
|
processLossRetryCount: 0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue