The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
To ensure bugs are caught early our docker entrypoint scripts should blow up on unexpected errors. This caught us recently with a jq call which didn't compile but the error was handled and it was always treated as false: https://github.com/medic/cht-core/pull/8544
Describe the improvement you'd like
To catch these errors early the entrypoint should fail which will break our CI and catch it before merging.
Describe alternatives you've considered
Rely on manually checking the log files but automation is better.
Have test cases which test that each branch is tested which we should have anyway but this is a good catch all.
What feature do you want to improve?
To ensure bugs are caught early our docker entrypoint scripts should blow up on unexpected errors. This caught us recently with a jq call which didn't compile but the error was handled and it was always treated as false: https://github.com/medic/cht-core/pull/8544
Describe the improvement you'd like To catch these errors early the entrypoint should fail which will break our CI and catch it before merging.
Describe alternatives you've considered
Rely on manually checking the log files but automation is better. Have test cases which test that each branch is tested which we should have anyway but this is a good catch all.
Additional context