<feed xmlns='http://www.w3.org/2005/Atom'>
<title>buildbot, branch v7</title>
<subtitle>LEDE buildbot configuration</subtitle>
<id>https://git.openwrt.org/buildbot/atom?h=v7</id>
<link rel='self' href='https://git.openwrt.org/buildbot/atom?h=v7'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/'/>
<updated>2023-06-03T07:45:45Z</updated>
<entry>
<title>phase1: dlprune: fix cannot delete ‘dl/’: Not a directory</title>
<updated>2023-06-03T07:45:45Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-06-01T05:56:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=280a07b9e6ba928ce5495dc19ed68d17e990396c'/>
<id>urn:sha1:280a07b9e6ba928ce5495dc19ed68d17e990396c</id>
<content type='text'>
dlprune currently fails with following error:

 find: cannot delete ‘dl/’: Not a directory

Initial idea was to delete only stuff under download directory and not
the download directory itself, so lets adjust the find command
accordingly.

Fixes: 68b20ed67b5e ("phase1: prune unused files from dl/")
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>phase1: satisfy getver.sh requirements</title>
<updated>2023-05-23T19:34:21Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2023-05-23T18:12:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=2b415c0b17e9b96ea2933206a3466b8a52e32b35'/>
<id>urn:sha1:2b415c0b17e9b96ea2933206a3466b8a52e32b35</id>
<content type='text'>
scripts/getver.sh requires upstream branch tracking to correctly compute
revision number. Buildbot Git() step does not set branch tracking as it
checks out individual commits and then reset the target branch to it, so
in order for getver.sh to work, this workaround forcefully sets the
upstream branch.

This fixes malformed version code in filenames as observed on
openwrt-23.05:

r23001+3-38c150612c
instead of:
r23004-7f0db09513

Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>phase1: cleanup redundant steps</title>
<updated>2023-05-23T02:29:44Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2023-05-22T18:20:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=90af3d7ad4a72aab90e2b3bca853a91cf199a753'/>
<id>urn:sha1:90af3d7ad4a72aab90e2b3bca853a91cf199a753</id>
<content type='text'>
These 3 rm steps are unnecessary since these folders are already cleaned
by the Git() step. Thus reduce clutter in already pretty busy Factory.

Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>phase1: workaround gitverify 1st build failures on fresh workers</title>
<updated>2023-05-17T09:27:23Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-05-16T18:41:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=d47fd60cde0df5103add3402f76e5d2b84013a83'/>
<id>urn:sha1:d47fd60cde0df5103add3402f76e5d2b84013a83</id>
<content type='text'>
Currently every 1st build on ephemeral build worker results in the
failure of the `gitverify` build step as the stock buildbot Git() build
step for some reasons just clones the Git repository into detached HEAD
state.

On the 2nd build using the same build worker Git() checkouts the branch
and thus makes `gitverify` step happy and the builds then continues
normally.

This needs to be fixed properly, either by adjusting the `gitverify`
check or adding suitable `mode` into Git() build step, but this needs
more time and testing.

So for now, lets simply workaround that issue by running Git() step two
times.

References: #5
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>docker,worker: install g++-multilib</title>
<updated>2023-05-17T09:27:07Z</updated>
<author>
<name>Alois Klink</name>
</author>
<published>2022-11-23T17:23:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=6b145dbf190c52caa1829f6dcfdc9e304552bd5a'/>
<id>urn:sha1:6b145dbf190c52caa1829f6dcfdc9e304552bd5a</id>
<content type='text'>
From [openwrt/docker@5484951][1] (GitHub PR [#89][2]):

Node fails to cross-compile from a 64-bit build machine to 32-bit host
with the following error:

```
  In file included from /usr/include/c++/8/memory:62,
  from ../deps/v8/src/libplatform/default-foreground-task-runner.h:8,
  from ../deps/v8/src/libplatform/default-foreground-task-runner.cc:5:
  /usr/include/c++/8/bits/stl_algobase.h:59:10: fatal error: bits/c++config.h:
    No such file or directory
  #include &lt;bits/c++config.h&gt;
          ^~~~~~~~~~~~~~~~~~
  compilation terminated.
```

On Debian, `g++-multilib` can be installed to fix this.

[1]: https://gitlab.com/openwrt/docker/-/commit/54849510d7802028b94757051cca6d004a9ca1d1
[2]: https://github.com/openwrt/docker/pull/89

Fixes: https://github.com/openwrt/packages/issues/18476
Fixes: https://forum.openwrt.org/t/why-arent-the-node-and-node-npm-packages-available-on-arm-cortex-a9-vfpv3-d16-in-22-03-2/142722
Signed-off-by: Alois Klink &lt;alois@aloisklink.com&gt;
</content>
</entry>
<entry>
<title>ci: add basic config checking with ruff</title>
<updated>2023-05-16T14:52:33Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-05-16T10:57:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=bc489fdb40c64f899957a139fbe3e4049a9f80d2'/>
<id>urn:sha1:bc489fdb40c64f899957a139fbe3e4049a9f80d2</id>
<content type='text'>
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>phase1: actually make rsync -4 configurable</title>
<updated>2023-05-16T14:52:33Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2023-05-15T20:08:50Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=7cd3f1292e86aa9316f6df78e36700bd3e3cbb6c'/>
<id>urn:sha1:7cd3f1292e86aa9316f6df78e36700bd3e3cbb6c</id>
<content type='text'>
54e80d5ce introduced an interpolate bug that would evaluate an empty
string as being part of the arguments passed to rsync, resulting in a
failure as rsync interprets that empty string as a source.

This commit fixes this by instead appending '4' to regular shortopts
when necessary.

Fixes: 54e80d5ce

Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>phase1: perform kmodupload only when needed</title>
<updated>2023-05-16T14:52:33Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2023-05-16T08:13:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=1da8a2c92e05c038b00eb268f8679b407305a72b'/>
<id>urn:sha1:1da8a2c92e05c038b00eb268f8679b407305a72b</id>
<content type='text'>
Fixes: 909e899

Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>phase1: fix crash on exception during Git update</title>
<updated>2023-05-15T15:36:01Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-05-15T14:18:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=2cbc3df5878f49a90f3fa1d595805e422549e0ec'/>
<id>urn:sha1:2cbc3df5878f49a90f3fa1d595805e422549e0ec</id>
<content type='text'>
Fixes following exception:

 2023-05-15 14:08:56+0000 [-] &lt;Build master_apm821xx/nand number:1 results:success&gt; build got exception when running step Git(name='git', repourl='https://git.openwrt.org/openwrt/openwrt.git', mode='full', method='fresh', locks=renderer(&lt;function NetLockDl at 0x7f5d33351ee0&gt;), haltOnFailure=True)
 2023-05-15 14:08:56+0000 [-] Unhandled Error
	Traceback (most recent call last):
	  File "/usr/local/lib/python3.9/dist-packages/twisted/internet/defer.py", line 1792, in gotResult
	    _inlineCallbacks(r, gen, status, context)
	  File "/usr/local/lib/python3.9/dist-packages/twisted/internet/defer.py", line 1693, in _inlineCallbacks
	    result = context.run(
	  File "/usr/local/lib/python3.9/dist-packages/twisted/python/failure.py", line 518, in throwExceptionIntoGenerator
	    return g.throw(self.type, self.value, self.tb)
	  File "/usr/local/lib/python3.9/dist-packages/buildbot/process/build.py", line 576, in _start_next_step_impl
	    log.err(e)
	--- &lt;exception caught here&gt; ---
	  File "/usr/local/lib/python3.9/dist-packages/buildbot/process/build.py", line 562, in _start_next_step_impl
	    results = yield step.startStep(self.conn)
	builtins.KeyError: None

as None is valid property value, but cant be used as dict index.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>ci: allow pushing of containers during pull requests</title>
<updated>2023-05-15T15:36:01Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2023-05-15T07:25:07Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/buildbot/commit/?id=34103cd918bb558521eec724016a94bc70a953b4'/>
<id>urn:sha1:34103cd918bb558521eec724016a94bc70a953b4</id>
<content type='text'>
Make it possible to push containers in pull requests in private forks,
so the container can be actually runtime tested before merging the
changes.

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