[yocto] [yocto-autobuilder2][PATCH][v2] scheduler: make the default choice an option
Michael Halstead
mhalstead at linuxfoundation.org
Fri Oct 18 09:31:05 PDT 2019
The default choice on the force build form will select a random worker.
builder_to_workers dictionary values can no longer be strings.
Signed-off-by: Michael Halstead <mhalstead at linuxfoundation.org>
---
config.py | 4 ++--
schedulers.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/config.py b/config.py
index e9d6d98..1577bcf 100644
--- a/config.py
+++ b/config.py
@@ -127,7 +127,7 @@ builder_to_workers = {
"oe-selftest-opensuse": workers_opensuse,
"oe-selftest-centos": workers_centos,
"meta-mingw": workers_wine,
- "buildperf-ubuntu1604": "perf-ubuntu1604",
- "buildperf-centos7": "perf-centos7",
+ "buildperf-ubuntu1604": ["perf-ubuntu1604"],
+ "buildperf-centos7": ["perf-centos7"],
"default": workers
}
diff --git a/schedulers.py b/schedulers.py
index b22f18f..671baae 100644
--- a/schedulers.py
+++ b/schedulers.py
@@ -81,7 +81,7 @@ def props_for_builder(builder):
default="*",
multiple=False,
strict=True,
- choices=worker_list))
+ choices=worker_list + ["*"]))
return props
--
2.21.0
More information about the yocto
mailing list