You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
core: kraken: Startup loop hides the reason for an incompatible extension and any job lookup error #4885
Two handlers in kraken.py drop the error they catch. Impact is low. Both follow one rule: a handler must keep the reason.
init_dead_extensions catches IncompatibleExtension and logs "is not compatible anymore" with no error text (kraken.py#L71-L72). The extension then starts anyway with no digest. The log does not say why it is incompatible.
is_install_default_ext_job_created catches Exception and returns False (kraken.py#L96-L101). JobsManager.get_by_identifier raises only JobNotFound today. A later change that raises something else would create a duplicate job with no log.
Fix: bind the error in item 1 and add it to the log line. Catch JobNotFound only in item 2.
Steps to reproduce
Item 1: make fetch_extension_version raise IncompatibleExtension("needs core 1.5") for a dead extension. (from code reading, not run)
Run init_dead_extensions.
The log says only "is not compatible anymore".
Item 2: no run. A code check shows the catch is wider than the one error that can happen.
Primary pain point(s)
A maintainer cannot see why an extension is incompatible from the log. Workaround: none known.
Additional context
Environment: code reading only. Code: bluerobotics/BlueOS 1.4-dev at fa7614a (measured).
Found by the swallowed-errors audit (rows 28 and 32). Duplicate check (state all): "swallow error kraken", "incompatible extension log". No issue covers it.
Evidence
Audit: DEV/efforts/kraken-4313/swallowed-errors-audit.md, rows 28 and 32.
Activity