Skip to content

Commit 1ab651d

Browse files
authored
[autorevert] filter out 'mem_leak_check' and 'rerun_disabled_tests' workflows from queries (#7168)
These special jobs are triggered once per day and introduce noise for the autorevert (see attached): [hud-sep15-01.html](https://github.com/user-attachments/files/22352050/hud-sep15-01.html) ### Testing ``` python -m pytorch_auto_revert hud Lint trunk pull inductor --hours 32 --out hud-sep15-02.html ``` [hud-sep15-02.html](https://github.com/user-attachments/files/22352058/hud-sep15-02.html)
1 parent 85948fd commit 1ab651d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

aws/lambda/pytorch-auto-revert/pytorch_auto_revert/autorevert_checker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ def _fetch_workflow_data(self):
155155
-- it is just a optimization as this column is indexed
156156
AND wf.created_at >= {lookback_time:DateTime}
157157
AND wf.dynamoKey LIKE 'pytorch/pytorch/%'
158+
AND (wf.name NOT LIKE '%mem_leak_check%' AND wf.name NOT LIKE '%rerun_disabled_tests%')
158159
ORDER BY
159160
wf.workflow_name, push_dedup.timestamp DESC, wf.head_sha, wf.name
160161
"""

aws/lambda/pytorch-auto-revert/pytorch_auto_revert/signal_extraction_datasource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def fetch_jobs_for_workflows(
7878
INNER JOIN push_dedup p ON wf.head_sha = p.sha
7979
WHERE wf.repository_full_name = {{repo:String}}
8080
AND wf.created_at >= {{lookback_time:DateTime}}
81+
AND (wf.name NOT LIKE '%mem_leak_check%' AND wf.name NOT LIKE '%rerun_disabled_tests%')
8182
{workflow_filter}
8283
ORDER BY p.ts DESC, wf.started_at ASC, wf.head_sha, wf.run_id, wf.run_attempt, wf.name
8384
"""

0 commit comments

Comments
 (0)