25f779623d
We start to host PGO profiles for builtins on a GCP bucket. This script supports various workflows to download profiles for tagged git versions. In a first step, we provide profiles for tagged git versions only. The script identifies this version from the current checkout and downloads (or validates the existence of) the profiles to a directory where they'll be used during build time. We introduce `checkout_v8_builtins_pgo_profiles` to the DEPS file (defaults to False). If set, we call the new helper script to download the profiles within the gclient sync step. The profile download is added to the Chromium project in crrev.com/c/4131525. Bug: chromium:1382471 Change-Id: I74ba4f3c102a85e230be7ef17b9c87621a1eab14 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4111528 Commit-Queue: Alexander Schulze <alexschulze@chromium.org> Reviewed-by: Liviu Rau <liviurau@chromium.org> Cr-Commit-Position: refs/heads/main@{#85253}
26 lines
714 B
Python
26 lines
714 B
Python
# Copyright 2018 the V8 project authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# This line is 'magic' in that git-cl looks for it to decide whether to
|
|
# use Python3 instead of Python2 when running the code in this file.
|
|
USE_PYTHON3 = True
|
|
|
|
TEST_DIRECTORIES = [
|
|
'unittests',
|
|
'builtins-pgo',
|
|
]
|
|
|
|
|
|
def CheckChangeOnCommit(input_api, output_api):
|
|
tests = []
|
|
for directory in TEST_DIRECTORIES:
|
|
tests += input_api.canned_checks.GetUnitTestsInDirectory(
|
|
input_api,
|
|
output_api,
|
|
directory,
|
|
files_to_check=[r'.+_test\.py$'],
|
|
run_on_python2=False)
|
|
|
|
return input_api.RunTests(tests)
|