| OLD | NEW |
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "cmd": [ | 3 "cmd": [ |
| 4 "python", | 4 "python", |
| 5 "-u", | 5 "-u", |
| 6 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.
path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not
a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", | 6 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.
path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not
a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", |
| 7 "[CWD]/go/src", | 7 "[SLAVE_BUILD]/go/src", |
| 8 "511" | 8 "511" |
| 9 ], | 9 ], |
| 10 "cwd": "[SLAVE_BUILD]", |
| 10 "name": "makedirs makedirs go/src", | 11 "name": "makedirs makedirs go/src", |
| 11 "~followup_annotations": [ | 12 "~followup_annotations": [ |
| 12 "@@@STEP_LOG_LINE@python.inline@@@@", | 13 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 13 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", | 14 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 14 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", | 15 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 15 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", | 16 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 16 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", | 17 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 17 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", | 18 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 18 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", | 19 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
| 19 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", | 20 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 20 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", | 21 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 21 "@@@STEP_LOG_END@python.inline@@@" | 22 "@@@STEP_LOG_END@python.inline@@@" |
| 22 ] | 23 ] |
| 23 }, | 24 }, |
| 24 { | 25 { |
| 25 "cmd": [ | 26 "cmd": [ |
| 26 "git", | 27 "git", |
| 27 "clone", | 28 "clone", |
| 28 "https://skia.googlesource.com/buildbot", | 29 "https://skia.googlesource.com/buildbot", |
| 29 "[CWD]/go/src/go.skia.org/infra" | 30 "[SLAVE_BUILD]/go/src/go.skia.org/infra" |
| 30 ], | 31 ], |
| 32 "cwd": "[SLAVE_BUILD]", |
| 31 "name": "git clone" | 33 "name": "git clone" |
| 32 }, | 34 }, |
| 33 { | 35 { |
| 34 "cmd": [ | 36 "cmd": [ |
| 35 "git", | 37 "git", |
| 36 "fetch", | 38 "fetch", |
| 37 "origin" | 39 "origin" |
| 38 ], | 40 ], |
| 39 "cwd": "[CWD]/go/src/go.skia.org/infra", | 41 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 40 "name": "git fetch" | 42 "name": "git fetch" |
| 41 }, | 43 }, |
| 42 { | 44 { |
| 43 "cmd": [ | 45 "cmd": [ |
| 44 "git", | 46 "git", |
| 45 "clean", | 47 "clean", |
| 46 "-d", | 48 "-d", |
| 47 "-f" | 49 "-f" |
| 48 ], | 50 ], |
| 49 "cwd": "[CWD]/go/src/go.skia.org/infra", | 51 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 50 "name": "git clean" | 52 "name": "git clean" |
| 51 }, | 53 }, |
| 52 { | 54 { |
| 53 "cmd": [ | 55 "cmd": [ |
| 54 "git", | 56 "git", |
| 55 "reset", | 57 "reset", |
| 56 "--hard", | 58 "--hard", |
| 57 "origin/master" | 59 "origin/master" |
| 58 ], | 60 ], |
| 59 "cwd": "[CWD]/go/src/go.skia.org/infra", | 61 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 60 "name": "git reset" | 62 "name": "git reset" |
| 61 }, | 63 }, |
| 62 { | 64 { |
| 63 "cmd": [ | 65 "cmd": [ |
| 64 "go", | 66 "go", |
| 65 "get", | 67 "get", |
| 66 "-u", | 68 "-u", |
| 67 "./..." | 69 "./..." |
| 68 ], | 70 ], |
| 69 "cwd": "[CWD]/go/src/go.skia.org/infra", | 71 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 70 "env": { | 72 "env": { |
| 71 "GIT_USER_AGENT": "git/1.9.1", | 73 "GIT_USER_AGENT": "git/1.9.1", |
| 72 "GOPATH": "[CWD]/go", | 74 "GOPATH": "[SLAVE_BUILD]/go", |
| 73 "PATH": "[CWD]/go/bin:%(PATH)s" | 75 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" |
| 74 }, | 76 }, |
| 75 "name": "update_deps" | 77 "name": "update_deps" |
| 76 }, | 78 }, |
| 77 { | 79 { |
| 78 "cmd": [ | 80 "cmd": [ |
| 79 "git", | 81 "git", |
| 80 "clone", | 82 "clone", |
| 81 "https://skia.googlesource.com/buildbot", | 83 "https://skia.googlesource.com/buildbot", |
| 82 "[CWD]/go/src/go.skia.org/infra" | 84 "[SLAVE_BUILD]/go/src/go.skia.org/infra" |
| 83 ], | 85 ], |
| 86 "cwd": "[SLAVE_BUILD]", |
| 84 "name": "git clone (2)" | 87 "name": "git clone (2)" |
| 85 }, | 88 }, |
| 86 { | 89 { |
| 87 "cmd": [ | 90 "cmd": [ |
| 88 "git", | 91 "git", |
| 89 "fetch", | 92 "fetch", |
| 90 "origin" | 93 "origin" |
| 91 ], | 94 ], |
| 92 "cwd": "[CWD]/go/src/go.skia.org/infra", | 95 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 93 "name": "git fetch (2)" | 96 "name": "git fetch (2)" |
| 94 }, | 97 }, |
| 95 { | 98 { |
| 96 "cmd": [ | 99 "cmd": [ |
| 97 "git", | 100 "git", |
| 98 "clean", | 101 "clean", |
| 99 "-d", | 102 "-d", |
| 100 "-f" | 103 "-f" |
| 101 ], | 104 ], |
| 102 "cwd": "[CWD]/go/src/go.skia.org/infra", | 105 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 103 "name": "git clean (2)" | 106 "name": "git clean (2)" |
| 104 }, | 107 }, |
| 105 { | 108 { |
| 106 "cmd": [ | 109 "cmd": [ |
| 107 "git", | 110 "git", |
| 108 "reset", | 111 "reset", |
| 109 "--hard", | 112 "--hard", |
| 110 "origin/master" | 113 "origin/master" |
| 111 ], | 114 ], |
| 112 "cwd": "[CWD]/go/src/go.skia.org/infra", | 115 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 113 "name": "git reset (2)" | 116 "name": "git reset (2)" |
| 114 }, | 117 }, |
| 115 { | 118 { |
| 116 "cmd": [ | 119 "cmd": [ |
| 117 "git", | 120 "git", |
| 118 "rev-parse", | 121 "rev-parse", |
| 119 "HEAD" | 122 "HEAD" |
| 120 ], | 123 ], |
| 121 "cwd": "[CWD]/go/src/go.skia.org/infra", | 124 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 122 "name": "git rev-parse", | 125 "name": "git rev-parse", |
| 123 "stdout": "/path/to/tmp/", | 126 "stdout": "/path/to/tmp/", |
| 124 "~followup_annotations": [ | 127 "~followup_annotations": [ |
| 125 "@@@SET_BUILD_PROPERTY@got_revision@\"abc123\"@@@" | 128 "@@@SET_BUILD_PROPERTY@got_revision@\"abc123\"@@@" |
| 126 ] | 129 ] |
| 127 }, | 130 }, |
| 128 { | 131 { |
| 129 "cmd": [ | 132 "cmd": [ |
| 130 "go", | 133 "go", |
| 131 "get", | 134 "get", |
| 132 "golang.org/x/tools/cmd/goimports" | 135 "golang.org/x/tools/cmd/goimports" |
| 133 ], | 136 ], |
| 134 "cwd": "[CWD]/go/src/go.skia.org/infra", | 137 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 135 "env": { | 138 "env": { |
| 136 "GIT_USER_AGENT": "git/1.9.1", | 139 "GIT_USER_AGENT": "git/1.9.1", |
| 137 "GOPATH": "[CWD]/go", | 140 "GOPATH": "[SLAVE_BUILD]/go", |
| 138 "PATH": "[CWD]/go/bin:%(PATH)s" | 141 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" |
| 139 }, | 142 }, |
| 140 "name": "install goimports" | 143 "name": "install goimports" |
| 141 }, | 144 }, |
| 142 { | 145 { |
| 143 "cmd": [ | 146 "cmd": [ |
| 144 "go", | 147 "go", |
| 145 "get", | 148 "get", |
| 146 "github.com/kisielk/errcheck" | 149 "github.com/kisielk/errcheck" |
| 147 ], | 150 ], |
| 148 "cwd": "[CWD]/go/src/go.skia.org/infra", | 151 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 149 "env": { | 152 "env": { |
| 150 "GIT_USER_AGENT": "git/1.9.1", | 153 "GIT_USER_AGENT": "git/1.9.1", |
| 151 "GOPATH": "[CWD]/go", | 154 "GOPATH": "[SLAVE_BUILD]/go", |
| 152 "PATH": "[CWD]/go/bin:%(PATH)s" | 155 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" |
| 153 }, | 156 }, |
| 154 "name": "install errcheck" | 157 "name": "install errcheck" |
| 155 }, | 158 }, |
| 156 { | 159 { |
| 157 "cmd": [ | 160 "cmd": [ |
| 158 "./setup_test_db" | 161 "./setup_test_db" |
| 159 ], | 162 ], |
| 160 "cwd": "[CWD]/go/src/go.skia.org/infra/go/database", | 163 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra/go/database", |
| 161 "env": { | 164 "env": { |
| 162 "GIT_USER_AGENT": "git/1.9.1", | 165 "GIT_USER_AGENT": "git/1.9.1", |
| 163 "GOPATH": "[CWD]/go", | 166 "GOPATH": "[SLAVE_BUILD]/go", |
| 164 "PATH": "[CWD]/go/bin:%(PATH)s" | 167 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" |
| 165 }, | 168 }, |
| 166 "name": "setup database" | 169 "name": "setup database" |
| 167 }, | 170 }, |
| 168 { | 171 { |
| 169 "cmd": [ | 172 "cmd": [ |
| 170 "python", | 173 "python", |
| 171 "-u", | 174 "-u", |
| 172 "run_unittests" | 175 "run_unittests" |
| 173 ], | 176 ], |
| 174 "cwd": "[CWD]/go/src/go.skia.org/infra", | 177 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 175 "env": { | 178 "env": { |
| 176 "GIT_USER_AGENT": "git/1.9.1", | 179 "GIT_USER_AGENT": "git/1.9.1", |
| 177 "GOPATH": "[CWD]/go", | 180 "GOPATH": "[SLAVE_BUILD]/go", |
| 178 "KARMA_PORT": "15001", | 181 "KARMA_PORT": "15001", |
| 179 "PATH": "[CWD]/go/bin:%(PATH)s" | 182 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" |
| 180 }, | 183 }, |
| 181 "name": "run_unittests" | 184 "name": "run_unittests" |
| 182 }, | 185 }, |
| 183 { | 186 { |
| 184 "name": "$result", | 187 "name": "$result", |
| 185 "recipe_result": null, | 188 "recipe_result": null, |
| 186 "status_code": 0 | 189 "status_code": 0 |
| 187 } | 190 } |
| 188 ] | 191 ] |
| OLD | NEW |