Add generic module reload validation and harden fastrpc unload hang coverage #336
Add generic module reload validation and harden fastrpc unload hang coverage #336smuppand wants to merge 2 commits intoqualcomm-linux:mainfrom
Conversation
…ence capture Avoid wedging the test harness when unload or load commands time out by returning immediately after timeout evidence collection. Also narrow module state capture to the target module and improve timeout-path stdout reporting for easier debugging. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Update the fastrpc profile to stop and mask rpc daemons, verify remaining daemon processes, and provide clearer stdout context when quiesce or unload paths fail. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
|
Is there an example job using this code? It almost seems like there is too much code for one commit. |
|
I'm also puzzled by the complexity of this. I was expecting <30 lines in total! For example, while I agree it makes sense to make the load/unload test generic of the specific module being tested, why is |
Thanks — this is a fair concern. I agree the current split is not ideal if future profiles have to repeat this much code. The right end state is for a profile to be mostly declarative (module name, services, patterns, mode, a few knobs), with the common service/process wait/kill helpers moved into lib_module_reload.sh. For this PR, I started with the fastrpc-specific flow to make the unload-hang regression reproducible first. I can follow up by shrinking fastrpc.profile and moving the reusable pieces into the shared library so that adding a second module profile is much smaller and cleaner. |
|
Add a new generic Module_Reload_Validation suite as per the new requirement #326 and wire in an initial fastrpc profile for unload/reload regression coverage.
Key changes in this PR:
The first target is fastrpc, where unload can hang after daemon activity.This suite is meant to make that regression reproducible in automation andto preserve useful evidence when it happens.
Necessary logs will be available