-
Notifications
You must be signed in to change notification settings - Fork 14
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-41367: Make Butler server deployable #901
Conversation
ca32ee9
to
5b569d7
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #901 +/- ##
==========================================
+ Coverage 87.67% 87.87% +0.20%
==========================================
Files 277 281 +4
Lines 36338 36435 +97
Branches 7583 7601 +18
==========================================
+ Hits 31858 32019 +161
+ Misses 3318 3263 -55
+ Partials 1162 1153 -9
☔ View full report in Codecov by Sentry. |
|
||
# This is kind of a fragile test. Butler's search logic does a lot of | ||
# manipulations involving creating new ResourcePaths, and ResourcePath | ||
# doesn't use httpx so we can't easily inject the TestClient in there. |
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.
If we decide that we want to do that we can consider changing ResourcePath to use httpx
rather than requests
(Obviously this is not half a day's work but might not be a huge amount of work).
The jenkins run just failed for this, I need to gate out test_authentication.py like the rest of the RemoteButler tests because it ends up implicitly loading httpx |
796f95e
to
84a2dc8
Compare
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've made a quick scan through the changes. I'll take another look when you've finished it. Lots of docstring tweaks and I need to show you how to build docs.
c089ce9
to
cfebca2
Compare
51f0d7c
to
0acd62f
Compare
Alright @timj , I think I got everything. Other than your comments I changed it so that instead of |
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.
Looks great.
For phalanx deployments, all butler servers will have the same hostname but live under different paths.
For the purposes of the RSP, Butler is considered part of the "API Aspect", so the path to it needs to start with /api/. Handlers were re-organized to be grouped under an APIRouter, since this prefix will need to be configurable in the future.
0acd62f
to
c50bf28
Compare
Checklist
doc/changes