Add an option to build without goma. This is required for official builds that need to build without goma. Change-Id: Ib841451964762fabc690b20a42db365c2040651e Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/32560 Commit-Queue: Godofredo Contreras <godofredoc@google.com> Reviewed-by: Yusuf Mohsinally <mohsinally@google.com>
diff --git a/recipe_modules/build_util/api.py b/recipe_modules/build_util/api.py index d899302..c03a3d3 100644 --- a/recipe_modules/build_util/api.py +++ b/recipe_modules/build_util/api.py
@@ -26,7 +26,9 @@ checkout_path(Path): A path object with the checkout location. """ self._initialize() - gn_cmd = ['python', checkout_path.join('flutter/tools/gn'), '--goma'] + gn_cmd = ['python', checkout_path.join('flutter/tools/gn')] + if not self.m.properties.get('no_goma', False): + gn_cmd.append('--goma') if self.m.properties.get('no_lto', False) and '--no-lto' not in gn_args: gn_args += ('--no-lto',) gn_cmd.extend(gn_args)
diff --git a/recipes/engine/framework_smoke.expected/no_goma.json b/recipes/engine/framework_smoke.expected/no_goma.json new file mode 100644 index 0000000..1304797 --- /dev/null +++ b/recipes/engine/framework_smoke.expected/no_goma.json
@@ -0,0 +1,798 @@ +[ + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "rmtree", + "[CACHE]/builder/src/out" + ], + "infra_step": true, + "name": "Clobber build output" + }, + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "ensure-directory", + "--mode", + "0777", + "[CACHE]/builder" + ], + "infra_step": true, + "name": "Ensure checkout cache" + }, + { + "cmd": [], + "name": "Checkout source code" + }, + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "rmcontents", + "[CACHE]/builder" + ], + "env_suffixes": { + "DEPOT_TOOLS_UPDATE": [ + "0" + ], + "PATH": [ + "RECIPE_REPO[depot_tools]" + ] + }, + "infra_step": true, + "name": "Checkout source code.Clobber cache", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "rmtree", + "[CACHE]/git" + ], + "env_suffixes": { + "DEPOT_TOOLS_UPDATE": [ + "0" + ], + "PATH": [ + "RECIPE_REPO[depot_tools]" + ] + }, + "infra_step": true, + "name": "Checkout source code.Clobber git cache", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "ensure-directory", + "--mode", + "0777", + "[CACHE]/builder" + ], + "env_suffixes": { + "DEPOT_TOOLS_UPDATE": [ + "0" + ], + "PATH": [ + "RECIPE_REPO[depot_tools]" + ] + }, + "infra_step": true, + "name": "Checkout source code.Ensure checkout cache", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", + "--spec-path", + "cache_dir = '[CACHE]/git'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'src/flutter', 'url': 'https://flutter.googlesource.com/mirrors/engine'}]", + "--revision_mapping_file", + "{\"got_engine_revision\": \"src/flutter\"}", + "--git-cache-dir", + "[CACHE]/git", + "--cleanup-dir", + "[CLEANUP]/bot_update", + "--output_json", + "/path/to/tmp/json", + "--revision", + "src/flutter@HEAD" + ], + "cwd": "[CACHE]/builder", + "env": { + "DEPOT_TOOLS_COLLECT_METRICS": "0", + "FLUTTER_PREBUILT_DART_SDK": "True", + "GIT_HTTP_LOW_SPEED_LIMIT": "102400", + "GIT_HTTP_LOW_SPEED_TIME": "1800" + }, + "env_suffixes": { + "DEPOT_TOOLS_UPDATE": [ + "0", + "0" + ], + "PATH": [ + "RECIPE_REPO[depot_tools]", + "RECIPE_REPO[depot_tools]" + ] + }, + "infra_step": true, + "name": "Checkout source code.bot_update", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@", + "@@@STEP_TEXT@Some step text@@@", + "@@@STEP_LOG_LINE@json.output@{@@@", + "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", + "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", + "@@@STEP_LOG_LINE@json.output@ \"src/flutter\": \"HEAD\"@@@", + "@@@STEP_LOG_LINE@json.output@ }, @@@", + "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@", + "@@@STEP_LOG_LINE@json.output@ \"src/flutter\": {@@@", + "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src/flutter.git\", @@@", + "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9221bca00ddbd888260084def81f09543281b952\"@@@", + "@@@STEP_LOG_LINE@json.output@ }@@@", + "@@@STEP_LOG_LINE@json.output@ }, @@@", + "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@", + "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"src/flutter\", @@@", + "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@", + "@@@STEP_LOG_LINE@json.output@ \"got_engine_revision\": \"9221bca00ddbd888260084def81f09543281b952\", @@@", + "@@@STEP_LOG_LINE@json.output@ \"got_engine_revision_cp\": \"refs/heads/main@{#84512}\", @@@", + "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"9221bca00ddbd888260084def81f09543281b952\"@@@", + "@@@STEP_LOG_LINE@json.output@ }, @@@", + "@@@STEP_LOG_LINE@json.output@ \"root\": \"src/flutter\", @@@", + "@@@STEP_LOG_LINE@json.output@ \"source_manifest\": {@@@", + "@@@STEP_LOG_LINE@json.output@ \"directories\": {@@@", + "@@@STEP_LOG_LINE@json.output@ \"src/flutter\": {@@@", + "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@", + "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/src/flutter.git\", @@@", + "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9221bca00ddbd888260084def81f09543281b952\"@@@", + "@@@STEP_LOG_LINE@json.output@ }@@@", + "@@@STEP_LOG_LINE@json.output@ }@@@", + "@@@STEP_LOG_LINE@json.output@ }, @@@", + "@@@STEP_LOG_LINE@json.output@ \"version\": 0@@@", + "@@@STEP_LOG_LINE@json.output@ }, @@@", + "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", + "@@@STEP_LOG_LINE@json.output@}@@@", + "@@@STEP_LOG_END@json.output@@@", + "@@@SET_BUILD_PROPERTY@got_engine_revision@\"9221bca00ddbd888260084def81f09543281b952\"@@@", + "@@@SET_BUILD_PROPERTY@got_engine_revision_cp@\"refs/heads/main@{#84512}\"@@@", + "@@@SET_BUILD_PROPERTY@got_revision@\"9221bca00ddbd888260084def81f09543281b952\"@@@" + ] + }, + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_REPO[depot_tools]/gclient.py", + "runhooks" + ], + "cwd": "[CACHE]/builder", + "env": { + "FLUTTER_PREBUILT_DART_SDK": "True" + }, + "env_suffixes": { + "DEPOT_TOOLS_UPDATE": [ + "0" + ], + "PATH": [ + "RECIPE_REPO[depot_tools]", + "RECIPE_REPO[depot_tools]" + ] + }, + "name": "Checkout source code.gclient runhooks", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [], + "name": "Build host_debug_unopt" + }, + { + "cmd": [], + "name": "Build host_debug_unopt.ensure goma", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "cipd", + "ensure", + "-root", + "[CACHE]/goma/client", + "-ensure-file", + "fuchsia/third_party/goma/client/${platform} integration", + "-max-threads", + "0", + "-json-output", + "/path/to/tmp/json" + ], + "infra_step": true, + "name": "Build host_debug_unopt.ensure goma.ensure_installed", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@2@@@", + "@@@STEP_LOG_LINE@json.output@{@@@", + "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@", + "@@@STEP_LOG_LINE@json.output@ \"\": [@@@", + "@@@STEP_LOG_LINE@json.output@ {@@@", + "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-integration-----\", @@@", + "@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/third_party/goma/client/resolved-platform\"@@@", + "@@@STEP_LOG_LINE@json.output@ }@@@", + "@@@STEP_LOG_LINE@json.output@ ]@@@", + "@@@STEP_LOG_LINE@json.output@ }@@@", + "@@@STEP_LOG_LINE@json.output@}@@@", + "@@@STEP_LOG_END@json.output@@@" + ] + }, + { + "cmd": [ + "python", + "[CACHE]/builder/src/flutter/tools/gn", + "--unoptimized", + "--full-dart-sdk", + "--prebuilt-dart-sdk" + ], + "env": { + "GOMA_DIR": "[CACHE]/goma/client" + }, + "name": "Build host_debug_unopt.gn --unoptimized --full-dart-sdk --prebuilt-dart-sdk", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [], + "name": "Build host_debug_unopt.setup goma", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [], + "name": "Build host_debug_unopt.setup goma.ensure cpython3", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@2@@@" + ] + }, + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "copy", + "RECIPE_MODULE[fuchsia::python3]/resources/tool_manifest.json", + "/path/to/tmp/json" + ], + "env": { + "GLOG_log_dir": "[CLEANUP]", + "GOMA_CACHE_DIR": "[CACHE]/goma", + "GOMA_DEPS_CACHE_FILE": "goma_deps_cache", + "GOMA_DIR": "[CACHE]/goma/client", + "GOMA_DUMP_STATS_FILE": "[CACHE]/goma/client/goma_stats.json", + "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache", + "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256", + "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog", + "GOMA_STORE_LOCAL_RUN_OUTPUT": "True", + "GOMA_TMP_DIR": "[CLEANUP]/goma", + "GOMA_USE_LOCAL": "False" + }, + "infra_step": true, + "name": "Build host_debug_unopt.setup goma.ensure cpython3.read manifest", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@3@@@", + "@@@STEP_LOG_LINE@tool_manifest.json@{@@@", + "@@@STEP_LOG_LINE@tool_manifest.json@ \"path\": \"path/to/cpython3\",@@@", + "@@@STEP_LOG_LINE@tool_manifest.json@ \"version\": \"version:pinned-version\"@@@", + "@@@STEP_LOG_LINE@tool_manifest.json@}@@@", + "@@@STEP_LOG_END@tool_manifest.json@@@" + ] + }, + { + "cmd": [], + "name": "Build host_debug_unopt.setup goma.ensure cpython3.install path/to/cpython3", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@3@@@" + ] + }, + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "ensure-directory", + "--mode", + "0777", + "[START_DIR]/cipd_tool/path/to/cpython3/version%3Apinned-version" + ], + "env": { + "GLOG_log_dir": "[CLEANUP]", + "GOMA_CACHE_DIR": "[CACHE]/goma", + "GOMA_DEPS_CACHE_FILE": "goma_deps_cache", + "GOMA_DIR": "[CACHE]/goma/client", + "GOMA_DUMP_STATS_FILE": "[CACHE]/goma/client/goma_stats.json", + "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache", + "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256", + "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog", + "GOMA_STORE_LOCAL_RUN_OUTPUT": "True", + "GOMA_TMP_DIR": "[CLEANUP]/goma", + "GOMA_USE_LOCAL": "False" + }, + "infra_step": true, + "name": "Build host_debug_unopt.setup goma.ensure cpython3.install path/to/cpython3.ensure package directory", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@4@@@" + ] + }, + { + "cmd": [ + "cipd", + "ensure", + "-root", + "[START_DIR]/cipd_tool/path/to/cpython3/version%3Apinned-version", + "-ensure-file", + "path/to/cpython3 version:pinned-version", + "-max-threads", + "0", + "-json-output", + "/path/to/tmp/json" + ], + "env": { + "GLOG_log_dir": "[CLEANUP]", + "GOMA_CACHE_DIR": "[CACHE]/goma", + "GOMA_DEPS_CACHE_FILE": "goma_deps_cache", + "GOMA_DIR": "[CACHE]/goma/client", + "GOMA_DUMP_STATS_FILE": "[CACHE]/goma/client/goma_stats.json", + "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache", + "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256", + "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog", + "GOMA_STORE_LOCAL_RUN_OUTPUT": "True", + "GOMA_TMP_DIR": "[CLEANUP]/goma", + "GOMA_USE_LOCAL": "False" + }, + "infra_step": true, + "name": "Build host_debug_unopt.setup goma.ensure cpython3.install path/to/cpython3.ensure_installed", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@4@@@", + "@@@STEP_LOG_LINE@json.output@{@@@", + "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@", + "@@@STEP_LOG_LINE@json.output@ \"\": [@@@", + "@@@STEP_LOG_LINE@json.output@ {@@@", + "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-version:pinned-v\", @@@", + "@@@STEP_LOG_LINE@json.output@ \"package\": \"path/to/cpython3\"@@@", + "@@@STEP_LOG_LINE@json.output@ }@@@", + "@@@STEP_LOG_LINE@json.output@ ]@@@", + "@@@STEP_LOG_LINE@json.output@ }@@@", + "@@@STEP_LOG_LINE@json.output@}@@@", + "@@@STEP_LOG_END@json.output@@@" + ] + }, + { + "cmd": [ + "[START_DIR]/cipd_tool/path/to/cpython3/version%3Apinned-version/bin/python3", + "[CACHE]/goma/client/goma_ctl.py", + "restart" + ], + "env": { + "GLOG_log_dir": "[CLEANUP]", + "GOMA_CACHE_DIR": "[CACHE]/goma", + "GOMA_DEPS_CACHE_FILE": "goma_deps_cache", + "GOMA_DIR": "[CACHE]/goma/client", + "GOMA_DUMP_STATS_FILE": "[CACHE]/goma/client/goma_stats.json", + "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache", + "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256", + "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog", + "GOMA_STORE_LOCAL_RUN_OUTPUT": "True", + "GOMA_TMP_DIR": "[CLEANUP]/goma", + "GOMA_USE_LOCAL": "False" + }, + "infra_step": true, + "name": "Build host_debug_unopt.setup goma.start goma", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@2@@@" + ] + }, + { + "cmd": [ + "RECIPE_REPO[depot_tools]/ninja", + "-j", + "100", + "-C", + "[CACHE]/builder/src/out/host_debug_unopt" + ], + "env": { + "GOMA_DIR": "[CACHE]/goma/client", + "GOMA_TMP_DIR": "[CLEANUP]/goma", + "GOMA_USE_LOCAL": "False" + }, + "env_suffixes": { + "DEPOT_TOOLS_UPDATE": [ + "0" + ], + "PATH": [ + "RECIPE_REPO[depot_tools]" + ] + }, + "name": "Build host_debug_unopt.build host_debug_unopt", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [], + "name": "Build host_debug_unopt.teardown goma", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "[START_DIR]/cipd_tool/path/to/cpython3/version%3Apinned-version/bin/python3", + "[CACHE]/goma/client/goma_ctl.py", + "jsonstatus", + "[CACHE]/goma/client/jsonstatus" + ], + "env": { + "GLOG_log_dir": "[CLEANUP]", + "GOMA_CACHE_DIR": "[CACHE]/goma", + "GOMA_DEPS_CACHE_FILE": "goma_deps_cache", + "GOMA_DIR": "[CACHE]/goma/client", + "GOMA_DUMP_STATS_FILE": "[CACHE]/goma/client/goma_stats.json", + "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache", + "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256", + "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog", + "GOMA_STORE_LOCAL_RUN_OUTPUT": "True", + "GOMA_TMP_DIR": "[CLEANUP]/goma", + "GOMA_USE_LOCAL": "False" + }, + "name": "Build host_debug_unopt.teardown goma.goma jsonstatus", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@2@@@", + "@@@STEP_LOG_LINE@json.output@{@@@", + "@@@STEP_LOG_LINE@json.output@ \"notice\": [@@@", + "@@@STEP_LOG_LINE@json.output@ {@@@", + "@@@STEP_LOG_LINE@json.output@ \"infra_status\": {@@@", + "@@@STEP_LOG_LINE@json.output@ \"num_user_error\": 0, @@@", + "@@@STEP_LOG_LINE@json.output@ \"ping_status_code\": 200@@@", + "@@@STEP_LOG_LINE@json.output@ }@@@", + "@@@STEP_LOG_LINE@json.output@ }@@@", + "@@@STEP_LOG_LINE@json.output@ ]@@@", + "@@@STEP_LOG_LINE@json.output@}@@@", + "@@@STEP_LOG_END@json.output@@@" + ] + }, + { + "cmd": [ + "[START_DIR]/cipd_tool/path/to/cpython3/version%3Apinned-version/bin/python3", + "[CACHE]/goma/client/goma_ctl.py", + "stat" + ], + "env": { + "GLOG_log_dir": "[CLEANUP]", + "GOMA_CACHE_DIR": "[CACHE]/goma", + "GOMA_DEPS_CACHE_FILE": "goma_deps_cache", + "GOMA_DIR": "[CACHE]/goma/client", + "GOMA_DUMP_STATS_FILE": "[CACHE]/goma/client/goma_stats.json", + "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache", + "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256", + "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog", + "GOMA_STORE_LOCAL_RUN_OUTPUT": "True", + "GOMA_TMP_DIR": "[CLEANUP]/goma", + "GOMA_USE_LOCAL": "False" + }, + "name": "Build host_debug_unopt.teardown goma.goma stats", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@2@@@" + ] + }, + { + "cmd": [ + "[START_DIR]/cipd_tool/path/to/cpython3/version%3Apinned-version/bin/python3", + "[CACHE]/goma/client/goma_ctl.py", + "stop" + ], + "env": { + "GLOG_log_dir": "[CLEANUP]", + "GOMA_CACHE_DIR": "[CACHE]/goma", + "GOMA_DEPS_CACHE_FILE": "goma_deps_cache", + "GOMA_DIR": "[CACHE]/goma/client", + "GOMA_DUMP_STATS_FILE": "[CACHE]/goma/client/goma_stats.json", + "GOMA_LOCAL_OUTPUT_CACHE_DIR": "[CACHE]/goma/localoutputcache", + "GOMA_MAX_SUM_OUTPUT_SIZE_IN_MB": "256", + "GOMA_SERVER_HOST": "rbe-prod1.endpoints.fuchsia-infra-goma-prod.cloud.goog", + "GOMA_STORE_LOCAL_RUN_OUTPUT": "True", + "GOMA_TMP_DIR": "[CLEANUP]/goma", + "GOMA_USE_LOCAL": "False" + }, + "name": "Build host_debug_unopt.teardown goma.stop goma", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@2@@@" + ] + }, + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "copy", + "[CLEANUP]/compiler_proxy.WARNING", + "/path/to/tmp/" + ], + "env": { + "GOMA_DIR": "[CACHE]/goma/client", + "GOMA_TMP_DIR": "[CLEANUP]/goma", + "GOMA_USE_LOCAL": "False" + }, + "infra_step": true, + "name": "Build host_debug_unopt.teardown goma.read goma_client warning log", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@2@@@", + "@@@STEP_LOG_LINE@compiler_proxy.WARNING@test log@@@", + "@@@STEP_LOG_END@compiler_proxy.WARNING@@@" + ] + }, + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "copy", + "[CACHE]/goma/client/goma_stats.json", + "/path/to/tmp/" + ], + "env": { + "GOMA_DIR": "[CACHE]/goma/client", + "GOMA_TMP_DIR": "[CLEANUP]/goma", + "GOMA_USE_LOCAL": "False" + }, + "infra_step": true, + "name": "Build host_debug_unopt.teardown goma.read goma_stats.json", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@2@@@" + ] + }, + { + "cmd": [], + "name": "Checkout flutter/flutter" + }, + { + "cmd": [ + "python3", + "-u", + "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", + "--path", + "[CACHE]/flutter", + "--url", + "https://flutter.googlesource.com/mirrors/flutter" + ], + "name": "Checkout flutter/flutter.git setup", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "git", + "fetch", + "origin", + "master", + "--recurse-submodules", + "--progress", + "--tags" + ], + "cwd": "[CACHE]/flutter", + "env": { + "PATH": "RECIPE_REPO[depot_tools]:<PATH>" + }, + "infra_step": true, + "name": "Checkout flutter/flutter.git fetch", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "git", + "checkout", + "-f", + "FETCH_HEAD" + ], + "cwd": "[CACHE]/flutter", + "infra_step": true, + "name": "Checkout flutter/flutter.git checkout", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "git", + "rev-parse", + "HEAD" + ], + "cwd": "[CACHE]/flutter", + "infra_step": true, + "name": "Checkout flutter/flutter.read revision", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@", + "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@", + "@@@SET_BUILD_PROPERTY@got_revision@\"deadbeef\"@@@" + ] + }, + { + "cmd": [ + "git", + "clean", + "-f", + "-d", + "-x" + ], + "cwd": "[CACHE]/flutter", + "infra_step": true, + "name": "Checkout flutter/flutter.git clean", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "git", + "submodule", + "sync" + ], + "cwd": "[CACHE]/flutter", + "infra_step": true, + "name": "Checkout flutter/flutter.submodule sync", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "git", + "submodule", + "update", + "--init", + "--recursive" + ], + "cwd": "[CACHE]/flutter", + "infra_step": true, + "name": "Checkout flutter/flutter.submodule update", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [], + "name": "Framework analyze" + }, + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "rmtree", + "[CACHE]/flutter/bin/cache/pkg/sky_engine" + ], + "cwd": "[CACHE]/flutter", + "env": { + "FLUTTER_PREBUILT_DART_SDK": "True" + }, + "infra_step": true, + "name": "Framework analyze.Delete framework engine cache", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "vpython3", + "-u", + "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", + "--json-output", + "/path/to/tmp/json", + "ensure-directory", + "--mode", + "0777", + "[CACHE]/flutter/bin/cache/pkg" + ], + "cwd": "[CACHE]/flutter", + "env": { + "FLUTTER_PREBUILT_DART_SDK": "True" + }, + "infra_step": true, + "name": "Framework analyze.Ensure framework engine cache", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "bin/flutter", + "update-packages", + "--local-engine=[CACHE]/builder/src/out/host_debug_unopt" + ], + "cwd": "[CACHE]/flutter", + "env": { + "FLUTTER_PREBUILT_DART_SDK": "True" + }, + "name": "Framework analyze.Update packages", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [ + "bin/flutter", + "analyze", + "--flutter-repo", + "--local-engine=[CACHE]/builder/src/out/host_debug_unopt" + ], + "cwd": "[CACHE]/flutter", + "env": { + "FLUTTER_PREBUILT_DART_SDK": "True" + }, + "name": "Framework analyze.Framework analyze", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "cmd": [], + "name": "Framework test" + }, + { + "cmd": [ + "[CACHE]/flutter/bin/flutter", + "test", + "--null-assertions", + "--sound-null-safety", + "--local-engine=[CACHE]/builder/src/out/host_debug_unopt" + ], + "cwd": "[CACHE]/flutter/packages/flutter", + "env": { + "FLUTTER_PREBUILT_DART_SDK": "True" + }, + "name": "Framework test.test: Framework test", + "~followup_annotations": [ + "@@@STEP_NEST_LEVEL@1@@@" + ] + }, + { + "name": "$result" + } +] \ No newline at end of file
diff --git a/recipes/engine/framework_smoke.py b/recipes/engine/framework_smoke.py index c5f9a36..048cb04 100644 --- a/recipes/engine/framework_smoke.py +++ b/recipes/engine/framework_smoke.py
@@ -93,3 +93,4 @@ def GenTests(api): yield api.test('basic', api.properties(goma_jobs="100")) + yield api.test('no_goma', api.properties(goma_jobs="100", no_goma=True))