Commit 209d1224 authored by Bill Orr's avatar Bill Orr Committed by Commit Bot

Add new PRESUBMIT.py for running VR/XR tests when files change

BUG=853900

Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;luci.chromium.try:win_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I7e53ddd44240c46e0de1742ece470827eb4fcc10
Reviewed-on: https://chromium-review.googlesource.com/1139016Reviewed-by: default avatarBrandon Jones <bajones@chromium.org>
Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Commit-Queue: Bill Orr <billorr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576146}
parent b531bc1a
# Copyright (c) 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for device/vr.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmit API built into depot_tools.
"""
def PostUploadHook(cl, change, output_api):
"""git cl upload will call this hook after the issue is created/modified.
This hook modifies the CL description in order to run extra GPU
tests (in particular, WebXR and WebVR browser tests) in addition
to the regular CQ try bots. This test suite is too large to run
against all Chromium commits, but should be run against changes
likely to affect these tests.
"""
return output_api.EnsureCQIncludeTrybotsAreAdded(
cl,
['luci.chromium.try:win_optional_gpu_tests_rel'],
'Automatically added optional GPU tests to run on CQ.')
# Copyright (c) 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for third_party/blink/renderer/modules/vr.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmit API built into depot_tools.
"""
def PostUploadHook(cl, change, output_api): # pylint: disable=C0103,W0613
"""git cl upload will call this hook after the issue is created/modified.
This hook modifies the CL description in order to run extra GPU
tests (in particular, WebXR and WebVR browser tests) in addition
to the regular CQ try bots. This test suite is too large to run
against all Chromium commits, but should be run against changes
likely to affect these tests.
"""
return output_api.EnsureCQIncludeTrybotsAreAdded(
cl,
['luci.chromium.try:win_optional_gpu_tests_rel'],
'Automatically added optional GPU tests to run on CQ.')
# Copyright (c) 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for third_party/blink/renderer/modules/xr.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmit API built into depot_tools.
"""
def PostUploadHook(cl, change, output_api): # pylint: disable=C0103,W0613
"""git cl upload will call this hook after the issue is created/modified.
This hook modifies the CL description in order to run extra GPU
tests (in particular, WebXR and WebVR browser tests) in addition
to the regular CQ try bots. This test suite is too large to run
against all Chromium commits, but should be run against changes
likely to affect these tests.
"""
return output_api.EnsureCQIncludeTrybotsAreAdded(
cl,
['luci.chromium.try:win_optional_gpu_tests_rel'],
'Automatically added optional GPU tests to run on CQ.')
# Copyright (c) 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for third_party/blink/renderer/platform/graphics/gpu.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmit API built into depot_tools.
"""
def PostUploadHook(cl, change, output_api): # pylint: disable=C0103,W0613
"""git cl upload will call this hook after the issue is created/modified.
This hook modifies the CL description in order to run extra GPU
tests (in particular, WebXR and WebVR browser tests) in addition
to the regular CQ try bots. This test suite is too large to run
against all Chromium commits, but should be run against changes
likely to affect these tests.
"""
return output_api.EnsureCQIncludeTrybotsAreAdded(
cl,
['luci.chromium.try:win_optional_gpu_tests_rel'],
'Automatically added optional GPU tests to run on CQ.')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment