Repo documentation for dart

Table of Contents

Recipe Modules

Recipes

Recipe Modules

recipe_modules / bisect_build

DEPS: depot_tools/gitiles, recipe_engine/buildbucket, recipe_engine/properties, recipe_engine/runtime, recipe_engine/step

class BisectApi(RecipeApi):

def get_base_build(self):

def is_bisecting(self):

@property
def is_enabled(self):

def schedule(self, repo_url, reason, is_experimental=False):

recipe_modules / dart

DEPS: build/goma, bisect_build, depot_tools/bot_update, depot_tools/depot_tools, depot_tools/gclient, depot_tools/git, depot_tools/gsutil, depot_tools/tryserver, recipe_engine/buildbucket, recipe_engine/cipd, recipe_engine/context, recipe_engine/file, recipe_engine/isolated, recipe_engine/json, recipe_engine/path, recipe_engine/platform, recipe_engine/properties, recipe_engine/python, recipe_engine/raw_io, recipe_engine/runtime, recipe_engine/service_account, recipe_engine/step, recipe_engine/swarming

class DartApi(RecipeApi):

Recipe module for code commonly used in dart recipes.

Shouldn't be used elsewhere.

def build(self, build_args=None, name=‘build dart’):

Builds dart using the specified build_args

def checkout(self, clobber=False, custom_vars={}):

Checks out the dart code and prepares it for building.

def collect_all(self, steps):

Collects the results of a sharded test run.

def dart_executable(self):

Returns the path to the checked-in SDK dart executable.

def delete_debug_log(self):

Deletes the debug log file

def download_browser(self, runtime, version):

def get_secret(self, name):

Decrypts the specified secret and returns the location of the result

def has_infra_failure(self, failure):

Returns whether failure is an aggregated failure that directly or indirectly contains an InfraFailure.

def kill_tasks(self, ok_ret=‘any’):

Kills leftover tasks from previous runs or steps.

def read_debug_log(self):

Reads the debug log file

def shard(self, name, isolate_hash, test_args, os, cpu=‘x86-64’, pool=‘dart.tests’, num_shards=0, last_shard_is_local=False, cipd_ensure_file=None, ignore_failure=False):

Runs test.py in the given isolate, sharded over several swarming tasks. Returns the created tasks, which can be collected with collect_all().

def test(self, test_data):

Reads the test-matrix.json file in the checkout and runs each step listed in the file.

def upload_isolate(self, isolate_fileset):

Builds an isolate

Recipes

recipes / bisect_build:tests/tests

DEPS: bisect_build, depot_tools/gitiles, recipe_engine/buildbucket, recipe_engine/properties, recipe_engine/step

def RunSteps(api, current_failure, is_experimental):

recipes / cron/cron

DEPS: depot_tools/gitiles, recipe_engine/buildbucket, recipe_engine/properties

def RunSteps(api, properties):

recipes / dart/chocolatey

DEPS: dart, recipe_engine/context, recipe_engine/file, recipe_engine/path, recipe_engine/platform, recipe_engine/properties, recipe_engine/step, recipe_engine/url

def RunSteps(api):

recipes / dart/docker

DEPS: dart, depot_tools/git, recipe_engine/context, recipe_engine/path, recipe_engine/properties, recipe_engine/step

def RunSteps(api):

recipes / dart/external

DEPS: recipe_engine/buildbucket, recipe_engine/properties, recipe_engine/step

def RunSteps(api):

recipes / dart/flutter_engine

DEPS: build/goma, bisect_build, dart, depot_tools/bot_update, depot_tools/depot_tools, depot_tools/gclient, depot_tools/gitiles, recipe_engine/buildbucket, recipe_engine/context, recipe_engine/file, recipe_engine/json, recipe_engine/path, recipe_engine/platform, recipe_engine/properties, recipe_engine/python, recipe_engine/runtime, recipe_engine/step

def AnalyzeDartUI(api, checkout_dir):

def Build(api, checkout_dir, config, *targets):

def BuildAndTest(api, start_dir, checkout_dir, flutter_rev):

def BuildLinux(api, checkout_dir):

def BuildLinuxAndroidArm(api, checkout_dir):

def BuildLinuxAndroidx86(api, checkout_dir):

def CopyArtifacts(api, engine_src, cached_dest, file_paths):

def GetCheckout(api):

def KillTasks(api, checkout_dir, ok_ret=‘any’):

Kills leftover tasks from previous runs or steps.

def RunGN(api, checkout_dir, *args):

def RunSteps(api):

def TestEngine(api, checkout_dir):

def TestFlutter(api, start_dir, just_built_dart_sdk):

def TestObservatory(api, checkout_dir):

def UpdateCachedEngineArtifacts(api, flutter, engine_src):

recipes / dart/forward_branch

DEPS: dart, depot_tools/git, recipe_engine/buildbucket, recipe_engine/path, recipe_engine/properties, recipe_engine/raw_io, recipe_engine/step

def RunSteps(api):

recipes / dart/gclient

DEPS: depot_tools/gclient, depot_tools/tryserver, recipe_engine/buildbucket, recipe_engine/properties

def RunSteps(api):

recipes / dart/linearize

DEPS: dart, depot_tools/git, depot_tools/gitiles, recipe_engine/buildbucket, recipe_engine/context, recipe_engine/file, recipe_engine/json, recipe_engine/path, recipe_engine/properties

def RunSteps(api):

recipes / dart/neo

DEPS: bisect_build, dart, depot_tools/gitiles, depot_tools/osx_sdk, recipe_engine/buildbucket, recipe_engine/context, recipe_engine/path, recipe_engine/properties, recipe_engine/raw_io, recipe_engine/step

def RunSteps(api, properties):

recipes / dart/package_co19

DEPS: depot_tools/git, recipe_engine/buildbucket, recipe_engine/cipd, recipe_engine/path, recipe_engine/properties, recipe_engine/step

def RunSteps(api):

recipes / dart:examples/example

DEPS: dart, depot_tools/tryserver, recipe_engine/buildbucket, recipe_engine/file, recipe_engine/json, recipe_engine/platform, recipe_engine/properties, recipe_engine/raw_io, recipe_engine/runtime, recipe_engine/step, recipe_engine/swarming

def RunSteps(api):

recipes / dart:examples/example-get_secret

DEPS: dart, recipe_engine/platform

def RunSteps(api):

recipes / presubmit/presubmit

DEPS: depot_tools/gclient, depot_tools/presubmit, depot_tools/tryserver, recipe_engine/buildbucket, recipe_engine/context, recipe_engine/json, recipe_engine/path

def RunSteps(api):

recipes / roller/lkgr

DEPS: depot_tools/bot_update, depot_tools/gclient, depot_tools/git, recipe_engine/context, recipe_engine/json, recipe_engine/path, recipe_engine/properties, recipe_engine/raw_io, recipe_engine/runtime, recipe_engine/step

def RunSteps(api, properties):

recipes / roller/roll_to_dev

DEPS: depot_tools/bot_update, depot_tools/gclient, depot_tools/git, depot_tools/gitiles, recipe_engine/context, recipe_engine/file, recipe_engine/json, recipe_engine/path, recipe_engine/properties, recipe_engine/raw_io, recipe_engine/runtime, recipe_engine/step

def RunSteps(api, properties):