| 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 "remote", | 28 "remote", |
| 28 "set-url", | 29 "set-url", |
| 29 "origin", | 30 "origin", |
| 30 "https://skia.googlesource.com/buildbot" | 31 "https://skia.googlesource.com/buildbot" |
| 31 ], | 32 ], |
| 32 "cwd": "[CWD]/go/src/go.skia.org/infra", | 33 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 33 "name": "git remote" | 34 "name": "git remote" |
| 34 }, | 35 }, |
| 35 { | 36 { |
| 36 "cmd": [ | 37 "cmd": [ |
| 37 "git", | 38 "git", |
| 38 "fetch", | 39 "fetch", |
| 39 "origin" | 40 "origin" |
| 40 ], | 41 ], |
| 41 "cwd": "[CWD]/go/src/go.skia.org/infra", | 42 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 42 "name": "git fetch" | 43 "name": "git fetch" |
| 43 }, | 44 }, |
| 44 { | 45 { |
| 45 "cmd": [ | 46 "cmd": [ |
| 46 "git", | 47 "git", |
| 47 "clean", | 48 "clean", |
| 48 "-d", | 49 "-d", |
| 49 "-f" | 50 "-f" |
| 50 ], | 51 ], |
| 51 "cwd": "[CWD]/go/src/go.skia.org/infra", | 52 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 52 "name": "git clean" | 53 "name": "git clean" |
| 53 }, | 54 }, |
| 54 { | 55 { |
| 55 "cmd": [ | 56 "cmd": [ |
| 56 "git", | 57 "git", |
| 57 "reset", | 58 "reset", |
| 58 "--hard", | 59 "--hard", |
| 59 "origin/master" | 60 "origin/master" |
| 60 ], | 61 ], |
| 61 "cwd": "[CWD]/go/src/go.skia.org/infra", | 62 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 62 "name": "git reset" | 63 "name": "git reset" |
| 63 }, | 64 }, |
| 64 { | 65 { |
| 65 "cmd": [ | 66 "cmd": [ |
| 66 "go", | 67 "go", |
| 67 "get", | 68 "get", |
| 68 "-u", | 69 "-u", |
| 69 "./..." | 70 "./..." |
| 70 ], | 71 ], |
| 71 "cwd": "[CWD]/go/src/go.skia.org/infra", | 72 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 72 "env": { | 73 "env": { |
| 73 "GIT_USER_AGENT": "git/1.9.1", | 74 "GIT_USER_AGENT": "git/1.9.1", |
| 74 "GOPATH": "[CWD]/go", | 75 "GOPATH": "[SLAVE_BUILD]/go", |
| 75 "PATH": "[CWD]/go/bin:%(PATH)s" | 76 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" |
| 76 }, | 77 }, |
| 77 "name": "update_deps" | 78 "name": "update_deps" |
| 78 }, | 79 }, |
| 79 { | 80 { |
| 80 "cmd": [ | 81 "cmd": [ |
| 81 "git", | 82 "git", |
| 82 "remote", | 83 "remote", |
| 83 "set-url", | 84 "set-url", |
| 84 "origin", | 85 "origin", |
| 85 "https://skia.googlesource.com/buildbot" | 86 "https://skia.googlesource.com/buildbot" |
| 86 ], | 87 ], |
| 87 "cwd": "[CWD]/go/src/go.skia.org/infra", | 88 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 88 "name": "git remote (2)" | 89 "name": "git remote (2)" |
| 89 }, | 90 }, |
| 90 { | 91 { |
| 91 "cmd": [ | 92 "cmd": [ |
| 92 "git", | 93 "git", |
| 93 "fetch", | 94 "fetch", |
| 94 "origin" | 95 "origin" |
| 95 ], | 96 ], |
| 96 "cwd": "[CWD]/go/src/go.skia.org/infra", | 97 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 97 "name": "git fetch (2)" | 98 "name": "git fetch (2)" |
| 98 }, | 99 }, |
| 99 { | 100 { |
| 100 "cmd": [ | 101 "cmd": [ |
| 101 "git", | 102 "git", |
| 102 "clean", | 103 "clean", |
| 103 "-d", | 104 "-d", |
| 104 "-f" | 105 "-f" |
| 105 ], | 106 ], |
| 106 "cwd": "[CWD]/go/src/go.skia.org/infra", | 107 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 107 "name": "git clean (2)" | 108 "name": "git clean (2)" |
| 108 }, | 109 }, |
| 109 { | 110 { |
| 110 "cmd": [ | 111 "cmd": [ |
| 111 "git", | 112 "git", |
| 112 "reset", | 113 "reset", |
| 113 "--hard", | 114 "--hard", |
| 114 "origin/master" | 115 "origin/master" |
| 115 ], | 116 ], |
| 116 "cwd": "[CWD]/go/src/go.skia.org/infra", | 117 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 117 "name": "git reset (2)" | 118 "name": "git reset (2)" |
| 118 }, | 119 }, |
| 119 { | 120 { |
| 120 "cmd": [ | 121 "cmd": [ |
| 121 "git", | 122 "git", |
| 122 "rev-parse", | 123 "rev-parse", |
| 123 "HEAD" | 124 "HEAD" |
| 124 ], | 125 ], |
| 125 "cwd": "[CWD]/go/src/go.skia.org/infra", | 126 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 126 "name": "git rev-parse", | 127 "name": "git rev-parse", |
| 127 "stdout": "/path/to/tmp/", | 128 "stdout": "/path/to/tmp/", |
| 128 "~followup_annotations": [ | 129 "~followup_annotations": [ |
| 129 "@@@SET_BUILD_PROPERTY@got_revision@\"abc123\"@@@" | 130 "@@@SET_BUILD_PROPERTY@got_revision@\"abc123\"@@@" |
| 130 ] | 131 ] |
| 131 }, | 132 }, |
| 132 { | 133 { |
| 133 "cmd": [ | 134 "cmd": [ |
| 134 "go", | 135 "go", |
| 135 "get", | 136 "get", |
| 136 "golang.org/x/tools/cmd/goimports" | 137 "golang.org/x/tools/cmd/goimports" |
| 137 ], | 138 ], |
| 138 "cwd": "[CWD]/go/src/go.skia.org/infra", | 139 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 139 "env": { | 140 "env": { |
| 140 "GIT_USER_AGENT": "git/1.9.1", | 141 "GIT_USER_AGENT": "git/1.9.1", |
| 141 "GOPATH": "[CWD]/go", | 142 "GOPATH": "[SLAVE_BUILD]/go", |
| 142 "PATH": "[CWD]/go/bin:%(PATH)s" | 143 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" |
| 143 }, | 144 }, |
| 144 "name": "install goimports" | 145 "name": "install goimports" |
| 145 }, | 146 }, |
| 146 { | 147 { |
| 147 "cmd": [ | 148 "cmd": [ |
| 148 "go", | 149 "go", |
| 149 "get", | 150 "get", |
| 150 "github.com/kisielk/errcheck" | 151 "github.com/kisielk/errcheck" |
| 151 ], | 152 ], |
| 152 "cwd": "[CWD]/go/src/go.skia.org/infra", | 153 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 153 "env": { | 154 "env": { |
| 154 "GIT_USER_AGENT": "git/1.9.1", | 155 "GIT_USER_AGENT": "git/1.9.1", |
| 155 "GOPATH": "[CWD]/go", | 156 "GOPATH": "[SLAVE_BUILD]/go", |
| 156 "PATH": "[CWD]/go/bin:%(PATH)s" | 157 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" |
| 157 }, | 158 }, |
| 158 "name": "install errcheck" | 159 "name": "install errcheck" |
| 159 }, | 160 }, |
| 160 { | 161 { |
| 161 "cmd": [ | 162 "cmd": [ |
| 162 "./setup_test_db" | 163 "./setup_test_db" |
| 163 ], | 164 ], |
| 164 "cwd": "[CWD]/go/src/go.skia.org/infra/go/database", | 165 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra/go/database", |
| 165 "env": { | 166 "env": { |
| 166 "GIT_USER_AGENT": "git/1.9.1", | 167 "GIT_USER_AGENT": "git/1.9.1", |
| 167 "GOPATH": "[CWD]/go", | 168 "GOPATH": "[SLAVE_BUILD]/go", |
| 168 "PATH": "[CWD]/go/bin:%(PATH)s" | 169 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" |
| 169 }, | 170 }, |
| 170 "name": "setup database" | 171 "name": "setup database" |
| 171 }, | 172 }, |
| 172 { | 173 { |
| 173 "cmd": [ | 174 "cmd": [ |
| 174 "python", | 175 "python", |
| 175 "-u", | 176 "-u", |
| 176 "run_unittests" | 177 "run_unittests" |
| 177 ], | 178 ], |
| 178 "cwd": "[CWD]/go/src/go.skia.org/infra", | 179 "cwd": "[SLAVE_BUILD]/go/src/go.skia.org/infra", |
| 179 "env": { | 180 "env": { |
| 180 "GIT_USER_AGENT": "git/1.9.1", | 181 "GIT_USER_AGENT": "git/1.9.1", |
| 181 "GOPATH": "[CWD]/go", | 182 "GOPATH": "[SLAVE_BUILD]/go", |
| 182 "KARMA_PORT": "15001", | 183 "KARMA_PORT": "15001", |
| 183 "PATH": "[CWD]/go/bin:%(PATH)s" | 184 "PATH": "[SLAVE_BUILD]/go/bin:%(PATH)s" |
| 184 }, | 185 }, |
| 185 "name": "run_unittests" | 186 "name": "run_unittests" |
| 186 }, | 187 }, |
| 187 { | 188 { |
| 188 "name": "$result", | 189 "name": "$result", |
| 189 "recipe_result": null, | 190 "recipe_result": null, |
| 190 "status_code": 0 | 191 "status_code": 0 |
| 191 } | 192 } |
| 192 ] | 193 ] |
| OLD | NEW |