AI Slop Code RIsk Monitor

gpustack/gpustack

A GPU cluster manager for high-performance AI model serving (vLLM, SGLang) and on-demand SSH-accessible GPU instances.

26.3 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for gpustack/gpustack, a Python project with 5,811 GitHub stars. SynthScan examined 375,961 lines of code across 1042 source files, recording 8587 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 26.3 (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.

26.3
Adjusted Signal
26.3
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
5.8K
Stars
Python
Language
376.0K
Lines of Code
1.0K
Files
8.6K
Pattern Hits
2026-10-12
Scan Date
0.24
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 58.4/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 6844 finding(s).

Hallucinated Dependency & Supply Chain Risk 6.5/100 · LOW

Are imports declared and package/API names verified? 376 finding(s).

Agent Over-Engineering Ratio 67.7/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 7463 finding(s).

PR Review Velocity Impact 75.3/100 · CRITICAL

Which changes need focused human review? 8587 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

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.

CRITICAL 1HIGH 251MEDIUM 331LOW 8004

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 8587 distinct pattern matches across 26 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.

Hyper-Verbose Identifiers6084 hits · 5695 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_extension.py51 def test_core_values_without_a_plugin(self, monkeypatch):CODE
LOW⚡tests/test_extension.py58 def test_a_plugin_overrides_both_values(self, monkeypatch):CODE
LOW⚡tests/test_extension.py64 def test_a_plugin_that_defers_is_skipped(self, monkeypatch):CODE
LOW⚡tests/test_extension.py69 def test_a_broken_plugin_does_not_break_version_reporting(self, monkeypatch):CODE
LOW⚡tests/test_extension.py74 def test_the_entry_point_scan_happens_once(self, monkeypatch):CODE
LOWtests/test_extension.py92 async def test_the_version_endpoint(self, monkeypatch):CODE
LOWtests/test_extension.py102 def test_the_deployment_document_header(self, monkeypatch):CODE
LOWtests/test_extension.py143 async def test_a_matching_plugin_build_passes(self, monkeypatch, temp_dir, caplog):CODE
LOWtests/test_extension.py153 async def test_a_differing_server_build_warns(self, monkeypatch, temp_dir, caplog):CODE
LOW⚡tests/test_security.py32def test_jwt_session_round_trip():CODE
LOW⚡tests/test_security.py41def test_jwt_rejects_expired_token():CODE
LOW⚡tests/test_security.py49def test_jwt_rejects_token_signed_with_another_key():CODE
LOW⚡tests/test_security.py58def test_jwt_rejects_unconfigured_algorithm(algorithm):CODE
LOW⚡tests/test_security.py67def test_jwt_rejects_header_recursion_as_invalid_token(monkeypatch):CODE
LOWtests/test_security.py84def test_generated_secret_key_shape():CODE
LOWtests/test_security.py103def test_both_verifiers_accept_the_same_plaintext():CODE
LOWtests/test_security.py121def test_digest_is_salted_per_key():CODE
LOWtests/test_security.py148def test_malformed_or_unknown_digest_never_verifies(digest):CODE
LOWtests/test_security.py165def test_unusable_digest_is_reported_as_such(digest):CODE
LOWtests/test_security.py173def test_a_real_digest_is_usable_whether_or_not_it_matches():CODE
LOWtests/test_security.py188def test_a_custom_key_follows_the_deployment_switch(monkeypatch, allowed):CODE
LOWtests/test_security.py205def test_the_shape_test_does_not_apply_to_a_custom_key(monkeypatch):CODE
LOWtests/test_security.py222def test_a_generated_key_still_has_to_look_generated(monkeypatch):CODE
LOWtests/test_security.py238def test_deployment_token_never_gets_a_digest():CODE
LOWtests/test_security.py269def test_secret_not_shaped_like_our_output_is_refused(secret_key):CODE
LOWtests/test_security.py275def test_generated_secret_is_eligible():CODE
LOWtests/test_security.py301def test_verify_memo_is_bounded(monkeypatch):CODE
LOWtests/test_security.py334def test_gateway_digest_matches_the_shared_vector():CODE
LOWtests/test_security.py338def test_gateway_digest_is_derived_not_recomputed():CODE
LOWtests/test_security.py357def test_gateway_digest_is_shorter_by_the_amount_the_budget_counts_on():CODE
LOWtests/test_security.py374def test_the_algorithm_name_changes_with_the_encoding():CODE
LOWtests/test_security.py385def test_an_underivable_digest_yields_nothing(digest):CODE
LOWtests/routers/test_clusters.py25def test_get_server_url_strips_trailing_slash_from_cluster_override():CODE
LOWtests/routers/test_clusters.py37def test_get_server_url_strips_trailing_slash_from_external_url():CODE
LOWtests/routers/test_clusters.py49def test_get_server_url_falls_back_to_request_host():CODE
LOWtests/routers/test_clusters.py67def test_cluster_update_normalizes_server_url():CODE
LOWtests/routers/test_clusters.py76def test_get_trusted_hosts_resolution(tmp_path):CODE
LOWtests/routers/test_clusters.py113def test_config_normalizes_server_external_url(monkeypatch, tmp_path):CODE
LOWtests/routers/test_clusters.py148async def test_rename_keeps_cluster_names_unique_within_the_org(engine):CODE
LOW⚡tests/routers/test_benchmarks.py97 def test_a_wrong_case_load_type_is_refused(self):CODE
LOW⚡tests/routers/test_benchmarks.py101 def test_the_two_valid_axes_survive_as_their_wire_values(self):CODE
LOW⚡tests/routers/test_benchmarks.py107 def test_the_axis_name_the_runner_wants_is_derived_not_repeated(self):CODE
LOW⚡tests/routers/test_benchmarks.py131 def test_an_empty_stage_list_is_not_the_stages_shape(self):CODE
LOW⚡tests/routers/test_benchmarks.py137 def test_auto_tune_and_stages_together_are_refused(self):CODE
LOW⚡tests/routers/test_benchmarks.py144 def test_an_inverted_search_range_is_refused(self):CODE
LOW⚡tests/routers/test_benchmarks.py151 def test_an_empty_search_range_is_refused(self):CODE
LOW⚡tests/routers/test_benchmarks.py156 def test_a_valid_range_passes(self):CODE
LOW⚡tests/routers/test_benchmarks.py162 def test_non_positive_budgets_are_refused(self, field):CODE
LOW⚡tests/routers/test_benchmarks.py167 def test_a_point_budget_the_grid_cannot_hold_is_refused(self):CODE
LOW⚡tests/routers/test_benchmarks.py179 def test_the_ceiling_itself_is_allowed(self):CODE
LOW⚡tests/routers/test_benchmarks.py184 def test_more_manual_stages_than_the_grid_can_hold_is_refused(self):CODE
LOW⚡tests/routers/test_benchmarks.py192 def test_every_slo_threshold_must_be_positive(self, t):CODE
LOW⚡tests/routers/test_benchmarks.py199 def test_a_stage_without_a_numeric_rate_is_refused(self):CODE
LOW⚡tests/routers/test_benchmarks.py204 def test_a_stage_that_is_not_an_object_never_reaches_the_check(self):CODE
LOW⚡tests/routers/test_benchmarks.py211 def test_a_non_positive_stage_rate_is_refused(self):CODE
LOW⚡tests/routers/test_benchmarks.py221 def test_an_unusable_per_stage_constraint_is_refused(self, key):CODE
LOW⚡tests/routers/test_benchmarks.py229 def test_a_stage_constraint_left_out_is_fine(self):CODE
LOW⚡tests/routers/test_benchmarks.py236 def test_a_negative_pass_through_knob_is_refused(self, field):CODE
LOW⚡tests/routers/test_benchmarks.py242 def test_zero_stays_a_legal_setting(self, field):CODE
LOW⚡tests/routers/test_benchmarks.py247 def test_an_inverted_token_window_is_refused(self):CODE
6024 more matches not shown…
Decorative Section Separators251 hits · 976 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/routers/test_usage_export_integration.py377# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/routers/test_usage_export_integration.py383# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/routers/test_usage_export_integration.py452# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/routers/test_usage_export_integration.py454# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/routers/test_usage_export.py144# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/routers/test_usage_export.py146# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/routers/test_usage_export.py243# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/routers/test_usage_export.py245# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/routers/test_usage_export.py449# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/routers/test_usage_export.py451# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/routers/test_usage_export.py550# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/routers/test_usage_export.py552# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cmd/test_reload_config_auth.py31# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cmd/test_reload_config_auth.py33# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cmd/test_reload_config_auth.py56# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cmd/test_reload_config_auth.py58# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cmd/test_reload_config_auth.py111# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cmd/test_reload_config_auth.py113# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cmd/test_reload_config_auth.py207# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cmd/test_reload_config_auth.py209# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cloud_providers/test_shuihua.py95# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cloud_providers/test_shuihua.py97# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cloud_providers/test_shuihua.py176# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cloud_providers/test_shuihua.py178# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cloud_providers/test_shuihua.py218# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cloud_providers/test_shuihua.py220# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cloud_providers/test_shuihua.py308# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/cloud_providers/test_shuihua.py310# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/k8s/test_template_config.py105# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/k8s/test_template_config.py113# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_config.py39# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_config.py42# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_usage_details_archiver.py24# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_usage_details_archiver.py26# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_usage_details_archiver.py57# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_usage_details_archiver.py60# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_usage_details_archiver.py133# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_usage_details_archiver.py135# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_usage_details_archiver.py158# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_usage_details_archiver.py160# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…/server/test_resource_usage_collector_type_snapshot.py172# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…/server/test_resource_usage_collector_type_snapshot.py174# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…/server/test_resource_usage_collector_type_snapshot.py220# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…/server/test_resource_usage_collector_type_snapshot.py222# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…/server/test_resource_usage_collector_type_snapshot.py503# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…/server/test_resource_usage_collector_type_snapshot.py505# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…/server/test_resource_usage_collector_type_snapshot.py523# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…/server/test_resource_usage_collector_type_snapshot.py525# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…/server/test_resource_usage_collector_type_snapshot.py676# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…/server/test_resource_usage_collector_type_snapshot.py678# ---------------------------------------------------------------------------COMMENT
MEDIUM…/server/test_resource_usage_collector_type_snapshot.py60# ---------------------------------------------------------------------------COMMENT
MEDIUM…/server/test_resource_usage_collector_type_snapshot.py62# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_metrics_collector.py307# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_metrics_collector.py309# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_metrics_collector.py373# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_metrics_collector.py375# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_metrics_collector.py398# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_metrics_collector.py400# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_metrics_collector.py456# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/test_metrics_collector.py460# ---------------------------------------------------------------------------COMMENT
191 more matches not shown…
Excessive Try-Catch Wrapping678 hits · 655 pts
SeverityFileLineSnippetContext
LOWtests/websocket_proxy/test_connection.py134 except Exception as e:CODE
LOWtests/websocket_proxy/test_proxy_server.py326 except Exception:CODE
LOWtests/websocket_proxy/test_proxy_server.py485 except Exception as e:CODE
LOWtests/websocket_proxy/test_proxy_server.py674 except Exception as e:CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py86def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py181def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py277def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py369def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py458def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py552def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py648def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py784def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py914def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py97 except Exception:CODE
LOWtests/websocket_proxy/test_websocket_bench.py192 except Exception as e:CODE
LOWtests/websocket_proxy/test_websocket_bench.py288 except Exception:CODE
LOWtests/websocket_proxy/test_websocket_bench.py377 except Exception:CODE
LOWtests/websocket_proxy/test_websocket_bench.py470 except Exception:CODE
LOWtests/websocket_proxy/test_websocket_bench.py558 except Exception:CODE
LOWtests/websocket_proxy/test_websocket_bench.py673 except Exception as e:CODE
LOWtests/websocket_proxy/test_websocket_bench.py797 except Exception:CODE
LOWtests/websocket_proxy/test_websocket_bench.py921 except Exception:CODE
LOWtests/websocket_proxy/test_server_federation.py506 except Exception as e:CODE
LOWtests/api/test_exceptions.py61 except Exception as e:CODE
LOWtests/api/test_exceptions.py156 except Exception as e:CODE
MEDIUMtests/api/test_exceptions.py55def test_error_response_model_validate(name, given, expected):CODE
MEDIUMtests/api/test_exceptions.py152def test_raise_if_response_error(name, given, expected):CODE
MEDIUMtests/worker/test_serve_manager.py1072def emit(writer, batch):CODE
LOWtests/worker/test_serve_manager.py1081 except Exception as e:CODE
LOWtests/routes/test_model_instance_log_download.py118 except Exception as e:CODE
LOWhack/perf/run_model_benchmark.py386 except Exception as exc:CODE
LOWhack/perf/run_model_benchmark.py461 except Exception as exc:CODE
LOWhack/perf/run_model_benchmark.py663 except Exception as exc:CODE
LOWhack/perf/run_model_benchmark.py702 except Exception as exc:CODE
LOWhack/perf/run_model_benchmark.py785 except Exception as exc:CODE
LOWhack/perf/run_model_benchmark.py963 except Exception as e:CODE
LOWhack/perf/run_model_benchmark.py976 except Exception as exc:CODE
LOWhack/perf/run_model_benchmark.py1195 except Exception as e:CODE
LOWhack/perf/fill_benchmark_raw_metrics.py191 except Exception as exc:CODE
LOWgpustack/security.py68 except Exception:CODE
LOWgpustack/extension.py61 except Exception:CODE
LOWgpustack/extension.py86 except Exception:CODE
LOWgpustack/cmd/db_migration.py81 except Exception as e:CODE
LOWgpustack/cmd/db_migration.py120 except Exception as e:CODE
LOWgpustack/cmd/db_migration.py142 except Exception as e:CODE
LOWgpustack/cmd/db_migration.py169 except Exception as e:CODE
MEDIUMgpustack/cmd/db_migration.py70def _run(args):CODE
LOWgpustack/cmd/download_tools.py80 except Exception as e:CODE
LOWgpustack/cmd/reload_config.py124 except Exception as e:CODE
LOWgpustack/cmd/reload_config.py286 except Exception as e:CODE
LOWgpustack/cmd/reload_config.py320 except Exception:CODE
MEDIUMgpustack/cmd/reload_config.py102def run(args):CODE
LOWgpustack/cmd/start.py747 except Exception as e:CODE
LOWgpustack/cmd/start.py766 except Exception as e:CODE
LOWgpustack/cmd/start.py802 except Exception as e:CODE
LOWgpustack/cmd/start.py817 except Exception:CODE
LOWgpustack/cmd/start.py847 except Exception as e:CODE
LOWgpustack/cmd/reset_admin_password.py94 except Exception as e:CODE
LOWgpustack/cmd/reset_admin_password.py121 except Exception:CODE
MEDIUMgpustack/cmd/reset_admin_password.py47def run(args):CODE
618 more matches not shown…
Empty Error Handlers136 hits · 638 pts
SeverityFileLineSnippetContext
HIGHtests/scheduler/test_scheduler_subscribe.py18except (asyncio.CancelledError, Exception):CODE
HIGHtests/server/test_bus.py175except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_connection.py197except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_connection.py203except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_connection.py213except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py119except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py125except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py134except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py217except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py223except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py232except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py290except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py296except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py303except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py395except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py401except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py410except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py521except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_proxy_server.py717except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py134except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py140except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py150except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py230except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py236except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py246except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py323except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py329except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py339except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py413except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py419except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py429except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py506except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py512except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py522except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py597except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py603except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py613except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py717except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py723except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py733except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py853except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py859except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py869except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py964except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py970except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py980except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py97except Exception:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py288except Exception:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py377except Exception:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py470except Exception:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py558except Exception:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py797except Exception:CODE
HIGHtests/websocket_proxy/test_websocket_bench.py921except Exception:CODE
HIGHtests/websocket_proxy/test_server_federation.py95except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_server_federation.py99except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_server_federation.py156except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_server_federation.py164except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_server_federation.py168except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_server_federation.py223except asyncio.CancelledError:CODE
HIGHtests/websocket_proxy/test_server_federation.py231except asyncio.CancelledError:CODE
76 more matches not shown…
Cross-File Repetition54 hits · 270 pts
SeverityFileLineSnippetContext
HIGHtests/routes/test_lora_admission_under_roles.py0the api's httpexception carries its text on ``.message``, not on ``str()``, so ``pytest.raises(match=...)`` would match STRING
HIGHtests/routes/test_model_roles_validation.py0the api's httpexception carries its text on ``.message``, not on ``str()``, so ``pytest.raises(match=...)`` would match STRING
HIGHtests/routes/test_pd_backend_admission.py0the api's httpexception carries its text on ``.message``, not on ``str()``, so ``pytest.raises(match=...)`` would match STRING
HIGHtests/routes/test_role_pairing_validation.py0the api's httpexception carries its text on ``.message``, not on ``str()``, so ``pytest.raises(match=...)`` would match STRING
HIGHgpustack/schemas/gpu_instance_persistent_volumes.py0represents the public view of a gpu instance ssh public key, containing only fields that are safe to expose to clients.STRING
HIGH…ustack/schemas/gpu_instance_persistent_volume_types.py0represents the public view of a gpu instance ssh public key, containing only fields that are safe to expose to clients.STRING
HIGHgpustack/schemas/gpu_instance_templates.py0represents the public view of a gpu instance ssh public key, containing only fields that are safe to expose to clients.STRING
HIGHgpustack/schemas/gpu_instance_ssh_public_keys.py0represents the public view of a gpu instance ssh public key, containing only fields that are safe to expose to clients.STRING
HIGHgpustack/schemas/runner_source.py0validate raw community-backend yaml and return the canonical text stored in a source's ``content`` (the ``normalize`` foSTRING
HIGHgpustack/schemas/catalog_source.py0validate raw community-backend yaml and return the canonical text stored in a source's ``content`` (the ``normalize`` foSTRING
HIGHgpustack/schemas/inference_backend_source.py0validate raw community-backend yaml and return the canonical text stored in a source's ``content`` (the ``normalize`` foSTRING
HIGHgpustack/schemas/gpu_instance_types.py0created name of the gpu instance template. must be unique in the scope of the owning principal.STRING
HIGH…ustack/schemas/gpu_instance_persistent_volume_types.py0created name of the gpu instance template. must be unique in the scope of the owning principal.STRING
HIGHgpustack/schemas/gpu_instance_templates.py0created name of the gpu instance template. must be unique in the scope of the owning principal.STRING
HIGHgpustack/client/generated_benchmark_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGH…tack/client/generated_cache_service_instance_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_user_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_model_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_model_instance_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_cache_service_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_model_file_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_model_route_target_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_worker_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_inference_backend_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_benchmark_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGH…tack/client/generated_cache_service_instance_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_user_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_model_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_model_instance_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_cache_service_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_model_file_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_model_route_target_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_worker_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_inference_backend_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_benchmark_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGH…tack/client/generated_cache_service_instance_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_user_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_model_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_model_instance_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_cache_service_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_model_file_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_model_route_target_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_worker_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_inference_backend_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_benchmark_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGH…tack/client/generated_cache_service_instance_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_user_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_model_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_model_instance_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_cache_service_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_model_file_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_model_route_target_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_worker_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_inference_backend_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
Over-Commented Block296 hits · 267 pts
SeverityFileLineSnippetContext
LOWalembic.ini1# A generic, single database configuration.COMMENT
LOWalembic.ini21# Any required deps can installed by adding `alembic[tz]` to the pip requirementsCOMMENT
LOWalembic.ini41# The path separator used here should be the separator specified by "version_path_separator" below.COMMENT
LOWalembic.ini61# output_encoding = utf-8COMMENT
LOWmkdocs.offline.yml41 # katex and tablesort, the pages here reach out for katex's font files,COMMENT
LOWtests/charts/test_chart_render.py21HELM = shutil.which("helm")COMMENT
LOWtests/server/test_cache_provider_catalog.py421def test_lmcache_provider_declaration():COMMENT
LOWtests/server/test_cache_provider_catalog.py1001 assert rendered is not NoneCOMMENT
LOWtests/server/test_pd_membership.py481# --- the SGLang gateway: one declaration across a breaking upstream rename ---COMMENT
LOWtests/server/test_gather_unmet.py221#COMMENT
LOWpack/rootfs/etc/s6-overlay/scripts/base.sh101 # For optional services, allow s6 to restart instead of halting the containerCOMMENT
LOW…/rootfs/etc/s6-overlay/scripts/postgres-log-cleanup.sh1#!/command/with-contenv /bin/bashCOMMENT
LOWpack/rootfs/var/lib/istio/cron.txt10 * * * * /usr/sbin/logrotate /etc/logrotate.d/higress-logrotateCOMMENT
LOWcharts/gpustack-chart/values.yaml1# Default values for gpustack.COMMENT
LOWcharts/gpustack-chart/values.yaml21registrationTokenSecretName: ""COMMENT
LOWcharts/gpustack-chart/values.yaml41# To reference your own pre-existing Secrets, replace the list entirely:COMMENT
LOWcharts/gpustack-chart/values.yaml61# - `credentials.username` and `credentials.password` are set (populatedCOMMENT
LOWcharts/gpustack-chart/values.yaml81 password: nullCOMMENT
LOWcharts/gpustack-chart/values.yaml101 enabled: trueCOMMENT
LOWcharts/gpustack-chart/values.yaml121 # Ingress it generates for an LLM route, so they land on the wholeCOMMENT
LOWcharts/gpustack-chart/values.yaml141 metricsPort: 10161COMMENT
LOWcharts/gpustack-chart/values.yaml161 # to pin it.COMMENT
LOWcharts/gpustack-chart/values.yaml181 # Affinity for the server pod. When non-empty, REPLACES the built-in defaultCOMMENT
LOWcharts/gpustack-chart/values.yaml221gateway:COMMENT
LOWcharts/gpustack-chart/values.yaml281 pullPolicy: IfNotPresentCOMMENT
LOWcharts/gpustack-chart/values.yaml301 # metax - MetaX GPU; mounts /opt/mxdriver and /opt/macaCOMMENT
LOWcharts/gpustack-chart/values.yaml321 # based on the vendor's PCI ID. These labels are advertised by Node FeatureCOMMENT
LOWcharts/gpustack-chart/values.yaml341 # to fall back to `global.nodeSelector`. Each DaemonSet additionallyCOMMENT
LOWcharts/gpustack-chart/values.yaml361# whenever `worker.enabled` is true (the sub-chart's `condition` in Chart.yaml).COMMENT
LOWcharts/gpustack-chart/values.yaml381# Turning an individual component off (e.g. a cluster that already runs Kueue):COMMENT
LOWhack/install.sh101 # Vendor the dependencies only when the vendored copies do not already satisfyCOMMENT
LOWhack/build-docs.sh1#!/usr/bin/env bashCOMMENT
LOWhack/lib/log.sh1#!/usr/bin/env bashCOMMENT
LOWhack/lib/version.sh1#!/usr/bin/env bashCOMMENT
LOWdocs/cli-reference/start.md221# -- which for several of them is not the name of the WasmPlugin resource theyCOMMENT
LOWdocs/cli-reference/start.md241 # only the case of one too busy to answer yet -- where waiting is whatCOMMENT
LOW.github/workflows/code-review.yml1# This workflow runs AI code review on pull requests by calling the reusable workflow inCOMMENT
LOWgpustack/security.py21GENERATED_SECRET_KEY_BYTES = 16COMMENT
LOWgpustack/__init__.py1__version__ = '0.0.0'COMMENT
LOWgpustack/topology/tree.py41# The two layer ids the operator cannot use for a layer of their own. TheCOMMENT
LOWgpustack/topology/vocabulary.py81# by "rack".COMMENT
LOWgpustack/config/config.py121 # unset, the derivation falls back to the management NIC on a host with aCOMMENT
LOWgpustack/config/config.py261 allow_headers: Optional[List[str]] = ['Authorization', 'Content-Type', 'X-API-Key']COMMENT
LOWgpustack/config/config.py321 # for deployments fronted by a proxy that rewrites paths.COMMENT
LOWgpustack/config/config.py461 self.make_dirs()COMMENT
LOWgpustack/k8s/values.py241 # The cluster's node selector goes here and nowhere else. Helm sharesCOMMENT
LOWgpustack/k8s/pod_security.py21# at `privileged`.COMMENT
LOWgpustack/k8s/bootstrap.sh1#!/bin/bashCOMMENT
LOWgpustack/k8s/bootstrap.sh81trap 'rm -f "${rendered}" "${live}" "${chart}" "${values}" "${scan_errors}"' EXITCOMMENT
LOWgpustack/k8s/bootstrap.sh181#COMMENT
LOWgpustack/k8s/bootstrap.sh201# pruned by `helm upgrade` only if a previous revision rendered it. TheCOMMENT
LOWgpustack/k8s/bootstrap.sh221 # below, and this would delete a worker the chart means to run.COMMENT
LOWgpustack/k8s/bootstrap.sh301 if [[ -n "${current_stamp}" && "${current_stamp}" != "${RENDERED_AT}" ]]; thenCOMMENT
LOWgpustack/k8s/bootstrap.sh321# deleted out of band leaves the status `deployed` and the revision matching, soCOMMENT
LOWgpustack/k8s/bootstrap.sh341 log "release is already at revision ${DESIRED_REVISION}, nothing to install"COMMENT
LOWgpustack/k8s/bootstrap.sh361# templates record the new revision, and every later Job skip.COMMENT
LOWgpustack/k8s/bootstrap.sh401COMMENT
LOWgpustack/k8s/bootstrap.sh421# "The kind is not registered yet" is not among the cases refused here, becauseCOMMENT
LOWgpustack/k8s/bootstrap.sh521COMMENT
LOWgpustack/k8s/bootstrap.sh541 --ignore-not-found \COMMENT
236 more matches not shown…
Modern Structural Boilerplate242 hits · 242 pts
SeverityFileLineSnippetContext
LOWhack/perf/run_model_benchmark.py401 def _update_existing_model(self, config: Model, payload: Dict[str, Any]) -> None:CODE
LOWgpustack/extension.py26logger = logging.getLogger(__name__)CODE
LOWgpustack/ssl_context.py33logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/version.py6logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/db_migration.py22logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/download_tools.py9logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/__init__.py4__all__ = ["setup_start_cmd", "setup_reload_config_cmd"]CODE
LOWgpustack/cmd/reload_config.py26logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/start.py22logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/reset_admin_password.py19logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/prerun.py28logger = logging.getLogger(__name__)CODE
LOWgpustack/topology/tree.py39logger = logging.getLogger(__name__)CODE
LOWgpustack/cloud_providers/shuihua.py52logger = logging.getLogger(__name__)CODE
LOWgpustack/cloud_providers/digital_ocean.py17logger = logging.getLogger(__name__)CODE
LOWgpustack/mixins/active_record.py34logger = logging.getLogger(__name__)CODE
LOWgpustack/config/config.py69logger = logging.getLogger(__name__)CODE
LOWgpustack/config/__init__.py4__all__ = ["Config"]CODE
LOWgpustack/scheduler/queue.py4logger = logging.getLogger(__name__)CODE
LOWgpustack/scheduler/group_schedule.py59logger = logging.getLogger(__name__)CODE
LOWgpustack/scheduler/group_solver.py44logger = logging.getLogger(__name__)CODE
LOWgpustack/scheduler/calculator.py41logger = logging.getLogger(__name__)CODE
LOWgpustack/scheduler/offer_slot.py32logger = logging.getLogger(__name__)CODE
LOWgpustack/scheduler/scheduler.py108logger = logging.getLogger(__name__)CODE
LOWgpustack/scheduler/port_budget.py43logger = logging.getLogger(__name__)CODE
LOWgpustack/scheduler/evaluator.py92logger = logging.getLogger(__name__)CODE
LOWgpustack/scheduler/group_capacity.py57logger = logging.getLogger(__name__)CODE
LOWgpustack/server/catalog.py25logger = logging.getLogger(__name__)CODE
LOWgpustack/server/worker_request.py21logger = logging.getLogger(__name__)CODE
LOWgpustack/server/worker_instance_cleaner.py15logger = logging.getLogger(__name__)CODE
LOWgpustack/server/cache_provider_catalog.py32logger = logging.getLogger(__name__)CODE
LOWgpustack/server/pd_mode_resolver.py38logger = logging.getLogger(__name__)CODE
LOWgpustack/server/services.py47logger = logging.getLogger(__name__)CODE
LOWgpustack/server/prometheus_query.py22logger = logging.getLogger(__name__)CODE
LOWgpustack/server/server.py150logger = logging.getLogger(__name__)CODE
LOWgpustack/server/scaling_scheduler.py17logger = logging.getLogger(__name__)CODE
LOWgpustack/server/update_check.py11logger = logging.getLogger(__name__)CODE
LOWgpustack/server/lora_model_routes.py28logger = logging.getLogger(__name__)CODE
LOWgpustack/server/cache_service_metrics.py46logger = logging.getLogger(__name__)CODE
LOWgpustack/server/controllers.py236logger = logging.getLogger(__name__)CODE
LOWgpustack/server/resource_event_logger.py53logger = logging.getLogger(__name__)CODE
LOWgpustack/server/gateway_auth_reconciler.py76logger = logging.getLogger(__name__)CODE
LOWgpustack/server/storage_usage_collector.py52logger = logging.getLogger(__name__)CODE
LOWgpustack/server/storage_usage_collector.py299 async def _settle_locked(self, vol: _OpenVolume, end_ts: datetime) -> None:CODE
LOWgpustack/server/cache.py15logger = logging.getLogger(__name__)CODE
LOWgpustack/server/cache.py29def set_coordinator(coordinator: Optional["Coordinator"]) -> None:CODE
LOWgpustack/server/system_load.py9logger = logging.getLogger(__name__)CODE
LOWgpustack/server/pd_mode_catalog.py20logger = logging.getLogger(__name__)CODE
LOWgpustack/server/metrics_collector.py27logger = logging.getLogger(__name__)CODE
LOWgpustack/server/bus.py18logger = logging.getLogger(__name__)CODE
LOWgpustack/server/bus.py40__all__ = [CODE
LOWgpustack/server/usage_details_archiver.py28logger = logging.getLogger(__name__)CODE
LOWgpustack/server/worker_allocated_cache.py39logger = logging.getLogger(__name__)CODE
LOWgpustack/server/resource_usage_collector.py92logger = logging.getLogger(__name__)CODE
LOW⚡gpustack/server/resource_usage_collector.py977 async def _settle_locked(self, window: _OpenWindow, end_ts: datetime) -> None:CODE
LOWgpustack/server/app.py22logger = logging.getLogger(__name__)CODE
LOWgpustack/server/cache_services.py27logger = logging.getLogger(__name__)CODE
LOWgpustack/server/worker_syncer.py12logger = logging.getLogger(__name__)CODE
LOWgpustack/server/worker_status_buffer.py12logger = logging.getLogger(__name__)CODE
LOWgpustack/server/usage_archiver.py28logger = logging.getLogger(__name__)CODE
LOWgpustack/server/lora_adapters_discovery.py19logger = logging.getLogger(__name__)CODE
182 more matches not shown…
Unused Imports325 hits · 238 pts
SeverityFileLineSnippetContext
LOW…sts/server/test_model_service_delete_created_routes.py16CODE
LOWhack/perf/perf_doc_common.py1CODE
LOWhack/perf/plot_latency_comparison.py18CODE
LOWhack/perf/extract_json_key_table.py32CODE
LOWhack/perf/generate_latency_optimization_doc.py19CODE
LOWhack/perf/fill_benchmark_raw_metrics.py18CODE
LOWhack/perf/generate_throughput_optimization_doc.py19CODE
LOWgpustack/extension.py24CODE
LOWgpustack/ssl_context.py22CODE
LOWgpustack/cmd/__init__.py1CODE
LOWgpustack/cmd/__init__.py2CODE
LOWgpustack/topology/tree.py33CODE
LOWgpustack/topology/view.py14CODE
LOWgpustack/topology/vocabulary.py29CODE
LOWgpustack/config/__init__.py1CODE
LOWgpustack/scheduler/group_schedule.py25CODE
LOWgpustack/scheduler/group_solver.py20CODE
LOWgpustack/scheduler/offer_slot.py24CODE
LOWgpustack/scheduler/port_budget.py27CODE
LOWgpustack/scheduler/group_capacity.py25CODE
LOWgpustack/server/cache_service_metrics.py24CODE
LOWgpustack/server/cache_service_metrics.py24CODE
LOWgpustack/server/cache_service_metrics.py24CODE
LOWgpustack/server/cache.py13CODE
LOWgpustack/server/bus.py9CODE
LOWgpustack/server/bus.py9CODE
LOWgpustack/server/coordinator/__init__.py20CODE
LOWgpustack/server/coordinator/__init__.py20CODE
LOWgpustack/server/coordinator/__init__.py20CODE
LOWgpustack/server/coordinator/__init__.py21CODE
LOWgpustack/utils/compat_importlib.py4CODE
LOWgpustack/utils/compat_importlib.py6CODE
LOWgpustack/utils/ephemeral_ports.py18CODE
LOWgpustack/utils/resource_usage.py7CODE
LOWgpustack/utils/attrs.py1CODE
LOWgpustack/policies/scorers/group_placement_scorer.py42CODE
LOWgpustack/policies/candidate_selectors/__init__.py1CODE
LOWgpustack/policies/candidate_selectors/__init__.py2CODE
LOWgpustack/policies/candidate_selectors/__init__.py3CODE
LOWgpustack/policies/candidate_selectors/__init__.py4CODE
LOWgpustack/policies/candidate_selectors/__init__.py5CODE
LOW…ndidate_selectors/instance_type_whole_card_selector.py29CODE
LOWgpustack/schemas/models.py49CODE
LOWgpustack/schemas/models.py63CODE
LOWgpustack/schemas/models.py64CODE
LOWgpustack/schemas/clusters.py41CODE
LOWgpustack/schemas/clusters.py41CODE
LOWgpustack/schemas/clusters.py42CODE
LOWgpustack/schemas/clusters.py43CODE
LOWgpustack/schemas/principals.py54CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
265 more matches not shown…
Deep Nesting250 hits · 211 pts
SeverityFileLineSnippetContext
LOWtests/scheduler/test_scheduler_subscribe.py99CODE
LOWtests/server/test_cache_provider_catalog.py1414CODE
LOWtests/server/test_cache_provider_catalog.py1430CODE
LOWtests/server/test_scaling_scheduler.py319CODE
LOW…date_selectors/gguf/test_gguf_resource_fit_selector.py1484CODE
LOW…end_mindie/test_ascend_mindie_resource_fit_selector.py401CODE
LOW…end_mindie/test_ascend_mindie_resource_fit_selector.py1697CODE
LOW…end_mindie/test_ascend_mindie_resource_fit_selector.py1895CODE
LOW…end_mindie/test_ascend_mindie_resource_fit_selector.py402CODE
LOW…end_mindie/test_ascend_mindie_resource_fit_selector.py1700CODE
LOW…end_mindie/test_ascend_mindie_resource_fit_selector.py1898CODE
LOWtests/websocket_proxy/test_proxy_server.py418CODE
LOWtests/websocket_proxy/test_proxy_server.py529CODE
LOWtests/websocket_proxy/test_proxy_server.py443CODE
LOWtests/websocket_proxy/test_proxy_server.py554CODE
LOWtests/worker/test_metrics_unit_scaling.py131CODE
LOWtests/routes/test_model_files_authorization.py161CODE
LOWtests/routes/test_model_pause.py210CODE
LOWhack/perf/perf_doc_common.py363CODE
LOWhack/perf/extract_json_key_table.py128CODE
LOWhack/perf/run_model_benchmark.py275CODE
LOWhack/perf/run_model_benchmark.py411CODE
LOWhack/perf/run_model_benchmark.py917CODE
LOWgpustack/cmd/db_migration.py270CODE
LOWgpustack/cmd/reload_config.py325CODE
LOWgpustack/cmd/reset_admin_password.py47CODE
LOWgpustack/topology/vocabulary.py364CODE
LOWgpustack/mixins/active_record.py47CODE
LOWgpustack/mixins/active_record.py516CODE
LOWgpustack/mixins/active_record.py736CODE
LOWgpustack/mixins/active_record.py832CODE
LOWgpustack/config/config.py389CODE
LOWgpustack/config/config.py730CODE
LOWgpustack/scheduler/group_solver.py241CODE
LOWgpustack/scheduler/calculator.py1094CODE
LOWgpustack/scheduler/calculator.py1309CODE
LOWgpustack/scheduler/calculator.py1345CODE
LOWgpustack/scheduler/calculator.py266CODE
LOWgpustack/scheduler/calculator.py525CODE
LOWgpustack/scheduler/scheduler.py209CODE
LOWgpustack/scheduler/evaluator.py348CODE
LOWgpustack/scheduler/evaluator.py1145CODE
LOWgpustack/scheduler/meta_registry.py122CODE
LOWgpustack/server/services.py329CODE
LOWgpustack/server/services.py780CODE
LOWgpustack/server/server.py701CODE
LOWgpustack/server/server.py921CODE
LOWgpustack/server/server.py1489CODE
LOWgpustack/server/cache_service_metrics.py153CODE
LOWgpustack/server/cache_service_metrics.py234CODE
LOWgpustack/server/controllers.py1587CODE
LOWgpustack/server/controllers.py1776CODE
LOWgpustack/server/controllers.py2574CODE
LOWgpustack/server/controllers.py757CODE
LOWgpustack/server/controllers.py832CODE
LOWgpustack/server/controllers.py937CODE
LOWgpustack/server/controllers.py992CODE
LOWgpustack/server/controllers.py1207CODE
LOWgpustack/server/controllers.py1315CODE
LOWgpustack/server/controllers.py4959CODE
190 more matches not shown…
Magic Placeholder Names25 hits · 150 pts
SeverityFileLineSnippetContext
HIGHREADME.md185# Replace `your_api_key` and `your_gpustack_server_url`COMMENT
HIGHREADME.md187export GPUSTACK_API_KEY=your_api_keyCODE
HIGHREADME_CN.md176# 将 `your_api_key` 和 `your_gpustack_server_url`COMMENT
HIGHREADME_CN.md178export GPUSTACK_API_KEY=your_api_keyCODE
HIGHREADME_JP.md178# `your_api_key` と `your_gpustack_server_url` をCOMMENT
HIGHREADME_JP.md180export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/troubleshooting.md37 -H "Authorization: Bearer <YOUR_API_KEY>" \CODE
HIGHdocs/troubleshooting.md37 -H "Authorization: Bearer <YOUR_API_KEY>" \CODE
HIGHdocs/quickstart.md114# Replace `your_api_key` and `your_gpustack_server_url`COMMENT
HIGHdocs/quickstart.md116export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/migration.md115 --database-url ${your-database-url}CODE
HIGHdocs/user-guide/api-key-management.md147export GPUSTACK_API_KEY=your_api_keyCODE
HIGH⚡docs/using-models/using-reranker-models.md43export GPUSTACK_API_KEY=<your-api-key>CODE
HIGHdocs/using-models/using-reranker-models.md59Replace `<your-server-url>` with the URL of your GPUStack server and `<your-api-key>` with the API key you generated in CODE
HIGH⚡docs/using-models/using-embedding-models.md43export GPUSTACK_API_KEY=<your-api-key>CODE
HIGHdocs/using-models/using-embedding-models.md54Replace `<your-server-url>` with the URL of your GPUStack server and `<your-api-key>` with the API key you generated in CODE
HIGHdocs/integrations/inference-apis.md28export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/integrations/inference-apis.md55export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/integrations/inference-apis.md82export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/integrations/inference-apis.md143export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/tutorials/serving-with-lora-adapters.md78 -H "Authorization: Bearer <your-api-key>" \CODE
HIGH⚡docs/tutorials/serving-with-lora-adapters.md90 -H "Authorization: Bearer <your-api-key>" \CODE
HIGH⚡docs/tutorials/serving-with-lora-adapters.md98Replace `<your-gpustack-server>` with your server address and `<your-api-key>` with an API key created on the `API Keys`CODE
HIGH⚡docs/tutorials/inference-with-tool-calling.md66With the model deployed and an API key, you can call the model via the GPUStack API. Here is an example script using `cuCODE
HIGH⚡docs/tutorials/inference-with-tool-calling.md70export GPUSTACK_API_KEY=<your-api-key>CODE
Structural Annotation Overuse63 hits · 101 pts
SeverityFileLineSnippetContext
LOW⚡tests/websocket_proxy/test_server_federation.py378 # Step 1: Server1 connects to Server2 as peerCOMMENT
LOW⚡tests/websocket_proxy/test_server_federation.py382 # Step 2: Connect a client to Server2 (not Server1)COMMENT
LOW⚡tests/websocket_proxy/test_server_federation.py395 # Step 3: Server2 syncs its client to Server1 via peer connectionCOMMENT
LOW⚡tests/websocket_proxy/test_server_federation.py400 # Step 4: Server1 disconnects from Server2COMMENT
LOW⚡tests/websocket_proxy/test_server_federation.py404 # Step 5: Server1 should clean up clients synced from Server2COMMENT
LOWdocs/user-guide/cache-service-management.md38### Step 1: Find the block size the engine choseCOMMENT
LOWdocs/user-guide/cache-service-management.md55### Step 2: Configure the cache serviceCOMMENT
LOWdocs/user-guide/cache-service-management.md64### Step 3: Deploy the model against the serviceCOMMENT
LOW⚡docs/using-models/using-vision-language-models.md26## Step 1: Install GPUStackCOMMENT
LOW⚡docs/using-models/using-vision-language-models.md30## Step 2: Log in to GPUStack UICOMMENT
LOW⚡docs/using-models/using-vision-language-models.md40## Step 3: Deploy Vision Language Models with vLLMCOMMENT
LOWdocs/using-models/using-vision-language-models.md88## Step 4: Interact with Vision Language ModelsCOMMENT
LOWdocs/using-models/using-image-generation-models.md13## Step 1: Deploy the Z-Image-Turbo ModelCOMMENT
LOWdocs/using-models/using-image-generation-models.md28## Step 2: Use the Model for Image GenerationCOMMENT
LOWdocs/using-models/using-reranker-models.md14## Step 1: Deploy the ModelCOMMENT
LOW⚡docs/using-models/using-reranker-models.md28## Step 2: Generate an API KeyCOMMENT
LOW⚡docs/using-models/using-reranker-models.md37## Step 3: RerankingCOMMENT
LOWdocs/using-models/using-large-language-models.md15## Step 1: Deploy Large Language ModelsCOMMENT
LOWdocs/using-models/using-large-language-models.md41## Step 2: Use the LLMs for Text GenerationCOMMENT
LOWdocs/using-models/using-audio-models.md16### Step 1: Deploy Speech-to-Text ModelCOMMENT
LOWdocs/using-models/using-audio-models.md30### Step 2: Interact with Speech-to-Text ModelCOMMENT
LOWdocs/using-models/using-audio-models.md39### Step 3: Streaming Output via APICOMMENT
LOWdocs/using-models/using-audio-models.md62### Step 1: Deploy Text-to-Speech ModelCOMMENT
LOWdocs/using-models/using-audio-models.md76### Step 2: Interact with Text-to-Speech ModelCOMMENT
LOWdocs/using-models/using-audio-models.md87### Step 3: Streaming Output via APICOMMENT
LOWdocs/using-models/using-audio-models.md117### Step 1: Deploy Voice Cloning ModelCOMMENT
LOWdocs/using-models/using-audio-models.md123### Step 2: Use Voice Cloning in PlaygroundCOMMENT
LOWdocs/using-models/using-embedding-models.md14## Step 1: Deploy the ModelCOMMENT
LOW⚡docs/using-models/using-embedding-models.md28## Step 2: Generate an API KeyCOMMENT
LOW⚡docs/using-models/using-embedding-models.md37## Step 3: Generate Text EmbeddingsCOMMENT
LOWdocs/tutorials/serving-with-lora-adapters.md37## Step 1: Deploy the Base Model with LoRA AdaptersCOMMENT
LOWdocs/tutorials/serving-with-lora-adapters.md64## Step 2: Invoke a LoRA AdapterCOMMENT
LOW⚡docs/tutorials/serving-with-lora-adapters.md100## Step 3: Manage LoRA AdaptersCOMMENT
LOW…ing-deepseek-r1-671b-with-distributed-ascend-mindie.md31## Step 1: Install GPUStack ServerCOMMENT
LOW…ing-deepseek-r1-671b-with-distributed-ascend-mindie.md56## Step 2: Access GPUStack UICOMMENT
LOW…ing-deepseek-r1-671b-with-distributed-ascend-mindie.md64## Step 3: Install GPUStack WorkersCOMMENT
LOW…ing-deepseek-r1-671b-with-distributed-ascend-mindie.md98## Step 4: Deploy the DeepSeek R1 ModelCOMMENT
LOW…ing-deepseek-r1-671b-with-distributed-ascend-mindie.md117## Step 5: Monitor DeploymentCOMMENT
LOW…ing-deepseek-r1-671b-with-distributed-ascend-mindie.md127## Step 6: Run Inference via PlaygroundCOMMENT
LOW…ials/running-deepseek-r1-671b-with-distributed-vllm.md30## Step 1: Install GPUStack ServerCOMMENT
LOW…ials/running-deepseek-r1-671b-with-distributed-vllm.md56## Step 2: Access GPUStack UICOMMENT
LOW…ials/running-deepseek-r1-671b-with-distributed-vllm.md64## Step 3: Install GPUStack WorkersCOMMENT
LOW…ials/running-deepseek-r1-671b-with-distributed-vllm.md96## Step 4: Deploy the DeepSeek R1 ModelCOMMENT
LOW…ials/running-deepseek-r1-671b-with-distributed-vllm.md108## Step 5: Monitor DeploymentCOMMENT
LOW…ials/running-deepseek-r1-671b-with-distributed-vllm.md118## Step 6: Run Inference via PlaygroundCOMMENT
LOW…rials/running-distributed-vllm-with-multiprocessing.md27## Step 1: Add GPUStack WorkersCOMMENT
LOW…rials/running-distributed-vllm-with-multiprocessing.md35## Step 2: Deploy the Model with the MP BackendCOMMENT
LOW…rials/running-distributed-vllm-with-multiprocessing.md72## Step 3: Monitor DeploymentCOMMENT
LOW…rials/running-distributed-vllm-with-multiprocessing.md83## Step 4: Verify via the PlaygroundCOMMENT
LOWdocs/tutorials/routing-with-lb-policies.md11## Step 1: Create the RouteCOMMENT
LOWdocs/tutorials/routing-with-lb-policies.md20## Step 2: Understand How Session Affinity and Least Inflight Request InteractCOMMENT
LOWdocs/tutorials/routing-with-lb-policies.md45## Step 3: Enable Session Affinity and Least Inflight RequestCOMMENT
LOWdocs/tutorials/routing-with-lb-policies.md56## Step 4: Add Decision Service RoutingCOMMENT
LOWdocs/tutorials/inference-with-tool-calling.md20## Step 1: Deploy the ModelCOMMENT
LOW⚡docs/tutorials/inference-with-tool-calling.md55## Step 2: Generate an API KeyCOMMENT
LOW⚡docs/tutorials/inference-with-tool-calling.md64## Step 3: Do InferenceCOMMENT
LOW⚡gpustack/scheduler/calculator.py918 # Step 1: Apply filters to reduce broadcast scopeCOMMENT
LOWgpustack/scheduler/calculator.py945 # Step 2: Broadcast to filtered workersCOMMENT
LOWgpustack/scheduler/calculator.py1035 # Step 1: Apply worker filters before broadcastingCOMMENT
LOWgpustack/scheduler/calculator.py1070 # Step 2: Broadcasting to filtered workersCOMMENT
3 more matches not shown…
Cross-Language Confusion20 hits · 99 pts
SeverityFileLineSnippetContext
HIGHtests/routers/test_usage_export_integration.py952 # Untracked carries no identity at all (the field is omitted, not null),COMMENT
HIGH⚡tests/charts/test_chart_render.py273 # Helm drops a key set to null, and plain truthiness would read thatCOMMENT
HIGHtests/routes/test_gpu_service_search_alignment.py3All of them render ``displayName || name`` in the Name column and all of themSTRING
HIGH⚡tests/routes/plugins/test_registry.py202 # {"p2": null} mentions another registered plugin only — p1 is untouchedCOMMENT
HIGHgpustack/cloud_providers/user_data.py51ExecStart=/bin/bash -c "/opt/gpustack-run-worker.sh && systemctl disable post-reboot.service"CODE
HIGHgpustack/utils/ephemeral_ports.py187 "sudo tee -a /etc/sysctl.conf && sudo sysctl -p",CODE
HIGHgpustack/schemas/organizations.py156 label. The UI is expected to render ``display_name || name``;STRING
HIGH⚡gpustack/worker/model_meta.py76 "docker_label": null,STRING
HIGH⚡gpustack/worker/model_meta.py80 "max_stop_sequences": null,STRING
HIGH⚡gpustack/worker/model_meta.py81 "max_waiting_tokens": null,STRING
HIGH⚡gpustack/worker/model_meta.py82 "sha": null,STRING
HIGH⚡gpustack/worker/model_meta.py83 "validation_workers": null,STRING
HIGH⚡gpustack/worker/model_meta.py85 "waiting_served_ratio": null,STRING
HIGH⚡gpustack/worker/model_meta.py92 "model_sha": null,STRING
HIGHgpustack/worker/backends/base.py1363 rm -rf /usr/local/cuda/compat 2>/dev/null || trueCODE
HIGHgpustack/worker/backends/base.py1364 ldconfig 2>/dev/null || trueCODE
HIGHgpustack/routes/users.py281 # ``{"source": null}`` explicitly would otherwise write NULLCOMMENT
HIGHgpustack/routes/gpu_instances_helper.py74 ``display_name || name`` as the UI writes it, where ``nullif(..., '')`` isSTRING
HIGHgpustack/routes/plugins/registry.py157 f"plugins.{plugin.name} must be an object or null, got {type(value).__name__}"CODE
HIGHgpustack/routes/plugins/base.py189 section to an explicit null) = delete the plugin's storedSTRING
Redundant / Tautological Comments55 hits · 87 pts
SeverityFileLineSnippetContext
LOWtests/websocket_proxy/test_proxy_server.py453 # Check if we have complete request (headers + body)COMMENT
LOWtests/websocket_proxy/test_proxy_server.py465 # Check if we have complete bodyCOMMENT
LOWcharts/gpustack-chart/values.yaml70 # Set false to reference the canonical Secret without creating it, for aCOMMENT
LOWgpustack/scheduler/evaluator.py1152 # Check if local path exists on serverCOMMENT
LOWgpustack/server/bus.py381 # Check if this is a cross-instance event (only has ID)COMMENT
LOWgpustack/policies/utils.py97 # Check if this GPU can be added to the current groupCOMMENT
LOWgpustack/policies/utils.py103 # Check if min_allocatable_memory >= current_gpu_allocatable_memory * 0.9COMMENT
LOWgpustack/policies/utils.py495 # Check if this is a main worker instanceCOMMENT
LOWgpustack/policies/utils.py498 # Check if this worker is used as a subordinate workerCOMMENT
LOWgpustack/policies/utils.py752 # Check if this GPU can be added to the current groupCOMMENT
LOWgpustack/policies/utils.py758 # Check if min_allocatable_vram >= current_allocatable_vram * 0.9COMMENT
LOW…date_selectors/custom_backend_resource_fit_selector.py362 # Check if GPU has enough VRAMCOMMENT
LOW…date_selectors/custom_backend_resource_fit_selector.py453 # Check if total VRAM is sufficientCOMMENT
LOW…date_selectors/custom_backend_resource_fit_selector.py503 # Check if worker has enough RAM for CPU inferenceCOMMENT
LOW…olicies/candidate_selectors/base_candidate_selector.py864 # Check if the GPU is satisfied the requirementCOMMENT
LOW…olicies/candidate_selectors/base_candidate_selector.py969 # Assign GPUs to the subordinate workerCOMMENT
LOW…cies/candidate_selectors/gguf_resource_fit_selector.py1978 # Check if the rpc gpus can offload even one layer.COMMENT
LOW…ck/policies/worker_filters/backend_framework_filter.py123 # Check if gpu_type is supported by custom_frameworkCOMMENT
LOW…ck/policies/worker_filters/backend_framework_filter.py129 # Check if gpu_type is supported by built_in_frameworksCOMMENT
LOW…ck/policies/worker_filters/backend_framework_filter.py189 # Check if model has specified backend_versionCOMMENT
LOW…ck/policies/worker_filters/backend_framework_filter.py196 # Check if any GPU condition is compatibleCOMMENT
LOWgpustack/schemas/common.py58 # Verify if the field is in the allowed sortable fieldsCOMMENT
LOWgpustack/websocket_proxy/message_server.py179 # Check if this is a local client (registered on this server)COMMENT
LOWgpustack/websocket_proxy/message_server.py316 # Check if this is a Starlette WebSocket or websockets WebSocketCOMMENT
LOWgpustack/websocket_proxy/message_server.py645 # Check if this is a server federation connectionCOMMENT
LOWgpustack/websocket_proxy/message.py279 # Check if msg_type is a valid BinaryType valueCOMMENT
LOWgpustack/websocket_proxy/connection_manager.py302 # Check if proxy accepted the connectionCOMMENT
LOWgpustack/api/middlewares.py420 # Check if the token is about to expire (less than 15 minutes left)COMMENT
LOWgpustack/worker/model_file_manager.py816 # Check if we should log based on time (2 seconds) or progress change (1%)COMMENT
LOWgpustack/worker/backends/sglang.py594 # Check if this is a multi-node deploymentCOMMENT
LOWgpustack/worker/backends/sglang.py770 # Check if tensor parallelism is already specifiedCOMMENT
LOWgpustack/client/generated_benchmark_client.py249 # Check if we have accumulated enough items (heuristic)COMMENT
LOW…tack/client/generated_cache_service_instance_client.py254 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_user_client.py247 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_model_client.py247 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_model_instance_client.py250 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_cache_service_client.py250 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_model_file_client.py249 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_model_route_target_client.py252 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_worker_client.py249 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_inference_backend_client.py252 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/routes/metrics.py40 # Check if we have a cached versionCOMMENT
LOWgpustack/routes/metrics.py86 # Write file in thread pool to avoid blocking event loopCOMMENT
LOW⚡gpustack/routes/inference_backend.py1455 # Check if the backend is being used by any modelsCOMMENT
LOWgpustack/routes/inference_backend.py572 # Check if this version has any built-in frameworksCOMMENT
LOWgpustack/routes/inference_backend.py1366 # Check if updating to a name that already exists (excluding current backend)COMMENT
LOWgpustack/routes/inference_backend.py1623 # Check if updating to a name that already exists (excluding current backend)COMMENT
LOWgpustack/routes/inference_backend.py1653 # Check if any versions are being removed and validate they're not in useCOMMENT
LOWgpustack/routes/inference_backend.py1742 # Check if removed versions are in useCOMMENT
LOW⚡gpustack/routes/worker/filesystem.py121 # Check if path existsCOMMENT
LOW⚡gpustack/routes/worker/filesystem.py125 # Check if path is a fileCOMMENT
LOW⚡gpustack/routes/worker/filesystem.py129 # Check if file is a config file for securityCOMMENT
LOWgpustack/routes/worker/filesystem.py173 # Check if path existsCOMMENT
LOW⚡gpustack/routes/worker/filesystem.py270 # Check if file existsCOMMENT
LOW⚡gpustack/routes/worker/filesystem.py276 # Check if path is a fileCOMMENT
Docstring Block Structure16 hits · 80 pts
SeverityFileLineSnippetContext
HIGHgpustack/mixins/active_record.py411 Parse dot-separated nested field expressions and generate appropriate database expressions for sorting.STRING
HIGHgpustack/scheduler/calculator.py693 Unified async entry point for getting pretrained config. Handles all model sources with appropriate fallback sSTRING
HIGHgpustack/scheduler/calculator.py869 Read a file from LOCAL_PATH model by querying workers. Steps: 1. Apply filters (GPU selector, label selectSTRING
HIGHgpustack/scheduler/calculator.py996 Get pretrained config from remote workers for LOCAL_PATH models. Args: model: Model with source LOCAL_STRING
HIGHgpustack/scheduler/calculator.py1020 Calculate model resource claim by running gguf-parser on a worker. Args: model: Model to calculate theSTRING
HIGHgpustack/scheduler/calculator.py1276 Read and parse model_index.json from local directory. Args: path: Directory path containing model_indeSTRING
HIGHgpustack/scheduler/calculator.py1310 Calculate total size of LLM model weights in root directory. Args: path: Directory path to scan RSTRING
HIGHgpustack/scheduler/calculator.py1346 Calculate total size of diffusion model weights. Logic: 1. Read model_index.json to get pipeline componentSTRING
HIGHgpustack/scheduler/calculator.py1412 Calculate model weight size based on model type. Unified entry point for calculating model weight sizes. STRING
HIGHgpustack/server/worker_selector.py23 Find a worker that has access to the specified path. Args: workers: List of workers to seaSTRING
HIGHgpustack/utils/file.py109Generic async retry wrapper for checking operations. Args: checker: A callable (sync or async) that performSTRING
HIGHgpustack/schemas/inference_backend.py169 Get configuration for a specific version. Args: version: Version string, uses default_versSTRING
HIGHgpustack/worker/backends/base.py991 Get the resource requests for the model instance. Args: mount_all_devices: STRING
HIGHgpustack/client/worker_filesystem_client.py131 Parse a GGUF file on a worker using gguf-parser. Args: worker: The worker to query STRING
HIGHgpustack/routes/worker/filesystem.py49 Validate path security to prevent directory traversal attacks. This function: 1. Resolves the absolute patSTRING
HIGHgpustack/routes/worker/logs.py480Serve one page of a restart's log, addressed by line number. Args: serve_log_dir: Directory containing servSTRING
Self-Referential Comments21 hits · 67 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/routers/test_workers.py148 # Create a new worker (no existing worker)COMMENT
MEDIUM⚡tests/routers/test_workers.py161 # Create an existing worker with some labelsCOMMENT
MEDIUMtests/routers/test_workers.py32 # Create an existing worker with maintenance mode enabledCOMMENT
MEDIUMtests/routers/test_workers.py48 # Create a worker registration request without maintenance fieldCOMMENT
MEDIUMtests/routers/test_workers.py79 # Create an existing worker with maintenance mode enabledCOMMENT
MEDIUMtests/routers/test_workers.py95 # Create a worker update request with maintenance explicitly disabledCOMMENT
MEDIUMtests/routers/test_workers.py126 # Create a new worker registration requestCOMMENT
MEDIUMtests/routers/test_workers.py177 # Create a worker update with new labelsCOMMENT
MEDIUM…licies/worker_filters/test_backend_framework_filter.py100 # Create a mock session that returns the backendCOMMENT
MEDIUM…licies/worker_filters/test_backend_framework_filter.py255 # Create a worker with mixed GPU types (simulate by modifying the worker)COMMENT
MEDIUM…licies/worker_filters/test_backend_framework_filter.py450 # Create a worker with empty GPU listCOMMENT
MEDIUM…licies/worker_filters/test_backend_framework_filter.py565 # Create a model that will result in backend_name being NoneCOMMENT
MEDIUM…licies/worker_filters/test_backend_framework_filter.py1079 # Create a worker with ROCm GPU (incompatible with vLLM in this test scenario)COMMENT
MEDIUMtests/worker/test_logs.py32 # Create a log file with 2KB in two linesCOMMENT
MEDIUM⚡gpustack/server/bus.py300 # Create a closure that captures the topicCOMMENT
MEDIUMgpustack/policies/utils.py922 # Create a copy of the worker with sorted GPUsCOMMENT
MEDIUMgpustack/websocket_proxy/message_server.py196 # Create a future that will be resolved when the peer connectsCOMMENT
MEDIUMgpustack/websocket_proxy/connection_manager.py315 # Create a tunnel connection for this forwardCOMMENT
MEDIUMgpustack/worker/schemas/benchmark_runner.py41 # Define a breakdown for request countsSTRING
MEDIUM⚡gpustack/routes/inference_backend.py1573 # Create the backendCOMMENT
MEDIUMgpustack/routes/inference_backend.py1105 # Create the response with the same structure as the originalCOMMENT
Modern AI Meta-Vocabulary11 hits · 38 pts
SeverityFileLineSnippetContext
MEDIUMtests/routers/test_models.py911# placement and a credential, plus a plain embedding model.COMMENT
MEDIUM⚡tests/worker/test_pd_injection.py150 # No `disaggregation` at all: plain multi-role orchestration.COMMENT
MEDIUM⚡tests/routes/test_model_roles_validation.py62 # roles without disaggregation is orchestration, not PD.COMMENT
MEDIUMtests/routes/test_gpu_service_search_alignment.py373 # which has the cluster-visibility scaffolding this module does not.COMMENT
MEDIUM⚡gpustack/server/controllers.py951 # The snapshot convergence path is event-driven; theCOMMENT
MEDIUMgpustack/schemas/benchmark.py476 # across requests (system prompt / RAG context) to exercise prefix-cacheCOMMENT
MEDIUMgpustack/schemas/models.py1148 # multi-role orchestration; both together is PD.COMMENT
MEDIUMgpustack/schemas/models.py1159 # multi-role orchestration), and it wants this just as much. TheCOMMENT
MEDIUMgpustack/worker/serve_manager.py1145 # Use the event-driven local cache instead of an API call.COMMENT
MEDIUMgpustack/assets/model-catalog-modelscope.yaml1852 # SGLang INT4 alternative (better for long agentic sessions via RadixAttention)COMMENT
MEDIUMgpustack/assets/model-catalog.yaml1720 # SGLang INT4 alternative (better for long agentic sessions via RadixAttention)COMMENT
Verbosity Indicators12 hits · 17 pts
SeverityFileLineSnippetContext
LOW⚡tests/websocket_proxy/test_server_federation.py378 # Step 1: Server1 connects to Server2 as peerCOMMENT
LOW⚡tests/websocket_proxy/test_server_federation.py382 # Step 2: Connect a client to Server2 (not Server1)COMMENT
LOW⚡tests/websocket_proxy/test_server_federation.py395 # Step 3: Server2 syncs its client to Server1 via peer connectionCOMMENT
LOW⚡tests/websocket_proxy/test_server_federation.py400 # Step 4: Server1 disconnects from Server2COMMENT
LOW⚡tests/websocket_proxy/test_server_federation.py404 # Step 5: Server1 should clean up clients synced from Server2COMMENT
LOW⚡gpustack/scheduler/calculator.py918 # Step 1: Apply filters to reduce broadcast scopeCOMMENT
LOWgpustack/scheduler/calculator.py945 # Step 2: Broadcast to filtered workersCOMMENT
LOWgpustack/scheduler/calculator.py1035 # Step 1: Apply worker filters before broadcastingCOMMENT
LOWgpustack/scheduler/calculator.py1070 # Step 2: Broadcasting to filtered workersCOMMENT
LOW…es/candidate_selectors/sglang_resource_fit_selector.py1080 # Step 1: Use the minimum GPU memory of all workers to calculate _chunked_prefill_size and _cuda_graph_max_bs.COMMENT
LOW…es/candidate_selectors/sglang_resource_fit_selector.py1166 # Step 2: Calculate reserved memory by other configsCOMMENT
LOW…es/candidate_selectors/sglang_resource_fit_selector.py1218 # Step 3: adjust mem_fraction_static for VL modelsCOMMENT
AI Slop Vocabulary7 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMtests/server/test_sync_replicas_roles.py182 # reason the deletes are: this harness has no database.COMMENT
LOWtests/worker/backends/test_backend.py1263 # Script + command is None: just pass the args through under the script.COMMENT
LOWgpustack/server/cache.py155 # but for now we just use the class name and suffix for simplicity.COMMENT
MEDIUMgpustack/utils/hub.py548 # Return an empty dict here to facilitate special handling by upstream methods.COMMENT
MEDIUMgpustack/schemas/pd_modes.py647 """Environment a router needs in order to start at all.STRING
MEDIUMgpustack/worker/pd_router.py58 """What a managed router needs in order to start."""STRING
MEDIUM⚡gpustack/routes/worker/filesystem.py267 # 2. Path validation - use validate_path_security for robust securityCOMMENT
Dead Code6 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtests/gpu_instances/test_operator_settings.py732CODE
MEDIUMtests/worker/test_worker_exporter.py21CODE
MEDIUMtests/routes/test_model_routes.py227CODE
MEDIUMtests/routes/test_model_routes.py681CODE
MEDIUMtests/routes/test_gpu_instance_type_flavors.py233CODE
MEDIUMtests/gateway/test_operator_subscription.py301CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtests/k8s/test_template_config.py125 processor = Cluster.__table__.c.k8s_options.type.bind_processor(sqlite.dialect())CODE
AI Structural Patterns12 hits · 10 pts
SeverityFileLineSnippetContext
LOW…/server/test_resource_usage_collector_type_snapshot.py65CODE
LOWtests/utils/model.py33CODE
LOWtests/worker/test_benchmark_manager.py897CODE
LOWtests/routes/test_gpu_instance_types.py246CODE
LOWgpustack/server/worker_request.py214CODE
LOWgpustack/utils/template.py100CODE
LOWgpustack/routes/resource_usage.py2259CODE
LOWgpustack/routes/model_revisions.py116CODE
LOWgpustack/routes/model_revisions.py132CODE
LOWgpustack/routes/model_routes.py298CODE
LOWgpustack/routes/benchmarks.py130CODE
LOWgpustack/routes/benchmarks.py217CODE
Overly Generic Function Names14 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/websocket_proxy/test_connection.py89 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_proxy_server.py72 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_proxy_server.py166 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_proxy_server.py343 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_proxy_server.py443 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py86 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py181 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py277 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py369 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py458 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py552 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py648 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py784 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py914 async def handle_request(reader, writer):CODE
Fake / Example Data5 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/cloud_providers/test_digital_ocean.py64 return DigitalOceanClient(token='dummy-token')CODE
LOWtests/api/test_auth.py943 AsyncMock(return_value={"email": "user@example.com", "name": "Test User"}),CODE
LOW⚡tests/worker/test_pd_diagnostics.py96 assert "kv_transfer_ifname" in found.summary or "placeholder" in found.summaryCODE
LOWtests/routes/test_cache_services.py2203 assert "placeholder" in exc_info.value.messageCODE
LOWdocs/image-selector/index.html148 <pre id="image-list" class="image-commands"><code class="placeholder"CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWhack/perf/plot_tps_comparison.py114# Example usageCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgpustack/server/controllers.py7172 # sync targets will update model route record so make sure to do it before other operationsCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgpustack/gateway/__init__.py454 # TODO: add validation in the futureCOMMENT