| [ |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_path):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files:\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.join(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove(path_to_file)\n", |
| "[SLAVE_BUILD]" |
| ], |
| "cwd": "[SLAVE_BUILD]", |
| "name": "cleanup index.lock", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@build_path = sys.argv[1]@@@", |
| "@@@STEP_LOG_LINE@python.inline@if os.path.exists(build_path):@@@", |
| "@@@STEP_LOG_LINE@python.inline@ for (path, dir, files) in os.walk(build_path):@@@", |
| "@@@STEP_LOG_LINE@python.inline@ for cur_file in files:@@@", |
| "@@@STEP_LOG_LINE@python.inline@ if cur_file.endswith('index.lock'):@@@", |
| "@@@STEP_LOG_LINE@python.inline@ path_to_file = os.path.join(path, cur_file)@@@", |
| "@@@STEP_LOG_LINE@python.inline@ print 'deleting %s' % path_to_file@@@", |
| "@@@STEP_LOG_LINE@python.inline@ os.remove(path_to_file)@@@", |
| "@@@STEP_LOG_END@python.inline@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "[BUILD]/scripts/slave/bot_update.py", |
| "--master", |
| "chromium.swarm", |
| "--builder", |
| "Android deterministic build", |
| "--slave", |
| "TestSlavename", |
| "--spec", |
| "cache_dir = None\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src.git'}]\ntarget_os = ['android']", |
| "--root", |
| "src", |
| "--revision_mapping_file", |
| "{}", |
| "--output_json", |
| "/path/to/tmp/json", |
| "--revision", |
| "src@204787" |
| ], |
| "cwd": "[SLAVE_BUILD]", |
| "name": "bot_update", |
| "~followup_annotations": [ |
| "@@@STEP_TEXT@Some step text@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"src\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"root\": \"src\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "\nimport shutil, sys, os\nshutil.rmtree(sys.argv[1], True)\nshutil.rmtree(sys.argv[2], True)\ntry:\n os.remove(sys.argv[3])\nexcept OSError:\n pass\nfor base, _dirs, files in os.walk(sys.argv[4]):\n for f in files:\n if f.endswith('.pyc'):\n os.remove(os.path.join(base, f))\n", |
| "[SLAVE_BUILD]/src/out/Release/debug_info_dumps", |
| "[SLAVE_BUILD]/src/out/Release/test_logs", |
| "[SLAVE_BUILD]/src/out/build_product.zip", |
| "[SLAVE_BUILD]/src" |
| ], |
| "cwd": "[SLAVE_BUILD]", |
| "name": "clean local files", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@import shutil, sys, os@@@", |
| "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[1], True)@@@", |
| "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[2], True)@@@", |
| "@@@STEP_LOG_LINE@python.inline@try:@@@", |
| "@@@STEP_LOG_LINE@python.inline@ os.remove(sys.argv[3])@@@", |
| "@@@STEP_LOG_LINE@python.inline@except OSError:@@@", |
| "@@@STEP_LOG_LINE@python.inline@ pass@@@", |
| "@@@STEP_LOG_LINE@python.inline@for base, _dirs, files in os.walk(sys.argv[4]):@@@", |
| "@@@STEP_LOG_LINE@python.inline@ for f in files:@@@", |
| "@@@STEP_LOG_LINE@python.inline@ if f.endswith('.pyc'):@@@", |
| "@@@STEP_LOG_LINE@python.inline@ os.remove(os.path.join(base, f))@@@", |
| "@@@STEP_LOG_END@python.inline@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "[DEPOT_TOOLS]/gclient.py", |
| "runhooks" |
| ], |
| "cwd": "[SLAVE_BUILD]", |
| "env": { |
| "GYP_CROSSCOMPILE": "1", |
| "GYP_DEFINES": "OS=android component=static_library fastbuild=1 gomadir='[BUILD]/goma' target_arch=arm use_goma=1", |
| "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[SLAVE_BUILD]/src/build/android:%(PATH)s" |
| }, |
| "name": "gclient runhooks" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "[BUILD]/scripts/slave/compile.py", |
| "--target", |
| "Release", |
| "--src-dir", |
| "[SLAVE_BUILD]/src", |
| "--build-tool", |
| "ninja", |
| "--compiler", |
| "goma", |
| "--goma-dir", |
| "[BUILD]/goma", |
| "--clobber", |
| "--", |
| "all" |
| ], |
| "cwd": "[SLAVE_BUILD]", |
| "env": { |
| "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[SLAVE_BUILD]/src/build/android:%(PATH)s" |
| }, |
| "name": "First build" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[isolate]/resources/remove_build_metadata.py", |
| "--build-dir", |
| "[SLAVE_BUILD]/src/out/Release", |
| "--src-dir", |
| "[SLAVE_BUILD]/src" |
| ], |
| "cwd": "[SLAVE_BUILD]", |
| "name": "remove_build_metadata", |
| "~followup_annotations": [ |
| "step returned non-zero exit code: 1", |
| "@@@STEP_WARNINGS@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "\nimport os\nimport shutil\nimport sys\nif os.path.exists(sys.argv[2]):\n shutil.rmtree(sys.argv[2])\nshutil.move(sys.argv[1], sys.argv[2])", |
| "[SLAVE_BUILD]/src/out/Release", |
| "[SLAVE_BUILD]/src/out/Release.1" |
| ], |
| "cwd": "[SLAVE_BUILD]", |
| "name": "Move [SLAVE_BUILD]/src/out/Release to [SLAVE_BUILD]/src/out/Release.1", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| "@@@STEP_LOG_LINE@python.inline@import shutil@@@", |
| "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[2]):@@@", |
| "@@@STEP_LOG_LINE@python.inline@ shutil.rmtree(sys.argv[2])@@@", |
| "@@@STEP_LOG_LINE@python.inline@shutil.move(sys.argv[1], sys.argv[2])@@@", |
| "@@@STEP_LOG_END@python.inline@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "[DEPOT_TOOLS]/gclient.py", |
| "runhooks" |
| ], |
| "cwd": "[SLAVE_BUILD]", |
| "env": { |
| "GYP_CROSSCOMPILE": "1", |
| "GYP_DEFINES": "OS=android component=static_library fastbuild=1 gomadir='[BUILD]/goma' target_arch=arm use_goma=1", |
| "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[SLAVE_BUILD]/src/build/android:%(PATH)s" |
| }, |
| "name": "gclient runhooks (2)" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "[BUILD]/scripts/slave/compile.py", |
| "--target", |
| "Release", |
| "--src-dir", |
| "[SLAVE_BUILD]/src", |
| "--build-tool", |
| "ninja", |
| "--compiler", |
| "goma", |
| "--goma-dir", |
| "[BUILD]/goma", |
| "--clobber", |
| "--", |
| "all" |
| ], |
| "cwd": "[SLAVE_BUILD]", |
| "env": { |
| "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[SLAVE_BUILD]/src/build/android:%(PATH)s" |
| }, |
| "name": "Second build" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[isolate]/resources/remove_build_metadata.py", |
| "--build-dir", |
| "[SLAVE_BUILD]/src/out/Release", |
| "--src-dir", |
| "[SLAVE_BUILD]/src" |
| ], |
| "cwd": "[SLAVE_BUILD]", |
| "name": "remove_build_metadata (2)" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "\nimport os\nimport shutil\nimport sys\nif os.path.exists(sys.argv[2]):\n shutil.rmtree(sys.argv[2])\nshutil.move(sys.argv[1], sys.argv[2])", |
| "[SLAVE_BUILD]/src/out/Release", |
| "[SLAVE_BUILD]/src/out/Release.2" |
| ], |
| "cwd": "[SLAVE_BUILD]", |
| "name": "Move [SLAVE_BUILD]/src/out/Release to [SLAVE_BUILD]/src/out/Release.2", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| "@@@STEP_LOG_LINE@python.inline@import shutil@@@", |
| "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[2]):@@@", |
| "@@@STEP_LOG_LINE@python.inline@ shutil.rmtree(sys.argv[2])@@@", |
| "@@@STEP_LOG_LINE@python.inline@shutil.move(sys.argv[1], sys.argv[2])@@@", |
| "@@@STEP_LOG_END@python.inline@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[isolate]/resources/compare_build_artifacts.py", |
| "--first-build-dir", |
| "[SLAVE_BUILD]/src/out/Release.1", |
| "--second-build-dir", |
| "[SLAVE_BUILD]/src/out/Release.2", |
| "--target-platform", |
| "android" |
| ], |
| "cwd": "[SLAVE_BUILD]", |
| "name": "compare_build_artifacts" |
| } |
| ] |