You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Logging and Error Handling for get_benchmark_final_target_code (#910)
## Description
This PR addresses the issue of missing source code by adding enhanced
logging and improving error handling in the
`get_benchmark_final_target_code()` method. Previously, silent failures
could occur, making it difficult to diagnose the root cause of missing
source code.
## Changes
- **Enhanced Logging**: Logs are added to track when the `sample_id` is
invalid or the source code is missing.
- **Error Handling**: Ensures that malformed or empty `sample_id` values
are handled gracefully and logged appropriately.
- **Return Null for Missing Source Code**: In case of an error, the
function explicitly returns `None` rather than an empty string for
clarity in JSON outputs.
#908
It may also refer to #625
## Benefits
- Improved **debuggability** by making it easier to identify the reasons
behind missing source code.
- Increased **robustness** by preventing silent failures and ensuring
more informative logs and error handling.
0 commit comments