mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
Update freeze dates for 2024, internal conference
Change-Id: If5d90a728ce765a7c6ad451a58698c59ec563b44 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5913187 Commit-Queue: Josip Sokcevic <sokcevic@chromium.org> Reviewed-by: Erik Staab <estaab@chromium.org>
This commit is contained in:
@@ -191,3 +191,7 @@ def CheckPatchFormatted(input_api, output_api):
|
||||
return input_api.canned_checks.CheckPatchFormatted(input_api,
|
||||
output_api,
|
||||
check_clang_format=False)
|
||||
|
||||
|
||||
def CheckFreeze(input_api, output_api):
|
||||
return input_api.canned_checks.CheckInfraFreeze(input_api, output_api)
|
||||
|
||||
@@ -907,8 +907,9 @@ def CheckChromiumDependencyMetadata(input_api, output_api, file_filter=None):
|
||||
_IGNORE_FREEZE_FOOTER = 'Ignore-Freeze'
|
||||
|
||||
_FREEZE_TZ = datetime.timezone(-datetime.timedelta(hours=8), 'PST')
|
||||
_FREEZE_START = datetime.datetime(2023, 12, 15, 0, 0, tzinfo=_FREEZE_TZ)
|
||||
_FREEZE_END = datetime.datetime(2024, 1, 2, 0, 0, tzinfo=_FREEZE_TZ)
|
||||
_FREEZE_START = datetime.datetime(2024, 10, 12, 0, 0, tzinfo=_FREEZE_TZ)
|
||||
_FREEZE_END = datetime.datetime(2024, 10, 19, 0, 0, tzinfo=_FREEZE_TZ)
|
||||
_FREEZE_DETAILS = 'Internal infra conference'
|
||||
|
||||
def CheckInfraFreeze(input_api,
|
||||
output_api,
|
||||
@@ -969,9 +970,12 @@ def CheckInfraFreeze(input_api,
|
||||
else:
|
||||
report_type = output_api.PresubmitError
|
||||
return [
|
||||
report_type('There is a prod infra freeze in effect from {} until {},'
|
||||
'the following files cannot be modified:\n {}'.format(
|
||||
_FREEZE_START, _FREEZE_END, '\n '.join(files)))
|
||||
report_type('There is a prod infra freeze in effect from {} until {}:\n'
|
||||
'\t{}\n\n'
|
||||
'The following files cannot be modified:\n {}.\n\n'
|
||||
'Set git-footer "{}" to override.'.format(
|
||||
_FREEZE_START, _FREEZE_END, _FREEZE_DETAILS,
|
||||
'\n '.join(files), _IGNORE_FREEZE_FOOTER))
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user