The cmake sanitizer buildbots use the nproc value for the build
width by default, this means the PowerPC sanitizer buildbots were
building and testing at the max parallelism their host machines could
handle.
This patch adds a build and test width specification for the PPC
sanitizers and sets the build targets to only build for PowerPC
with the intension of reducing the load the sanitizers have on their
host while improving build times. It fixes up cmake argument passing
to facilitate the change.
Details
Diff Detail
- Repository
- rZORG LLVM Github Zorg
Event Timeline
buildbot/osuosl/master/config/builders.py | ||
---|---|---|
1753 | -DLLVM_CCACHE_BUILD=ON is not needed as it's enabled by buildbot_cmake.sh:31 also it should not go into CMAKE_COMMON_OPTIONS as only the first stage can benefit of that | |
1754–1755 | why the first one 80 and this one 256? | |
zorg/buildbot/builders/sanitizers/buildbot_cmake.sh | ||
23 | maybe better to detect arch(or even bot name) and make adjustments in buildbot_cmake.sh for UnifiedTreeBuilder it make sense to keep them in builders.py, but SanitizerBuilder most configuration happening sh files already, and it easier to see when I edit the file. also sh applies immediately and does not need to wait staging->buildbot release/reboot |
Thank you for the review, I am testing these changes at the moment, will post the update afterwards.
buildbot/osuosl/master/config/builders.py | ||
---|---|---|
1753 | Could point, I was originally just adapting the code since passing the argument the previous way just get's it ignored, but I will remove this in the next update. | |
1753 | Good point* | |
1754–1755 | These values are based on the host machine and takes into consideration the load of the other buildbots running on them; our Big Endian host has a smaller capacity than our Little Endian host. We're okay with make and lit starting these many jobs but not with using the full nproc. | |
zorg/buildbot/builders/sanitizers/buildbot_cmake.sh | ||
23 | No worries, thank you for maintaining the sanitizers, I will move the cmake arguments to the target specific section of buildbot_cmake.sh and control for endianness. |
zorg/buildbot/builders/sanitizers/buildbot_cmake.sh | ||
---|---|---|
100 | I don't think we need ' around PowerPC |
Thanks for addressing my comments. I think unless if anyone else has any concerns, this LGTM.
-DLLVM_CCACHE_BUILD=ON is not needed as it's enabled by buildbot_cmake.sh:31
also it should not go into CMAKE_COMMON_OPTIONS as only the first stage can benefit of that