Conversation
There are a number of broken device specifications that redundantly map various images to the same device names. Handle most of these by ensuring that the actual device name maps to itself, rather than some arbitrary value in 'SUPPORTED_DEVICES' due to these incorrect device mappings in the profiles.json. Fixes: openwrt/openwrt#22541 Signed-off-by: Eric Fahlgren <ericfahlgren@gmail.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1593 +/- ##
===========================================
+ Coverage 80.75% 91.57% +10.81%
===========================================
Files 15 16 +1
Lines 977 1745 +768
===========================================
+ Hits 789 1598 +809
+ Misses 188 147 -41 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Can we actually fix this upstream? |
Theoretically, yes. Practically, it's spread around very thinly so they are hard to find (people don't always report the issues) and crosses version boundaries, so getting the PRs approved is pretty painful. If this PR had logging as mentioned in its comments, that would give use pointers as to what is broken... |
|
It's a common practice to allow "force-less" sysupgrading between compatible images. I cannot call these cases "broken specs" as everything was implemented coherently (including sysupgrade paths, platform checks) and manual sysupgrade works as intended the only thing that need some love is "external", in the ASU side. We have enough info to do it correctly, selecting the profile candidate which has the board_name entry the first in the SUPPORTED_DEVICES list. *Indeed this information(shared entries) could be really useful for a potential enhancement for offering any of the supported images. (I probably shouldn't have said this last but I'm starting to be desperate, it seems) :( this cannot be healthy... |
There are a number of broken device specifications that redundantly map various images to the same device names. Handle most of these by ensuring that the actual device name maps to itself, rather than some arbitrary value in 'SUPPORTED_DEVICES' due to these incorrect device mappings in the profiles.json.
Fixes: openwrt/openwrt#22541