blob: c0974dc54d6014f81d929b3ddad6aea645099097 [file] [log] [blame]
[
{
"cmd": [],
"name": "checkout",
"~followup_annotations": [
"@@@SET_BUILD_PROPERTY@cached_revision@null@@@",
"@@@SET_BUILD_PROPERTY@checkout_info@{\"base_manifest_revision\": \"h3ll0\", \"manifest\": \"fuchsia/flower\", \"manifest_remote\": \"https://fuchsia.googlesource.com/integration\", \"patches\": []}@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/fuchsia-integration"
],
"infra_step": true,
"name": "checkout.ensure checkout dir",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"ls-remote",
"--heads",
"https://fuchsia.googlesource.com/integration",
"main"
],
"cwd": "[START_DIR]/fuchsia-integration",
"infra_step": true,
"name": "checkout.resolve head of 'main' branch",
"timeout": 600.0,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@stdout@h3ll0\trefs/heads/main@@@",
"@@@STEP_LOG_END@stdout@@@"
]
},
{
"cmd": [],
"name": "checkout.ensure jiri",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"RECIPE_MODULE[fuchsia::jiri]/resources/tool_manifest.json",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/fuchsia-integration",
"infra_step": true,
"name": "checkout.ensure jiri.read manifest",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@{@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"path\": \"path/to/jiri\",@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"version\": \"version:pinned-version\"@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@}@@@",
"@@@STEP_LOG_END@tool_manifest.json@@@"
]
},
{
"cmd": [],
"name": "checkout.ensure jiri.install path/to/jiri",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"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/jiri/version%3Apinned-version"
],
"cwd": "[START_DIR]/fuchsia-integration",
"infra_step": true,
"name": "checkout.ensure jiri.install path/to/jiri.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@3@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version",
"-ensure-file",
"path/to/jiri version:pinned-version",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/fuchsia-integration",
"infra_step": true,
"name": "checkout.ensure jiri.install path/to/jiri.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@3@@@",
"@@@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/jiri\"@@@",
"@@@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/jiri/version%3Apinned-version/jiri",
"init",
"-vv",
"-time",
"-j=8",
"-analytics-opt=false",
"-rewrite-sso-to-https=true",
"-cache",
"[CACHE]/git",
"-fetch-optional=",
"[START_DIR]/fuchsia-integration"
],
"cwd": "[START_DIR]/fuchsia-integration",
"infra_step": true,
"name": "checkout.jiri init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version/jiri",
"import",
"-vv",
"-time",
"-j=8",
"-revision",
"h3ll0",
"fuchsia/flower",
"https://fuchsia.googlesource.com/integration"
],
"cwd": "[START_DIR]/fuchsia-integration",
"infra_step": true,
"name": "checkout.jiri import",
"~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]/git"
],
"cwd": "[START_DIR]/fuchsia-integration",
"infra_step": true,
"name": "checkout.ensure git cache 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",
"",
"[CACHE]/git/.GUARD_FILE"
],
"cwd": "[START_DIR]/fuchsia-integration",
"infra_step": true,
"name": "checkout.write git cache guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/jiri/version%3Apinned-version/jiri",
"update",
"-vv",
"-time",
"-j=8",
"-autoupdate=false",
"-attempts=1",
"-gc=true",
"-run-hooks=false",
"-fetch-packages=false"
],
"cwd": "[START_DIR]/fuchsia-integration",
"infra_step": true,
"name": "checkout.jiri update",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"[CACHE]/git/.GUARD_FILE"
],
"cwd": "[START_DIR]/fuchsia-integration",
"infra_step": true,
"name": "checkout.remove git cache guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "ensure bigquery"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"RECIPE_MODULE[fuchsia::bigquery]/resources/tool_manifest.json",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure bigquery.read manifest",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@{@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"path\": \"path/to/bigquery\",@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"version\": \"version:pinned-version\"@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@}@@@",
"@@@STEP_LOG_END@tool_manifest.json@@@"
]
},
{
"cmd": [],
"name": "ensure bigquery.install path/to/bigquery",
"~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",
"[START_DIR]/cipd_tool/path/to/bigquery/version%3Apinned-version"
],
"infra_step": true,
"name": "ensure bigquery.install path/to/bigquery.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd_tool/path/to/bigquery/version%3Apinned-version",
"-ensure-file",
"path/to/bigquery version:pinned-version",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure bigquery.install path/to/bigquery.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:pinned-v\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"path/to/bigquery\"@@@",
"@@@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/bigquery/version%3Apinned-version/bigquery",
"query",
"-project",
"fuchsia-infra",
"-input",
"\nSELECT DISTINCT\n test_id AS test_name,\n SPLIT(tags.value, ':')[OFFSET(0)] AS gn_label\nFROM\n `fuchsia-infra.resultdb.try`,\n UNNEST(tags) AS tags\nWHERE\n partition_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 day)\n AND tags.key = 'gn_label'\n AND tags.value != ''\nUNION DISTINCT\nSELECT DISTINCT\n test_id AS test_name,\n SPLIT(tags.value, ':')[OFFSET(0)] AS gn_label\nFROM\n `fuchsia-infra.resultdb.ci`,\n UNNEST(tags) AS tags\nWHERE\n partition_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 day)\n AND tags.key = 'gn_label'\n AND tags.value != ''\n",
"-json-output",
"[CLEANUP]/workdir_tmp_1/test_manifest.json"
],
"name": "query test names",
"~followup_annotations": [
"@@@STEP_LOG_LINE@query@@@@",
"@@@STEP_LOG_LINE@query@SELECT DISTINCT@@@",
"@@@STEP_LOG_LINE@query@ test_id AS test_name,@@@",
"@@@STEP_LOG_LINE@query@ SPLIT(tags.value, ':')[OFFSET(0)] AS gn_label@@@",
"@@@STEP_LOG_LINE@query@FROM@@@",
"@@@STEP_LOG_LINE@query@ `fuchsia-infra.resultdb.try`,@@@",
"@@@STEP_LOG_LINE@query@ UNNEST(tags) AS tags@@@",
"@@@STEP_LOG_LINE@query@WHERE@@@",
"@@@STEP_LOG_LINE@query@ partition_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 day)@@@",
"@@@STEP_LOG_LINE@query@ AND tags.key = 'gn_label'@@@",
"@@@STEP_LOG_LINE@query@ AND tags.value != ''@@@",
"@@@STEP_LOG_LINE@query@UNION DISTINCT@@@",
"@@@STEP_LOG_LINE@query@SELECT DISTINCT@@@",
"@@@STEP_LOG_LINE@query@ test_id AS test_name,@@@",
"@@@STEP_LOG_LINE@query@ SPLIT(tags.value, ':')[OFFSET(0)] AS gn_label@@@",
"@@@STEP_LOG_LINE@query@FROM@@@",
"@@@STEP_LOG_LINE@query@ `fuchsia-infra.resultdb.ci`,@@@",
"@@@STEP_LOG_LINE@query@ UNNEST(tags) AS tags@@@",
"@@@STEP_LOG_LINE@query@WHERE@@@",
"@@@STEP_LOG_LINE@query@ partition_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 day)@@@",
"@@@STEP_LOG_LINE@query@ AND tags.key = 'gn_label'@@@",
"@@@STEP_LOG_LINE@query@ AND tags.value != ''@@@",
"@@@STEP_LOG_END@query@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CLEANUP]/workdir_tmp_1/test_manifest.json",
"/path/to/tmp/"
],
"infra_step": true,
"name": "log test_manifest.json",
"~followup_annotations": [
"@@@STEP_LOG_END@test_manifest.json@@@"
]
},
{
"cmd": [
"RECIPE[fuchsia::test_owners].resources/find_owners.py",
"[CLEANUP]/workdir_tmp_1/test_manifest.json",
"[CLEANUP]/workdir_tmp_1/test_owners.json"
],
"cwd": "[START_DIR]/fuchsia-integration",
"name": "find owners"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CLEANUP]/workdir_tmp_1/test_owners.json",
"/path/to/tmp/"
],
"infra_step": true,
"name": "read test_owners.json",
"~followup_annotations": [
"@@@STEP_LOG_LINE@test_owners.json@[@@@",
"@@@STEP_LOG_LINE@test_owners.json@ {@@@",
"@@@STEP_LOG_LINE@test_owners.json@ \"owners\": [@@@",
"@@@STEP_LOG_LINE@test_owners.json@ \"x@gmail.com\",@@@",
"@@@STEP_LOG_LINE@test_owners.json@ \"y@gmail.com\"@@@",
"@@@STEP_LOG_LINE@test_owners.json@ ],@@@",
"@@@STEP_LOG_LINE@test_owners.json@ \"test_name\": \"test1\"@@@",
"@@@STEP_LOG_LINE@test_owners.json@ },@@@",
"@@@STEP_LOG_LINE@test_owners.json@ {@@@",
"@@@STEP_LOG_LINE@test_owners.json@ \"owners\": [@@@",
"@@@STEP_LOG_LINE@test_owners.json@ \"x@gmail.com\",@@@",
"@@@STEP_LOG_LINE@test_owners.json@ \"z@gmail.com\"@@@",
"@@@STEP_LOG_LINE@test_owners.json@ ],@@@",
"@@@STEP_LOG_LINE@test_owners.json@ \"test_name\": \"test2\"@@@",
"@@@STEP_LOG_LINE@test_owners.json@ }@@@",
"@@@STEP_LOG_LINE@test_owners.json@]@@@",
"@@@STEP_LOG_END@test_owners.json@@@"
]
},
{
"name": "$result"
}
]