kernelci / kernelci/kernelci-core

Implement proper exception handling throughout the project

Open
#2,463 0 comments 0 reactions 0 assignees View on GitHub
critical techdebt
Dominant language
Python
Stars
120
Forks
107
Avg merge
1d 2h
Merged PRs (30d)
21

Description

Over the past few weeks, we rushed to get features working on KCIv2 and consciously ignored some engineering best practices while doing so (which is OK and is understandable given the context).

At this point, we have frequent crashes due to not handling exceptions properly, e.g. https://github.com/kernelci/kernelci-pipeline/issues/468 and https://github.com/kernelci/kernelci-pipeline/issues/475 being only recent examples. This affects development efforts as such crashes require immediate attention to get the system up and running again, while delaying important results.

Exceptions should be properly handled in every part of the code that *could* fail (including handling `KeyError` for every dictionary access that isn't properly guarded by a type/key existence check).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the crashes described in kernelci-pipeline issues 468 and 475, then inspect the project areas where similar unhandled failures can occur. The issue names no files, tests, or entry points, so the scope must be established before work begins. Done means exceptions are properly handled throughout the project, including unguarded dictionary access.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.