<feed xmlns='http://www.w3.org/2005/Atom'>
<title>maintainer-tools/buildbot-tag-status.py, branch master</title>
<subtitle>Maintainer scripts for OpenWrt</subtitle>
<id>https://git.openwrt.org/maintainer-tools/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/maintainer-tools/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/maintainer-tools/'/>
<updated>2026-10-18T19:53:03Z</updated>
<entry>
<title>buildbot-tag-status.py: add tool to check and retrigger release builds</title>
<updated>2026-10-18T19:53:03Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2026-10-18T12:14:50Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/maintainer-tools/commit/?id=87a464f10b182097c57ce647bcd083b3bf7c9fbd'/>
<id>urn:sha1:87a464f10b182097c57ce647bcd083b3bf7c9fbd</id>
<content type='text'>
A release is built by forcing a build with the tag on the 00_force_build
builder of the images buildbot, which triggers all target builders of
the release branch. Some of these builds fail and have to be triggered
again one target at a time. This adds a script which lists the failed,
running and pending builds of a tag and can force the rebuilds.

The same target builders also build the normal commits of the release
branch. These builds do not have the "tag" property set, so the builds
are matched on this property and not on the builder name.

Reading the properties of builds is very slow on the buildbot server,
fetching them for a few hundred builds already runs into the gateway
timeout. The "tag" property belongs to the build set, so it is read from
the build requests instead, which only takes a few seconds. The builds
are fetched without properties and matched to the build requests by
their id. The newest request of a builder decides its state, so a
failed build which was triggered again is shown as running or pending.

With --trigger a force build is started for every target which failed.
The session cookie of a logged in user is taken from BUILDBOT_SESSION
in the .config file. The buildbot is configured with collapseRequests,
so a queued force build request is marked as skipped as soon as the
next one is queued and its target is never triggered. The script
therefore waits until the force builder is idle and the previous force
build finished before it queues the next one.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
</feed>
