DEPS: depot_tools/gclient, recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/python, recipe_engine/step, env, infra, run, vars
Build Skia for various platforms.
— def __call__(self, checkout_root, out_dir):
Compile the code.
— def copy_build_products(self, out_dir, dst):
Copy whitelisted build products to dst.
— def DictForBuilderName(self, *args, **kwargs):
— def MakeBuilderName(self, **kwargs):
DEPS: depot_tools/bot_update, depot_tools/gclient, depot_tools/git, depot_tools/tryserver, recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/step, flavor, run, vars
— def bot_update(self, checkout_root, gclient_cache=None, checkout_chromium=False, checkout_flutter=False, extra_gclient_env=None, parent_rev=False, flutter_android=False):
Run the steps to obtain a checkout using bot_update.
Args: checkout_root: Root directory where the code will be synced. gclient_cache: Optional, directory of the gclient cache. checkout_chromium: If True, will check out chromium/src.git in addition to the primary repo. checkout_flutter: If True, will checkout flutter in addition to the primary repo. extra_gclient_env: Map of extra environment variable names to their values to supply while running gclient. parent_rev: If True, checks out the parent of the specified revision, rather than the revision itself, ie. HEAD^ for normal jobs and HEAD (no patch) for try jobs. flutter_android: Indicates that we're checking out flutter for Android.
@property
— def default_checkout_root(self):
The default location for cached persistent checkouts.
— def git(self, checkout_root):
Run the steps to perform a pure-git checkout without DEPS.
DEPS: recipe_engine/context, recipe_engine/step, run
— def generate_and_upload(self, skia_dir):
DEPS: depot_tools/bot_update, depot_tools/cipd, depot_tools/gclient, depot_tools/git, recipe_engine/context, recipe_engine/file, recipe_engine/json, recipe_engine/path, recipe_engine/platform, recipe_engine/python, recipe_engine/raw_io, recipe_engine/step, recipe_engine/tempfile, builder_name_schema, env, infra, run, vars
— def cleanup_steps(self):
— def copy_directory_contents_to_device(self, host_dir, device_dir):
— def copy_directory_contents_to_host(self, device_dir, host_dir):
— def copy_file_to_device(self, host_path, device_path):
— def create_clean_device_dir(self, path):
— def create_clean_host_dir(self, path):
— def device_path_join(self, *args):
— def get_flavor(self, vars_api):
Return a flavor utils object specific to the given builder.
— def install(self, skps=False, images=False, lotties=False, svgs=False, resources=False):
— def read_file_on_device(self, path, **kwargs):
— def remove_file_on_device(self, path):
— def setup(self):
— def step(self, name, cmd, **kwargs):
— def env(self):
Add Git to PATH
Requires the infra/git and infra/tools/git CIPD packages to be installed in the ‘git’ relative path.
DEPS: recipe_engine/context, recipe_engine/step, run, vars
— def __call__(self, step_name, *args):
Run gsutil with the given args.
— def cp(self, name, src, dst, extra_args=None, multithread=False):
Attempt to upload or download files to/from Google Cloud Storage (GCS).
Args: name: string. Will be used to fill out the step name. src: string. Absolute path for a local file or gcs file (e.g. gs://...) dst: string. Same as src. extra_args: optional list of args to be passed to gsutil. e.g. [-Z] asks all files be compressed with gzip after upload and before download. multi_thread: if the -m argument should be used to copy multiple items at once (e.g. gsutil -m cp foo* gs://bar/dir)
If the operation fails, it will be retried multiple times.
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/step, run, vars
@property
— def go_bin(self):
@property
— def go_env(self):
@property
— def go_exe(self):
— def go_version(self):
Print the Go version.
@property
— def gopath(self):
@property
— def goroot(self):
DEPS: recipe_engine/file, recipe_engine/json, recipe_engine/path, recipe_engine/platform, recipe_engine/properties, recipe_engine/python, recipe_engine/step, env, vars
— def __call__(self, steptype, name, abort_on_failure=True, fail_build_on_failure=True, **kwargs):
Run a step. If it fails, keep going but mark the build status failed.
— def __init__(self, *args, **kwargs):
Initialize the recipe module.
— def asset_version(self, asset_name, skia_dir, test_data=None):
Return the contents of VERSION for the given asset as a string.
If test_data is not specified, reads the property ‘test_<asset_name>_version’ or if not present, uses TEST_DEFAULT_ASSET_VERSION.
— def check_failure(self):
Raise an exception if any step failed.
@property
— def failed_steps(self):
— def readfile(self, filename, *args, **kwargs):
Convenience function for reading files.
— def rmtree(self, path):
Wrapper around api.file.rmtree.
— def run_once(self, fn, *args, **kwargs):
— def with_retry(self, steptype, name, attempts, between_attempts_fn=None, abort_on_failure=True, fail_build_on_failure=True, **kwargs):
— def writefile(self, filename, contents):
Convenience function for writing files.
DEPS: depot_tools/bot_update, recipe_engine/context, recipe_engine/json, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/raw_io, recipe_engine/step, builder_name_schema
@property
— def is_linux(self):
— def setup(self):
Prepare the variables.
@property
— def swarming_bot_id(self):
@property
— def swarming_task_id(self):
DEPS: recipe_engine/context, recipe_engine/json, recipe_engine/path, recipe_engine/properties, recipe_engine/raw_io, recipe_engine/step
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/step, checkout, infra, run, vars
— def RunSteps(api):
DEPS: recipe_engine/path, recipe_engine/properties, recipe_engine/raw_io, build, run, vars
— def RunSteps(api):
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/raw_io, recipe_engine/step, recipe_engine/time, flavor, run, vars
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/raw_io, recipe_engine/step, build, checkout, flavor, run, vars
— def RunSteps(api):
DEPS: recipe_engine/file, recipe_engine/path, recipe_engine/properties, checkout, run, vars
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/json, recipe_engine/path, recipe_engine/platform, recipe_engine/properties, recipe_engine/python, recipe_engine/step, build, checkout, run, vars
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/raw_io, recipe_engine/step, checkout, run, vars
— def RunSteps(api):
— def analyze_cpp_lib(api, checkout_root, out_dir, files):
— def analyze_flutter_lib(api, checkout_root, out_dir, files):
— def analyze_wasm_file(api, checkout_root, out_dir, files):
— def analyze_web_file(api, checkout_root, out_dir, files):
— def keys_and_props(api):
DEPS: recipe_engine/file, recipe_engine/path, recipe_engine/properties, flavor, run, vars
— def RunSteps(api):
DEPS: recipe_engine/path, recipe_engine/properties, doxygen, vars
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/step, env
— def RunSteps(api):
DEPS: recipe_engine/properties, recipe_engine/raw_io, flavor, run, vars
— def RunSteps(api):
— def test_exceptions(api):
— def RunSteps(api):
DEPS: recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/step, gsutil, run, vars
— def RunSteps(api):
DEPS: recipe_engine/file, recipe_engine/path, recipe_engine/properties, checkout, doxygen, flavor, run, vars
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/properties, recipe_engine/step, checkout, infra, vars
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/step, infra, run, vars
— def RunSteps(api):
DEPS: recipe_engine/file, recipe_engine/json, recipe_engine/path, recipe_engine/platform, recipe_engine/properties, recipe_engine/raw_io, recipe_engine/step, recipe_engine/time, env, flavor, run, vars
— def RunSteps(api):
— def nanobench_flags(api, bot):
— def perf_steps(api):
Run Skia benchmarks.
— def upload_perf_results(buildername):
DEPS: recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/step, checkout, env, infra, run, vars
— def RunSteps(api):
DEPS: recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/step, checkout, env, infra, run, vars
— def RunSteps(api):
DEPS: depot_tools/gclient, recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/raw_io, recipe_engine/step, checkout, flavor, infra, run, vars
Recipe for the Skia RecreateSKPs Bot.
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/path, recipe_engine/properties, recipe_engine/step, run, vars
— def RunSteps(api):
— def myfunc(api, i):
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/raw_io, recipe_engine/step, recipe_engine/time, flavor, run, vars
— def RunSteps(api):
— def skpbench_steps(api):
benchmark Skia using skpbench.
DEPS: recipe_engine/file, recipe_engine/path, recipe_engine/properties, flavor, run, vars
— def RunSteps(api):
— def test_firebase_steps(api):
Test an APK on Firebase Testlab.
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/platform, recipe_engine/properties, recipe_engine/python, recipe_engine/raw_io, recipe_engine/step, env, flavor, run, vars
— def RunSteps(api):
— def dm_flags(api, bot):
— def key_params(api):
Build a unique key from the builder name (as a list).
E.g. arch x86 gpu GeForce320M mode MacMini4.1 os Mac10.6
— def test_steps(api):
Run the DM test.
— def upload_dm_results(buildername):
DEPS: recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/step, checkout, env, infra, run, vars
— def RunSteps(api):
DEPS: recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/step, checkout, env, infra, run, vars
— def RunSteps(api):
DEPS: recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/step, checkout, env, infra, run, vars
— def RunSteps(api):
DEPS: recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/python, recipe_engine/step, checkout, infra, run, vars
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/properties, recipe_engine/python, checkout, infra, run, vars
Recipe for updating the go_deps asset.
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/step, recipe_engine/time
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/step, recipe_engine/time, flavor, run, vars
— def FindFile(api, suffix):
— def RunSteps(api):
DEPS: recipe_engine/file, recipe_engine/json, recipe_engine/path, recipe_engine/properties, recipe_engine/step, recipe_engine/time, gsutil
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/step, recipe_engine/time
— def RunSteps(api):
DEPS: recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/properties, recipe_engine/step, recipe_engine/time, flavor, gsutil, vars
— def RunSteps(api):
DEPS: recipe_engine/path, recipe_engine/properties, vars
— def RunSteps(api):