cFS: update sample_app submodule with improved error handling#886
cFS: update sample_app submodule with improved error handling#886
Conversation
|
@thesamprice @ivanperez-keera @egyptiankarim @classmember Hi everyone, GitHub username: rajv79. Please let me know if any additional changes, information, or follow-ups are needed. Happy to address feedback. Thank you for your time and review |
|
Hi, My two cents:
|
Hi, thank you for the feedback. I appreciate it. Regarding the issue tracking, there is currently no existing issue that specifically documents this behavior. I agree that creating an issue to describe the problem and tie the change to it formally would be helpful. I’m happy to open an issue and reference it in the commit message if that is preferred. On the implementation details: This change is intended to make error handling more explicit and defensive. Returning early on failure allows the function to separate error paths from the nominal execution path clearly, avoid using invalid table state, and reduce nested control flow. This pattern also makes it immediately clear that no further processing should occur once a table access or release failure is detected. The functional behavior remains unchanged in the success case, and the early returns are only taken on error paths where continued execution would not be meaningful. That said, if maintaining a single return point is preferred for consistency with existing cFS style, I’m happy to refactor the function accordingly. |
Checklist (Please check before submitting)
Describe the contribution
This contribution improves defensive error handling and operational visibility in the Sample App ground command processing logic.
Table access failure paths in SAMPLE_APP_ProcessCmd are now explicit, with errors reported via Event Services, error counters incremented, and clean early returns on failure.
Testing performed
Steps taken to test the contribution:
Expected behavior changes
System(s) tested on
-Hardware: PC
-OS: Windows (development environment)
-Versions: cFS Sample App (current main branch)
Additional context
This change follows standard cFS practices by improving robustness without altering functional behavior. The scope is intentionally small to support safe review and integration.
Code contributions
The cFS repository is provided to bundle the cFS Framework. It is utilized for bundling submodules, continuous integration testing, and version management and does not contain any software. Code contributions should be directed to the appropriate submodule.
**Contributor Info -
-CLA: Individual CLA will be completed and submitted as required