With ShellCommand, it's possible to fully unify all BOLT builders. Fold bolt-nfc
annotated builder into BOLTBuilder.
Details
- Reviewers
gkistanova - Group Reviewers
Restricted Project - Commits
- rZORG769ab74e913d: [BOLT] Fold bolt-nfc builder into BOLTBuilder
Diff Detail
- Repository
- rZORG LLVM Github Zorg
- Build Status
Buildable 202161 Build 307277: arc lint + arc unit
Event Timeline
Hi Amir,
The patch looks good in general, with a few things to address.
Please see my comments inline.
zorg/buildbot/builders/BOLTBuilder.py | ||
---|---|---|
16 | This is not a part of this patch, but anyway. This is a bad idea to have a mutable object as a default param value. You may want to set it to None and then assign the list in the body. https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments | |
95 | You may want to use LitTestCommand here to have the test results parsed. | |
97 | You have hardcoded the number of jobs for LIT. And this number is different than the one in the next step. Could you explain why this is a good idea, please? Shouldn't the number of jobs be specific to a particular worker, and not a build factory? | |
109 | The same is here. |
zorg/buildbot/builders/BOLTBuilder.py | ||
---|---|---|
16 | Thank you for this suggestion. Fixed separately in 66c07102840a2078de282d11642d10a9ae5ee9c1 |
zorg/buildbot/builders/BOLTBuilder.py | ||
---|---|---|
97 | The reason for that is BOLT runs some passes in parallel internally using all available cores, but only during certain passes. With smaller test binaries we can overlap some number of executions, with 4 selected as a reasonable number. Using num-jobs is not reasonable due to this internal parallelism. | |
109 | The reason for smaller number here is that check-large-bolt binaries are larger and we can overlap smaller number of executions. |
This is not a part of this patch, but anyway. This is a bad idea to have a mutable object as a default param value. You may want to set it to None and then assign the list in the body. https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments