-
Notifications
You must be signed in to change notification settings - Fork 115
Log exceptions in autotune_policy - tests
#2472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log exceptions in autotune_policy - tests
#2472
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds exception handling and logging to test files for autotune policy and related dynamic selection policies. The changes wrap existing test code in try-catch blocks to capture and log any exceptions that occur during test execution.
- Adds try-catch blocks around main test logic in multiple test files
- Implements consistent exception logging using TestUtils::issue_error_message
- Ensures tests can report meaningful error information when exceptions occur
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| test_round_robin_policy_inline.pass.cpp | Adds basic try-catch wrapper around test execution |
| test_fixed_resource_policy_inline.pass.cpp | Adds basic try-catch wrapper around test execution |
| test_dynamic_load_policy_inline.pass.cpp | Adds try-catch with exception logging functionality |
| test_customizations.pass.cpp | Adds try-catch with exception logging functionality |
| test_auto_tune_policy_inline.pass.cpp | Adds try-catch with exception logging functionality |
| test_auto_tune_policy_sycl.pass.cpp | Adds try-catch with exception logging functionality |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
test/parallel_api/dynamic_selection/test_round_robin_policy_inline.pass.cpp
Show resolved
Hide resolved
test/parallel_api/dynamic_selection/test_fixed_resource_policy_inline.pass.cpp
Show resolved
Hide resolved
….cpp - log exceptions
…ass.cpp - log exceptions
…ass.cpp - log exceptions
….pass.cpp - log exceptions
…ss.cpp - log exceptions
…ss.cpp - log exceptions
…l.pass.cpp - log exceptions
…ycl.pass.cpp - log exceptions
….pass.cpp - log exceptions
829c070 to
a401210
Compare
danhoeflinger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, this LGTM.
Thanks Sergey
This PR adds exception handling and logging to test files for autotune policy and related dynamic selection policies. The changes wrap existing test code in try-catch blocks to capture and log any exceptions that occur during test execution.