Skip to content
Merged
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
8 changes: 7 additions & 1 deletion torchci/components/JobLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,16 @@ function DisableTest({ job, label }: { job: JobData; label: string }) {

// At this point, we should show something. Search the existing disable issues
// for a matching one.
const formattedTestName = `${testName.testName} (__main__.${testName.suite})`;
const issueTitle = `DISABLED ${testName.testName} (__main__.${testName.suite})`;
const issueBody = formatDisableTestBody(job);

const matchingIssues = issues.filter((issue) => issue.title === issueTitle);
const matchingIssues = issues.filter(
(issue) =>
issue.title === issueTitle ||
// Crude way to match with aggregate issues
issue.body.includes(formattedTestName)
);
const repo = job.repo ?? "pytorch/pytorch";

return (
Expand Down