Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
yangw-dev committed Jan 28, 2025
1 parent a12605c commit 4b29734
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions torchci/components/benchmark/BranchAndCommitPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ function groupCommitByBranch(data: any) {
}

if (dedups[b].has(r.head_sha)) {
branches[b]
?.find((c: any) => c.head_sha === r.head_sha)
.filenames.push(r.filename);
if (r.filename) {
branches[b]
?.find((c: any) => c.head_sha === r.head_sha)
.filenames.push(r.filename);
}
return;
}

Expand All @@ -56,13 +58,12 @@ function groupCommitByBranch(data: any) {
event_time: r.event_time,
// This is used to sort the list of branches to show the main branch first
display_priority: r.head_branch === MAIN_BRANCH ? 99 : 1,
// store list of config files for the commit, this is used to filter out tags
filenames: [r.filename],
// store list of config files for the commit, this is used to highlight
filenames: r.filename ? [r.filename] : [],
id: r.id,
});
dedups[b].add(r.head_sha);
});

return branches;
}

Expand Down
4 changes: 2 additions & 2 deletions torchci/components/benchmark/compilers/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export const DISPLAY_NAMES_TO_WORKFLOW_NAMES: { [k: string]: string } = {
mps: "inductor-perf-nightly-macos",
};

export const DEFAULT_HIGHLIGHT_KEY = "unselected";
export const DEFAULT_HIGHLIGHT_KEY = "none";
export const DISPLAY_KEYS_TO_HIGHLIGHT: { [k: string]: string } = {
Unselected: DEFAULT_HIGHLIGHT_KEY,
None: DEFAULT_HIGHLIGHT_KEY,
Max_autotune: "max_autotune",
};

0 comments on commit 4b29734

Please sign in to comment.