Skip to content

Commit

Permalink
Fix job error metrics (#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 committed Apr 23, 2024
1 parent 16aa439 commit 7fc0d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workflowRun/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export const computeJobMetrics = (
}

if (checkSuite) {
const checkRun = checkSuite.node.checkRuns.nodes.find((checkRun) => checkRun.databaseId === job.run_id)
const checkRun = checkSuite.node.checkRuns.nodes.find((checkRun) => checkRun.databaseId === job.id)
if (checkRun) {
if (checkRun.annotations.nodes.some((a) => isLostCommunicationWithServerError(a.message))) {
series.push({
Expand Down

0 comments on commit 7fc0d22

Please sign in to comment.