config.py: Update perf workers to match autobuilder
PATCH 1/4 config.py: Update perf workers to match autobuilder
Signed-off-by Richard Purdie <[email protected]>
--- config.py | 9 +++++---- schedulers.py | 6 ++---- 2 files changed, 7 insertions(+), 8 deletions(-)
config.py +5 -4
@@ -109,7 +109,7 @@ trigger_builders_wait_full_releases = { "oe-selftest-ubuntu", "oe-selftest-debian", "oe-selftest-centos"] } -trigger_builders_wait_perf = ["buildperf-ubuntu1604", "buildperf-centos7", "buildperf-debian11"] +trigger_builders_wait_perf = ["buildperf-debian11", "buildperf-alma8"] # Builders which are individually triggered builders_others = [
@@ -123,6 +123,8 @@ builders_others = [ "qemuriscv64", "qemuriscv64-ptest", "qemuriscv64-tc", "qemuppc64", "qemuppc64-tc", "qemux86-ptest", "qemux86-ptest-fast", + "buildperf-debian11", + "buildperf-alma8", "auh" ]
@@ -149,8 +151,8 @@ workers = workers_ubuntu + workers_centos + workers_fedora + workers_debian + wo workers_bringup = [] # workers with wine on them for meta-mingw workers_wine = ["ubuntu1804-ty-3"] -workers_buildperf = ["perf-ubuntu1604", "perf-centos7", "perf-debian11"] workers_arm = ["ubuntu1804-arm-1", "ubuntu2004-arm-1", "ubuntu2204-arm-1"] +workers_buildperf = ["perf-debian11", "perf-alma8"] # workers which don't need buildtools for AUH and are able to send email to mailing lists workers_auh = ["alma8-ty-1", "alma8-ty-2"]
@@ -192,9 +194,8 @@ builder_to_workers = { "reproducible-opensuse": workers_opensuse, "reproducible-centos": workers_centos, "meta-mingw": workers_wine, - "buildperf-ubuntu1604": ["perf-ubuntu1604"], "buildperf-debian11": ["perf-debian11"], - "buildperf-centos7": ["perf-centos7"], + "buildperf-alma8": ["perf-alma8"], "qemuarm-armhost": workers_arm, "qemuarm64-ptest": workers_arm, "qemuarm64-ptest-fast": workers_arm,
schedulers.py +2 -4
@@ -471,10 +471,8 @@ schedulers.append(sched.Nightly(name='nightly-check-layer-dunfell', properties=p builderNames=['check-layer-nightly'], dayOfWeek=[1, 4], hour=2, minute=0, codebases = {'' : {'branch' : 'dunfell'}})) # Run the build performance tests at 3am, 9am, 3pm and 9pm -schedulers.append(sched.Nightly(name='nightly-buildperf-ubuntu1604', branch='master', properties=parent_default_props('buildperf-ubuntu1604'), - builderNames=['buildperf-ubuntu1604', 'buildperf-debian11'], hour=[3,9,15,21], minute=0)) -schedulers.append(sched.Nightly(name='nightly-buildperf-centos7', branch='master', properties=parent_default_props('buildperf-centos7'), - builderNames=['buildperf-centos7'], hour=[3,9,15,21], minute=0)) +schedulers.append(sched.Nightly(name='nightly-buildperf', branch='master', properties=parent_default_props('buildperf-debian11'), + builderNames=['buildperf-debian11', 'buildperf-alma8'], hour=[3,9,15,21], minute=0) # Run the AUH twice a month on 1st and 15th schedulers.append(sched.Nightly(name='nightly-auh', branch='master', properties=parent_default_props('auh'),
Signature · 1 line
2.39.2
PATCH 2/4 config.py: Add mickledore prev_release documentation on workers
Signed-off-by Richard Purdie <[email protected]>
--- config.py | 1 + 1 file changed, 1 insertion(+)
config.py +1 -0
@@ -160,6 +160,7 @@ all_workers = workers + workers_bringup + workers_buildperf + workers_arm # Worker filtering for older releases workers_prev_releases = { + "mickledore" : ("alma8", "alma9", "debian10", "debian11", "fedora35", "fedora36", "fedora37", "fedora38", "opensuse153", "opensuse154", "ubuntu1804", "ubuntu2004","ubuntu2204", "perf-"), "langdale" : ("alma8", "alma9", "debian10", "debian11", "fedora35", "fedora36", "opensuse153", "opensuse154", "ubuntu1804", "ubuntu2004","ubuntu2204", "perf-"), "kirkstone" : ("alma8", "centos7", "centos8", "debian8", "debian9", "debian10", "debian11", "fedora29", "fedora30", "fedora31", "fedora32", "fedora33", "fedora34", "fedora35", "fedora36", "fedora37", "fedora38", "opensuse150", "opensuse151", "opensuse152", "opensuse153", "ubuntu1604", "ubuntu1804", "ubuntu1904", "ubuntu2004", "ubuntu2110", "ubuntu2204", "perf-"), "honister" : ("alma8", "centos7", "centos8", "debian8", "debian9", "debian10", "debian11", "fedora29", "fedora30", "fedora31", "fedora32", "fedora33", "fedora34", "fedora35", "opensuse150", "opensuse151", "opensuse152", "opensuse153", "ubuntu1604", "ubuntu1804", "ubuntu1904", "ubuntu2004", "ubuntu2110", "ubuntu2204", "perf-"),
Signature · 1 line
2.39.2
PATCH 3/4 services: Update email notification config
In reply to Richard PurdieSigned-off-by Richard Purdie <[email protected]>
--- services.py | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-)
services.py +18 -11
@@ -3,20 +3,27 @@ # from buildbot.plugins import reporters - from yoctoabb import config - +import os services = [] -# TODO: we'll replace this with functionality in yocto-autobuilder-helpers -# to mail the error reports to the list -# services.append( -# reporters.MailNotifier(fromaddr="[email protected]", -# sendToInterestedUsers=False, -# extraRecipients=["[email protected]"], -# mode=('failing',)) -# ) +with open(os.path.join(os.path.dirname(__file__), "default_mail.txt"), "r") as f: + emailtext = "\n".join(f.readlines()) + +formatter = reporters.MessageFormatter(template=emailtext) + +generator = reporters.BuildStatusGenerator( + mode=('failing', 'warnings', 'exception', 'cancelled'), + message_formatter=formatter, + builders=['a-full', 'a-quick', 'buildperf-alma8', 'buildperf-debian11', 'docs']) + +#services.append( +# reporters.MailNotifier(fromaddr="[email protected]", +# extraRecipients=["[email protected]"], +# generators=[generator]) +#) + # services.append( # reporters.IRC(host="irc.freenode.net",
@@ -39,4 +46,4 @@ services = [] # from yoctoabb.reporters import swatbot # services.append( # swatbot.SwatBot("http://localhost:8000/", "buildbot-notifier", "password") -# ) +# )
Signature · 1 line
2.39.2
PATCH 4/4 Drop wikilog plugin, we're not going back to it!
In reply to Richard PurdieSigned-off-by Richard Purdie <[email protected]>
--- README.md | 17 +- TODO | 2 - lib/__init__.py | 0 lib/wiki.py | 210 ------------------------- reporters/wikilog.py | 361 ------------------------------------------- services.py | 6 - 6 files changed, 5 insertions(+), 591 deletions(-) delete mode 100644 lib/__init__.py delete mode 100644 lib/wiki.py delete mode 100644 reporters/wikilog.py
README.md +5 -12
@@ -26,16 +26,14 @@ yocto-autobuilder-helper script parameters. ### Code layout - [builders.py](builders.py) -- configures the builders with minimal buildsteps to invoke the yocto-autobuilder-helper scripts -- lib/ - - [wiki.py](lib/wiki.py) -- implements some mediawiki related functionality as used by the wikilog plugin reporters/ - - [wikilog.py](reporters/wikilog.py) -- our custom plugin to write info on build failures to a wiki page + - [swatbot.py](reporters/swatbot.py) -- our custom plugin to write info on build failures to a swatbot instance - steps/ - [writelayerinfo.py](steps/writelayerinfo.py) -- write the user supplied (or default) repos to a JSON file for use by the scripts - [config.py](config.py) -- goal is to contain all values that might need changing to redeploy this code elsewhere. Goal hasn't yet been met. - [master.cfg](master.cfg) -- calls into other scripts to do most configuration. Cluster specific config still lives here (i.e. controller url). - [schedulers.py](schedulers.py) -- sets up the force schedulers with controls for modifying inputs for each builder. -- [services.py](services.py) -- configures irc, mail and wikilog reporters. +- [services.py](services.py) -- configures irc, mail and swatbot reporters. - [workers.py](workers.py) -- configures the worker objects - [www.py](www.py) -- sets up the web UI
@@ -50,14 +48,9 @@ yocto-autobuilder[2]. custom buildset to iterate the repo_, branch_, and commit_ properties set by the schedulers and write a JSON file with the user's values. -### WikiLog reporter -[reporters/wikilog.py](reporters/wikilog.py) -- a buildbot service to listen -for build failures and write some information on them to the configured wiki -page. - -[lib/wiki.py](lib/wiki.py) -- some helper functions for the wiki plugin, much -of this code can be replaced by porting the plugin to be a -buildbot.util.service.HTTPClient implementation +### Swatbot reporter +[reporters/swatbot.py](reporters/swatbot.py) -- a buildbot service to listen +for build failures and write some information on them to the swatbot instance configured. ## Deployment The following deployment steps assume that the target system has a copy of
TODO +0 -2
@@ -1,10 +1,8 @@ * Add nightly-checkuri - * Add wikilog link on console page * per worker auth (workers.py & config.py) * Add IRC notifier (services.py) [Michael] * add mail notification functionality to yocto-autobuilder-helper, it already knows how to iterate error reports. (services.py) * Simple script to start buildbot controller, janitor and PRServer [Michael] * Look into allowed_origins property of built in web server - * switch wikilog to buildbot.util.service.HTTPClient?
lib/__init__.py deleted +0 -0
lib/wiki.py deleted +0 -210
210 lines not on this page · raw message
reporters/wikilog.py deleted +0 -361
361 lines not on this page · raw message
services.py +0 -6
@@ -36,12 +36,6 @@ generator = reporters.BuildStatusGenerator( # channels=["yocto"], # noticeOnChannel=True)) -# from yoctoabb.reporters import wikilog -# services.append( -# wikilog.WikiLog("https://wiki.yoctoproject.org/wiki/api.php", -# "User", "password", "LogPage", -# "Production Cluster") -# ) # from yoctoabb.reporters import swatbot # services.append(
Signature · 1 line
2.39.2