Skip to content
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

DM-43429: Use real exception handling for all RemoteButler tests #980

Merged
merged 3 commits into from Mar 22, 2024

Conversation

dhirving
Copy link
Contributor

@dhirving dhirving commented Mar 21, 2024

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes
  • (if changing dimensions.yaml) make a copy of dimensions.yaml in configs/old_dimensions

DimensionNameError is now a subclass of ButlerUserError so that it can be sent from server to client.  It now also subclasses KeyError to replace a  case in DataCoordinate.standardize where we were throwing KeyError with the same meaning as this exception.
Previously the RemoteButler registry tests relied on exceptions bubbling up from the server to a client in a way that wouldn't work in a real deployment.  Now that an exception propagation framework is in place for all of the DirectButler code called by the server, we can remove this hack.
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.92%. Comparing base (fd4a59f) to head (9bf43c0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #980   +/-   ##
=======================================
  Coverage   88.91%   88.92%           
=======================================
  Files         329      329           
  Lines       42330    42331    +1     
  Branches     8703     8702    -1     
=======================================
+ Hits        37639    37642    +3     
+ Misses       3441     3439    -2     
  Partials     1250     1250           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dhirving dhirving marked this pull request as ready for review March 21, 2024 22:05
@dhirving dhirving merged commit 114d8ba into main Mar 22, 2024
18 checks passed
@dhirving dhirving deleted the tickets/DM-43429 branch March 22, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants