aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/gen_tasks.go
diff options
context:
space:
mode:
authorGravatar Eric Boren <borenet@google.com>2018-06-08 12:37:53 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-08 21:14:02 +0000
commite8b38ab432faf419a6cc092082c34c233800ccea (patch)
tree91fde8ab3aceff3dbbe6d2f91d32bd515acd6023 /infra/bots/gen_tasks.go
parent4462c048f353d1c7b74ffd744dc0e27b7f89dac7 (diff)
[recipes] Make ct_skps use binaries from a build task
Bug: skia:6473 Change-Id: I10a169dd47cb76839fd401254eaeb4c46b2ece8f Reviewed-on: https://skia-review.googlesource.com/128549 Reviewed-by: Ravi Mistry <rmistry@google.com> Commit-Queue: Eric Boren <borenet@google.com>
Diffstat (limited to 'infra/bots/gen_tasks.go')
-rw-r--r--infra/bots/gen_tasks.go18
1 files changed, 11 insertions, 7 deletions
diff --git a/infra/bots/gen_tasks.go b/infra/bots/gen_tasks.go
index 787e5375fc..84d90d91e5 100644
--- a/infra/bots/gen_tasks.go
+++ b/infra/bots/gen_tasks.go
@@ -366,6 +366,9 @@ func deriveCompileTaskName(jobName string, parts map[string]string) string {
"target_arch": parts["arch"],
"configuration": parts["configuration"],
}
+ if strings.Contains(jobName, "-CT_") {
+ ec = []string{"Static"}
+ }
if len(ec) > 0 {
jobNameMap["extra_config"] = strings.Join(ec, "_")
}
@@ -845,14 +848,15 @@ func recreateSKPs(b *specs.TasksCfgBuilder, name string) string {
// ctSKPs generates a CT SKPs task. Returns the name of the last task in the
// generated chain of tasks, which the Job should add as a dependency.
-func ctSKPs(b *specs.TasksCfgBuilder, name string) string {
+func ctSKPs(b *specs.TasksCfgBuilder, name, compileTaskName string) string {
dims := []string{
"pool:SkiaCT",
fmt.Sprintf("os:%s", DEFAULT_OS_LINUX_GCE),
}
- task := kitchenTask(name, "ct_skps", "skia_repo.isolate", SERVICE_ACCOUNT_CT_SKPS, dims, nil, OUTPUT_NONE)
+ task := kitchenTask(name, "ct_skps", "swarm_recipe.isolate", SERVICE_ACCOUNT_CT_SKPS, dims, nil, OUTPUT_NONE)
usesGit(task, name)
task.CipdPackages = append(task.CipdPackages, b.MustGetCipdPackageFromAsset("clang_linux"))
+ task.Dependencies = append(task.Dependencies, compileTaskName)
timeout(task, 24*time.Hour)
task.MaxAttempts = 1
b.MustAddTask(name, task)
@@ -1179,11 +1183,6 @@ func process(b *specs.TasksCfgBuilder, name string) {
deps = append(deps, recreateSKPs(b, name))
}
- // CT bots.
- if strings.Contains(name, "-CT_") {
- deps = append(deps, ctSKPs(b, name))
- }
-
// Infra tests.
if name == "Housekeeper-PerCommit-InfraTests" {
deps = append(deps, infra(b, name))
@@ -1227,6 +1226,11 @@ func process(b *specs.TasksCfgBuilder, name string) {
}
}
+ // CT bots.
+ if strings.Contains(name, "-CT_") {
+ deps = append(deps, ctSKPs(b, name, compileTaskName))
+ }
+
// Housekeepers.
if name == "Housekeeper-PerCommit" {
deps = append(deps, housekeeper(b, name, compileTaskName))