diff options
author | android-autoroll <android-autoroll@skia-public.iam.gserviceaccount.com> | 2024-04-22 16:41:38 +0000 |
---|---|---|
committer | android-autoroll <android-autoroll@skia-public.iam.gserviceaccount.com> | 2024-04-22 16:41:38 +0000 |
commit | 6a4705386afed944816d9e5106068b34864e3b84 (patch) | |
tree | c7af6cd9eb6346303c3576bd051b7168353aa4c3 | |
parent | e2e38a4d826a7bba07a5e2016451e39863e1cf2d (diff) | |
parent | 64e97940064611f28a83b790bcd20d0f3a1f4698 (diff) | |
download | angle-6a4705386afed944816d9e5106068b34864e3b84.tar.gz |
Roll ANGLE from 219f7762e54b to 64e979400646 (1 revision)
https://chromium.googlesource.com/angle/angle.git/+log/219f7762e54b..64e979400646
Please enable autosubmit on changes if possible when approving them.
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/angle-android-autoroll
Please CC angle-team@google.com,rmistry@google.com,ynovikov@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in ANGLE: https://bugs.chromium.org/p/angleproject/issues/entry
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Test: Presubmit checks will test this change.
Exempt-From-Owner-Approval: The autoroll bot does not require owner approval.
Change-Id: I8705562af5793750dcd263b052749fe341728df5
-rw-r--r-- | PRESUBMIT.py | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index f0da400553..95f1fce4fd 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -188,12 +188,6 @@ def _CheckCommitMessageFormatting(input_api, output_api): def _CheckChangeHasBugField(input_api, output_api): """Requires that the changelist have a Bug: field from a known project.""" bugs = input_api.change.BugsFromDescription() - if not bugs: - return [ - output_api.PresubmitError('Please ensure that your description contains:\n' - '"Bug: angleproject:[bug number]"\n' - 'directly above the Change-Id tag.') - ] # The bug must be in the form of "project:number". None is also accepted, which is used by # rollers as well as in very minor changes. @@ -205,27 +199,35 @@ def _CheckChangeHasBugField(input_api, output_api): ] bug_regex = re.compile(r"([a-z]+[:/])(\d+)") errors = [] - extra_help = None + extra_help = False + + if not bugs: + errors.append('Please ensure that your description contains\n' + 'Bug: bugtag\n' + 'directly above the Change-Id tag (no empty line in-between)') + extra_help = True for bug in bugs: if bug == 'None': - errors.append( - output_api.PresubmitError('Invalid bug tag "None" in presence of other bug tags.')) + errors.append('Invalid bug tag "None" in presence of other bug tags.') continue match = re.match(bug_regex, bug) if match == None or bug != match.group(0) or match.group(1) not in projects: - errors.append(output_api.PresubmitError('Incorrect bug tag "' + bug + '".')) - if not extra_help: - extra_help = output_api.PresubmitError('Acceptable format is:\n\n' - ' Bug: project:bugnumber\n\n' - 'Acceptable projects are:\n\n ' + - '\n '.join(projects)) + errors.append('Incorrect bug tag "' + bug + '".') + extra_help = True if extra_help: - errors.append(extra_help) + change_ids = re.findall('^Change-Id:', input_api.change.FullDescriptionText(), re.M) + if len(change_ids) > 1: + errors.append('Note: multiple Change-Id tags found in description') - return errors + errors.append('''Acceptable bugtags: + project:bugnumber - where project is one of ({projects}) + b/bugnumber - for Buganizer/IssueTracker bugs +'''.format(projects=', '.join(p[:-1] for p in projects if p != 'b/'))) + + return [output_api.PresubmitError('\n\n'.join(errors))] if errors else [] def _CheckCodeGeneration(input_api, output_api): |