Skip to content

Commit 7cb21e4

Browse files
authored
Stop tagging fuzz blockers as release blockers. (#4839)
This is causing issues for Chrome releases. Fixes: https://crbug.com/399218120
1 parent 78c79bd commit 7cb21e4

File tree

3 files changed

+2
-48
lines changed

3 files changed

+2
-48
lines changed

src/clusterfuzz/_internal/cron/cleanup.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from clusterfuzz._internal.base import errors
2424
from clusterfuzz._internal.base import memoize
2525
from clusterfuzz._internal.base import utils
26-
from clusterfuzz._internal.chrome import build_info
2726
from clusterfuzz._internal.common import testcase_utils
2827
from clusterfuzz._internal.crash_analysis import crash_comparer
2928
from clusterfuzz._internal.crash_analysis import severity_analyzer
@@ -1040,20 +1039,6 @@ def update_fuzz_blocker_label(policy, testcase, issue,
10401039
'to be found.')
10411040
if utils.is_oss_fuzz():
10421041
update_message += OSS_FUZZ_INCORRECT_COMMENT
1043-
elif utils.is_chromium():
1044-
label_text = issue.issue_tracker.label_text(
1045-
data_types.CHROMIUM_ISSUE_RELEASEBLOCK_BETA_LABEL)
1046-
update_message += '\n\nMarking this bug as a blocker for next Beta release.'
1047-
update_message = _append_generic_incorrect_comment(
1048-
update_message, policy, issue, f' and remove the {label_text}.')
1049-
issue.labels.add(data_types.CHROMIUM_ISSUE_RELEASEBLOCK_BETA_LABEL)
1050-
1051-
# Update with the next beta for trunk, and remove existing milestone label.
1052-
beta_milestone_label = (
1053-
f'M-{build_info.get_release_milestone("head", testcase.platform)}')
1054-
if beta_milestone_label not in issue.labels:
1055-
issue.labels.remove_by_prefix('M-')
1056-
issue.labels.add(beta_milestone_label)
10571042

10581043
logs.info(update_message)
10591044
issue.labels.add(fuzz_blocker_label)

src/clusterfuzz/_internal/datastore/data_types.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@
115115
UNREPRODUCIBLE_TESTCASE_NO_BUG_DEADLINE = 7
116116
UNREPRODUCIBLE_TESTCASE_WITH_BUG_DEADLINE = 14
117117

118-
# Chromium specific issue state tracking labels.
119-
CHROMIUM_ISSUE_RELEASEBLOCK_BETA_LABEL = 'ReleaseBlock-Beta'
120118
# TODO(ochang): Find some way to remove these.
121119
CHROMIUM_ISSUE_PREDATOR_AUTO_CC_LABEL = 'Test-Predator-Auto-CC'
122120
CHROMIUM_ISSUE_PREDATOR_AUTO_COMPONENTS_LABEL = 'Test-Predator-Auto-Components'

src/clusterfuzz/_internal/tests/appengine/handlers/cron/cleanup_test.py

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,9 +1190,6 @@ def test_no_top_crashes(self):
11901190
cleanup.update_fuzz_blocker_label(self.policy, self.testcase, self.issue,
11911191
top_crashes_by_project_and_platform_map)
11921192
self.assertNotIn(ISSUE_FUZZ_BLOCKER_LABEL, self.issue.labels)
1193-
self.assertNotIn(data_types.CHROMIUM_ISSUE_RELEASEBLOCK_BETA_LABEL,
1194-
self.issue.labels)
1195-
self.assertNotIn('M-63', self.issue.labels)
11961193
self.assertEqual('', self.issue._monorail_issue.comment)
11971194

11981195
def test_top_crashes_no_match(self):
@@ -1210,9 +1207,6 @@ def test_top_crashes_no_match(self):
12101207
cleanup.update_fuzz_blocker_label(self.policy, self.testcase, self.issue,
12111208
top_crashes_by_project_and_platform_map)
12121209
self.assertNotIn(ISSUE_FUZZ_BLOCKER_LABEL, self.issue.labels)
1213-
self.assertNotIn(data_types.CHROMIUM_ISSUE_RELEASEBLOCK_BETA_LABEL,
1214-
self.issue.labels)
1215-
self.assertNotIn('M-63', self.issue.labels)
12161210
self.assertEqual('', self.issue._monorail_issue.comment)
12171211

12181212
def test_top_crashes_with_testcase_closed(self):
@@ -1233,9 +1227,6 @@ def test_top_crashes_with_testcase_closed(self):
12331227
cleanup.update_fuzz_blocker_label(self.policy, self.testcase, self.issue,
12341228
top_crashes_by_project_and_platform_map)
12351229
self.assertNotIn(ISSUE_FUZZ_BLOCKER_LABEL, self.issue.labels)
1236-
self.assertNotIn(data_types.CHROMIUM_ISSUE_RELEASEBLOCK_BETA_LABEL,
1237-
self.issue.labels)
1238-
self.assertNotIn('M-63', self.issue.labels)
12391230
self.assertEqual('', self.issue._monorail_issue.comment)
12401231

12411232
def test_top_crashes_match_single_platform(self):
@@ -1250,21 +1241,13 @@ def test_top_crashes_match_single_platform(self):
12501241
}]
12511242
}
12521243
}
1253-
self.issue.labels.add('M-62')
12541244
cleanup.update_fuzz_blocker_label(self.policy, self.testcase, self.issue,
12551245
top_crashes_by_project_and_platform_map)
12561246
self.assertIn(ISSUE_FUZZ_BLOCKER_LABEL, self.issue.labels)
1257-
self.assertIn(data_types.CHROMIUM_ISSUE_RELEASEBLOCK_BETA_LABEL,
1258-
self.issue.labels)
1259-
self.assertIn('M-63', self.issue.labels)
1260-
self.assertNotIn('M-62', self.issue.labels)
12611247
self.assertEqual(
12621248
'This crash occurs very frequently on linux platform and is likely '
12631249
'preventing the fuzzer fuzzer1 from making much progress. '
1264-
'Fixing this will allow more bugs to be found.'
1265-
'\n\nMarking this bug as a blocker for next Beta release.'
1266-
'\n\nIf this is incorrect, please add the ClusterFuzz-Wrong label and '
1267-
'remove the ReleaseBlock-Beta label.',
1250+
'Fixing this will allow more bugs to be found.',
12681251
self.issue._monorail_issue.comment)
12691252

12701253
def test_top_crashes_match_single_platform_oss_fuzz(self):
@@ -1285,9 +1268,6 @@ def test_top_crashes_match_single_platform_oss_fuzz(self):
12851268
cleanup.update_fuzz_blocker_label(self.policy, self.testcase, self.issue,
12861269
top_crashes_by_project_and_platform_map)
12871270
self.assertIn(ISSUE_FUZZ_BLOCKER_LABEL, self.issue.labels)
1288-
self.assertNotIn(data_types.CHROMIUM_ISSUE_RELEASEBLOCK_BETA_LABEL,
1289-
self.issue.labels)
1290-
self.assertNotIn('M-63', self.issue.labels)
12911271
self.assertEqual(
12921272
'This crash occurs very frequently on linux platform and is likely '
12931273
'preventing the fuzzer fuzz_target1 from making much progress. '
@@ -1323,16 +1303,10 @@ def test_top_crashes_match_multiple_platforms(self):
13231303
cleanup.update_fuzz_blocker_label(self.policy, self.testcase, self.issue,
13241304
top_crashes_by_project_and_platform_map)
13251305
self.assertIn(ISSUE_FUZZ_BLOCKER_LABEL, self.issue.labels)
1326-
self.assertIn(data_types.CHROMIUM_ISSUE_RELEASEBLOCK_BETA_LABEL,
1327-
self.issue.labels)
1328-
self.assertIn('M-63', self.issue.labels)
13291306
self.assertEqual(
13301307
'This crash occurs very frequently on linux, mac and windows platforms '
13311308
'and is likely preventing the fuzzer fuzzer1 from making much '
1332-
'progress. Fixing this will allow more bugs to be found.'
1333-
'\n\nMarking this bug as a blocker for next Beta release.'
1334-
'\n\nIf this is incorrect, please add the ClusterFuzz-Wrong label and '
1335-
'remove the ReleaseBlock-Beta label.',
1309+
'progress. Fixing this will allow more bugs to be found.',
13361310
self.issue._monorail_issue.comment)
13371311

13381312
def test_top_crashes_match_and_label_removed(self):
@@ -1355,9 +1329,6 @@ def test_top_crashes_match_and_label_removed(self):
13551329
cleanup.update_fuzz_blocker_label(self.policy, self.testcase, self.issue,
13561330
top_crashes_by_project_and_platform_map)
13571331
self.assertNotIn(ISSUE_FUZZ_BLOCKER_LABEL, self.issue.labels)
1358-
self.assertNotIn(data_types.CHROMIUM_ISSUE_RELEASEBLOCK_BETA_LABEL,
1359-
self.issue.labels)
1360-
self.assertNotIn('M-63', self.issue.labels)
13611332
self.assertEqual('', self.issue._monorail_issue.comment)
13621333

13631334

0 commit comments

Comments
 (0)