nuttxpr commented on PR #2992:
URL: https://github.com/apache/nuttx-apps/pull/2992#issuecomment-2654708161

   [**\[Experimental Bot, please feedback 
here\]**](https://github.com/search?q=repo%3Aapache%2Fnuttx+13552&type=issues)
   
   
   
   Yes, this PR mostly meets the NuttX requirements, but could be improved. 
Here's a breakdown:
   
   **Strengths:**
   
   * **Clear Summary:** The summary explains the "why," "what," and "how" of 
the change.
   * **Impact Assessment:**  The impact section addresses all the required 
points, even if briefly.
   * **Testing Information:** Provides build instructions and a method to 
verify the change.
   
   **Weaknesses:**
   
   * **Missing Issue References:**  The summary should link to related NuttX 
issues if applicable. Even if there isn't a directly related issue, consider 
creating one to track the bug or feature request this PR addresses.
   * **Vague Impact Descriptions:** While the impact section checks the boxes, 
the explanations are too brief.  For "Impact on user" and "Impact on build,"  
explain *how* the user benefits from using the `__NuttX__` macro. What features 
can they enable/disable? Provide a concrete example.
   * **Insufficient Testing Logs:** The "Testing logs before change" and 
"Testing logs after change" sections are empty.  You should include actual 
output demonstrating the change in behavior. Show what happens before the patch 
and after the patch. The `nuttx.map` output is helpful, but it doesn't 
demonstrate the functional impact of the change.  Consider adding Python code 
that uses the `__NuttX__` macro and show its output before and after the change.
   * **Limited Testing Scope:** Testing is only mentioned for `rv-virt:python`. 
If Python is supported on other platforms, ideally, those should also be 
tested.  If not feasible, explain why.
   
   **Recommendations:**
   
   1. **Add Issue References:** If no issue exists, create one and link it to 
the PR. This provides valuable context and traceability.
   2. **Elaborate on Impact:** Provide specific examples of how users and the 
build process are affected.  For instance, "Users can now use the `__NuttX__` 
macro within their Python applications to conditionally include NuttX-specific 
code, such as accessing hardware peripherals. This allows for more portable 
Python code that can adapt to different environments."  For build impact, 
mention something like, "The build system now checks for the `__NuttX__` macro 
when compiling Python applications, allowing users to define this macro to 
enable or disable optional features during compilation."
   3. **Include Real Testing Logs:** Show the actual output of relevant 
commands or programs before and after the change.  This provides concrete 
evidence that the change works as intended. Include Python code snippets and 
their output demonstrating the use of `__NuttX__`.
   4. **Broaden Testing (If Possible):** Test on other platforms that support 
Python if feasible. If not, justify why testing is limited to `rv-virt:python`.
   
   
   By addressing these weaknesses, the PR will be significantly stronger and 
more likely to be accepted.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to