blob: 21baeedaa7a7c19a6624329a95d4e7687a9da156 [file] [log] [blame]
[
{
"cmd": [],
"name": "Initialize logs"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/flutter_logs_dir"
],
"infra_step": true,
"name": "Initialize logs.Ensure [CLEANUP]/flutter_logs_dir",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"",
"[CLEANUP]/flutter_logs_dir/noop.txt"
],
"infra_step": true,
"name": "Initialize logs.Write noop file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "process logs"
},
{
"cmd": [
"python3",
"-u",
"RECIPE_MODULE[depot_tools::gsutil]/resources/gsutil_smart_retry.py",
"--",
"RECIPE_REPO[depot_tools]/gsutil.py",
"-m",
"----",
"cp",
"-r",
"[CLEANUP]/flutter_logs_dir",
"gs://flutter_logs/flutter/00000000-0000-0000-0000-000000001337/mytaskname/00000000-0000-0000-0000-000000001337"
],
"infra_step": true,
"name": "process logs.gsutil upload logs 00000000-0000-0000-0000-000000001337",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LINK@archive logs@https://console.cloud.google.com/storage/browser/flutter_logs/flutter/00000000-0000-0000-0000-000000001337/mytaskname/00000000-0000-0000-0000-000000001337@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"glob",
"[CLEANUP]/flutter_logs_dir",
"*"
],
"infra_step": true,
"name": "process logs.logs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@glob@[CLEANUP]/flutter_logs_dir/a.txt@@@",
"@@@STEP_LOG_END@glob@@@"
]
},
{
"cmd": [],
"name": "log links",
"~followup_annotations": [
"@@@STEP_LINK@myfile.txt@https://storage.googleapis.com/flutter_logs/flutter/00000000-0000-0000-0000-000000001337/mytaskname/00000000-0000-0000-0000-000000001337/myfile.txt@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"listdir",
"[CLEANUP]/flutter_logs_dir",
"--recursive"
],
"infra_step": true,
"name": "log links.List logs path",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@listdir@[CLEANUP]/flutter_logs_dir/myfile.txt@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"name": "$result"
}
]