-
Notifications
You must be signed in to change notification settings - Fork 607
Run unittests in debug mode at pull time and release mode on trunk builds #8550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Stack from ghstack (oldest at bottom): |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/8550
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New FailuresAs of commit 5dca304 with merge base e2f8624 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
linux unittest jobs are green and mac test is broken on trunk, think this is ready to go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we also plumb all the way to
.ci/scripts/unittest-linux-cmake.sh and
https://github.com/pytorch/executorch/blob/main/test/run_oss_cpp_tests.sh?
@@ -124,7 +124,7 @@ build_executorch_runner() { | |||
if [[ $1 == "buck2" ]]; then | |||
build_executorch_runner_buck2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for buck we are ignoring and using whatever's default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. I think that whether the code works with optimized/debug build flags is orthogonal to the choice of build system. (The ExecuTorch .buckconfig is configured to produce debug builds by default.)
As you can see in the linux release build logs and the linux debug build logs, CMAKE_BUILD_TYPE is correctly set as-is. CMake caches settings, and 1) unittest-linux-cmake.sh does not itself invoke cmake 2) the cmake invocation in run_oss_cpp_tests.sh doesn't set CMAKE_BUILD_TYPE explicitly. |
Rebase and resolve the conflict |
.ci/scripts/unittest-linux.sh
Outdated
.ci/scripts/unittest-linux-cmake.sh | ||
elif [[ "$BUILD_TOOL" == "buck2" ]]; then | ||
.ci/scripts/unittest-buck2.sh | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In unittest-macos.sh we are doing this, but why not here?
can we make it consistent/symmetric?
if [[ "$BUILD_TOOL" == "cmake" ]]; then
.ci/scripts/unittest-macos-cmake.sh "$BUILD_MODE"
elif [[ "$BUILD_TOOL" == "buck2" ]]; then
.ci/scripts/unittest-buck2.sh "$BUILD_MODE"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch. fix is to remove it in unittest-macos.sh
.ci/scripts/unittest-macos.sh
Outdated
if [[ "$BUILD_TOOL" == "cmake" ]]; then | ||
.ci/scripts/unittest-macos-cmake.sh "$BUILD_MODE" | ||
elif [[ "$BUILD_TOOL" == "buck2" ]]; then | ||
.ci/scripts/unittest-buck2.sh "$BUILD_MODE" | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
double-checking CMAKE_BUILD_TYPE in the unittest cmake jobs on this diff: all 3 mac jobs are good, all 3 linux jobs are good. found unittest-arm while looking; should talk about whether we need to give that one the same treatment. merging. |
Per discussion in discord with @mergennachin. Motivation was to have debug coverage to catch debug-only test failures.