},
"name": "generate and upload binary size data"
},
+ {
+ "cmd": [
+ "[SLAVE_BUILD]/go/go/bin/go",
+ "get",
+ "go.skia.org/infra/comments/go/extract_comments"
+ ],
+ "cwd": "[SLAVE_BUILD]/skia",
+ "env": {
+ "BUILDTYPE": "Release",
+ "CHROME_HEADLESS": "1",
+ "GOPATH": "[SLAVE_BUILD]/tmp/golib",
+ "SKIA_OUT": "[SLAVE_BUILD]/out"
+ },
+ "name": "compile extract_comments"
+ },
+ {
+ "cmd": [
+ "[SLAVE_BUILD]/tmp/golib/bin/extract_comments",
+ "--dir",
+ "gm",
+ "--dest",
+ "gs://skia-doc/gm/comments.json"
+ ],
+ "cwd": "[SLAVE_BUILD]/skia",
+ "env": {
+ "BUILDTYPE": "Release",
+ "CHROME_HEADLESS": "1",
+ "GOPATH": "[SLAVE_BUILD]/tmp/golib",
+ "SKIA_OUT": "[SLAVE_BUILD]/out"
+ },
+ "name": "run extract_comments"
+ },
{
"name": "$result",
"recipe_result": null,
},
"name": "generate and upload binary size data"
},
+ {
+ "cmd": [
+ "[SLAVE_BUILD]/go/go/bin/go",
+ "get",
+ "go.skia.org/infra/comments/go/extract_comments"
+ ],
+ "cwd": "[SLAVE_BUILD]/skia",
+ "env": {
+ "BUILDTYPE": "Release",
+ "CHROME_HEADLESS": "1",
+ "GOPATH": "[SLAVE_BUILD]/tmp/golib",
+ "SKIA_OUT": "[SLAVE_BUILD]/out"
+ },
+ "name": "compile extract_comments"
+ },
+ {
+ "cmd": [
+ "[SLAVE_BUILD]/tmp/golib/bin/extract_comments",
+ "--dir",
+ "gm",
+ "--dest",
+ "gs://skia-doc/gm/comments.json"
+ ],
+ "cwd": "[SLAVE_BUILD]/skia",
+ "env": {
+ "BUILDTYPE": "Release",
+ "CHROME_HEADLESS": "1",
+ "GOPATH": "[SLAVE_BUILD]/tmp/golib",
+ "SKIA_OUT": "[SLAVE_BUILD]/out"
+ },
+ "name": "run extract_comments"
+ },
{
"name": "$result",
"recipe_result": null,
# Recipe for the Skia PerCommit Housekeeper.
-
DEPS = [
'core',
'recipe_engine/path',
cwd=cwd,
abort_on_failure=False)
+ env = {}
+ env['GOPATH'] = api.vars.tmp_dir.join('golib')
+ extractexe = env['GOPATH'].join('bin', 'extract_comments')
+ goexe = api.vars.slave_dir.join('go', 'go', 'bin', 'go')
+
+ # Compile extract_comments.
+ api.run(
+ api.step,
+ 'compile extract_comments',
+ cmd=[goexe, 'get', 'go.skia.org/infra/comments/go/extract_comments'],
+ cwd=cwd,
+ env=env,
+ abort_on_failure=True)
+
+ # Run extract_comments on the gm directory.
+ api.run(
+ api.step,
+ 'run extract_comments',
+ cmd=[extractexe, '--dir', 'gm', '--dest', 'gs://skia-doc/gm/comments.json'],
+ cwd=cwd,
+ env=env,
+ abort_on_failure=True)
+
+
def GenTests(api):
for mastername, slaves in TEST_BUILDERS.iteritems():
for slavename, builders_by_slave in slaves.iteritems():
"@@@STEP_LINK@view steps on Milo@https://luci-milo.appspot.com/swarming/task/148aa78d7aa0000@@@"
]
},
+ {
+ "cmd": [
+ "python",
+ "-u",
+ "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
+ "[SLAVE_BUILD]/skia/infra/bots/assets/go/VERSION",
+ "/path/to/tmp/"
+ ],
+ "name": "read go VERSION"
+ },
{
"cmd": [
"python",
"slavename:skiabot-linux-swarm-000",
"--tag",
"stepname:housekeeper_skia on Ubuntu",
+ "--cipd-package",
+ "go:skia/bots/go:version:0",
"def456",
"--",
"--workdir",
infrabots_dir,
idempotent=False,
store_output=False,
- extra_isolate_hashes=extra_isolate_hashes)
+ extra_isolate_hashes=extra_isolate_hashes,
+ cipd_packages=[cipd_pkg(api, infrabots_dir, 'go')],
+ )
return api.swarming.collect_swarming_task(task)