feat(ISV-7124): Fix static-checks loading and add error handling#930
feat(ISV-7124): Fix static-checks loading and add error handling#930RichardPlesnik merged 1 commit intomainfrom
Conversation
Review Summary by QodoFix static-checks loading with error handling and jsonschema dependency
WalkthroughsDescription• Add comprehensive error handling for static-checks module loading - Distinguish between missing modules and missing dependencies - Raise RuntimeError for missing dependencies instead of silently failing • Add jsonschema to production dependencies to resolve import failures • Add detailed debug logging for checks loading process • Add test coverage for missing dependency and unexpected error scenarios Diagramflowchart LR
A["Module Loading"] --> B["Error Detection"]
B --> C["Missing Module?"]
C -->|Yes| D["Log & Continue"]
C -->|No| E["Missing Dependency"]
E --> F["Raise RuntimeError"]
B --> G["Other Exceptions"]
G --> F
H["Add jsonschema Dependency"] --> I["Resolve Import Failures"]
File Changes1. operatorcert/operator_repo/checks/__init__.py
|
Code Review by Qodo
|
|
I had a look at the test PR mentioned here and the extension of a module itself and they both look good to me 👍 |
fe24b60 to
84eb258
Compare
84eb258 to
1a1cb8f
Compare
|
I forgot to click on approve after I added my comment. |
Merge Request Checklists
Changes were tested here:
RichardPlesnik/community-operators-pipeline-preprod#11