Allow building debug builds #3
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: infrastructure/blender-bot#3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "filedescriptor/blender-bot:debug-builds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR attempts to allow the user to specify a build config (e.g.
debug
) when running a build.Example:
This would build a debug build and also run the tests in debug mode.
Can you clarify the purpose of this?
We've been wanting to run tests with asserts enabled, which I think makes sense. Debug mode does that but also a lot more. We would not want to run tests in debug mode regularly because that's going to be too slow and take up too many resources.
So if the intent would be for developers to frequently use
@blender-bot build debug
in their pull requests, I don't think this is the solution.Yes that would be the usecase for me. Basically, as a developer, I would want to run debug tests on a PR (could be my own, could be someone else) so that I know e.g. that there are no memory issues (with ASAN) or that no asserts are hit. I would want this to happen on the build-bot so that I can continue working while the tests run (running debug tests takes up a lot of time).
Do we know this? I don't think this would be used that frequently. For a lot of PR's, a
@blender-bot build
will suffice imo.To me it seems you can't really predict when an assert might trigger, so it doesn't make much sense to sometimes build with asserts. Note also that debug builds do not enable ASAN.
The plan was to complete blender/blender#115071 so we can build asserts in release mode, and make that the default behavior for
@blender-bot build
. For package builds and nightly builds it would continue to build without asserts probably.Enabling ASAN by default on
@blender-bot build
we should also, in addition to that.That sounds good! If enabling ASAN has a big impact on build times though, I would make it an option to the command.
Closing this since it doesn't have a use now.
Asserts are now enabled on the buildbot for non-package builds.
An "sanitizer" build configuration was added as well, though various failures and impact on build time need to be investigated before we can really start using that.
Pull request closed