Skip to content

Conversation

@allisonschiang
Copy link
Contributor

@allisonschiang allisonschiang commented Nov 10, 2025

Whenever a module fails to startup, add it to the failing modules map

When a module is failing, it doesn't get stored in mgr.modules, so when you compare config diffs it won't find the difference between the previous config and the newConfig (where you removed a failing module). So to be able to tell when the failing module has been removed, I compare my failing modules list directly to the newConfig and remove any difference in the failing modules list.

Testing:

  1. Original state: No failing modules and some working modules:
    11/10/2025, 1:02:53 PM error rdk.resource_manager.rdk:component:board/board-1   resource/graph_node.go:308   resource build error: unknown resource type: API rdk:component:board with model s:s:s not registered; There may be no module in config that provides this model   resource rdk:component:board/board-1  model s:s:s

  2. Add 2 failing modules:
    11/10/2025, 1:20:53 PM error rdk.resource_manager.rdk:component:board/board-1   resource/graph_node.go:308   resource build error: unknown resource type: API rdk:component:board with model s:s:s not registered; May be in failing module: [failingmodule-tofix failingmodule-todel]; There may be no module in config that provides this model   resource rdk:component:board/board-1  model s:s:s

  3. Delete a failing module:
    11/10/2025, 1:22:23 PM error rdk.resource_manager.rdk:component:board/board-1   resource/graph_node.go:308   resource build error: unknown resource type: API rdk:component:board with model s:s:s not registered; May be in failing module: [failingmodule-tofix]; There may be no module in config that provides this model   resource rdk:component:board/board-1  model s:s:s

  4. Fix a failing module:

@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label Nov 10, 2025
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test This pull request is marked safe to test from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants