-
Notifications
You must be signed in to change notification settings - Fork 13
Improve invalid backend error #626
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
base: master
Are you sure you want to change the base?
Improve invalid backend error #626
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #626 +/- ##
==========================================
+ Coverage 96.97% 97.19% +0.21%
==========================================
Files 29 29
Lines 1948 1958 +10
==========================================
+ Hits 1889 1903 +14
+ Misses 59 55 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
I love this library getting better and more friendly as we feast on our dogfood
Why is this in draft mode? |
|
Because I was waiting for the tests to finish to make sure there wasn't a failure!! |
* Improve backend error message * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
5768488
to
c73b30b
Compare
Here is what it looks like now:
|
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 improves error handling in the ServiceX client by enhancing error messages for invalid backend specifications and configuration loading issues. The changes make error messages more helpful by providing specific file paths and listing available backends to help users fix configuration problems.
- Enhanced error messages for invalid backend names to include the config file path and list valid options
- Added tracking of configuration file paths through the Configuration class
- Added comprehensive test coverage for the new error handling functionality
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
servicex/configuration.py | Modified to track and return config file paths, updated _add_from_path method to return both config and file path |
servicex/servicex_client.py | Enhanced error message for invalid backends to include config file path and list of valid backend names |
tests/test_servicex_client.py | Added test to verify error message includes filename when invalid backend is specified |
tests/test_config.py | Added parameterized test to verify config can be read from default files (servicex.yaml and .servicex) |
Summary
Notes
codex
https://chatgpt.com/codex/tasks/task_e_6876c3822040832089f2687e0926f63b