Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"params": {
"repo": "String",
"benchmarkNames": "Array<String>",
"branches": "Array<String>",
"models": "Array(String)",
"backends": "Array(String)",
"startTime": "DateTime64(3)",
"stopTime": "DateTime64(3)",
"arch": "String",
"dtype": "String",
"device": "String",
"mode": "String"
},
"tests": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
SELECT
replaceAll(head_branch, 'refs/heads/', '') AS branch,
head_sha AS commit,
workflow_id,
toStartOfHour(min(fromUnixTimestamp(timestamp))) AS date
FROM benchmark.oss_ci_benchmark_metadata
PREWHERE
timestamp >= toUnixTimestamp({startTime: DateTime64(3)})
AND timestamp < toUnixTimestamp({stopTime: DateTime64(3)})
WHERE
repo = {repo: String}
AND (
has(
{branches: Array(String)},
replaceAll(head_branch, 'refs/heads/', '')
)
OR empty({branches: Array(String)})
)
AND (benchmark_dtype = {dtype: String} OR empty({dtype: String}))
AND (
has({benchmarkNames: Array(String)}, benchmark_name)
OR empty({benchmarkNames: Array(String)})
)
AND notEmpty(metric_name)
AND notEmpty(device)
AND (
arch LIKE concat('%', {arch: String}, '%')
OR {arch: String} = ''
)
AND (
has({models: Array(String)}, model_name)
OR empty({models: Array(String)})
)
AND (
has({backends: Array(String)}, model_backend)
OR empty({backends: Array(String)})
)
AND (
startsWith(device, {device: String})
OR {device: String} = ''
)
GROUP BY
replaceAll(head_branch, 'refs/heads/', ''),
head_sha,
workflow_id
ORDER BY
branch, -- OK to use alias in ORDER BY
date;
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"mode": "String",
"startTime": "DateTime64(3)",
"stopTime": "DateTime64(3)",
"suites": "Array(String)",
"workflowIds": "Array(Int64)"
"suites": "Array(String)"
},
"tests": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"branches": "Array(String)",
"commits": "Array(String)",
"compilers": "Array(String)",
"workflows": "Array(UInt64)",
"device": "String",
"arch": "Array(String)",
"dtype": "String",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SELECT
AS granularity_bucket
FROM benchmark.oss_ci_benchmark_torchinductor
WHERE
head_sha IN ({commits: Array(String)})
workflow_id IN ({workflows: Array(UInt64)})
AND (
has(
{branches: Array(String)},
Expand Down
1 change: 1 addition & 0 deletions torchci/components/benchmark/llms/LLMsBenchmarkPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const MainPage = ({
);
}, [router.query]);
const queryParams = getLLMsBenchmarkPropsQueryParameter(props);

const { data, error, isLoading } = useBenchmarkPropsData(queryParams);

// an error occured while fetching the benchmark props data
Expand Down
142 changes: 0 additions & 142 deletions torchci/components/benchmark/v3/configs/configBook.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Badge, IconButton, Tooltip } from "@mui/material";
import { Box } from "@mui/system";
import dayjs from "dayjs";
import { useListBenchmarkRegressionReportsData } from "lib/benchmark/api_helper/apis/hooks";
import { useListBenchmarkRegressionReportsData } from "lib/benchmark/api_helper/fe/hooks";
import { RiNotification2Fill } from "react-icons/ri";
import { BenchmarkReportFeatureSidePanel } from "./BenchmarkReportFeatureSidePanel";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import CircleIcon from "@mui/icons-material/Circle";
import OpenInNewIcon from "@mui/icons-material/OpenInNew";
import { Chip, IconButton, Tooltip, Typography } from "@mui/material";
import { Box, Stack } from "@mui/system";
import { getBenchmarkIdFromReportId } from "components/benchmark/v3/configs/configBook";
import { getBenchmarkFields } from "components/benchmark/v3/configs/utils/urlHandling";
import { getBenchmarkMainRouteById } from "components/benchmark/v3/pages/BenchmarkListPage";
import { getBenchmarkFields } from "components/benchmark_v3/configs/utils/urlHandling";
import { getBenchmarkMainRouteById } from "components/benchmark_v3/pages/BenchmarkListPage";
import { queryObjectToSearchParams } from "components/uiModules/UMCopyLink";
import dayjs from "dayjs";
import {
BenchmarkCommitMeta,
getBenchmarkIdFromReportId,
TimeRange,
} from "lib/benchmark/store/benchmark_regression_store";
import { stateToQuery } from "lib/helpers/urlQuery";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Alert } from "@mui/material";
import LoadingPage from "components/common/LoadingPage";
import { listBenchmarkRegressionReport } from "lib/benchmark/api_helper/apis/api";
import { useListBenchmarkRegressionReportsData } from "lib/benchmark/api_helper/apis/hooks";
import { listBenchmarkRegressionReport } from "lib/benchmark/api_helper/fe/api";
import { useListBenchmarkRegressionReportsData } from "lib/benchmark/api_helper/fe/hooks";
import { useEffect, useState } from "react";
import RegressionReportList from "./RegressionReportListView";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Box, Stack } from "@mui/system";
import {
RenderRawContent,
RenderStaticContent,
} from "components/benchmark/v3/components/common/RawContentDialog";
} from "components/benchmark_v3/components/common/RawContentDialog";
import dayjs from "dayjs";
import {
BenchmarkRegressionBucketCounts,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Divider, Paper, Typography } from "@mui/material";
import { Box, Stack } from "@mui/system";
import { StaticRenderViewOnlyContent } from "components/benchmark/v3/components/common/StaticRenderViewOnlyContent";
import BenchmarkTimeSeriesChart from "components/benchmark/v3/components/dataRender/components/benchmarkTimeSeries/components/BenchmarkTimeSeriesChart/BenchmarkTimeSeriesChart";
import { StaticRenderViewOnlyContent } from "components/benchmark_v3/components/common/StaticRenderViewOnlyContent";
import BenchmarkTimeSeriesChart from "components/benchmark_v3/components/dataRender/components/benchmarkTimeSeries/components/BenchmarkTimeSeriesChart/BenchmarkTimeSeriesChart";
import {
BenchmarkTimeSeriesInput,
RawTimeSeriesPoint,
} from "components/benchmark/v3/components/dataRender/components/benchmarkTimeSeries/helper";
} from "components/benchmark_v3/components/dataRender/components/benchmarkTimeSeries/helper";
import {
DEFAULT_BASELINE_COLOR,
DEFAULT_REGRESSION_COLOR,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Alert } from "@mui/material";
import { Box } from "@mui/system";
import LoadingPage from "components/common/LoadingPage";
import { useGetBenchmarkRegressionReportData } from "lib/benchmark/api_helper/apis/hooks";
import { useGetBenchmarkRegressionReportData } from "lib/benchmark/api_helper/fe/hooks";
import BenchmarkRegressionReportMetadataSection from "./BenchmarkRegressionReportMetadataSection";
import { RegressionReportDetail } from "./RegressionReportDetail";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Divider, Paper, Typography } from "@mui/material";
import { Stack } from "@mui/system";
import { BenchmarkUI } from "../../configs/configBook";
import { BenchmarkReportFeatureNotification } from "../dataRender/components/benchmarkRegressionReport/BenchmarkReportFeatureNotification";
import { BenchmarkReportFeatureSidePanel } from "../dataRender/components/benchmarkRegressionReport/BenchmarkReportFeatureSidePanel";
import { CommitWorflowSelectSection } from "./components/CommitWorkfowSelectSection";
import { BenchmarkUIConfigHandler } from "lib/benchmark/store/benchmark_config_book";
import { BenchmarkReportFeatureNotification } from "../benchmarkRegressionReport/BenchmarkReportFeatureNotification";
import { BenchmarkReportFeatureSidePanel } from "../benchmarkRegressionReport/BenchmarkReportFeatureSidePanel";
import { CommitWorflowSelectSection } from "./components/commits/CommitWorkfowSelectSection";

export function BenchmarkTopBar({
config,
title = "",
}: {
config: BenchmarkUI;
config: BenchmarkUIConfigHandler;
title?: string;
}) {
const reportFeature =
Expand Down
Loading