Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ybrill committed Dec 13, 2023
1 parent e537c6b commit 0b9a2f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/constants/externalResources.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)
Expand All @@ -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`
);
});
});
4 changes: 2 additions & 2 deletions src/gql/generated/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2567,7 +2567,7 @@ export type TaskContainerCreationOpts = {
export type TaskEndDetail = {
__typename?: "TaskEndDetail";
description?: Maybe<Scalars["String"]["output"]>;
diskDevices?: Maybe<Array<Maybe<Scalars["String"]["output"]>>>;
diskDevices: Array<Scalars["String"]["output"]>;
oomTracker: OomTrackerInfo;
status: Scalars["String"]["output"];
timedOut?: Maybe<Scalars["Boolean"]["output"]>;
Expand Down Expand Up @@ -8511,7 +8511,7 @@ export type TaskQuery = {
details?: {
__typename?: "TaskEndDetail";
description?: string | null;
diskDevices?: Array<string | null> | null;
diskDevices: Array<string>;
status: string;
timedOut?: boolean | null;
timeoutType?: string | null;
Expand Down
1 change: 1 addition & 0 deletions src/pages/task/metadata/Metadata.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ const taskSucceeded = {
oomTracker: {
detected: false,
},
diskDevices: [],
},
},
};

0 comments on commit 0b9a2f5

Please sign in to comment.