Lines Matching refs:parts
106 alternateSwarmDimensions func(parts map[string]string) []string
110 internalHardwareLabelFn func(parts map[string]string) *int
333 func internalHardwareLabel(parts map[string]string) *int {
335 return internalHardwareLabelFn(parts)
362 func deriveCompileTaskName(jobName string, parts map[string]string) string {
365 } else if parts["role"] == "Test" || parts["role"] == "Perf" || parts["role"] == "Calmbench" {
366 task_os := parts["os"]
368 if val := parts["extra_config"]; val != "" {
403 "compiler": parts["compiler"],
404 "target_arch": parts["arch"],
405 "configuration": parts["configuration"],
411 if parts["cpu_or_gpu"] == "CPU" {
426 } else if parts["role"] == "BuildStats" {
434 func swarmDimensions(parts map[string]string) []string {
436 return alternateSwarmDimensions(parts)
438 return defaultSwarmDimensions(parts)
442 func defaultSwarmDimensions(parts map[string]string) []string {
446 if os, ok := parts["os"]; ok {
469 if parts["role"] == "Test" || parts["role"] == "Perf" || parts["role"] == "Calmbench" {
470 if strings.Contains(parts["os"], "Android") || strings.Contains(parts["os"], "Chromecast") {
487 }[parts["model"]]
489 glog.Fatalf("Entry %q not found in Android mapping.", parts["model"])
493 } else if strings.Contains(parts["os"], "iOS") {
499 }[parts["model"]]
501 glog.Fatalf("Entry %q not found in iOS mapping.", parts["model"])
504 } else if strings.Contains(parts["extra_config"], "SwiftShader") {
505 …if parts["model"] != "GCE" || d["os"] != DEFAULT_OS_DEBIAN || parts["cpu_or_gpu_value"] != "SwiftS…
506 … update defaultSwarmDimensions for SwiftShader %s %s %s.", parts["os"], parts["model"], parts["cpu…
511 …} else if strings.Contains(parts["extra_config"], "SKQP") && parts["cpu_or_gpu_value"] == "Emulato…
512 if parts["model"] != "NUC7i5BNK" || d["os"] != DEFAULT_OS_DEBIAN {
513 …talf("Please update defaultSwarmDimensions for SKQP::Emulator %s %s.", parts["os"], parts["model"])
523 } else if parts["cpu_or_gpu"] == "CPU" {
537 }[parts["cpu_or_gpu_value"]]
539 glog.Fatalf("Entry %q not found in CPU mapping.", parts["cpu_or_gpu_value"])
541 cpu, ok := modelMapping[parts["model"]]
543 … glog.Fatalf("Entry %q not found in %q model mapping.", parts["model"], parts["cpu_or_gpu_value"])
546 if parts["model"] == "GCE" && d["os"] == DEFAULT_OS_DEBIAN {
549 if parts["model"] == "GCE" && d["cpu"] == "x86-64-Haswell_GCE" {
553 if strings.Contains(parts["extra_config"], "CanvasKit") {
557 } else if strings.Contains(parts["os"], "Win") {
569 }[parts["cpu_or_gpu_value"]]
571 glog.Fatalf("Entry %q not found in Win GPU mapping.", parts["cpu_or_gpu_value"])
574 } else if strings.Contains(parts["os"], "Ubuntu") || strings.Contains(parts["os"], "Debian") {
582 }[parts["cpu_or_gpu_value"]]
584 glog.Fatalf("Entry %q not found in Ubuntu GPU mapping.", parts["cpu_or_gpu_value"])
586 if parts["os"] == "Ubuntu18" && parts["cpu_or_gpu_value"] == "QuadroP400" {
591 } else if strings.Contains(parts["os"], "Mac") {
597 }[parts["cpu_or_gpu_value"]]
599 glog.Fatalf("Entry %q not found in Mac GPU mapping.", parts["cpu_or_gpu_value"])
603 if parts["cpu_or_gpu_value"] == "IntelIris5100" {
607 } else if strings.Contains(parts["os"], "ChromeOS") {
615 }[parts["cpu_or_gpu_value"]]
617 glog.Fatalf("Entry %q not found in ChromeOS GPU mapping.", parts["cpu_or_gpu_value"])
619 d["gpu"] = parts["cpu_or_gpu_value"]
622 glog.Fatalf("Unknown GPU mapping for OS %q.", parts["os"])
628 …f strings.Contains(parts["extra_config"], "PathKit") || strings.Contains(parts["extra_config"], "C…
631 if parts["role"] == "BuildStats" {
745 func getIsolatedCIPDDeps(parts map[string]string) []string {
751 if o := parts["os"]; strings.Contains(o, "Chromecast") {
755 } else if e := parts["extra_config"]; strings.Contains(e, "Skpbench") {
818 func compile(b *specs.TasksCfgBuilder, name string, parts map[string]string) string {
819 …ompile", "swarm_recipe.isolate", SERVICE_ACCOUNT_COMPILE, swarmDimensions(parts), nil, OUTPUT_BUIL…
825 if parts["extra_config"] == "Android_Framework" {
842 if parts["target_arch"] == "x86_64" {
844 } else if parts["target_arch"] == "arm" {
852 if parts["target_arch"] == "mips64el" || parts["target_arch"] == "loongson3a" {
853 if parts["compiler"] != "GCC" {
854 glog.Fatalf("mips64el toolchain is GCC, but compiler is %q in %q", parts["compiler"], name)
902 if parts["configuration"] == "Release" &&
903 parts["extra_config"] == "Android" &&
904 !strings.Contains(parts["os"], "Win") &&
905 !strings.Contains(parts["os"], "Mac") {
984 func buildstats(b *specs.TasksCfgBuilder, name string, parts map[string]string, compileTaskName str…
985 …task := kitchenTask(name, "compute_buildstats", "swarm_recipe.isolate", "", swarmDimensions(parts)…
1007 func getParentRevisionName(compileTaskName string, parts map[string]string) string {
1008 if parts["extra_config"] == "" {
1017 func calmbench(b *specs.TasksCfgBuilder, name string, parts map[string]string, compileTaskName, com…
1018 …task := kitchenTask(name, "calmbench", "calmbench.isolate", "", swarmDimensions(parts), nil, OUTPU…
1021 if parts["cpu_or_gpu_value"] == "QuadroP400" {
1025 if parts["os"] == "Ubuntu18" {
1065 func test(b *specs.TasksCfgBuilder, name string, parts map[string]string, compileTaskName string, p…
1086 iid := internalHardwareLabel(parts)
1094 task := kitchenTask(name, recipe, isolate, "", swarmDimensions(parts), extraProps, OUTPUT_TEST)
1112 if deps := getIsolatedCIPDDeps(parts); len(deps) > 0 {
1118 if strings.Contains(parts["extra_config"], "Valgrind") {
1125 } else if strings.Contains(parts["extra_config"], "MSAN") {
1127 } else if parts["arch"] == "x86" && parts["configuration"] == "Debug" {
1152 func perf(b *specs.TasksCfgBuilder, name string, parts map[string]string, compileTaskName string, p…
1155 if strings.Contains(parts["extra_config"], "Skpbench") {
1163 task := kitchenTask(name, recipe, isolate, "", swarmDimensions(parts), nil, OUTPUT_PERF)
1168 if deps := getIsolatedCIPDDeps(parts); len(deps) > 0 {
1172 if strings.Contains(parts["extra_config"], "Valgrind") {
1179 } else if strings.Contains(parts["extra_config"], "MSAN") {
1181 } else if parts["arch"] == "x86" && parts["configuration"] == "Debug" {
1185 iid := internalHardwareLabel(parts)
1189 if parts["cpu_or_gpu_value"] == "QuadroP400" {
1193 if parts["os"] == "Ubuntu18" {
1255 parts, err := jobNameSchema.ParseJobName(name)
1276 if parts["role"] == "Build" {
1277 if parts["extra_config"] == "Android_Framework" {
1281 deps = append(deps, compile(b, name, parts))
1286 compileTaskName := deriveCompileTaskName(name, parts)
1298 if parts["role"] != "Build" &&
1310 if parts["role"] == "Calmbench" {
1331 if deps := getIsolatedCIPDDeps(parts); len(deps) == 0 {
1365 if parts["role"] == "Test" {
1366 deps = append(deps, test(b, name, parts, compileTaskName, pkgs))
1370 if parts["role"] == "Perf" {
1371 deps = append(deps, perf(b, name, parts, compileTaskName, pkgs))
1375 if parts["role"] == "Calmbench" {
1376 deps = append(deps, calmbench(b, name, parts, compileTaskName, compileParentName))
1388 if parts["role"] == "BuildStats" {
1389 deps = append(deps, buildstats(b, name, parts, compileTaskName))
1498 parse = func(depth int, role string, parts []string) ([]string, error) {
1511 value, parts, err = popFront(parts)
1518 if len(parts) > 0 && parts[0] == subRole {
1519 parts, err = parse(depth+1, parts[0], parts[1:])
1526 if len(parts) > 0 {
1528 value, parts, err = popFront(parts)
1535 if len(parts) > 0 {
1538 return parts, nil
1552 func (s *JobNameSchema) MakeJobName(parts map[string]string) (string, error) {
1553 rvParts := make([]string, 0, len(parts))
1556 process = func(depth int, parts map[string]string) (map[string]string, error) {
1561 role, ok := parts[roleKey]
1571 delete(parts, roleKey)
1574 value, ok := parts[key]
1579 delete(parts, key)
1584 subRole, ok := parts[subRoleKey]
1589 delete(parts, subRoleKey)
1595 parts, err = process(depth+1, parts)
1607 if value, ok := parts[key]; ok {
1609 delete(parts, key)
1612 if len(parts) > 0 {
1613 return nil, fmt.Errorf("Invalid job parts: too many parts: %v", parts)
1615 return parts, nil
1619 partsCpy := make(map[string]string, len(parts))
1620 for k, v := range parts {