test(mooncake): fix -Werror violations exposed by release test builds#1815
test(mooncake): fix -Werror violations exposed by release test builds#1815nv-nmailhot wants to merge 1 commit into
Conversation
CI now compiles tests in release (-O3 -DNDEBUG), where assert() is a no-op, exposing pre-existing -Werror issues in mooncake_backend_test.cpp: - memType2Str / getValidationPtr fell off the end of non-void functions in the default case (assert(0) compiles out) -> add explicit returns. - desc.len used uninitialized in allocateWrongGPUTest -> initialize it. - ret/ret1/ret3_gen became unused (only read by compiled-out asserts) -> mark [[maybe_unused]]. Unblocks the AWS EFA validation, which builds + runs the C++ tests in release (.gitlab/build.sh + .gitlab/test_cpp.sh). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughIn ChangesMooncake backend test warning fixes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
CI now compiles tests in release (-O3 -DNDEBUG), where assert() is a no-op, exposing pre-existing -Werror issues in mooncake_backend_test.cpp:
Unblocks the AWS EFA validation, which builds + runs the C++ tests in release (.gitlab/build.sh + .gitlab/test_cpp.sh).
What?
Describe what this PR is doing.
Why?
Justification for the PR. If there is an existing issue/bug, please reference it. For
bug fixes, the 'Why?' and 'What?' can be merged into a single item.
How?
It is optional, but for complex PRs, please provide information about the design,
architecture, approach, etc.
Summary by CodeRabbit