-
Notifications
You must be signed in to change notification settings - Fork 88
[RAPTOR-14627] use gunicorn in sklearn env #1659
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?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -128,10 +128,13 @@ def test_ping_endpoints(self, params, with_error_server, production, docker): | |
|
|
||
| @pytest.mark.parametrize( | ||
| "with_error_server, production, docker", | ||
| [(False, False, None), (True, False, None), (True, True, DOCKER_PYTHON_SKLEARN)], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Inconsistent test parameter updates for gunicorn compatibilityThe PR updates test parameters for Additional Locations (2) |
||
| [(False, False, None), (True, False, None), (False, False, DOCKER_PYTHON_SKLEARN)], | ||
| ) | ||
| def test_e2e_no_model_artifact(self, params, with_error_server, production, docker): | ||
| """ | ||
| Note: 12/17/2025 DOCKER_PYTHON_SKLEARN image is going to use gunicorn, | ||
| so it doesn't support running with error server or production anymore. | ||
|
|
||
| Verify that if an error occurs on DRUM server initialization if no model artifact is found | ||
| - if '--with-error-server' is not set, DRUM server process will exit with error | ||
| - if '--with-error-server' is set, 'error server' will still be started, and | ||
|
|
@@ -152,10 +155,13 @@ def test_e2e_no_model_artifact(self, params, with_error_server, production, dock | |
|
|
||
| @pytest.mark.parametrize( | ||
| "with_error_server, production, docker", | ||
| [(False, False, None), (True, False, None), (True, True, DOCKER_PYTHON_SKLEARN)], | ||
| [(False, False, None), (True, False, None), (False, False, DOCKER_PYTHON_SKLEARN)], | ||
| ) | ||
| def test_e2e_model_loading_fails(self, params, with_error_server, production, docker): | ||
| """ | ||
| Note: 12/17/2025 DOCKER_PYTHON_SKLEARN image is going to use gunicorn, | ||
| so it doesn't support running with error server or production anymore. | ||
|
|
||
| Verify that if an error occurs on DRUM server initialization if model cannot load properly | ||
| - if '--with-error-server' is not set, drum server process will exit with error | ||
| - if '--with-error-server' is set, 'error server' will still be started, and | ||
|
|
||
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.
Bug: Commented-out configuration left in Dockerfile
A commented-out
ENV MLOPS_RUNTIME_PARAM_DRUM_CLIENT_REQUEST_TIMEOUTline was added to the Dockerfile. This appears to be leftover testing or debugging code that was not removed before committing. Commented-out configuration in production Dockerfiles can confuse maintainers and suggests incomplete cleanup.