This report summarizes scanner evidence for bentoml/BentoML. SynthScan examined 96,805 lines of code across 545 source files, recording 1592 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 24.0 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 600 finding(s).
Are imports declared and package/API names verified? 581 finding(s).
Are wrappers, guards, and repeated structures necessary? 776 finding(s).
Which changes need focused human review? 1592 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1592 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate_coverage.py | 2 | CODE | |
| LOW | tools/write_report.py | 3 | CODE | |
| LOW | tests/test_cli_regression.py | 1 | CODE | |
| LOW | tests/unit/test_utils.py | 1 | CODE | |
| LOW | tests/unit/conftest.py | 2 | CODE | |
| LOW | tests/unit/test_metrics_deferred_import.py | 12 | CODE | |
| LOW | tests/unit/test_metrics_deferred_import.py | 53 | CODE | |
| LOW | tests/unit/test_models.py | 18 | CODE | |
| LOW | tests/unit/bentoml_cli/test_env_manager.py | 1 | CODE | |
| LOW | tests/unit/_internal/test_service_api.py | 4 | CODE | |
| LOW | tests/unit/_internal/test_store.py | 1 | CODE | |
| LOW | tests/unit/_internal/test_exportable.py | 1 | CODE | |
| LOW | tests/unit/_internal/configuration/conftest.py | 1 | CODE | |
| LOW | tests/unit/_internal/configuration/test_v1_migration.py | 1 | CODE | |
| LOW | tests/unit/_internal/configuration/test_containers.py | 1 | CODE | |
| LOW | tests/unit/_internal/configuration/test_helpers.py | 1 | CODE | |
| LOW | tests/unit/_internal/runner/test_strategy.py | 1 | CODE | |
| LOW | tests/unit/_internal/runner/test_container.py | 1 | CODE | |
| LOW | tests/unit/_internal/io/test_image.py | 1 | CODE | |
| LOW | tests/unit/_internal/io/test_text.py | 1 | CODE | |
| LOW | tests/unit/_internal/io/test_file.py | 1 | CODE | |
| LOW | tests/unit/_internal/io/test_custom.py | 1 | CODE | |
| LOW | tests/unit/_internal/io/test_multipart.py | 1 | CODE | |
| LOW | tests/unit/_internal/io/test_json.py | 1 | CODE | |
| LOW | tests/unit/_internal/io/test_base.py | 1 | CODE | |
| LOW | tests/unit/_internal/io/test_numpy.py | 2 | CODE | |
| LOW | tests/unit/_internal/utils/test_metrics.py | 1 | CODE | |
| LOW | tests/unit/_internal/utils/test_pickle.py | 1 | CODE | |
| LOW | tests/unit/_internal/utils/test_analytics.py | 2 | CODE | |
| LOW | …s/unit/_internal/utils/circus/test_watchfilesplugin.py | 1 | CODE | |
| LOW | tests/unit/_internal/models/test_model.py | 1 | CODE | |
| LOW | tests/unit/_internal/models/test_model.py | 24 | CODE | |
| LOW | tests/unit/_internal/container/test_generate.py | 1 | CODE | |
| LOW | tests/unit/_internal/container/test_cuda_version.py | 1 | CODE | |
| LOW | tests/unit/_internal/cloud/test_deployment.py | 1 | CODE | |
| LOW | …sts/unit/_internal/bento/test_service_serialization.py | 1 | CODE | |
| LOW | tests/unit/_internal/bento/test_src_layout.py | 1 | CODE | |
| LOW | tests/unit/_internal/bento/test_bento.py | 2 | CODE | |
| LOW | tests/unit/grpc/conftest.py | 1 | CODE | |
| LOW | tests/unit/grpc/test_grpc_utils.py | 1 | CODE | |
| LOW | tests/unit/grpc/interceptors/test_prometheus.py | 1 | CODE | |
| LOW | tests/unit/grpc/interceptors/test_access.py | 2 | CODE | |
| LOW | tests/unit/_bentoml_sdk/test_images.py | 1 | CODE | |
| LOW | tests/unit/_bentoml_sdk/test_validators.py | 1 | CODE | |
| LOW | tests/integration/frameworks/test_diffusers_unit.py | 1 | CODE | |
| LOW | tests/integration/frameworks/test_transformers_unit.py | 1 | CODE | |
| LOW | tests/integration/frameworks/conftest.py | 1 | CODE | |
| LOW | tests/integration/frameworks/test_frameworks.py | 1 | CODE | |
| LOW | tests/integration/frameworks/test_tensorflow_unit.py | 1 | CODE | |
| LOW | tests/integration/frameworks/test_pytorch_unit.py | 1 | CODE | |
| LOW | tests/integration/frameworks/test_fastai_unit.py | 1 | CODE | |
| LOW | tests/integration/frameworks/mlflow/test_apis.py | 1 | CODE | |
| LOW | tests/integration/frameworks/models/lightgbm.py | 1 | CODE | |
| LOW | tests/integration/frameworks/models/transformers.py | 1 | CODE | |
| LOW | tests/integration/frameworks/models/transformers.py | 32 | CODE | |
| LOW | tests/integration/frameworks/models/fastai.py | 1 | CODE | |
| LOW | tests/integration/frameworks/models/keras.py | 1 | CODE | |
| LOW | tests/integration/frameworks/models/catboost.py | 1 | CODE | |
| LOW | tests/integration/frameworks/models/easyocr.py | 1 | CODE | |
| LOW | tests/integration/frameworks/models/onnx.py | 1 | CODE | |
| 494 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | noxfile.py | 59 | def run_framework_integration_test(session: nox.Session, framework: str): | CODE |
| LOW | tests/test_readiness_memory_leak_fix.py | 35 | async def test_is_ready_closes_response_on_success(self): | CODE |
| LOW | tests/test_readiness_memory_leak_fix.py | 61 | async def test_is_ready_closes_response_on_failure(self): | CODE |
| LOW | tests/test_readiness_memory_leak_fix.py | 87 | async def test_is_ready_handles_timeout_without_response(self): | CODE |
| LOW | tests/test_readiness_memory_leak_fix.py | 111 | def test_dependency_get_caches_resolved_value(self): | CODE |
| LOW | tests/test_readiness_memory_leak_fix.py | 140 | def test_dependency_get_caches_across_multiple_dependencies(self): | CODE |
| LOW | tests/test_readiness_memory_leak_fix.py | 174 | async def test_dependency_close_clears_resolved(self): | CODE |
| LOW | tests/test_readiness_memory_leak_fix.py | 194 | async def test_dependency_close_handles_none_resolved(self): | CODE |
| LOW | tests/test_readiness_memory_leak_fix.py | 206 | async def test_dependency_close_skips_non_async_close(self): | CODE |
| LOW | tests/test_readiness_memory_leak_fix.py | 224 | async def test_repeated_readiness_checks_use_cache(self): | CODE |
| LOW | tests/test_readiness_memory_leak_fix.py | 256 | async def test_cleanup_cycle_memory_pattern(self): | CODE |
| LOW | tests/unit/test_metrics_deferred_import.py | 20 | def _fresh_bentoml_metrics_module(): | CODE |
| LOW | tests/unit/test_metrics_deferred_import.py | 40 | def test_bentoml_metrics_does_not_import_prometheus_client_eagerly(): | CODE |
| LOW | tests/unit/test_metrics_deferred_import.py | 62 | def test_multiple_histograms_all_collected_in_multiprocess_mode(): | CODE |
| LOW | tests/unit/_internal/test_service_api.py | 52 | def test_get_valid_service_name(caplog: LogCaptureFixture): | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 98 | def test_from_fs_imports_safe_nested_archive(tmp_path: Path, archive_kind: str) -> None: | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 126 | def test_from_fs_preserves_safe_tar_symlink(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 164 | def test_from_fs_rejects_unsafe_member_paths( | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 215 | def test_from_fs_rejects_unsafe_tar_symlink_targets( | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 232 | def test_path_validator_rejects_nul_bytes() -> None: | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 239 | def test_from_fs_rejects_zip_symlink_entries(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 254 | def test_from_fs_rejects_tar_hardlinks(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 269 | def test_from_fs_rejects_tar_special_entries(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 284 | def test_from_fs_rejects_duplicate_file_destinations(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 299 | def test_from_fs_rejects_duplicate_file_symlink_destinations(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 314 | def test_from_fs_allows_repeated_directory_entries(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 330 | def test_from_fs_cleans_up_after_validation_failure( | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 355 | def test_from_fs_cleans_up_after_from_path_failure( | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 374 | def test_from_fs_imports_fsspec_directory_source(tmp_path: Path) -> None: | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 391 | def test_import_model_rejects_otherwise_valid_archive_with_traversal( | CODE |
| LOW | tests/unit/_internal/test_exportable.py | 417 | def test_import_bento_rejects_otherwise_valid_archive_with_traversal( | CODE |
| LOW | tests/unit/_internal/configuration/conftest.py | 17 | def fixture_container_from_file(tmp_path: Path) -> t.Callable[[str], ConfigDictType]: | CODE |
| LOW | tests/unit/_internal/configuration/conftest.py | 27 | def fixture_container_from_envvar(): | CODE |
| LOW | tests/unit/_internal/configuration/test_v1_migration.py | 17 | def test_backward_configuration( | CODE |
| LOW | tests/unit/_internal/configuration/test_v1_migration.py | 41 | def test_backward_from_envvar( | STRING |
| LOW | tests/unit/_internal/configuration/test_containers.py | 15 | def test_validate_configuration(container_from_file: t.Callable[[str], ConfigDictType]): | CODE |
| LOW | tests/unit/_internal/configuration/test_containers.py | 38 | def test_containers_from_envvar( | STRING |
| LOW | tests/unit/_internal/configuration/test_containers.py | 49 | def test_bentoml_configuration_runner_override( | STRING |
| LOW | tests/unit/_internal/configuration/test_containers.py | 119 | def test_runner_gpu_configuration( | STRING |
| LOW | tests/unit/_internal/configuration/test_containers.py | 166 | def test_expand_env_vars_in_values(container_from_file, monkeypatch): | STRING |
| LOW⚡ | tests/unit/_internal/configuration/test_helpers.py | 35 | def test_rename_fields_field_in_dict(): | CODE |
| LOW⚡ | tests/unit/_internal/configuration/test_helpers.py | 45 | def test_rename_fields_field_not_in_dict(): | CODE |
| LOW⚡ | tests/unit/_internal/configuration/test_helpers.py | 55 | def test_rename_fields_remove_only(): | CODE |
| LOW⚡ | tests/unit/_internal/configuration/test_helpers.py | 64 | def test_rename_fields_check_log(caplog: LogCaptureFixture): | CODE |
| LOW | tests/unit/_internal/configuration/test_helpers.py | 75 | def test_rename_fields_check_log_remove_only(caplog: LogCaptureFixture): | CODE |
| LOW | tests/unit/_internal/configuration/test_helpers.py | 83 | def test_rename_fields_exception(): | CODE |
| LOW | tests/unit/_internal/configuration/test_helpers.py | 103 | def test_valid_load_config_file(tmp_path: Path): | CODE |
| LOW | tests/unit/_internal/configuration/test_helpers.py | 109 | def test_invalid_load_config_file(): | CODE |
| LOW | tests/unit/_internal/configuration/test_helpers.py | 140 | def test_expand_env_in_values(monkeypatch: pytest.MonkeyPatch): | CODE |
| LOW | …s/unit/_internal/service_loader/test_import_service.py | 8 | def test_load_by_service_file(): | CODE |
| LOW | …s/unit/_internal/service_loader/test_import_service.py | 38 | def test_load_multi_service_module(): | CODE |
| LOW | …s/unit/_internal/service_loader/test_service_loader.py | 11 | def test_load_service_from_directory(): | CODE |
| LOW | …s/unit/_internal/service_loader/test_service_loader.py | 20 | def test_load_service_from_bento(): | CODE |
| LOW | tests/unit/_internal/runner/test_strategy.py | 34 | def test_default_gpu_strategy(monkeypatch: MonkeyPatch): | CODE |
| LOW | tests/unit/_internal/runner/test_strategy.py | 127 | def test_default_cpu_strategy(monkeypatch: MonkeyPatch): | CODE |
| LOW⚡ | tests/unit/_internal/runner/test_runner.py | 33 | def test_valid_runner_tag_with_dash(): | CODE |
| LOW⚡ | tests/unit/_internal/runner/test_runner.py | 38 | def test_valid_runner_tag_with_underscore(): | CODE |
| LOW⚡ | tests/unit/_internal/runner/test_runner.py | 43 | def test_valid_runner_tag_with_dot(): | CODE |
| LOW⚡ | tests/unit/_internal/runner/test_runner.py | 48 | def test_valid_runner_short_tag(): | CODE |
| LOW⚡ | tests/unit/_internal/runner/test_runner.py | 53 | def test_valid_runner_long_tag(): | CODE |
| 239 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .devcontainer/library-scripts/docker-debian.sh | 2 | #------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .devcontainer/library-scripts/docker-debian.sh | 5 | #------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .devcontainer/library-scripts/docker-debian.sh | 297 | #------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .devcontainer/library-scripts/docker-debian.sh | 300 | #------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .devcontainer/library-scripts/common-debian.sh | 2 | #------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | .devcontainer/library-scripts/common-debian.sh | 5 | #------------------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/deployment.yaml | 1 | # ============================================================================= | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/deployment.yaml | 35 | # ============================================================================= | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/ingress.yaml | 1 | # ============================================================================= | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/ingress.yaml | 16 | # ============================================================================= | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/service.yaml | 1 | # ============================================================================= | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/service.yaml | 24 | # ============================================================================= | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/hpa.yaml | 1 | # ============================================================================= | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/hpa.yaml | 23 | # ============================================================================= | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/hpa.yaml | 47 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/hpa.yaml | 54 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/hpa.yaml | 65 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/hpa.yaml | 109 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/config.yml | 1 | # ============================================================================= | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/config.yml | 21 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/bentoml-k8s-deploy/templates/config.yml | 53 | # ============================================================================= | COMMENT |
| MEDIUM | …ls/bentoml-deploy-scriptgen/templates/deploy/deploy.py | 231 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ls/bentoml-deploy-scriptgen/templates/deploy/deploy.py | 233 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ls/bentoml-deploy-scriptgen/templates/deploy/deploy.py | 364 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ls/bentoml-deploy-scriptgen/templates/deploy/deploy.py | 366 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ls/bentoml-deploy-scriptgen/templates/deploy/deploy.py | 437 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ls/bentoml-deploy-scriptgen/templates/deploy/deploy.py | 439 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 1 | # ============================================================================= | COMMENT |
| MEDIUM | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 46 | # ============================================================================= | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 363 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 365 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 488 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 490 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 563 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 565 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 1085 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 1087 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 1259 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 1261 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 1408 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 1410 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 1632 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/config.py | 1634 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/render.py | 120 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/render.py | 123 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/render.py | 192 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/render.py | 194 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/render.py | 263 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/render.py | 265 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/render.py | 541 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/render.py | 543 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/common.py | 179 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …-deploy-scriptgen/templates/deploy/_internal/common.py | 181 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …eploy-scriptgen/templates/deploy/_internal/topology.py | 264 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …eploy-scriptgen/templates/deploy/_internal/topology.py | 266 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …eploy-scriptgen/templates/deploy/_internal/topology.py | 332 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …eploy-scriptgen/templates/deploy/_internal/topology.py | 334 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …eploy-scriptgen/templates/deploy/_internal/topology.py | 418 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …eploy-scriptgen/templates/deploy/_internal/topology.py | 420 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …eploy-scriptgen/templates/deploy/_internal/topology.py | 506 | # -------------------------------------------------------------------------- | COMMENT |
| 27 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/unit/_internal/utils/circus/utils.py | 90 | except OSError: | CODE |
| HIGH | tests/unit/_internal/utils/circus/utils.py | 95 | except OSError: | CODE |
| HIGH | tests/unit/_internal/utils/circus/utils.py | 107 | except ConflictError: | CODE |
| HIGH | …sts/unit/_internal/bento/test_service_serialization.py | 35 | except NotFound: | CODE |
| HIGH | …sts/unit/_internal/bento/test_service_serialization.py | 39 | except NotFound: | CODE |
| HIGH | …oy-scriptgen/templates/deploy/_internal/targets/ec2.py | 818 | except OSError: | CODE |
| HIGH | …oy-scriptgen/templates/deploy/_internal/targets/k8s.py | 1339 | except OSError: | CODE |
| HIGH | src/bentoml_cli/containerize.py | 94 | except ImportError: | CODE |
| HIGH | src/bentoml_cli/api_token.py | 105 | except ValueError: | CODE |
| HIGH | src/_bentoml_impl/client/http.py | 456 | except (httpx.TimeoutException, httpx.ConnectError): | CODE |
| HIGH | src/_bentoml_impl/client/http.py | 666 | except (httpx.TimeoutException, httpx.ConnectError): | CODE |
| HIGH | src/_bentoml_impl/client/proxy2.py | 294 | except (aiohttp.ClientError, aiohttp.ServerTimeoutError): | CODE |
| HIGH | src/bentoml/server.py | 293 | except KeyboardInterrupt: | CODE |
| HIGH | src/bentoml/server.py | 195 | except KeyboardInterrupt: | CODE |
| HIGH | src/bentoml/__init__.py | 114 | except ModuleNotFoundError: | CODE |
| HIGH | src/bentoml/bentos.py | 425 | except FileNotFoundError: | CODE |
| HIGH | src/bentoml/_internal/resource.py | 261 | except Exception: # pylint: disable=broad-except | CODE |
| HIGH | src/bentoml/_internal/runner/utils.py | 94 | except StopIteration: | CODE |
| HIGH | src/bentoml/_internal/models/model.py | 711 | except NotFound: | CODE |
| HIGH | src/bentoml/_internal/cloud/deployment.py | 412 | except BentoMLException: | CODE |
| HIGH | src/bentoml/_internal/cloud/deployment.py | 973 | except ModuleNotFoundError: | CODE |
| HIGH | src/bentoml/_internal/cloud/client.py | 837 | except WebSocketNetworkError: | CODE |
| HIGH | src/bentoml/_internal/cloud/client.py | 812 | except (WebSocketNetworkError, LocalProtocolError): | CODE |
| HIGH | src/bentoml/_internal/cloud/bento.py | 466 | except NotFound: | CODE |
| HIGH | src/bentoml/_internal/cloud/bento.py | 407 | except OSError: | CODE |
| HIGH | src/bentoml/_internal/cloud/model.py | 346 | except OSError: | CODE |
| HIGH | src/bentoml/_internal/cloud/yatai.py | 432 | except NotFound: | CODE |
| HIGH | src/bentoml/_internal/bento/bento.py | 399 | except StopIteration: | CODE |
| HIGH | src/bentoml/_internal/bento/bento.py | 542 | except NotFound: | CODE |
| HIGH | src/bentoml/_internal/service/service.py | 187 | except NotFound: | CODE |
| HIGH | src/bentoml/_internal/monitoring/__init__.py | 20 | except (ImportError, MissingDependencyException): | CODE |
| HIGH | src/bentoml/_internal/frameworks/transformers.py | 714 | except bentoml.exceptions.NotFound: | CODE |
| HIGH | src/bentoml/_internal/frameworks/transformers.py | 772 | except AttributeError: | CODE |
| HIGH | src/bentoml/_internal/frameworks/keras.py | 123 | except RuntimeError: | CODE |
| HIGH | src/bentoml/_internal/frameworks/onnx.py | 263 | except PackageNotFoundError: | CODE |
| HIGH | src/bentoml/_internal/frameworks/tensorflow.py | 103 | except RuntimeError: | CODE |
| HIGH | src/bentoml/_internal/frameworks/tensorflow.py | 253 | except RuntimeError: | CODE |
| HIGH | src/bentoml/_internal/frameworks/diffusers.py | 461 | except bentoml.exceptions.NotFound: | CODE |
| HIGH | src/bentoml/_internal/frameworks/utils/tensorflow.py | 100 | except importlib.metadata.PackageNotFoundError: | CODE |
| HIGH | …entoml/_internal/frameworks/diffusers_runners/utils.py | 41 | except NotFound: | CODE |
| HIGH | src/_bentoml_sdk/io_models.py | 178 | except TypeError: | CODE |
| HIGH | src/_bentoml_sdk/io_models.py | 263 | except StopIteration: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/_bentoml_impl/frameworks/lightgbm.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/_bentoml_impl/frameworks/mlflow.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/_bentoml_impl/frameworks/catboost.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/_bentoml_impl/frameworks/xgboost.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/_bentoml_impl/frameworks/sklearn.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/transformers.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/fastai.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/keras.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/easyocr.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/onnx.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/tensorflow.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/pytorch_lightning.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/pytorch.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/detectron.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/torchscript.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/flax.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/picklable_model.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/frameworks/diffusers.py | 0 | private api: use :obj:`~bentoml.model.to_runnable` instead. | STRING |
| HIGH | src/bentoml/_internal/monitoring/otlp.py | 0 | export schema of the data. this method should be called after all data is logged. | STRING |
| HIGH | src/bentoml/_internal/monitoring/default.py | 0 | export schema of the data. this method should be called after all data is logged. | STRING |
| HIGH | src/bentoml/_internal/monitoring/base.py | 0 | export schema of the data. this method should be called after all data is logged. | STRING |
| HIGH | src/bentoml/_internal/monitoring/otlp.py | 0 | export data. this method should be called after all data is logged. | STRING |
| HIGH | src/bentoml/_internal/monitoring/default.py | 0 | export data. this method should be called after all data is logged. | STRING |
| HIGH | src/bentoml/_internal/monitoring/base.py | 0 | export data. this method should be called after all data is logged. | STRING |
| HIGH | src/bentoml/_internal/frameworks/transformers.py | 0 | get the bentoml model with the given tag. args: tag_like: the tag of the model to retrieve from the model store. returns | STRING |
| HIGH | src/bentoml/_internal/frameworks/fastai.py | 0 | get the bentoml model with the given tag. args: tag_like: the tag of the model to retrieve from the model store. returns | STRING |
| HIGH | src/bentoml/_internal/frameworks/keras.py | 0 | get the bentoml model with the given tag. args: tag_like: the tag of the model to retrieve from the model store. returns | STRING |
| HIGH | src/bentoml/_internal/frameworks/easyocr.py | 0 | get the bentoml model with the given tag. args: tag_like: the tag of the model to retrieve from the model store. returns | STRING |
| HIGH | src/bentoml/_internal/frameworks/onnx.py | 0 | get the bentoml model with the given tag. args: tag_like: the tag of the model to retrieve from the model store. returns | STRING |
| HIGH | src/bentoml/_internal/frameworks/detectron.py | 0 | get the bentoml model with the given tag. args: tag_like: the tag of the model to retrieve from the model store. returns | STRING |
| HIGH | src/bentoml/_internal/frameworks/diffusers.py | 0 | get the bentoml model with the given tag. args: tag_like: the tag of the model to retrieve from the model store. returns | STRING |
| HIGH | src/bentoml/grpc/v1/_generated_pb3/service_pb2_grpc.py | 0 | client and server classes corresponding to protobuf-defined services. | STRING |
| HIGH | src/bentoml/grpc/v1/_generated_pb4/service_pb2_grpc.py | 0 | client and server classes corresponding to protobuf-defined services. | STRING |
| HIGH | …ntoml/grpc/v1alpha1/_generated_pb3/service_pb2_grpc.py | 0 | client and server classes corresponding to protobuf-defined services. | STRING |
| HIGH | …ntoml/grpc/v1alpha1/_generated_pb4/service_pb2_grpc.py | 0 | client and server classes corresponding to protobuf-defined services. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/bentoml_cli/env_manager.py | 31 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml_cli/cloud.py | 169 | def update_current_context(context_name: str) -> None: # type: ignore (not accessed) | CODE |
| LOW | src/bentoml_cli/serve.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml_cli/utils.py | 487 | def set_build_args(ctx: Context, param: Parameter, value: str | tuple[str]) -> None: | CODE |
| LOW | src/bentoml_cli/utils.py | 504 | def set_build_args_from_file(ctx: Context, param: Parameter, value: str) -> None: | CODE |
| LOW | src/bentoml_cli/_internal/start.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/_bentoml_impl/tasks/__init__.py | 5 | __all__ = ["ResultStore", "ResultStatus", "Sqlite3Store"] | CODE |
| LOW | src/_bentoml_impl/tasks/result.py | 84 | async def set_result(self, task_id: str, result: To, status: ResultStatus) -> None: | CODE |
| LOW | src/_bentoml_impl/tasks/result.py | 88 | async def set_status(self, task_id: str, status: ResultStatus) -> None: | CODE |
| LOW | src/_bentoml_impl/tasks/result.py | 201 | async def set_status(self, task_id: str, status: ResultStatus) -> None: | STRING |
| LOW | src/_bentoml_impl/server/__init__.py | 11 | __all__ = ["serve_http"] | CODE |
| LOW | src/_bentoml_impl/frameworks/xgboost.py | 53 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/_bentoml_impl/client/__init__.py | 11 | __all__ = [ | CODE |
| LOW | src/_bentoml_impl/client/http.py | 420 | def _setup(self) -> None: | CODE |
| LOW | src/_bentoml_impl/client/http.py | 630 | async def _setup(self) -> None: | CODE |
| LOW | src/_bentoml_impl/client/proxy2.py | 256 | async def _setup(self) -> None: | CODE |
| LOW | src/_bentoml_impl/client/base.py | 44 | def _setup_endpoints(self) -> None: | CODE |
| LOW | src/bentoml/server.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/server.py | 46 | __all__ = ["Server", "GrpcServer", "HTTPServer"] | CODE |
| LOW | src/bentoml/triton.py | 79 | __all__ = ["Runner"] | CODE |
| LOW | src/bentoml/legacy.py | 16 | __all__ = [ | CODE |
| LOW | src/bentoml/models.py | 384 | __all__ = [ | CODE |
| LOW | src/bentoml/deployment.py | 378 | __all__ = ["create", "get", "update", "apply", "terminate", "start", "delete", "list"] | CODE |
| LOW | src/bentoml/serving.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/monitoring.py | 5 | __all__ = ["MonitorBase", "monitor", "DefaultMonitor"] | CODE |
| LOW | src/bentoml/validators.py | 9 | __all__ = [ | CODE |
| LOW | src/bentoml/client.py | 28 | __all__ = [ | CODE |
| LOW | src/bentoml/batch.py | 5 | __all__ = ["run_in_spark"] | CODE |
| LOW | src/bentoml/io.py | 24 | __all__ = [ | CODE |
| LOW | src/bentoml/api_token.py | 124 | __all__ = ["create", "get", "list", "delete"] | CODE |
| LOW | src/bentoml/__init__.py | 323 | __all__ = [ | CODE |
| LOW | src/bentoml/ray.py | 3 | __all__ = ["deployment"] | CODE |
| LOW | src/bentoml/types.py | 6 | __all__ = ["ModelSignature", "ModelSignatureDict"] | CODE |
| LOW | src/bentoml/start.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/container.py | 34 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/container.py | 461 | __all__ = ["build", "health", "register_backend", "get_backend", "get_containerfile"] | CODE |
| LOW | src/bentoml/bentos.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/bentos.py | 44 | __all__ = [ | CODE |
| LOW | src/bentoml/images.py | 18 | __all__ = ["Image"] | CODE |
| LOW | src/bentoml/diffusers_simple.py | 6 | __all__ = ["stable_diffusion", "stable_diffusion_xl"] | CODE |
| LOW | src/bentoml/gradio.py | 3 | __all__ = ["mount_gradio_app"] | CODE |
| LOW | src/bentoml/_internal/resource.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/_internal/types.py | 19 | __all__ = [ | CODE |
| LOW | src/bentoml/_internal/types.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/_internal/tag.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/_internal/configuration/containers.py | 44 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/_internal/configuration/__init__.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW⚡ | src/bentoml/_internal/configuration/__init__.py | 139 | def set_verbosity(verbosity: int) -> None: | CODE |
| LOW⚡ | src/bentoml/_internal/configuration/__init__.py | 149 | def set_debug_mode(enabled: bool = True) -> None: | CODE |
| LOW⚡ | src/bentoml/_internal/configuration/__init__.py | 153 | def set_quiet_mode(enabled: bool = True) -> None: | CODE |
| LOW | src/bentoml/_internal/configuration/helpers.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/_internal/external_typing/tensorflow.py | 89 | __all__ = [ | CODE |
| LOW | src/bentoml/_internal/marshal/dispatcher.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/_internal/runner/runner.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/_internal/runner/__init__.py | 4 | __all__ = ["Runner", "Runnable"] | CODE |
| LOW | src/bentoml/_internal/runner/strategy.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/_internal/runner/utils.py | 12 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/_internal/runner/runnable.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/_internal/runner/runner_handle/remote.py | 57 | logger = logging.getLogger(__name__) | CODE |
| LOW | src/bentoml/_internal/runner/runner_handle/__init__.py | 20 | logger = logging.getLogger(__name__) | CODE |
| 112 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/generate_coverage.py | 15 | CODE | |
| LOW | tests/unit/conftest.py | 22 | CODE | |
| LOW | tests/unit/_internal/bento/test_src_layout.py | 42 | CODE | |
| LOW | tests/unit/_internal/bento/test_src_layout.py | 85 | CODE | |
| LOW | tests/unit/grpc/interceptors/test_prometheus.py | 118 | CODE | |
| LOW | …ls/bentoml-deploy-scriptgen/templates/deploy/deploy.py | 453 | CODE | |
| LOW | …-deploy-scriptgen/templates/deploy/_internal/config.py | 150 | CODE | |
| LOW | …-deploy-scriptgen/templates/deploy/_internal/config.py | 170 | CODE | |
| LOW | …-deploy-scriptgen/templates/deploy/_internal/render.py | 145 | CODE | |
| LOW | …eploy-scriptgen/templates/deploy/_internal/topology.py | 126 | CODE | |
| LOW | …oy-scriptgen/templates/deploy/_internal/targets/ec2.py | 887 | CODE | |
| LOW | …oy-scriptgen/templates/deploy/_internal/targets/k8s.py | 163 | CODE | |
| LOW | …oy-scriptgen/templates/deploy/_internal/targets/k8s.py | 1432 | CODE | |
| LOW | …oy-scriptgen/templates/deploy/_internal/targets/k8s.py | 1545 | CODE | |
| LOW | …oy-scriptgen/templates/deploy/_internal/targets/k8s.py | 644 | CODE | |
| LOW | …oy-scriptgen/templates/deploy/_internal/targets/k8s.py | 737 | CODE | |
| LOW | src/bentoml_cli/deployment.py | 68 | CODE | |
| LOW | src/bentoml_cli/cloud.py | 50 | CODE | |
| LOW | src/bentoml_cli/containerize.py | 43 | CODE | |
| LOW | src/bentoml_cli/containerize.py | 447 | CODE | |
| LOW | src/bentoml_cli/containerize.py | 69 | CODE | |
| LOW | src/bentoml_cli/api_token.py | 84 | CODE | |
| LOW | src/bentoml_cli/secret.py | 45 | CODE | |
| LOW | src/_bentoml_impl/serde.py | 222 | CODE | |
| LOW | src/_bentoml_impl/arrow.py | 30 | CODE | |
| LOW | src/_bentoml_impl/arrow.py | 47 | CODE | |
| LOW | src/_bentoml_impl/server/serving.py | 160 | CODE | |
| LOW | src/_bentoml_impl/server/app.py | 760 | CODE | |
| LOW | src/_bentoml_impl/worker/patch.py | 28 | CODE | |
| LOW | src/_bentoml_impl/worker/runner.py | 85 | CODE | |
| LOW | src/_bentoml_impl/client/http.py | 73 | CODE | |
| LOW | src/_bentoml_impl/client/http.py | 192 | CODE | |
| LOW | src/_bentoml_impl/client/proxy2.py | 373 | CODE | |
| LOW | src/bentoml/server.py | 62 | CODE | |
| LOW | src/bentoml/serving.py | 53 | CODE | |
| LOW | src/bentoml/serving.py | 311 | CODE | |
| LOW | src/bentoml/serving.py | 560 | CODE | |
| LOW | src/bentoml/start.py | 27 | CODE | |
| LOW | src/bentoml/_internal/exportable.py | 137 | CODE | |
| LOW | src/bentoml/_internal/resource.py | 124 | CODE | |
| LOW | src/bentoml/_internal/configuration/containers.py | 309 | CODE | |
| LOW | src/bentoml/_internal/configuration/helpers.py | 188 | CODE | |
| LOW | src/bentoml/_internal/marshal/dispatcher.py | 198 | CODE | |
| LOW | src/bentoml/_internal/marshal/dispatcher.py | 253 | CODE | |
| LOW | src/bentoml/_internal/marshal/dispatcher.py | 336 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/pandas.py | 69 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/pandas.py | 163 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/pandas.py | 344 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/pandas.py | 438 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/pandas.py | 945 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/pandas.py | 1093 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/numpy.py | 489 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/file.py | 291 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/file.py | 318 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/utils.py | 42 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/json.py | 207 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/json.py | 337 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/json.py | 434 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/image.py | 202 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/image.py | 308 | CODE | |
| 73 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tests/unit/_internal/runner/test_container.py | 85 | assert batch.equals(pd.concat(batches, ignore_index=True)) | CODE |
| HIGH⚡ | tests/unit/_internal/runner/test_container.py | 90 | assert df1.equals(restored_df1) | CODE |
| HIGH⚡ | tests/unit/_internal/runner/test_container.py | 91 | assert df2.equals(restored_df2) | CODE |
| HIGH⚡ | tests/unit/_internal/runner/test_container.py | 101 | assert restored_batch.equals(batch) | CODE |
| HIGH | …oy-scriptgen/templates/deploy/_internal/targets/ec2.py | 82 | '__v=$(printf %s "$__b" | base64 -d && printf x) || exit 78; ' | CODE |
| HIGH | …oy-scriptgen/templates/deploy/_internal/targets/ec2.py | 311 | "elif ! sudo -n true 2>/dev/null; then echo docker=no-sudo; " | CODE |
| HIGH | …oy-scriptgen/templates/deploy/_internal/targets/ec2.py | 312 | f"elif __v=$(sudo -n docker info --format {fmt_version} 2>/dev/null); " | CODE |
| HIGH | …oy-scriptgen/templates/deploy/_internal/targets/ec2.py | 358 | hint="Amazon Linux 2023: sudo dnf install -y docker && sudo " | CODE |
| HIGH | …oy-scriptgen/templates/deploy/_internal/targets/ec2.py | 360 | "install -y docker.io && sudo systemctl enable --now docker", | CODE |
| HIGH | src/bentoml_cli/models.py | 360 | cloud_client.model.push( | CODE |
| HIGH | src/bentoml_cli/bentos.py | 360 | cloud_client.bento.push(bento_obj, force=force, threads=threads) | CODE |
| HIGH | src/bentoml_cli/bentos.py | 396 | help="Whether to containerize the Bento after building. '--containerize' is the shortcut of 'bentoml build && be | CODE |
| HIGH | src/bentoml_cli/bentos.py | 490 | cloud_client.bento.push(bento, force=force, threads=threads) | CODE |
| HIGH | src/bentoml/models.py | 223 | _cloud_client.model.push(model_obj, force=force) | CODE |
| HIGH | src/bentoml/bentos.py | 261 | _cloud_client.bento.push(bento, force=force) | CODE |
| HIGH | …ml/_internal/container/frontend/dockerfile/__init__.py | 89 | "default_install_command": "yum update && yum install -y amazon-linux-extras ca-certificates " | CODE |
| HIGH | …ml/_internal/container/frontend/dockerfile/__init__.py | 90 | 'gcc gcc-c++ make bash shadow-utils && amazon-linux-extras enable && yum groupinstall -y "Development Tools"', | CODE |
| HIGH | …ml/_internal/container/frontend/dockerfile/__init__.py | 104 | "default_install_command": "yum update && yum install -y ca-certificates gcc gcc-c++ make bash shadow-utils git" | CODE |
| HIGH | …ml/_internal/container/frontend/dockerfile/__init__.py | 122 | "default_install_command": "apt-get update && apt-get install -q -y --no-install-recommends " | CODE |
| HIGH | src/bentoml/_internal/cloud/deployment.py | 377 | bento_api.push(bento=bento_obj, bare=bare) | CODE |
| HIGH | src/bentoml/_internal/cloud/deployment.py | 395 | bento_api.push(bento=bento_obj, bare=bare) | CODE |
| HIGH | src/bentoml/_internal/cloud/deployment.py | 418 | bento_api.push(bento=bento_obj, bare=bare) | CODE |
| HIGH | src/bentoml/_internal/cloud/deployment.py | 1650 | content += f"apt-get update && apt-get install -y {quoted} || exit 1\n".encode() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/_bentoml_impl/frameworks/sklearn.py | 88 | Save a model instance to BentoML modelstore. Args: name: Name for given model instance. This should pa | STRING |
| HIGH | src/bentoml/models.py | 73 | Import a bento model exported with :code:`bentoml.models.export_model`. To import a model saved with a framewor | STRING |
| HIGH | src/bentoml/models.py | 146 | Export a BentoML model. Examples: .. code-block:: python # exports 'my_model' to '/path/to/folde | STRING |
| HIGH | src/bentoml/bentos.py | 96 | Import a bento. Examples: .. code-block:: python # imports 'my_bento' from '/path/to/folder/my_b | STRING |
| HIGH | src/bentoml/bentos.py | 178 | Export a bento. To export a bento to S3, you must install BentoML with extras ``aws``: .. code-block:: ba | STRING |
| HIGH | src/bentoml/_internal/io_descriptors/pandas.py | 513 | Process incoming requests and convert incoming objects to `pd.DataFrame` Args: req | STRING |
| HIGH | src/bentoml/_internal/io_descriptors/numpy.py | 430 | Create a :class:`~bentoml._internal.io_descriptors.numpy.NumpyNdarray` IO Descriptor from given inputs. | STRING |
| HIGH | src/bentoml/_internal/io_descriptors/file.py | 127 | Create a :class:`~bentoml._internal.io_descriptors.file.File` IO Descriptor from given inputs. Args: | STRING |
| HIGH | src/bentoml/_internal/io_descriptors/json.py | 208 | Create a :class:`~bentoml._internal.io_descriptors.json.JSON` IO Descriptor from given inputs. Args: | STRING |
| HIGH | src/bentoml/_internal/io_descriptors/image.py | 203 | Create a :class:`~bentoml._internal.io_descriptors.image.Image` IO Descriptor from given inputs. Args: | STRING |
| HIGH | src/bentoml/_internal/frameworks/transformers.py | 938 | Save a model instance to BentoML modelstore. Args: name: Name for given model instance. This should pa | STRING |
| HIGH | src/bentoml/_internal/frameworks/keras.py | 83 | Load a model from BentoML local modelstore with given name. Args: bento_model (``str`` ``|`` :obj:`~be | STRING |
| HIGH | src/bentoml/_internal/frameworks/keras.py | 148 | Save a model instance to BentoML modelstore. Args: name: Name for given model instance. This should pa | STRING |
| HIGH | src/bentoml/_internal/frameworks/easyocr.py | 112 | Save a model instance to BentoML modelstore. Args: name: Name for given model instance. This should pa | STRING |
| HIGH | src/bentoml/_internal/frameworks/tensorflow.py | 66 | Load a tensorflow model from BentoML local modelstore with given name. Args: bento_model: Either the t | STRING |
| HIGH | src/bentoml/_internal/frameworks/tensorflow.py | 123 | Save a model instance to BentoML modelstore. Args: name: Name for given model instance. This should pa | STRING |
| HIGH | src/bentoml/_internal/frameworks/pytorch_lightning.py | 46 | Load a model from BentoML local modelstore with given name. Args: tag (:code:`Union[str, Tag]`): | STRING |
| HIGH | src/bentoml/_internal/frameworks/pytorch_lightning.py | 89 | Save a model instance to BentoML modelstore. Args: name (:code:`str`): Name for given mode | STRING |
| HIGH | src/bentoml/_internal/frameworks/pytorch.py | 52 | Load a model from a BentoML Model with given name. Args: tag (:code:`Union[str, Tag]`): Ta | STRING |
| HIGH | src/bentoml/_internal/frameworks/pytorch.py | 97 | Save a model instance to BentoML modelstore. Args: name (:code:`str`): Name for given mode | STRING |
| HIGH | src/bentoml/_internal/frameworks/detectron.py | 142 | Save a model instance to BentoML modelstore. Args: name: Name for given model instance. This should pa | STRING |
| HIGH | src/bentoml/_internal/frameworks/torchscript.py | 43 | Load a model from BentoML local modelstore with given name. Args: tag: Tag of a saved mode | STRING |
| HIGH | src/bentoml/_internal/frameworks/torchscript.py | 94 | Save a model instance to BentoML modelstore. Args: name (:code:`str`): Name for given mode | STRING |
| HIGH | src/bentoml/_internal/frameworks/picklable_model.py | 86 | Save a model instance to BentoML modelstore. Args: name: Name for given model instance. This should pa | STRING |
| HIGH | src/bentoml/grpc/utils/_import_hook.py | 15 | Import generated stubs. Args: version: The version of the proto file to import. file: The name | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/_internal/io/test_multipart.py | 112 | except Exception as e: | CODE |
| LOW | tests/unit/_internal/cloud/test_deployment.py | 502 | except Exception as e: | CODE |
| LOW | …ls/bentoml-deploy-scriptgen/templates/deploy/deploy.py | 667 | except Exception as exc: # noqa: BLE001 - never die without a summary | CODE |
| LOW | …-deploy-scriptgen/templates/deploy/_internal/common.py | 167 | except Exception as exc: # noqa: BLE001 - deliberate broad retry | CODE |
| LOW | …oy-scriptgen/templates/deploy/_internal/targets/k8s.py | 1088 | except Exception: | CODE |
| LOW | …oy-scriptgen/templates/deploy/_internal/targets/k8s.py | 1143 | except Exception: | CODE |
| LOW | src/_bentoml_impl/server/serving.py | 404 | except Exception: | CODE |
| LOW | src/_bentoml_impl/server/proxy.py | 152 | except Exception: | CODE |
| LOW | src/_bentoml_impl/server/app.py | 175 | except Exception: | CODE |
| LOW | src/_bentoml_impl/server/app.py | 519 | except Exception as e: | CODE |
| LOW | src/_bentoml_impl/server/app.py | 541 | except Exception as e: | CODE |
| LOW | src/_bentoml_impl/server/app.py | 593 | except Exception: | CODE |
| LOW | src/_bentoml_impl/server/app.py | 603 | except Exception as e: | CODE |
| LOW | src/_bentoml_impl/server/app.py | 741 | except Exception: | CODE |
| LOW | src/bentoml/server.py | 316 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/models.py | 310 | except Exception: | CODE |
| LOW | src/bentoml/models.py | 366 | except Exception: | CODE |
| LOW | src/bentoml/deployment.py | 328 | except Exception as e: | CODE |
| LOW | src/bentoml/serving.py | 80 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/serving.py | 93 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/serving.py | 554 | except Exception: | CODE |
| LOW | src/bentoml/serving.py | 830 | except Exception: | CODE |
| LOW | src/bentoml/bentos.py | 476 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/store.py | 172 | except Exception: | CODE |
| LOW | src/bentoml/_internal/exportable.py | 313 | except Exception: | CODE |
| LOW | src/bentoml/_internal/resource.py | 261 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/marshal/dispatcher.py | 250 | except Exception: | CODE |
| LOW | src/bentoml/_internal/marshal/dispatcher.py | 283 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/marshal/dispatcher.py | 324 | except Exception: | CODE |
| LOW | src/bentoml/_internal/marshal/dispatcher.py | 359 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/marshal/dispatcher.py | 382 | except Exception: | CODE |
| LOW | src/bentoml/_internal/runner/runner.py | 314 | except Exception as e: | CODE |
| LOW | src/bentoml/_internal/runner/runner_handle/remote.py | 413 | except Exception: | CODE |
| LOW | src/bentoml/_internal/runner/runner_handle/remote.py | 454 | except Exception: | CODE |
| LOW | src/bentoml/_internal/runner/runner_handle/remote.py | 474 | except Exception: | CODE |
| LOW | src/bentoml/_internal/server/runner_app.py | 217 | except Exception: | CODE |
| LOW | src/bentoml/_internal/server/runner_app.py | 251 | except Exception: | CODE |
| LOW | src/bentoml/_internal/server/runner_app.py | 285 | except Exception: | CODE |
| LOW | src/bentoml/_internal/server/http_app.py | 384 | except Exception: # pylint: disable=broad-except | STRING |
| LOW | src/bentoml/_internal/server/grpc_app.py | 232 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | …/bentoml/_internal/server/grpc/servicer/v1/__init__.py | 116 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | …ml/_internal/server/grpc/servicer/v1alpha1/__init__.py | 115 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/utils/benchmark.py | 324 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/utils/filesystem.py | 92 | except Exception as exc: | CODE |
| LOW | src/bentoml/_internal/utils/analytics/usage_stats.py | 76 | except Exception as err: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/container/__init__.py | 80 | except Exception as err: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/container/__init__.py | 307 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/container/__init__.py | 370 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/batch/spark.py | 52 | except Exception: | CODE |
| LOW | src/bentoml/_internal/cloud/deployment.py | 110 | except Exception as e: | CODE |
| LOW | src/bentoml/_internal/cloud/deployment.py | 328 | except Exception as e: | CODE |
| LOW | src/bentoml/_internal/cloud/deployment.py | 1033 | except Exception as e: | CODE |
| LOW | src/bentoml/_internal/cloud/bento.py | 252 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/cloud/bento.py | 382 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/cloud/model.py | 189 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/cloud/model.py | 320 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/cloud/yatai.py | 254 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/cloud/yatai.py | 372 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/cloud/yatai.py | 687 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | src/bentoml/_internal/cloud/yatai.py | 806 | except Exception as e: # pylint: disable=broad-except | CODE |
| 15 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/integration/frameworks/models/onnx.py | 60 | CODE | |
| LOW | tests/e2e/bento_server_http/service.py | 76 | CODE | |
| LOW | …-deploy-scriptgen/templates/deploy/_internal/common.py | 91 | CODE | |
| LOW | src/bentoml_cli/deployment.py | 902 | CODE | |
| LOW | src/_bentoml_impl/server/serving.py | 160 | CODE | |
| LOW | src/_bentoml_impl/server/app.py | 666 | CODE | |
| LOW | src/_bentoml_impl/frameworks/lightgbm.py | 278 | CODE | |
| LOW | src/_bentoml_impl/frameworks/xgboost.py | 336 | CODE | |
| LOW | src/_bentoml_impl/client/proxy2.py | 151 | CODE | |
| LOW | src/bentoml/server.py | 324 | CODE | |
| LOW | src/bentoml/server.py | 413 | CODE | |
| LOW | src/bentoml/models.py | 260 | CODE | |
| LOW | src/bentoml/models.py | 278 | CODE | |
| LOW | src/bentoml/models.py | 327 | CODE | |
| LOW | src/bentoml/deployment.py | 30 | CODE | |
| LOW | src/bentoml/deployment.py | 69 | CODE | |
| LOW | src/bentoml/deployment.py | 134 | CODE | |
| LOW | src/bentoml/deployment.py | 174 | CODE | |
| LOW | src/bentoml/serving.py | 226 | CODE | |
| LOW | src/bentoml/serving.py | 311 | CODE | |
| LOW | src/bentoml/serving.py | 560 | CODE | |
| LOW | src/bentoml/start.py | 146 | CODE | |
| LOW | src/bentoml/start.py | 264 | CODE | |
| LOW | src/bentoml/container.py | 38 | CODE | |
| LOW | src/bentoml/container.py | 68 | CODE | |
| LOW | src/bentoml/container.py | 94 | CODE | |
| LOW | src/bentoml/container.py | 137 | CODE | |
| LOW | src/bentoml/container.py | 181 | CODE | |
| LOW | src/bentoml/container.py | 280 | CODE | |
| LOW | src/bentoml/bentos.py | 276 | CODE | |
| LOW | src/bentoml/bentos.py | 382 | CODE | |
| LOW | src/bentoml/bentos.py | 481 | CODE | |
| LOW | src/bentoml/_internal/runner/runner.py | 168 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/pandas.py | 320 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/pandas.py | 475 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/pandas.py | 982 | CODE | |
| LOW | src/bentoml/_internal/io_descriptors/numpy.py | 306 | CODE | |
| LOW | src/bentoml/_internal/server/grpc_app.py | 67 | CODE | |
| LOW | src/bentoml/_internal/container/buildx.py | 62 | CODE | |
| LOW | src/bentoml/_internal/container/podman.py | 57 | CODE | |
| LOW | src/bentoml/_internal/container/buildah.py | 44 | CODE | |
| LOW | src/bentoml/_internal/container/docker.py | 64 | CODE | |
| LOW | src/bentoml/_internal/cloud/deployment.py | 351 | CODE | |
| LOW | src/bentoml/_internal/monitoring/otlp.py | 104 | CODE | |
| LOW | src/bentoml/_internal/frameworks/transformers.py | 615 | CODE | |
| LOW | src/bentoml/_internal/frameworks/transformers.py | 922 | CODE | |
| LOW | src/bentoml/_internal/frameworks/keras.py | 133 | CODE | |
| LOW | src/bentoml/_internal/frameworks/torchscript.py | 81 | CODE | |
| LOW | src/bentoml/_internal/frameworks/diffusers.py | 197 | CODE | |
| LOW | src/bentoml/_internal/frameworks/diffusers.py | 377 | CODE | |
| LOW | …al/frameworks/diffusers_runners/stable_diffusion_xl.py | 32 | CODE | |
| LOW | …ernal/frameworks/diffusers_runners/stable_diffusion.py | 31 | CODE | |
| LOW | src/bentoml/grpc/v1/_generated_pb3/service_pb2_grpc.py | 73 | CODE | |
| LOW | src/bentoml/grpc/v1/_generated_pb3/service_pb2_grpc.py | 90 | CODE | |
| LOW | src/bentoml/grpc/v1/_generated_pb4/service_pb2_grpc.py | 73 | CODE | |
| LOW | src/bentoml/grpc/v1/_generated_pb4/service_pb2_grpc.py | 90 | CODE | |
| LOW | …ntoml/grpc/v1alpha1/_generated_pb3/service_pb2_grpc.py | 56 | CODE | |
| LOW | …ntoml/grpc/v1alpha1/_generated_pb4/service_pb2_grpc.py | 56 | CODE | |
| LOW | src/bentoml/testing/server.py | 412 | CODE | |
| LOW | src/_bentoml_sdk/decorators.py | 47 | CODE | |
| 6 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/source/_templates/base.html | 21 | primaryColor: '#47AFD1', | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/deployment.yaml | 1 | # ============================================================================= | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/deployment.yaml | 21 | # 1. `args:` only -- NEVER `command:`. The image entrypoint activates the venv | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/deployment.yaml | 41 | name: {{SLUG}} | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/deployment.yaml | 101 | containerPort: 3000 # BentoML's HTTP port; changing it means setting BENTOML_PORT too | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/deployment.yaml | 121 | value: "{{SERVE_DEPENDS}}" | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/deployment.yaml | 141 | # requests = what the scheduler reserves (and what CPU-percentage HPAs are | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/deployment.yaml | 161 | memory: "{{MEMORY_LIMIT}}" | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/ingress.yaml | 1 | # ============================================================================= | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/service.yaml | 1 | # ============================================================================= | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/hpa.yaml | 1 | # ============================================================================= | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/hpa.yaml | 61 | # <- services.<Name>.autoscaling.target (percent). 70 is a sane start; | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/hpa.yaml | 81 | # NOT from these metrics, so every kubelet /readyz and /livez hit shows up in | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/hpa.yaml | 101 | # target: | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/namespace.yaml | 1 | # The optional Namespace object (<- kubernetes.namespace). | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 1 | # ============================================================================= | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 21 | # ----------------------------------------------------------------------------- | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 41 | # * the registry type: an `*.dkr.ecr.<region>.amazonaws.com` host means ECR | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 61 | # at the project root. | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 81 | # kubectl context to deploy into. Always confirmed with a human first -- | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 101 | # anything here: overriding app.kubernetes.io/name would desync a Deployment's | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 121 | # startup_failure_threshold 60 | readiness_timeout_seconds 6 | no HPA | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 141 | # autoscaling.enabled is true, so the HPA and this value cannot fight. | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 161 | # nvidia.com/gpu: "1" | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 181 | # tracing). It BEATS the @bentoml.service(...) decorator -- but only under | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 201 | # gives that dependency a HARD-CODED 5s budget, so /readyz can | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 221 | # service_name is the BENTO name. | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 241 | # -- which replaces the derived value entirely (nothing is emitted twice) | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 261 | # NodePort only, 30000-32767. Omit/null to let Kubernetes pick -- pinning | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 281 | # keep any timeout >= this service's traffic.timeout. | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 301 | body: | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 1 | # ============================================================================= | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 21 | # | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 41 | # `image`, `kubernetes.context`, `kubernetes.namespace`. Everything below has a | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 61 | build_target: null | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 81 | # rendered with it, so services cannot be split across namespaces). It must | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 101 | # ESCAPE HATCH — leave null unless you have outgrown this config. | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 121 | # no service in the bento is a load-time error — that is the typo guard, and the | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 141 | # DNS-1035 label (^[a-z]([-a-z0-9]*[a-z0-9])?$ — e.g. a service name | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 161 | # GPUs go here as limits only, integer, e.g. nvidia.com/gpu: "1" | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 181 | # decorator and loses, while the per-service form beats it. Example: | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 201 | # startupProbe budget = this x periodSeconds 10. 60 -> 10 minutes of | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 221 | # works only because requests.cpu is always set). A poor | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 241 | # preserves the existing allocation). | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 261 | # the service name. Services you never mention here need no block at all. | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 281 | # OPTIONAL post-deploy smoke test against the ENTRY service. Delete the whole | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 301 | # Public IPs/DNS names of existing, SSH-reachable instances. Bare hosts, no | COMMENT |
| LOW | …s/bentoml-deploy-scriptgen/templates/deploy/config.yml | 321 | # host (never touches instance IAM) | COMMENT |
| LOW | …-deploy-scriptgen/templates/deploy/_internal/render.py | 61 | # bentoml-k8s-deploy skill renders: both skills emit the same manifest shape from | COMMENT |
| LOW | src/bentoml_cli/__init__.py | 1 | # DO NOT IMPORT ANYTHING HERE | COMMENT |
| LOW | src/bentoml_cli/worker/__init__.py | 1 | # DO NOT IMPORT ANYTHING HERE | COMMENT |
| LOW | src/bentoml/_internal/resource.py | 181 | return cpu_count | COMMENT |
| LOW | src/bentoml/_internal/resource.py | 201 | # "E": 1000**6, | COMMENT |
| LOW | src/bentoml/_internal/utils/dotenv.py | 1 | # The MIT License (MIT) | COMMENT |
| LOW | src/bentoml/_internal/utils/pickle.py | 1 | from __future__ import annotations | COMMENT |
| LOW | src/bentoml/_internal/cloud/deployment.py | 181 | ) | COMMENT |
| LOW | src/_bentoml_sdk/gradio.py | 61 | # @bentoml.service() decorator returns a wrapper instead of the original class | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/_bentoml_impl/worker/patch.py | 50 | # Define a new class to wrap around the original safe_open class | COMMENT |
| MEDIUM | src/bentoml/_internal/server/grpc_app.py | 105 | # Create a health check servicer. We use the non-blocking implementation | COMMENT |
| MEDIUM | src/bentoml/_internal/utils/formparser.py | 98 | # Create the parser. | COMMENT |
| MEDIUM | src/bentoml/_internal/utils/formparser.py | 261 | # Create the parser. | COMMENT |
| MEDIUM | src/bentoml/_internal/bento/build_config.py | 796 | """This class is intended for modeling the bentofile.yaml file where user will | STRING |
| MEDIUM | src/bentoml/grpc/v1/_generated_pb3/service_pb2_grpc.py | 67 | # This class is part of an EXPERIMENTAL API. | COMMENT |
| MEDIUM | src/bentoml/grpc/v1/_generated_pb4/service_pb2_grpc.py | 67 | # This class is part of an EXPERIMENTAL API. | COMMENT |
| MEDIUM | …ntoml/grpc/v1alpha1/_generated_pb3/service_pb2_grpc.py | 50 | # This class is part of an EXPERIMENTAL API. | COMMENT |
| MEDIUM | …ntoml/grpc/v1alpha1/_generated_pb4/service_pb2_grpc.py | 50 | # This class is part of an EXPERIMENTAL API. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/bentoml/_internal/server/grpc_app.py | 201 | if BentoMLContainer.api_server_config.logging.access.enabled.get(): | CODE |
| CRITICAL | …/bentoml/_internal/server/static_content/marked.min.js | 6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .devcontainer/library-scripts/docker-debian.sh | 130 | # Check if distro is suppported | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 74 | # Set it to "" only for a local cluster where you load the image onto the nodes | COMMENT |
| LOW | skills/bentoml-k8s-deploy/templates/config.yml | 106 | # Set it to a directory and those files are applied AS-IS: nothing here shapes | COMMENT |
| LOW | src/bentoml/_internal/utils/formparser.py | 267 | # Write file data, it needs to use await with the UploadFile methods | COMMENT |
| LOW | src/bentoml/_internal/frameworks/transformers.py | 415 | # Set trust_remote_code to True to allow loading custom pipeline. | COMMENT |
| LOW | src/_bentoml_sdk/gradio.py | 62 | # Check if the object is an instance of Service | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unit/grpc/interceptors/test_prometheus.py | 76 | # if it isn't a pb.Request, then we just pass the handler, hence metrics should be empty | COMMENT |
| LOW | src/bentoml/_internal/io_descriptors/pandas.py | 567 | # by the request's headers['content-type']. Instead we simply use the _default_format. | COMMENT |
| MEDIUM | src/bentoml/_internal/server/http/instruments.py | 221 | # place holder metrics to initialize endpoints with 0 to facilitate rate calculation | COMMENT |
| MEDIUM | src/bentoml/_internal/ray/__init__.py | 30 | """'ray[serve]' is required in order to use module 'bentoml.ray', install with 'pip install -U "ray[serve]"'. Se | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/monitoring/task_classification/README.md | 112 | api_key: <your_api_key> | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/source/_templates/base.html | 29 | // email: 'test@test.com', | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/_bentoml_impl/server/app.py | 774 | # NOTE: The following check is for security concern, DO NOT REMOVE | COMMENT |