[sdk] Remove sdk_trigger.py
This has since been rewritten as sdk_orchestrator.py.
The future of that recipe is still uncertain, but this
one definitely has no future.
Bug: 37259
Change-Id: I7393b60c26934460edf8ce4eccfc631b10dac8e0
diff --git a/recipes/sdk_trigger.expected/OWNERS b/recipes/sdk_trigger.expected/OWNERS
deleted file mode 100644
index 45eca18..0000000
--- a/recipes/sdk_trigger.expected/OWNERS
+++ /dev/null
@@ -1,2 +0,0 @@
-# Critical code is owned by critical owners.
-file://CRITICAL_OWNERS
diff --git a/recipes/sdk_trigger.expected/local_ci.json b/recipes/sdk_trigger.expected/local_ci.json
deleted file mode 100644
index a671605..0000000
--- a/recipes/sdk_trigger.expected/local_ci.json
+++ /dev/null
@@ -1,251 +0,0 @@
-[
- {
- "cmd": [],
- "name": "checkout"
- },
- {
- "cmd": [],
- "name": "checkout.ensure jiri",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "cipd",
- "ensure",
- "-root",
- "[START_DIR]/cipd/jiri",
- "-ensure-file",
- "fuchsia/tools/jiri/${platform} git_revision:59478f6e3bfff1e6794f337c6c38a769bf0c8422",
- "-json-output",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "checkout.ensure jiri.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-git_revision:594\", @@@",
- "@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/tools/jiri/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": [
- "[START_DIR]/cipd/jiri/jiri",
- "init",
- "-vv",
- "-time",
- "-j=50",
- "-analytics-opt=false",
- "-rewrite-sso-to-https=true",
- "-cache",
- "[CACHE]/git",
- "[START_DIR]"
- ],
- "name": "checkout.jiri init",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "import",
- "-vv",
- "-time",
- "-j=50",
- "-name",
- "integration",
- "-revision",
- "HEAD",
- "fuchsia/topaz/topaz",
- "https://fuchsia.googlesource.com/integration"
- ],
- "name": "checkout.jiri import",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "override",
- "-vv",
- "-time",
- "-j=50",
- "-revision",
- "2d72510e447ab60a9728aeea2362d8be2cbd7789",
- "topaz",
- "https://fuchsia.googlesource.com/topaz"
- ],
- "name": "checkout.jiri override",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "update",
- "-vv",
- "-time",
- "-j=50",
- "-autoupdate=false",
- "-attempts=3",
- "-run-hooks=false"
- ],
- "name": "checkout.jiri update",
- "timeout": 1800,
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "run-hooks",
- "-vv",
- "-time",
- "-j=50",
- "-attempts=3"
- ],
- "name": "checkout.jiri run-hooks",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "source-manifest",
- "-vv",
- "-time",
- "-j=50",
- "/path/to/tmp/json"
- ],
- "name": "checkout.jiri source-manifest",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@{@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"directories\": {@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"manifest\": {@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"git_checkout\": {@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"repo_url\": \"https://fuchsia.googlesource.com/manifest\", @@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"revision\": \"4c2b0da3c06341db5cebe4d02c78c93c3b2bd78b\"@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@}@@@",
- "@@@STEP_LOG_END@json.output[source manifest]@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "snapshot",
- "-vv",
- "-time",
- "-j=50",
- "[CLEANUP]/jiri.snapshot"
- ],
- "infra_step": true,
- "name": "checkout.jiri snapshot",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "vpython",
- "-u",
- "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
- "--json-output",
- "/path/to/tmp/json",
- "copy",
- "[CLEANUP]/jiri.snapshot",
- "/path/to/tmp/"
- ],
- "infra_step": true,
- "name": "checkout.read snapshot",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@STEP_LOG_END@jiri.snapshot@@@",
- "@@@STEP_LOG_LINE@snapshot_contents@@@@",
- "@@@STEP_LOG_END@snapshot_contents@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "snapshot",
- "-vv",
- "-time",
- "-j=50",
- "[CLEANUP]/jiri.snapshot"
- ],
- "name": "jiri snapshot"
- },
- {
- "cmd": [],
- "name": "ensure gsutil"
- },
- {
- "cmd": [
- "cipd",
- "ensure",
- "-root",
- "[START_DIR]/cipd/gsutil",
- "-ensure-file",
- "infra/gsutil version:4.41",
- "-json-output",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "ensure gsutil.ensure_installed",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@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:4.41----\", @@@",
- "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/gsutil\"@@@",
- "@@@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": [
- "vpython",
- "-vpython-spec",
- "RECIPE_MODULE[fuchsia::gsutil]/resources/gsutil.vpython",
- "-u",
- "[START_DIR]/cipd/gsutil/gsutil",
- "-o",
- "GSUtil:software_update_check_period=0",
- "cp",
- "[CLEANUP]/jiri.snapshot",
- "gs://fuchsia-snapshots/8945511751514863184"
- ],
- "infra_step": true,
- "name": "upload jiri.snapshot",
- "~followup_annotations": [
- "@@@STEP_LINK@jiri.snapshot@https://storage.cloud.google.com/fuchsia-snapshots/8945511751514863184@@@"
- ]
- },
- {
- "name": "$result"
- }
-]
\ No newline at end of file
diff --git a/recipes/sdk_trigger.expected/local_cq.json b/recipes/sdk_trigger.expected/local_cq.json
deleted file mode 100644
index 8db132d..0000000
--- a/recipes/sdk_trigger.expected/local_cq.json
+++ /dev/null
@@ -1,339 +0,0 @@
-[
- {
- "cmd": [],
- "name": "checkout"
- },
- {
- "cmd": [],
- "name": "checkout.ensure jiri",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "cipd",
- "ensure",
- "-root",
- "[START_DIR]/cipd/jiri",
- "-ensure-file",
- "fuchsia/tools/jiri/${platform} git_revision:59478f6e3bfff1e6794f337c6c38a769bf0c8422",
- "-json-output",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "checkout.ensure jiri.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-git_revision:594\", @@@",
- "@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/tools/jiri/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": [
- "[START_DIR]/cipd/jiri/jiri",
- "init",
- "-vv",
- "-time",
- "-j=50",
- "-analytics-opt=false",
- "-rewrite-sso-to-https=true",
- "-cache",
- "[CACHE]/git",
- "[START_DIR]"
- ],
- "name": "checkout.jiri init",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [],
- "name": "checkout.ensure gerrit",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "cipd",
- "ensure",
- "-root",
- "[START_DIR]/cipd/gerrit",
- "-ensure-file",
- "infra/tools/luci/gerrit/${platform} latest",
- "-json-output",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "checkout.ensure gerrit.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-latest----------\", @@@",
- "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/gerrit/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": [
- "[START_DIR]/cipd/gerrit/gerrit",
- "change-detail",
- "-host",
- "https://chromium-review.googlesource.com",
- "-input",
- "{\"change_id\": \"project~123456\", \"params\": {\"o\": [\"ALL_REVISIONS\"]}}",
- "-output",
- "/path/to/tmp/json"
- ],
- "name": "checkout.get change details",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@STEP_LOG_LINE@json.output@{@@@",
- "@@@STEP_LOG_LINE@json.output@ \"branch\": \"master\", @@@",
- "@@@STEP_LOG_LINE@json.output@ \"revisions\": {@@@",
- "@@@STEP_LOG_LINE@json.output@ \"a1b2c3\": {@@@",
- "@@@STEP_LOG_LINE@json.output@ \"_number\": 7, @@@",
- "@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/changes/00/100/7\"@@@",
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
- "@@@STEP_LOG_LINE@json.output@ \"d4e5f6\": {@@@",
- "@@@STEP_LOG_LINE@json.output@ \"_number\": 3, @@@",
- "@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/changes/00/100/3\"@@@",
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
- "@@@STEP_LOG_LINE@json.output@ \"g7h8i9\": {@@@",
- "@@@STEP_LOG_LINE@json.output@ \"_number\": 9, @@@",
- "@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/changes/00/100/9\"@@@",
- "@@@STEP_LOG_LINE@json.output@ }@@@",
- "@@@STEP_LOG_LINE@json.output@ }@@@",
- "@@@STEP_LOG_LINE@json.output@}@@@",
- "@@@STEP_LOG_END@json.output@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "import",
- "-vv",
- "-time",
- "-j=50",
- "-name",
- "integration",
- "-remote-branch",
- "master",
- "fuchsia/topaz/topaz",
- "https://fuchsia.googlesource.com/integration"
- ],
- "name": "checkout.jiri import",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "update",
- "-vv",
- "-time",
- "-j=50",
- "-autoupdate=false",
- "-attempts=3",
- "-run-hooks=false",
- "-fetch-packages=false"
- ],
- "name": "checkout.jiri update",
- "timeout": 1800,
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "patch",
- "-vv",
- "-time",
- "-j=50",
- "-host",
- "https://chromium-review.googlesource.com",
- "-project",
- "project",
- "-rebase=true",
- "refs/changes/00/100/7"
- ],
- "name": "checkout.jiri patch",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "run-hooks",
- "-vv",
- "-time",
- "-j=50",
- "-attempts=3",
- "-local-manifest=true"
- ],
- "name": "checkout.jiri run-hooks",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "fetch-packages",
- "-vv",
- "-time",
- "-j=50",
- "-attempts=3",
- "-local-manifest=true"
- ],
- "name": "checkout.jiri fetch-packages",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "source-manifest",
- "-vv",
- "-time",
- "-j=50",
- "/path/to/tmp/json"
- ],
- "name": "checkout.jiri source-manifest",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@{@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"directories\": {@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"manifest\": {@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"git_checkout\": {@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"repo_url\": \"https://fuchsia.googlesource.com/manifest\", @@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"revision\": \"4c2b0da3c06341db5cebe4d02c78c93c3b2bd78b\"@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@}@@@",
- "@@@STEP_LOG_END@json.output[source manifest]@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "snapshot",
- "-vv",
- "-time",
- "-j=50",
- "[CLEANUP]/jiri.snapshot"
- ],
- "infra_step": true,
- "name": "checkout.jiri snapshot",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "vpython",
- "-u",
- "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
- "--json-output",
- "/path/to/tmp/json",
- "copy",
- "[CLEANUP]/jiri.snapshot",
- "/path/to/tmp/"
- ],
- "infra_step": true,
- "name": "checkout.read snapshot",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@STEP_LOG_END@jiri.snapshot@@@",
- "@@@STEP_LOG_LINE@snapshot_contents@@@@",
- "@@@STEP_LOG_END@snapshot_contents@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "snapshot",
- "-vv",
- "-time",
- "-j=50",
- "[CLEANUP]/jiri.snapshot"
- ],
- "name": "jiri snapshot"
- },
- {
- "cmd": [],
- "name": "ensure gsutil"
- },
- {
- "cmd": [
- "cipd",
- "ensure",
- "-root",
- "[START_DIR]/cipd/gsutil",
- "-ensure-file",
- "infra/gsutil version:4.41",
- "-json-output",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "ensure gsutil.ensure_installed",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@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:4.41----\", @@@",
- "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/gsutil\"@@@",
- "@@@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": [
- "vpython",
- "-vpython-spec",
- "RECIPE_MODULE[fuchsia::gsutil]/resources/gsutil.vpython",
- "-u",
- "[START_DIR]/cipd/gsutil/gsutil",
- "-o",
- "GSUtil:software_update_check_period=0",
- "cp",
- "[CLEANUP]/jiri.snapshot",
- "gs://fuchsia-snapshots/8945511751514863184"
- ],
- "infra_step": true,
- "name": "upload jiri.snapshot",
- "~followup_annotations": [
- "@@@STEP_LINK@jiri.snapshot@https://storage.cloud.google.com/fuchsia-snapshots/8945511751514863184@@@"
- ]
- },
- {
- "name": "$result"
- }
-]
\ No newline at end of file
diff --git a/recipes/sdk_trigger.expected/snapshot_ci.json b/recipes/sdk_trigger.expected/snapshot_ci.json
deleted file mode 100644
index 3a1f63b..0000000
--- a/recipes/sdk_trigger.expected/snapshot_ci.json
+++ /dev/null
@@ -1,322 +0,0 @@
-[
- {
- "cmd": [],
- "name": "checkout"
- },
- {
- "cmd": [
- "vpython",
- "-u",
- "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
- "--json-output",
- "/path/to/tmp/json",
- "ensure-directory",
- "--mode",
- "0777",
- "[CLEANUP]/snapshot_repo"
- ],
- "infra_step": true,
- "name": "checkout.makedirs",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "init"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.git init",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "remote",
- "add",
- "origin",
- "https://fuchsia.googlesource.com/topaz"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.git remote",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "fetch",
- "--tags",
- "origin"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.git fetch",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "checkout",
- "-f",
- "2d72510e447ab60a9728aeea2362d8be2cbd7789"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.git checkout",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "rev-parse",
- "HEAD"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.git rev-parse",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "clean",
- "-f",
- "-d",
- "-x"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "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": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.submodule.git submodule sync",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@2@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "submodule",
- "update",
- "--init"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.submodule.git submodule update",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@2@@@"
- ]
- },
- {
- "cmd": [],
- "name": "checkout.ensure jiri",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "cipd",
- "ensure",
- "-root",
- "[START_DIR]/cipd/jiri",
- "-ensure-file",
- "fuchsia/tools/jiri/${platform} git_revision:59478f6e3bfff1e6794f337c6c38a769bf0c8422",
- "-json-output",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "checkout.ensure jiri.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-git_revision:594\", @@@",
- "@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/tools/jiri/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": [
- "[START_DIR]/cipd/jiri/jiri",
- "init",
- "-vv",
- "-time",
- "-j=50",
- "-analytics-opt=false",
- "-rewrite-sso-to-https=true",
- "-cache",
- "[CACHE]/git"
- ],
- "infra_step": true,
- "name": "checkout.jiri init",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "update",
- "-vv",
- "-time",
- "-j=50",
- "-autoupdate=false",
- "-attempts=3",
- "[CLEANUP]/snapshot_repo/snapshot"
- ],
- "infra_step": true,
- "name": "checkout.jiri update",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "source-manifest",
- "-vv",
- "-time",
- "-j=50",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "checkout.jiri source-manifest",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@{@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"directories\": {@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"manifest\": {@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"git_checkout\": {@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"repo_url\": \"https://fuchsia.googlesource.com/manifest\", @@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"revision\": \"4c2b0da3c06341db5cebe4d02c78c93c3b2bd78b\"@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@}@@@",
- "@@@STEP_LOG_END@json.output[source manifest]@@@"
- ]
- },
- {
- "cmd": [
- "vpython",
- "-u",
- "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
- "--json-output",
- "/path/to/tmp/json",
- "copy",
- "[CLEANUP]/snapshot_repo/snapshot",
- "/path/to/tmp/"
- ],
- "infra_step": true,
- "name": "checkout.read snapshot",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@STEP_LOG_END@snapshot@@@",
- "@@@STEP_LOG_LINE@snapshot_contents@@@@",
- "@@@STEP_LOG_END@snapshot_contents@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "snapshot",
- "-vv",
- "-time",
- "-j=50",
- "[CLEANUP]/jiri.snapshot"
- ],
- "name": "jiri snapshot"
- },
- {
- "cmd": [],
- "name": "ensure gsutil"
- },
- {
- "cmd": [
- "cipd",
- "ensure",
- "-root",
- "[START_DIR]/cipd/gsutil",
- "-ensure-file",
- "infra/gsutil version:4.41",
- "-json-output",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "ensure gsutil.ensure_installed",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@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:4.41----\", @@@",
- "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/gsutil\"@@@",
- "@@@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": [
- "vpython",
- "-vpython-spec",
- "RECIPE_MODULE[fuchsia::gsutil]/resources/gsutil.vpython",
- "-u",
- "[START_DIR]/cipd/gsutil/gsutil",
- "-o",
- "GSUtil:software_update_check_period=0",
- "cp",
- "[CLEANUP]/jiri.snapshot",
- "gs://fuchsia-snapshots/8945511751514863184"
- ],
- "infra_step": true,
- "name": "upload jiri.snapshot",
- "~followup_annotations": [
- "@@@STEP_LINK@jiri.snapshot@https://storage.cloud.google.com/fuchsia-snapshots/8945511751514863184@@@"
- ]
- },
- {
- "name": "$result"
- }
-]
\ No newline at end of file
diff --git a/recipes/sdk_trigger.expected/snapshot_cq.json b/recipes/sdk_trigger.expected/snapshot_cq.json
deleted file mode 100644
index 95cd879..0000000
--- a/recipes/sdk_trigger.expected/snapshot_cq.json
+++ /dev/null
@@ -1,420 +0,0 @@
-[
- {
- "cmd": [],
- "name": "checkout"
- },
- {
- "cmd": [],
- "name": "checkout.ensure gerrit",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "cipd",
- "ensure",
- "-root",
- "[START_DIR]/cipd/gerrit",
- "-ensure-file",
- "infra/tools/luci/gerrit/${platform} latest",
- "-json-output",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "checkout.ensure gerrit.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-latest----------\", @@@",
- "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/gerrit/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": [
- "[START_DIR]/cipd/gerrit/gerrit",
- "change-detail",
- "-host",
- "https://chromium-review.googlesource.com",
- "-input",
- "{\"change_id\": \"project~123456\", \"params\": {\"o\": [\"ALL_REVISIONS\"]}}",
- "-output",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "checkout.get change details",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@STEP_LOG_LINE@json.output@{@@@",
- "@@@STEP_LOG_LINE@json.output@ \"branch\": \"master\", @@@",
- "@@@STEP_LOG_LINE@json.output@ \"revisions\": {@@@",
- "@@@STEP_LOG_LINE@json.output@ \"a1b2c3\": {@@@",
- "@@@STEP_LOG_LINE@json.output@ \"_number\": 7, @@@",
- "@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/changes/00/100/7\"@@@",
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
- "@@@STEP_LOG_LINE@json.output@ \"d4e5f6\": {@@@",
- "@@@STEP_LOG_LINE@json.output@ \"_number\": 3, @@@",
- "@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/changes/00/100/3\"@@@",
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
- "@@@STEP_LOG_LINE@json.output@ \"g7h8i9\": {@@@",
- "@@@STEP_LOG_LINE@json.output@ \"_number\": 9, @@@",
- "@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/changes/00/100/9\"@@@",
- "@@@STEP_LOG_LINE@json.output@ }@@@",
- "@@@STEP_LOG_LINE@json.output@ }@@@",
- "@@@STEP_LOG_LINE@json.output@}@@@",
- "@@@STEP_LOG_END@json.output@@@"
- ]
- },
- {
- "cmd": [
- "vpython",
- "-u",
- "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
- "--json-output",
- "/path/to/tmp/json",
- "ensure-directory",
- "--mode",
- "0777",
- "[CLEANUP]/snapshot_repo"
- ],
- "infra_step": true,
- "name": "checkout.makedirs",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "init"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.git init",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "remote",
- "add",
- "origin",
- "https://chromium-review.googlesource.com/project"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.git remote",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "fetch",
- "--tags",
- "origin",
- "refs/changes/00/100/7"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.git fetch",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "checkout",
- "-f",
- "FETCH_HEAD"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.git checkout",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "rev-parse",
- "HEAD"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.git rev-parse",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "clean",
- "-f",
- "-d",
- "-x"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "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": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.submodule.git submodule sync",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@2@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "submodule",
- "update",
- "--init"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.submodule.git submodule update",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@2@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "fetch",
- "https://chromium.googlesource.com/project",
- "master"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.git fetch (2)",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "git",
- "rebase",
- "FETCH_HEAD"
- ],
- "cwd": "[CLEANUP]/snapshot_repo",
- "infra_step": true,
- "name": "checkout.git rebase",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [],
- "name": "checkout.ensure jiri",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "cipd",
- "ensure",
- "-root",
- "[START_DIR]/cipd/jiri",
- "-ensure-file",
- "fuchsia/tools/jiri/${platform} git_revision:59478f6e3bfff1e6794f337c6c38a769bf0c8422",
- "-json-output",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "checkout.ensure jiri.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-git_revision:594\", @@@",
- "@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/tools/jiri/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": [
- "[START_DIR]/cipd/jiri/jiri",
- "init",
- "-vv",
- "-time",
- "-j=50",
- "-analytics-opt=false",
- "-rewrite-sso-to-https=true",
- "-cache",
- "[CACHE]/git"
- ],
- "infra_step": true,
- "name": "checkout.jiri init",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "update",
- "-vv",
- "-time",
- "-j=50",
- "-autoupdate=false",
- "-attempts=3",
- "[CLEANUP]/snapshot_repo/snapshot"
- ],
- "infra_step": true,
- "name": "checkout.jiri update",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "source-manifest",
- "-vv",
- "-time",
- "-j=50",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "checkout.jiri source-manifest",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@{@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"directories\": {@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"manifest\": {@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"git_checkout\": {@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"repo_url\": \"https://fuchsia.googlesource.com/manifest\", @@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ \"revision\": \"4c2b0da3c06341db5cebe4d02c78c93c3b2bd78b\"@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
- "@@@STEP_LOG_LINE@json.output[source manifest]@}@@@",
- "@@@STEP_LOG_END@json.output[source manifest]@@@"
- ]
- },
- {
- "cmd": [
- "vpython",
- "-u",
- "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
- "--json-output",
- "/path/to/tmp/json",
- "copy",
- "[CLEANUP]/snapshot_repo/snapshot",
- "/path/to/tmp/"
- ],
- "infra_step": true,
- "name": "checkout.read snapshot",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@STEP_LOG_END@snapshot@@@",
- "@@@STEP_LOG_LINE@snapshot_contents@@@@",
- "@@@STEP_LOG_END@snapshot_contents@@@"
- ]
- },
- {
- "cmd": [
- "[START_DIR]/cipd/jiri/jiri",
- "snapshot",
- "-vv",
- "-time",
- "-j=50",
- "[CLEANUP]/jiri.snapshot"
- ],
- "name": "jiri snapshot"
- },
- {
- "cmd": [],
- "name": "ensure gsutil"
- },
- {
- "cmd": [
- "cipd",
- "ensure",
- "-root",
- "[START_DIR]/cipd/gsutil",
- "-ensure-file",
- "infra/gsutil version:4.41",
- "-json-output",
- "/path/to/tmp/json"
- ],
- "infra_step": true,
- "name": "ensure gsutil.ensure_installed",
- "~followup_annotations": [
- "@@@STEP_NEST_LEVEL@1@@@",
- "@@@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:4.41----\", @@@",
- "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/gsutil\"@@@",
- "@@@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": [
- "vpython",
- "-vpython-spec",
- "RECIPE_MODULE[fuchsia::gsutil]/resources/gsutil.vpython",
- "-u",
- "[START_DIR]/cipd/gsutil/gsutil",
- "-o",
- "GSUtil:software_update_check_period=0",
- "cp",
- "[CLEANUP]/jiri.snapshot",
- "gs://fuchsia-snapshots/8945511751514863184"
- ],
- "infra_step": true,
- "name": "upload jiri.snapshot",
- "~followup_annotations": [
- "@@@STEP_LINK@jiri.snapshot@https://storage.cloud.google.com/fuchsia-snapshots/8945511751514863184@@@"
- ]
- },
- {
- "name": "$result"
- }
-]
\ No newline at end of file
diff --git a/recipes/sdk_trigger.py b/recipes/sdk_trigger.py
deleted file mode 100644
index a56af2b..0000000
--- a/recipes/sdk_trigger.py
+++ /dev/null
@@ -1,113 +0,0 @@
-# Copyright 2019 The Fuchsia Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-"""Recipe for coordinating Fuchsia SDK build triggers.
-
-TODO(atyfto): This recipe is unused as of Oct. 2019 but may be useful in the
-future. Consider deleting the recipe if it becomes a maintenance burden
-before we have a concrete plan to use it.
-"""
-
-from recipe_engine.config import List
-from recipe_engine.recipe_api import Property
-
-DEPS = [
- 'fuchsia/buildbucket_util',
- 'fuchsia/checkout',
- 'fuchsia/fuchsia',
- 'fuchsia/gsutil',
- 'fuchsia/jiri',
- 'recipe_engine/buildbucket',
- 'recipe_engine/file',
- 'recipe_engine/path',
- 'recipe_engine/properties',
- 'recipe_engine/step',
- 'recipe_engine/swarming',
-]
-
-PROPERTIES = {
- 'manifest':
- Property(kind=str, help='Jiri manifest to use'),
- 'remote':
- Property(kind=str, help='Remote manifest repository'),
- 'checkout_snapshot':
- Property(
- kind=bool,
- help='Whether or not to checkout from a Jiri snapshot.'
- ' Snapshot is expected to be found at the location specified by'
- ' BuildBucket input.',
- default=False),
- 'sdk_builders':
- Property(
- kind=List(basestring),
- help='List of SDK builders to trigger.',
- default=[]),
-}
-
-
-def RunSteps(api, manifest, remote, checkout_snapshot, sdk_builders):
- build = api.buildbucket.build
-
- sdk_id = str(build.id)
-
- properties = {'sdk_id': sdk_id}
-
- sdk_schedule_reqs = []
-
- for sdk_builder in sdk_builders:
- sdk_schedule_reqs.append(
- api.buildbucket.schedule_request(
- builder=sdk_builder,
- properties=properties,
- swarming_parent_run_id=api.swarming.task_id))
-
- if checkout_snapshot:
- if api.buildbucket_util.is_tryjob:
- assert len(build.input.gerrit_changes) == 1
- api.checkout.from_patchset_snapshot(
- path=api.path['start_dir'],
- gerrit_change=build.input.gerrit_changes[0])
- else:
- api.checkout.from_commit_snapshot(
- path=api.path['start_dir'], gitiles_commit=build.input.gitiles_commit)
- else:
- assert manifest
- assert remote
- api.checkout.fuchsia_with_options(
- path=api.path['start_dir'],
- build=build,
- manifest=manifest,
- remote=remote,
- )
-
- # To avoid write conflicts, only upload a snapshot if this is the top-level
- # build for this version of the SDK. Sub-builds will have the sdk_id set to
- # something other than build_id.
- snapshot_file = api.path['cleanup'].join('jiri.snapshot')
- api.jiri.snapshot(snapshot_file)
- api.gsutil.upload(
- bucket='fuchsia-snapshots',
- src=snapshot_file,
- dst=sdk_id,
- link_name='jiri.snapshot',
- name='upload jiri.snapshot')
-
-
-def GenTests(api):
- topaz_properties = api.properties(
- project='integration',
- manifest='fuchsia/topaz/topaz',
- remote='https://fuchsia.googlesource.com/integration',
- sdk_builders=['core-x64', 'core-arm64'])
-
- topaz_local_ci = topaz_properties + api.buildbucket.ci_build(
- git_repo='https://fuchsia.googlesource.com/topaz',)
-
- topaz_local_cq = topaz_properties + api.buildbucket.try_build()
-
- yield (api.test('local_ci') + topaz_local_ci)
- yield (api.test('local_cq') + topaz_local_cq)
- yield (api.test('snapshot_ci') + topaz_local_ci +
- api.properties(checkout_snapshot=True))
- yield (api.test('snapshot_cq') + topaz_local_cq +
- api.properties(checkout_snapshot=True))