<feed xmlns='http://www.w3.org/2005/Atom'>
<title>buildbot/phase1, branch v15</title>
<subtitle>LEDE buildbot configuration</subtitle>
<id>https://git.openwrt.org/buildbot/atom?h=v15</id>
<link rel='self' href='https://git.openwrt.org/buildbot/atom?h=v15'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/'/>
<updated>2024-04-13T04:52:44Z</updated>
<entry>
<title>phase1,phase2: s/master/main for phase{1,2}</title>
<updated>2024-04-13T04:52:44Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2023-05-23T21:02:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=c8d1bd1f4bec5919ad0f65ba069b14fcaadffcbc'/>
<id>urn:sha1:c8d1bd1f4bec5919ad0f65ba069b14fcaadffcbc</id>
<content type='text'>
More and more projects are switching their repositories to use the
'main' branch instead of the 'master' branch. This also includes many
Linux upstream trees as well. Some trees are even removing their
'master' branches already.

I think this is becoming more and more mainstream and expected of
projects, so we should do the same.

References: https://openwrt.org/voting/2023-02-27
Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt; [commit facelift]
</content>
</entry>
<entry>
<title>requirements-dev: use black 23.12.1 and ruff 0.1.9</title>
<updated>2024-04-13T04:17:49Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-12-23T06:43:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=e74dce3085f299c2d8b1a94b09687ae88876ef7c'/>
<id>urn:sha1:e74dce3085f299c2d8b1a94b09687ae88876ef7c</id>
<content type='text'>
Fix ruff's recommendation:

 phase2/master.cfg:328:16: E721 Do not compare types, use `isinstance()`

 "Unlike a direct type comparison, isinstance will also check if an
  object is an instance of a class or a subclass thereof."

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>Add linting with flake8 tool</title>
<updated>2024-04-13T04:17:49Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-12-23T06:13:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=815fc1af29a293c0095b7e6e0e6cba068fe081b9'/>
<id>urn:sha1:815fc1af29a293c0095b7e6e0e6cba068fe081b9</id>
<content type='text'>
flake8 is a Python tool that glues together pycodestyle, pyflakes,
mccabe, and third-party plugins to check the style and quality of some
Python code.

Currently we've issue in phase2 in checksum step:

 /bin/sh: 2: Syntax error: ")" unexpected

And it seems, that flake8 is able to spot places which might lead to
such issues during runtime:

 phase2/master.cfg:733:151: W605 invalid escape sequence '\('
 phase2/master.cfg:733:155: W605 invalid escape sequence '\)'
 phase2/master.cfg:733:158: W605 invalid escape sequence '\('
 phase2/master.cfg:733:162: W605 invalid escape sequence '\)'

So lets enable flake8 checking on the CI so we can spot similar places
in the future and address them before deployment.

We dont want to make current ongoing work on phase2 code harder, thus we
don't touch that part yet, so we whitelist most of the checks for now.

References: f0faed2970dd ("phase2: compute checksums")
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>phase1: treat all branches equally for building</title>
<updated>2023-11-16T08:57:01Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2023-11-14T13:23:50Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=b372bb5c19282e0eaa0b25f6717ed70afc2e74c5'/>
<id>urn:sha1:b372bb5c19282e0eaa0b25f6717ed70afc2e74c5</id>
<content type='text'>
Following discussion here:
https://lists.openwrt.org/pipermail/openwrt-devel/2023-November/041769.html

Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>phase1: raise priority of tag builds</title>
<updated>2023-11-16T08:57:01Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2023-11-13T14:23:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=34b4378d9a6f3cad8e728e9e91ba163a716c451e'/>
<id>urn:sha1:34b4378d9a6f3cad8e728e9e91ba163a716c451e</id>
<content type='text'>
Currently the buildmaster would only order tag builds within their own
branch, meaning that if e.g. a higher priority branch has normal
buildrequests (i.e. buildrequests comming from the AnyBranchScheduler),
and a lower priority branch has "tag" buildrequests (i.e. from the
Triggerable scheduler), the former builderequests would be served first,
deferring the build of e.g. release tags.

We want forced builds (release tag) to have maximum priority, regardless
of branch priority. This commit attempts to solve this problem by
leveraging the newly (as of buildbot 3.9.0) introduced "priority"
scheduler parameter, by raising the Triggerable scheduler buildrequests
priority, and then considering this higher priority in Builders' order.

The net result is that Builders are now prioritized if they have
pending higher priority buildrequest, still preserving the branch order.
In other words, tag requests are front run while preserving branch order,
meaning that if two branches have tag buildrequests, the higher priority
branch is still served first.

This requires buildbot 3.9.0

Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>phase1: workaround dlprune recursive directory removal</title>
<updated>2023-07-24T09:06:09Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-07-22T08:53:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=30e2e5d800a87aebd8a87a78812a4b527c56bf2f'/>
<id>urn:sha1:30e2e5d800a87aebd8a87a78812a4b527c56bf2f</id>
<content type='text'>
Workarounds following issue:

 find: cannot delete ‘dl/ath10k-ct-firmware-2020-11-08’: Directory not empty

References: #13
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>phase1: prepareFactory: use variables instead of list index</title>
<updated>2023-07-22T09:05:33Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-06-18T05:32:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=651a5c2aa158ddb7ad2920851696a75df1f2a86f'/>
<id>urn:sha1:651a5c2aa158ddb7ad2920851696a75df1f2a86f</id>
<content type='text'>
Thus make the code more readable.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>phase1: populateTargets: log branch name as well</title>
<updated>2023-07-22T09:05:32Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-06-18T05:28:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=e332f694130d40913083e52f454f7851b85000ac'/>
<id>urn:sha1:e332f694130d40913083e52f454f7851b85000ac</id>
<content type='text'>
So the progress is more verbose.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>phase1: do not leak targets between branches</title>
<updated>2023-07-22T09:05:31Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-06-18T05:26:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=3bbbc02a7f8b677026fbc856a336225e2630c050'/>
<id>urn:sha1:3bbbc02a7f8b677026fbc856a336225e2630c050</id>
<content type='text'>
Robert noticed, that after rename of `ipq807x` target in main branch to
`qualcommax/ipq807x` subtarget, that buildbot is trying to build this
new `qualcommax/ipq807x` subtarget on `openwrt-23.05` branch as well.

Thibaut later explained, that this is by design, his initial idea was to
find exhaustive list of all targets and let the `checkarch` step do the
final triaging.

I find this approach confusing, because if the subtarget is not present
in that branch, we shouldn't have builder for it configured as well.
Furthermore wasting roughly 5 minutes of precious buildworker time to
checkout all feeds and then just find out, that we're not going to use
those seems suboptimal as well.

So lets fix it by using builders for targets as present in respective
branches.

Fixes: #14
Reported-by: Robert Marko &lt;robimarko@gmail.com&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>phase1: reformat with black</title>
<updated>2023-06-18T05:52:37Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-06-18T05:19:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=e56f359a2c2be5d1b6cd08e390087f242768a1b6'/>
<id>urn:sha1:e56f359a2c2be5d1b6cd08e390087f242768a1b6</id>
<content type='text'>
Making everything consistent, more readable, CI guarded.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
</feed>
