diff --git a/src/constants/externalResources.test.ts b/src/constants/externalResources.test.ts index eba7eb762f..80593e211e 100644 --- a/src/constants/externalResources.test.ts +++ b/src/constants/externalResources.test.ts @@ -70,7 +70,7 @@ describe("getTaskSystemMetricsUrl", () => { expect( getHoneycombSystemMetricsUrl( "task_12345", - null, + [], new Date("2023-07-07T19:08:41"), new Date("2023-07-07T20:00:00") ) @@ -90,7 +90,7 @@ describe("getTaskSystemMetricsUrlWithDisks", () => { new Date("2023-07-07T20:00:00") ) ).toBe( - `/datasets/evergreen?query={"calculations":[{"op":"AVG","column":"system.memory.usage.used"},{"op":"AVG","column":"system.cpu.utilization"},{"op":"RATE_AVG","column":"system.network.io.transmit"},{"op":"RATE_AVG","column":"system.network.io.receive"},{"op":"RATE_AVG","column":"system.disk.io.disk1.write"},{"op":"RATE_AVG","column":"system.disk.operations.disk1.read"},{"op":"RATE_AVG","column":"system.disk.operations.disk1.write"},{"op":"RATE_AVG","column":"system.disk.io_time.disk1"},{"op":"RATE_AVG","column":"system.disk.io.disk2.read"},{"op":"RATE_AVG","column":"system.disk.io.disk2.write"},{"op":"RATE_AVG","column":"system.disk.operations.disk2.read"},{"op":"RATE_AVG","column":"system.disk.operations.disk2.write"},{"op":"RATE_AVG","column":"system.disk.io_time.disk2"}],"filters":[{"op":"=","column":"evergreen.task.id","value":"task_12345"}],"start_time":1688756921,"end_time":1688760000}&omitMissingValues` + `/datasets/evergreen?query={"calculations":[{"op":"AVG","column":"system.memory.usage.used"},{"op":"AVG","column":"system.cpu.utilization"},{"op":"RATE_AVG","column":"system.network.io.transmit"},{"op":"RATE_AVG","column":"system.network.io.receive"},{"op":"RATE_AVG","column":"system.disk.io.disk1.read"},{"op":"RATE_AVG","column":"system.disk.io.disk1.write"},{"op":"RATE_AVG","column":"system.disk.operations.disk1.read"},{"op":"RATE_AVG","column":"system.disk.operations.disk1.write"},{"op":"RATE_AVG","column":"system.disk.io_time.disk1"},{"op":"RATE_AVG","column":"system.disk.io.disk2.read"},{"op":"RATE_AVG","column":"system.disk.io.disk2.write"},{"op":"RATE_AVG","column":"system.disk.operations.disk2.read"},{"op":"RATE_AVG","column":"system.disk.operations.disk2.write"},{"op":"RATE_AVG","column":"system.disk.io_time.disk2"}],"filters":[{"op":"=","column":"evergreen.task.id","value":"task_12345"}],"start_time":1688756921,"end_time":1688760000}&omitMissingValues` ); }); }); diff --git a/src/gql/generated/types.ts b/src/gql/generated/types.ts index 18287d697e..856b0dee48 100644 --- a/src/gql/generated/types.ts +++ b/src/gql/generated/types.ts @@ -2567,7 +2567,7 @@ export type TaskContainerCreationOpts = { export type TaskEndDetail = { __typename?: "TaskEndDetail"; description?: Maybe; - diskDevices?: Maybe>>; + diskDevices: Array; oomTracker: OomTrackerInfo; status: Scalars["String"]["output"]; timedOut?: Maybe; @@ -8511,7 +8511,7 @@ export type TaskQuery = { details?: { __typename?: "TaskEndDetail"; description?: string | null; - diskDevices?: Array | null; + diskDevices: Array; status: string; timedOut?: boolean | null; timeoutType?: string | null; diff --git a/src/pages/task/metadata/Metadata.test.tsx b/src/pages/task/metadata/Metadata.test.tsx index 466b1d52ef..2fb2685a9a 100644 --- a/src/pages/task/metadata/Metadata.test.tsx +++ b/src/pages/task/metadata/Metadata.test.tsx @@ -118,6 +118,7 @@ const taskSucceeded = { oomTracker: { detected: false, }, + diskDevices: [], }, }, };