From 32733d223c05e13319e92675bc09300719ba7d58 Mon Sep 17 00:00:00 2001 From: Catherine Lee Date: Mon, 2 Jun 2025 15:40:23 -0700 Subject: [PATCH] tc --- torchci/components/JobLinks.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/torchci/components/JobLinks.tsx b/torchci/components/JobLinks.tsx index 521887252b..dfd71bd375 100644 --- a/torchci/components/JobLinks.tsx +++ b/torchci/components/JobLinks.tsx @@ -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 (