Skip to content

Conversation

@pdgendt
Copy link
Collaborator

@pdgendt pdgendt commented Dec 5, 2025

The west extension factory is not guaranteed to succesfully set self.cmd in the WestApp instance. For example if a module could not be loaded.

Use the builtin Help command as a fallback.

Fixes #893

@codecov
Copy link

codecov bot commented Dec 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.95%. Comparing base (bfb7d58) to head (c00fb56).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #894      +/-   ##
==========================================
+ Coverage   85.04%   85.95%   +0.90%     
==========================================
  Files          11       11              
  Lines        3451     3452       +1     
==========================================
+ Hits         2935     2967      +32     
+ Misses        516      485      -31     
Files with missing lines Coverage Δ
src/west/app/main.py 79.08% <100.00%> (+3.16%) ⬆️

... and 3 files with indirect coverage changes

The west extension factory is not guaranteed to succesfully set self.cmd
in the WestApp instance. For example if a module could not be loaded.

Use the builtin Help command as a fallback.

Signed-off-by: Pieter De Gendt <[email protected]>
@pdgendt pdgendt force-pushed the handle-extension-error branch from 4ae3803 to c9895b3 Compare December 11, 2025 19:52
Add a file with tests for validating West extension command handling.

Signed-off-by: Pieter De Gendt <[email protected]>
@pdgendt pdgendt force-pushed the handle-extension-error branch from c9895b3 to c00fb56 Compare December 11, 2025 20:02
@pdgendt pdgendt merged commit a5664bb into zephyrproject-rtos:main Dec 12, 2025
27 checks passed
@pdgendt pdgendt deleted the handle-extension-error branch December 12, 2025 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Import errors not handled in extension commands

3 participants