| [ |
| { |
| "cmd": [], |
| "name": "checkout" |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/checkout" |
| ], |
| "infra_step": true, |
| "name": "checkout.makedirs", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "init" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout.git init", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "remote", |
| "add", |
| "origin", |
| "https://pigweed.googlesource.com/pigweed/pigweed" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout.git remote", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "checkout.cache", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout.cache.makedirs", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "init", |
| "--bare" |
| ], |
| "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed", |
| "infra_step": true, |
| "name": "checkout.cache.git init", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "remote.origin.url", |
| "https://pigweed.googlesource.com/pigweed/pigweed" |
| ], |
| "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed", |
| "infra_step": true, |
| "name": "checkout.cache.remote set-url", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "--replace-all", |
| "remote.origin.fetch", |
| "+refs/heads/*:refs/heads/*", |
| "\\+refs/heads/\\*:.*" |
| ], |
| "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed", |
| "infra_step": true, |
| "name": "checkout.cache.git config", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "fetch", |
| "--prune", |
| "--tags", |
| "origin" |
| ], |
| "cwd": "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed", |
| "infra_step": true, |
| "name": "checkout.cache.git fetch", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/checkout/.git/objects/info" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout.cache.makedirs object/info", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed/objects\n", |
| "[START_DIR]/checkout/.git/objects/info/alternates" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout.cache.alternates", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_LINE@alternates@[CACHE]/git/pigweed.googlesource.com-pigweed-pigweed/objects@@@", |
| "@@@STEP_LOG_END@alternates@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "fetch", |
| "--tags", |
| "origin" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout.git fetch", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "checkout", |
| "-f", |
| "2d72510e447ab60a9728aeea2362d8be2cbd7789" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout.git checkout", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "rev-parse", |
| "HEAD" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout.git rev-parse", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "clean", |
| "-f", |
| "-d", |
| "-x" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout.git clean", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "checkout.submodule", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "sync" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout.submodule.git submodule sync", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "update", |
| "--init" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout.submodule.git submodule update", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "--no-pager", |
| "log", |
| "--oneline", |
| "HEAD~10.." |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "infra_step": true, |
| "name": "checkout.git log", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "environment" |
| }, |
| { |
| "cmd": [], |
| "name": "environment.setup cipd", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[START_DIR]/checkout/pw_env_setup/py/pw_env_setup/cipd_setup/pigweed.json", |
| "/path/to/tmp/" |
| ], |
| "infra_step": true, |
| "name": "environment.setup cipd.read pigweed.json", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_LINE@pigweed.json@[{\"path\": \"cipd/path/${platform}\", \"tags\": [\"version:42\"]}]@@@", |
| "@@@STEP_LOG_END@pigweed.json@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cipd", |
| "-ensure-file", |
| "cipd/path/${platform} version:42", |
| "-max-threads", |
| "0", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "name": "environment.setup cipd.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-version:42------\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"cipd/path/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": [], |
| "name": "environment.setup python", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "listdir", |
| "[START_DIR]/checkout", |
| "--recursive" |
| ], |
| "infra_step": true, |
| "name": "environment.setup python.ls **/setup.py", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/checkout/pw_cli/py/setup.py@@@", |
| "@@@STEP_LOG_LINE@listdir@[START_DIR]/checkout/pw_presubmit/py/setup.py@@@", |
| "@@@STEP_LOG_END@listdir@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "environment.setup python.packages", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_LINE@matches@[START_DIR]/checkout/pw_cli/py@@@", |
| "@@@STEP_LOG_LINE@matches@[START_DIR]/checkout/pw_presubmit/py@@@", |
| "@@@STEP_LOG_END@matches@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "environment.setup python.setup virtualenv", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python3", |
| "-m", |
| "venv", |
| "[START_DIR]/venv" |
| ], |
| "env": { |
| "PW_CIPD_INSTALL_DIR": "[START_DIR]/cipd", |
| "PW_PIGWEED_CIPD_INSTALL_DIR": "[START_DIR]/cipd", |
| "PW_ROOT": "[START_DIR]/checkout" |
| }, |
| "env_prefixes": { |
| "LD_LIBRARY_PATH": [ |
| "[START_DIR]/cipd", |
| "[START_DIR]/cipd/lib" |
| ], |
| "PATH": [ |
| "[START_DIR]/cipd", |
| "[START_DIR]/cipd/bin", |
| "[START_DIR]/cipd/mingw64/bin" |
| ] |
| }, |
| "name": "environment.setup python.setup virtualenv.create venv", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@3@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/venv/bin/python", |
| "-m", |
| "pip", |
| "install", |
| "--upgrade", |
| "pip" |
| ], |
| "env": { |
| "PW_CIPD_INSTALL_DIR": "[START_DIR]/cipd", |
| "PW_PIGWEED_CIPD_INSTALL_DIR": "[START_DIR]/cipd", |
| "PW_ROOT": "[START_DIR]/checkout" |
| }, |
| "env_prefixes": { |
| "LD_LIBRARY_PATH": [ |
| "[START_DIR]/cipd", |
| "[START_DIR]/cipd/lib" |
| ], |
| "PATH": [ |
| "[START_DIR]/cipd", |
| "[START_DIR]/cipd/bin", |
| "[START_DIR]/cipd/mingw64/bin" |
| ] |
| }, |
| "name": "environment.setup python.setup virtualenv.upgrade pip", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@3@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "environment.setup python.install packages", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/venv/bin/python", |
| "-m", |
| "pip", |
| "install", |
| "--editable=[START_DIR]/checkout/pw_cli/py", |
| "--editable=[START_DIR]/checkout/pw_presubmit/py" |
| ], |
| "env": { |
| "PW_CIPD_INSTALL_DIR": "[START_DIR]/cipd", |
| "PW_PIGWEED_CIPD_INSTALL_DIR": "[START_DIR]/cipd", |
| "PW_ROOT": "[START_DIR]/checkout", |
| "VIRTUAL_ENV": "[START_DIR]/venv" |
| }, |
| "env_prefixes": { |
| "LD_LIBRARY_PATH": [ |
| "[START_DIR]/cipd", |
| "[START_DIR]/cipd/lib" |
| ], |
| "PATH": [ |
| "[START_DIR]/venv/bin", |
| "[START_DIR]/cipd", |
| "[START_DIR]/cipd/bin", |
| "[START_DIR]/cipd/mingw64/bin" |
| ] |
| }, |
| "name": "environment.setup python.install packages.pigweed tools", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@3@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/venv/bin/python", |
| "-m", |
| "pip", |
| "install", |
| "-r", |
| "[START_DIR]/checkout/pw_env_setup/py/pw_env_setup/virtualenv_setup/requirements.txt" |
| ], |
| "env": { |
| "PW_CIPD_INSTALL_DIR": "[START_DIR]/cipd", |
| "PW_PIGWEED_CIPD_INSTALL_DIR": "[START_DIR]/cipd", |
| "PW_ROOT": "[START_DIR]/checkout", |
| "VIRTUAL_ENV": "[START_DIR]/venv" |
| }, |
| "env_prefixes": { |
| "LD_LIBRARY_PATH": [ |
| "[START_DIR]/cipd", |
| "[START_DIR]/cipd/lib" |
| ], |
| "PATH": [ |
| "[START_DIR]/venv/bin", |
| "[START_DIR]/cipd", |
| "[START_DIR]/cipd/bin", |
| "[START_DIR]/cipd/mingw64/bin" |
| ] |
| }, |
| "name": "environment.setup python.install packages.build requirements", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@3@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "pw", |
| "--loglevel", |
| "debug", |
| "presubmit", |
| "--repository", |
| "[START_DIR]/checkout", |
| "--output-directory", |
| "out" |
| ], |
| "env": { |
| "PW_CIPD_INSTALL_DIR": "[START_DIR]/cipd", |
| "PW_PIGWEED_CIPD_INSTALL_DIR": "[START_DIR]/cipd", |
| "PW_ROOT": "[START_DIR]/checkout", |
| "VIRTUAL_ENV": "[START_DIR]/venv" |
| }, |
| "env_prefixes": { |
| "LD_LIBRARY_PATH": [ |
| "[START_DIR]/cipd", |
| "[START_DIR]/cipd/lib" |
| ], |
| "PATH": [ |
| "[START_DIR]/venv/bin", |
| "[START_DIR]/cipd", |
| "[START_DIR]/cipd/bin", |
| "[START_DIR]/cipd/mingw64/bin" |
| ] |
| }, |
| "name": "pw presubmit" |
| }, |
| { |
| "name": "$result" |
| } |
| ] |