AI Slop Code Risk Monitor

kubernetes/test-infra

SlopCodeMonitor badge for kubernetes/test-infra Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Test infrastructure for the Kubernetes project.

2.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for kubernetes/test-infra, a Go project with 4,025 GitHub stars. SynthScan examined 351,720 lines of code across 1430 source files, recording 556 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 2.1 (Low 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.

2.1
Adjusted Signal
2.1
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
4.0K
Stars
Go
Language
351.7K
Lines of Code
1.4K
Files
556
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 7.9/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

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

Agent Over-Engineering Ratio 3.2/100 · LOW

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

PR Review Velocity Impact 10.1/100 · LOW

Which changes need focused human review? 556 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 0HIGH 20MEDIUM 46LOW 490

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 556 distinct pattern matches across 18 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.

Over-Commented Block238 hits · 238 pts
SeverityFileLineSnippetContext
LOWmetrics/bigquery_test.py1#!/usr/bin/env python3COMMENT
LOWmetrics/bigquery.py1#!/usr/bin/env python3COMMENT
LOWmetrics/get_jq.sh1#!/usr/bin/env bashCOMMENT
LOWtestgrid/config-upload.sh1#!/usr/bin/env bashCOMMENT
LOWtestgrid/config-updater-sa.sh1#!/usr/bin/env bashCOMMENT
LOWtestgrid/config-updater-sa.sh21# to update the TG config and load a service account key into the cluster'sCOMMENT
LOWtestgrid/conformance/upload_e2e.py1#!/usr/bin/env python3COMMENT
LOWtestgrid/conformance/upload_e2e.py21# - the log file contains ginkgo's output (true for kubetest and sonobuoy..)COMMENT
LOWlogexporter/cluster/log-dump.sh1#!/usr/bin/env bashCOMMENT
LOWlogexporter/cluster/log-dump.sh941 # `gsutil cp -r /tmp/dir/logs ${gcs_artifacts_dir}` willCOMMENT
LOWconfig/pj-on-kind.sh1#!/usr/bin/env bashCOMMENT
LOWconfig/mkpj.sh1#!/usr/bin/env bashCOMMENT
LOW…ig/jobs/kubernetes-sigs/agent-sandbox/generate_jobs.py1#!/usr/bin/env python3COMMENT
LOW…bernetes-sigs/cluster-api/cluster-api-prowjob-gen.yaml1# This is the configuration file for cluster-apis prowjob-gen which is locatedCOMMENT
LOW…ra-driver-nvidia-gpu/dra-driver-nvidia-gpu-lambda.yaml1# Prow jobs for DRA GPU e2e tests on Lambda Cloud.COMMENT
LOW…nfig/jobs/image-pushing/k8s-staging-e2e-test-images.sh1#!/usr/bin/env bashCOMMENT
LOWconfig/jobs/image-pushing/k8s-staging-perf-tests.sh1#!/usr/bin/env bashCOMMENT
LOW…s/image-pushing/k8s-staging-karpenter-cluster-api.yaml1postsubmits:COMMENT
LOWconfig/jobs/image-pushing/k8s-staging-sig-storage.sh1#!/usr/bin/env bashCOMMENT
LOWconfig/jobs/kubernetes-csi/gen-jobs.sh1#! /bin/bash -eCOMMENT
LOWconfig/jobs/kubernetes-csi/gen-jobs.sh281COMMENT
LOWconfig/jobs/kubernetes-csi/gen-jobs.sh621 # docker-in-docker needs privileged modeCOMMENT
LOW…kubernetes/sig-k8s-infra/trusted/sig-k8s-infra-apps.sh1#!/usr/bin/env bashCOMMENT
LOW…obs/kubernetes/sig-k8s-infra/trusted/releng/sync-ar.sh1#!/usr/bin/env bashCOMMENT
LOW…ig-k8s-infra/releng/artifact-promotion-presubmits.yaml41 # branches:COMMENT
LOW…der-openstack/cloud-provider-openstack-presubmits.yaml141 # - ^master$COMMENT
LOW…g/jobs/kubernetes/sig-cloud-provider/azure/generate.sh1#!/usr/bin/env bashCOMMENT
LOWconfig/jobs/kubernetes/kops/build_vars.py1# Copyright 2025 The Kubernetes Authors.COMMENT
LOWconfig/jobs/kubernetes/kops/build_jobs.py1# Copyright 2020 The Kubernetes Authors.COMMENT
LOWconfig/jobs/kubernetes/kops/build_jobs.py981 "--set=cluster.spec.kubeControllerManager.controllers=selinux-warning-controller"COMMENT
LOWconfig/jobs/kubernetes/kops/helpers.py1# Copyright 2020 The Kubernetes Authors.COMMENT
LOWconfig/jobs/kubernetes/sig-node/node-kubelet.yaml1341#- name: ci-kubernetes-node-kubelet-performance-testCOMMENT
LOWconfig/jobs/kubernetes/sig-node/node-kubelet.yaml1361# - --provider=gceCOMMENT
LOWimages/bootstrap/runner.sh1#!/usr/bin/env bashCOMMENT
LOWimages/bootstrap/runner.sh61 # A cgroup cannot both contain processes and parent controller-enabledCOMMENT
LOWimages/bootstrap/entrypoint.sh1#!/usr/bin/env bashCOMMENT
LOWimages/kubekins-e2e-v2/login.sh1#!/usr/bin/env bashCOMMENT
LOWimages/kubekins-e2e-v2/runner.sh1#!/usr/bin/env bashCOMMENT
LOWimages/kubekins-e2e-v2/runner.sh41 # we need enabled by defaultCOMMENT
LOWimages/krte/wrapper.sh1#!/usr/bin/env bashCOMMENT
LOWimages/builder/run.sh1#!/bin/shCOMMENT
LOWimages/kubekins-e2e/login.sh1#!/usr/bin/env bashCOMMENT
LOWimages/kubekins-e2e/install-bazel.sh1#!/usr/bin/env bashCOMMENT
LOWimages/kubekins-e2e/kops-e2e-runner.sh1#!/usr/bin/env bashCOMMENT
LOWhack/analyze-memory-profiles.py1#!/usr/bin/env python3COMMENT
LOWhack/coalesce.py1#!/usr/bin/env python3COMMENT
LOWhack/pylint_bin.py1#!/usr/bin/env python3COMMENT
LOWhack/generate-jobs.py1# Copyright 2025 The Kubernetes Authors.COMMENT
LOWhack/run-in-python-container.sh1#!/usr/bin/env bashCOMMENT
LOWhack/coalesce_test.py1#!/usr/bin/env python3COMMENT
LOWhack/run-in-node-container.sh1#!/usr/bin/env bashCOMMENT
LOWhack/rollup-js.sh1#!/usr/bin/env bashCOMMENT
LOWhack/ci/test-infra-e2e-k8s.sh1#!/bin/shCOMMENT
LOWhack/ci/test-infra-e2e-k8s.sh21# This version has no defaults which restrict which tests are running.COMMENT
LOWhack/ci/test-infra-e2e-k8s.sh41# JSON or YAML encoding of a string/string (!) map: {"apia.example.com/v1alpha1": "true", "apib.example.com/v1bCOMMENT
LOWhack/ci/test-infra-e2e-k8s.sh181COMMENT
LOWhack/make-rules/update/gofmt.sh1#!/usr/bin/env bashCOMMENT
LOWhack/make-rules/update/file-perms.sh1#!/usr/bin/env bashCOMMENT
LOWhack/make-rules/update/ts-rollup.sh1#!/usr/bin/env bashCOMMENT
LOWhack/make-rules/update/misspell.sh1#!/usr/bin/env bashCOMMENT
178 more matches not shown…
Hyper-Verbose Identifiers103 hits · 108 pts
SeverityFileLineSnippetContext
LOWmetrics/bigquery_test.py116 def test_validate_metric_name(self):CODE
LOWmetrics/bigquery_test.py191 def test_collect_valid_jobs_nonexistent_dir(self):CODE
LOWmetrics/bigquery_test.py196 def test_collect_valid_jobs_real_config(self):CODE
LOW⚡metrics/bigquery_test.py222 def test_collect_valid_jobs_null_values(self):CODE
LOWmetrics/bigquery_test.py265 def test_filter_json_by_jobs_object_format(self):CODE
LOWmetrics/bigquery_test.py290 def test_filter_json_by_jobs_array_format(self):CODE
LOWmetrics/bigquery.py93def _extract_jobs_from_config(config):CODE
LOWtestgrid/conformance/upload_e2e.py66def log_line_strip_escape_sequences(line):CODE
LOWtestgrid/conformance/upload_e2e.py125def testgrid_started_json_contents(start_time):CODE
LOWtestgrid/conformance/upload_e2e.py140def testgrid_finished_json_contents(finish_time, passed, metadata):CODE
LOW…ig/jobs/kubernetes-sigs/agent-sandbox/generate_jobs.py85def presubmit_test_autogen_up_to_date(job):CODE
LOW…ig/jobs/kubernetes-sigs/agent-sandbox/generate_jobs.py127def presubmit_benchmarks_kops_gcp_claims(job):CODE
LOW…ig/jobs/kubernetes-sigs/agent-sandbox/generate_jobs.py137def presubmit_verify_olm_bundle(job):CODE
LOWconfig/jobs/kubernetes/kops/build_vars.py37def drop_unsupported_versions(original_list, version_to_drop):CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py1357def generate_presubmits_ai_conformance():CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py1487def generate_presubmits_distros():CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py1720def generate_periodics_upgrades_dns_none():CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py1758def generate_periodics_dns_none():CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py1807def generate_presubmits_dns_none():CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py1851def generate_presubmits_upgrades_dns_none():CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py1888def generate_presubmits_scale():CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py2189def generate_presubmits_branch():CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py2220def generate_presubmits_network_plugins():CODE
LOWkettle/make_json_test.py494 def test_path_to_job_and_number(self):CODE
LOWkettle/make_db_test.py90 def test_get_builds_normal_list(self):STRING
LOW⚡kettle/make_db_test.py106 def test_get_builds_latest_fallback(self):STRING
LOW⚡kettle/make_db_test.py110 def test_get_builds_non_sequential(self):STRING
LOW⚡kettle/make_db_test.py116 def test_get_builds_exclude_list_no_match(self):STRING
LOW⚡kettle/make_db_test.py121 def test_get_builds_exclude_list_match(self):STRING
LOW⚡kettle/make_db_test.py126 def test_get_builds_exclude_list_match_using_regexp(self):STRING
LOWkettle/make_json.py113 def populate_path_to_job_and_number(self):CODE
LOWgubernator/view_build_test.py196 def test_finished_has_revision(self):CODE
LOWgubernator/view_build_test.py254 def test_build_show_passed_skipped(self):CODE
LOWgubernator/view_build_test.py273 def test_build_testgrid_links(self):CODE
LOWgubernator/view_build_test.py280 def test_build_failure_no_text(self):CODE
LOWgubernator/view_build_test.py376 def test_build_directory_redir(self):CODE
LOW⚡gubernator/view_build_test.py406 def test_view_build_list_with_latest(self):CODE
LOW⚡gubernator/view_build_test.py410 def test_view_build_list_with_old_latest(self):CODE
LOW⚡gubernator/view_build_test.py415 def test_view_build_list_no_latest(self):CODE
LOW⚡gubernator/view_build_test.py418 def test_view_build_list_indirect_with_latest(self):CODE
LOW⚡gubernator/view_build_test.py422 def test_view_build_list_indirect_no_latest(self):CODE
LOWgubernator/view_build_test.py436 def test_recent_runs_across_prs(self):CODE
LOWgubernator/filters_test.py108 def test_render_status_complex(self):CODE
LOWgubernator/gcs_async_test.py34def install_handler_dispatcher(stub, matches, dispatch):CODE
LOWgubernator/pull_request_test.py45 def test_builds_to_table_no_header(self):CODE
LOWgubernator/pull_request_test.py56 def test_builds_to_table_podutils(self):CODE
LOWgubernator/main_test.py89 def test_nodelog_missing_files(self):CODE
LOWgubernator/main_test.py133 def test_nodelog_no_junit_apiserver(self):CODE
LOWgubernator/main_test.py184 def test_timestamp_no_apiserver(self):CODE
LOWgubernator/filters.py164def has_lgtm_without_missing_approval(payload, user):CODE
LOWgubernator/view_pr_test.py118 def test_pr_build_log_redirect(self):CODE
LOWgubernator/third_party/cloudstorage/cloudstorage_api.py534 def _should_get_another_batch(self, content):CODE
LOWgubernator/third_party/cloudstorage/common.py176def get_stored_content_length(headers):CODE
LOWgubernator/third_party/cloudstorage/api_utils.py72def _get_default_retry_params():CODE
LOWgubernator/third_party/cloudstorage/api_utils.py302 def belong_to_current_request(self):CODE
LOW⚡gubernator/third_party/defusedxml/expatbuilder.py29 def defused_start_doctype_decl(self, name, sysid, pubid,CODE
LOW⚡gubernator/third_party/defusedxml/expatbuilder.py37 def defused_unparsed_entity_decl(self, name, base, sysid, pubid,CODE
LOW⚡gubernator/third_party/defusedxml/expatbuilder.py42 def defused_external_entity_ref_handler(self, context, base, sysid,CODE
LOW⚡gubernator/third_party/defusedxml/xmlrpc.py125 def defused_start_doctype_decl(self, name, sysid, pubid,CODE
LOW⚡gubernator/third_party/defusedxml/xmlrpc.py133 def defused_unparsed_entity_decl(self, name, base, sysid, pubid,CODE
43 more matches not shown…
Self-Referential Comments22 hits · 69 pts
SeverityFileLineSnippetContext
MEDIUMmetrics/bigquery_test.py136 # Create a temporary directory with test job configsCOMMENT
MEDIUMmetrics/bigquery_test.py140 # Create a presubmits configCOMMENT
MEDIUMmetrics/bigquery_test.py152 # Create a postsubmits configCOMMENT
MEDIUMmetrics/bigquery_test.py163 # Create a periodics configCOMMENT
MEDIUM⚡metrics/bigquery_test.py224 # Create a temporary directory with test job configsCOMMENT
MEDIUM⚡metrics/bigquery_test.py228 # Create a config with explicit null values (common in real configs)COMMENT
MEDIUMmetrics/bigquery_test.py240 # Create a config with only some fields presentCOMMENT
MEDIUMmetrics/bigquery_test.py252 # Create an empty config (yaml.safe_load returns None)COMMENT
MEDIUMtestgrid/config-updater-sa.sh52 # Create a service account for performing Prow deployments in a GCP project.COMMENT
MEDIUMlogexporter/cluster/log-dump.sh113# Create a temp dir that'll be deleted at the end of this bash session.COMMENT
MEDIUMlogexporter/cluster/log-dump.sh735 # Create the logexporter namespace, service-account secret and the logexporter daemonset within that namespace.COMMENT
MEDIUMconfig/jobs/kubernetes/kops/build_vars.py15# This file contains common variables and lists for generating kops prow jobs.COMMENT
MEDIUMimages/kubekins-e2e/kops-e2e-runner.sh62# Define a custom instance lister for cluster/log-dump/log-dump.sh.COMMENT
MEDIUMscenarios/kubernetes_e2e.py143 # Create a suffix based on the build number and job name.COMMENT
MEDIUMexperiment/find-merge-conflicts.sh85 # Create a branch to attempt the mergeCOMMENT
MEDIUMexperiment/create-build-project.sh18# Create a new GCP projectCOMMENT
MEDIUMexperiment/create-build-project.sh21# Create a default build clusterCOMMENT
MEDIUMexperiment/compatibility-versions/common.sh21# This file contains shared functions and variables for kind e2e scriptsCOMMENT
MEDIUM…ent/compatibility-versions/e2e-skip-version-testing.sh72 # Define the path within the temp directory for the cloned repoCOMMENT
MEDIUM…riment/compatibility-versions/e2e-two-steps-upgrade.sh113 # Define the path within the temp directory for the cloned repoCOMMENT
MEDIUM…mpatibility-versions/e2e-k8s-compatibility-versions.sh110 # Define the path within the temp directory for the cloned repoCOMMENT
MEDIUMjenkins/bootstrap.py936 # Create a script for use with GIT_SSH, which defines the program git usesCOMMENT
Empty Error Handlers11 hits · 55 pts
SeverityFileLineSnippetContext
HIGHhack/coalesce.py87except OSError:CODE
HIGHkettle/make_db.py293except ET.ParseError:CODE
HIGHkettle/make_db.py157except (ValueError, TypeError):CODE
HIGHgubernator/main.py58except KeyError:CODE
HIGHgubernator/filters.py95except (AttributeError, TypeError):CODE
HIGHgubernator/github/main_test.py109except AttributeError:CODE
HIGHexperiment/parse_build_log.py44except: # pylint: disable=bare-exceptCODE
HIGHjenkins/bootstrap.py507except subprocess.CalledProcessError:CODE
HIGHjenkins/bootstrap.py516except subprocess.CalledProcessError:CODE
HIGHjenkins/bootstrap.py269except OSError:CODE
HIGHjenkins/bootstrap.py777except subprocess.CalledProcessError:CODE
Excessive Try-Catch Wrapping28 hits · 54 pts
SeverityFileLineSnippetContext
MEDIUMmetrics/bigquery.py364 print('Error: --filter-stale-jobs requires --jobs-dir', file=sys.stderr)CODE
LOWtriage/generate_job_repos.py41 except Exception:CODE
MEDIUMkettle/stream.py114 print(f"Error running {func.__name__} \CODE
LOWkettle/model.py177 except Exception as e: # pylint: disable=broad-exceptSTRING
LOWexperiment/move-annotations.py84 except Exception as e:CODE
LOWexperiment/edit-prowjobs.py117 except Exception as e: # pylint: disable=broad-exceptCODE
LOWexperiment/compare-yaml.py43 except Exception as e:CODE
MEDIUM⚡experiment/audit/audit_log_parser.py62 print(f"Error: Failed to parse YAML content from {url}")CODE
MEDIUM⚡experiment/audit/audit_log_parser.py70 print(f"Error: Failed to download {endpoint_type} from {url}")CODE
MEDIUM⚡experiment/audit/audit_log_parser.py75 print(f"Error: Unexpected failure loading {endpoint_type} from {url}")CODE
MEDIUM⚡experiment/audit/audit_log_parser.py76 print(f"Error details: {e}")CODE
MEDIUM⚡experiment/audit/audit_log_parser.py197 print(f"Error downloading Swagger spec: {e}")CODE
MEDIUM⚡experiment/audit/audit_log_parser.py201 print(f"Error parsing Swagger JSON: {e}")CODE
MEDIUM⚡experiment/audit/audit_log_parser.py731 print(f"Error: File {file_path} not found")CODE
MEDIUM⚡experiment/audit/audit_log_parser.py734 print(f"Error reading file {file_path}: {e}")CODE
MEDIUMexperiment/audit/audit_log_parser.py110 print(f"Error: Expected YAML list format for {endpoint_type}, got {type(yaml_data)}")CODE
MEDIUMexperiment/audit/audit_log_parser.py850 print(f"Error writing to file: {e}")CODE
MEDIUMexperiment/audit/audit_log_parser.py954 print(f"Error writing {json_output_path}: {e}")CODE
LOW⚡experiment/audit/audit_log_parser.py74 except Exception as e: # pylint: disable=broad-exceptCODE
LOW⚡experiment/audit/audit_log_parser.py204 except Exception as e: # pylint: disable=broad-exceptCODE
LOW⚡experiment/audit/audit_log_parser.py724 except Exception: # pylint: disable=broad-exceptCODE
MEDIUMexperiment/audit/audit_log_parser.py1000 print("Error: Failed to load Swagger specification")STRING
MEDIUMexperiment/audit/kubernetes_api_analysis.py64 print(f"Error reading swagger specification: {e}")CODE
MEDIUMexperiment/audit/kubernetes_api_analysis.py108 print(f"Error: Audit file not found: {audit_file}")CODE
MEDIUMexperiment/audit/kubernetes_api_analysis.py249 print(f"Error accessing GCS bucket: {e}")CODE
MEDIUMexperiment/audit/kubernetes_api_analysis.py252 print("Error: gsutil not found. Please install Google Cloud SDK.")CODE
LOWjenkins/bootstrap.py1113 except Exception: # pylint: disable=broad-exceptCODE
MEDIUMjenkins/bootstrap.py234def commit_date(git, commit, call):CODE
Deep Nesting57 hits · 53 pts
SeverityFileLineSnippetContext
LOWmetrics/bigquery.py121CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py89CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py335CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py531CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py2888CODE
LOWhack/coalesce.py55CODE
LOWhack/generate-jobs.py48CODE
LOWhack/boilerplate/verify_boilerplate.py177CODE
LOWtriage/generate_job_repos.py26CODE
LOWkettle/make_db.py284CODE
LOWkettle/make_db.py51CODE
LOWkettle/make_db.py176CODE
LOWkettle/stream.py74CODE
LOWkettle/model.py161CODE
LOWkettle/make_json.py163CODE
LOWkettle/make_json.py226CODE
LOWkettle/make_json.py249CODE
LOWgubernator/pb_glance.py24CODE
LOWgubernator/update_config.py23CODE
LOWgubernator/testgrid.py97CODE
LOWgubernator/gcs_async.py29CODE
LOWgubernator/filters.py100CODE
LOWgubernator/third_party/cloudstorage/cloudstorage_api.py282CODE
LOWgubernator/third_party/cloudstorage/cloudstorage_api.py443CODE
LOWgubernator/third_party/cloudstorage/cloudstorage_api.py493CODE
LOWgubernator/third_party/cloudstorage/errors.py96CODE
LOWgubernator/github/classifier.py94CODE
LOWgubernator/github/classifier.py280CODE
LOWgubernator/github/classifier.py354CODE
LOWgubernator/github/models.py30CODE
LOWscenarios/kubernetes_e2e.py179CODE
LOWscenarios/kubernetes_janitor.py134CODE
LOWexperiment/move-annotations.py41CODE
LOWexperiment/move-annotations.py72CODE
LOWexperiment/edit-prowjobs.py64CODE
LOWexperiment/migrate_testgrid_tabs.py40CODE
LOWexperiment/migrate_testgrid_tabs.py63CODE
LOWexperiment/migrate_testgrid_tabs.py110CODE
LOWexperiment/migrate_testgrid_tabs.py190CODE
LOWexperiment/dependencies/unwanted_deps.py213CODE
LOWexperiment/dependencies/unwanted_deps.py297CODE
LOWexperiment/dependencies/gomod_staleness.py66CODE
LOWexperiment/audit/audit_log_parser.py81CODE
LOWexperiment/audit/audit_log_parser.py528CODE
LOWexperiment/audit/audit_log_parser.py636CODE
LOWexperiment/audit/audit_log_parser.py757CODE
LOWexperiment/audit/audit_log_parser.py167CODE
LOWexperiment/audit/audit_log_parser.py209CODE
LOWexperiment/audit/audit_log_parser.py235CODE
LOWexperiment/audit/audit_log_parser.py303CODE
LOWexperiment/audit/kubernetes_api_analysis.py44CODE
LOWexperiment/audit/kubernetes_api_analysis.py93CODE
LOWexperiment/audit/kubernetes_api_analysis.py129CODE
LOWexperiment/audit/kubernetes_api_analysis.py182CODE
LOWjenkins/bootstrap.py435CODE
LOWjenkins/bootstrap.py672CODE
LOWjenkins/bootstrap_test.py1138CODE
Docstring Block Structure9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHgubernator/third_party/cloudstorage/cloudstorage_api.py53Opens a Google Cloud Storage file and returns it as a File-like object. Args: filename: A Google Cloud Storage fiSTRING
HIGHgubernator/third_party/cloudstorage/cloudstorage_api.py130Get GCSFileStat of a Google Cloud storage file. Args: filename: A Google Cloud Storage filename of form '/bucket/STRING
HIGHgubernator/third_party/cloudstorage/cloudstorage_api.py197Returns a GCSFileStat iterator over a bucket. Optional arguments can limit the result to a subset of files under buckSTRING
HIGHgubernator/third_party/cloudstorage/common.py247Validate and process a Google Cloud Stoarge path prefix. Args: path_prefix: a Google Cloud Storage path prefix ofSTRING
HIGHgubernator/third_party/cloudstorage/storage_api.py324Read one line delimited by '\n' from the file. A trailing newline character is kept in the string. It may be absentSTRING
HIGHgubernator/third_party/cloudstorage/storage_api.py366Read data from RAW file. Args: size: Number of bytes to read as integer. Actual number of bytes read STRING
HIGHgubernator/third_party/cloudstorage/storage_api.py456Get a segment of the file from Google Storage. Args: start: start offset of the segment. Inclusive. Have to bSTRING
HIGHgubernator/third_party/cloudstorage/api_utils.py139Run a tasklet with retry. The retry should be transparent to the caller: if no results are successful, the exceSTRING
HIGHgubernator/third_party/cloudstorage/api_utils.py272Check init arguments. Args: name: name of the argument. For logging purpose. val: value. Value has to bSTRING
Unused Imports37 hits · 37 pts
SeverityFileLineSnippetContext
LOWgubernator/third_party/cloudstorage/cloudstorage_api.py19CODE
LOWgubernator/third_party/cloudstorage/__init__.py20CODE
LOWgubernator/third_party/cloudstorage/__init__.py21CODE
LOWgubernator/third_party/cloudstorage/__init__.py22CODE
LOWgubernator/third_party/cloudstorage/__init__.py23CODE
LOWgubernator/third_party/cloudstorage/__init__.py24CODE
LOWgubernator/third_party/cloudstorage/__init__.py25CODE
LOWgubernator/third_party/cloudstorage/__init__.py26CODE
LOWgubernator/third_party/cloudstorage/__init__.py27CODE
LOWgubernator/third_party/cloudstorage/__init__.py28CODE
LOWgubernator/third_party/cloudstorage/__init__.py29CODE
LOWgubernator/third_party/defusedxml/pulldom.py8CODE
LOWgubernator/third_party/defusedxml/pulldom.py8CODE
LOWgubernator/third_party/defusedxml/expatbuilder.py8CODE
LOWgubernator/third_party/defusedxml/expatbuilder.py8CODE
LOWgubernator/third_party/defusedxml/xmlrpc.py10CODE
LOWgubernator/third_party/defusedxml/xmlrpc.py10CODE
LOWgubernator/third_party/defusedxml/cElementTree.py8CODE
LOWgubernator/third_party/defusedxml/cElementTree.py12CODE
LOWgubernator/third_party/defusedxml/sax.py8CODE
LOWgubernator/third_party/defusedxml/sax.py8CODE
LOWgubernator/third_party/defusedxml/__init__.py8CODE
LOWgubernator/third_party/defusedxml/__init__.py8CODE
LOWgubernator/third_party/defusedxml/__init__.py10CODE
LOWgubernator/third_party/defusedxml/__init__.py10CODE
LOWgubernator/third_party/defusedxml/__init__.py10CODE
LOWgubernator/third_party/defusedxml/__init__.py10CODE
LOWgubernator/third_party/defusedxml/__init__.py10CODE
LOWgubernator/third_party/defusedxml/lxml.py10CODE
LOWgubernator/third_party/defusedxml/lxml.py10CODE
LOWgubernator/third_party/defusedxml/minidom.py8CODE
LOWgubernator/third_party/defusedxml/minidom.py8CODE
LOWgubernator/third_party/defusedxml/expatreader.py8CODE
LOWgubernator/third_party/defusedxml/expatreader.py8CODE
LOWgubernator/third_party/defusedxml/ElementTree.py8CODE
LOWgubernator/third_party/defusedxml/ElementTree.py8CODE
LOWgubernator/third_party/defusedxml/ElementTree.py24CODE
Redundant / Tautological Comments21 hits · 30 pts
SeverityFileLineSnippetContext
LOWimages/bootstrap/runner.sh39# Check if the job has opted-in to docker-in-docker availability.COMMENT
LOWimages/kubekins-e2e-v2/runner.sh34# Check if the job has opted-in to docker-in-docker availability.COMMENT
LOWimages/krte/wrapper.sh70# Check if the job has opted-in to docker-in-dockerCOMMENT
LOWhack/make-rules/py-test/activate-python_venv.sh27# Check if the virtual environment exists and matches the current python versionCOMMENT
LOWexperiment/kubelet-serving-certificates/e2e-k8s.sh229 # Check if this CSR was already approvedCOMMENT
LOWexperiment/kubelet-serving-certificates/e2e-k8s.sh239 # Check if username matches system:node:<node-name> for any of our nodesCOMMENT
LOWexperiment/kubelet-serving-certificates/e2e-k8s.sh266 # Check if all nodes have approved CSRsCOMMENT
LOWexperiment/compatibility-versions/common.sh346 # Check if kubectl version reports the current versionCOMMENT
LOW…sions/validate-compatibility-versions-feature-gates.sh229 # Check if gate is:COMMENT
LOW…y-versions/compatibility-versions-feature-gate-test.sh198 # Check if gitVersion contains alpha.0 and increment VERSION_DELTA if neededCOMMENT
LOW…y-versions/compatibility-versions-feature-gate-test.sh226 # Check if files exist at the current paths and update if needed with alternative pathsCOMMENT
LOW…ent/compatibility-versions/e2e-skip-version-testing.sh120 # Check if gitVersion contains alpha.0 and increment VERSION_DELTA if neededCOMMENT
LOW…riment/compatibility-versions/e2e-two-steps-upgrade.sh64 # Check if gitVersion contains alpha.0 and increment VERSION_DELTA if neededCOMMENT
LOW…mpatibility-versions/e2e-k8s-compatibility-versions.sh64 # Check if gitVersion contains alpha.0 and increment VERSION_DELTA if neededCOMMENT
LOWexperiment/audit/audit_log_parser.py221 # Check if operation is deprecatedCOMMENT
LOWexperiment/audit/audit_log_parser.py266 # Check if this looks like a resource type (plural noun at end of path or before {name})COMMENT
LOWexperiment/audit/audit_log_parser.py412 # Check if this is a watch operation by looking at query parametersCOMMENT
LOWexperiment/audit/audit_log_parser.py534 # Check if this is a watch operation from query parametersCOMMENT
LOWexperiment/audit/audit_log_parser.py689 # Check if this is a watch operation based on query parametersCOMMENT
LOWexperiment/audit/audit_log_parser.py1018 # Check if any pending eligible endpoints are already being exercised in audit logsSTRING
LOWexperiment/audit/kubernetes_api_analysis.py218 # Check if finished.json exists in this directoryCOMMENT
AI Slop Vocabulary6 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMkubetest/util.go43// Essentially curl url | writer including request headersCOMMENT
MEDIUMkubetest/util.go69// Essentially curl url | writerCOMMENT
MEDIUMkubetest/stage.go68// Essentially release/push-build.sh --bucket=B --ci? --gcs-suffix=S --noupdatelatestCOMMENT
LOWconfig/jobs/kubernetes/kops/build_jobs.py228 # reference the cluster name is to just pass it into the scriptCOMMENT
LOWconfig/jobs/kubernetes/kops/helpers.py276 # for now, we just return the image from this hardcoded listCOMMENT
MEDIUMjenkins/bootstrap.py1181 # and utilize this flagCOMMENT
Slop Phrases9 hits · 14 pts
SeverityFileLineSnippetContext
LOW…netes-sigs/cluster-api/cluster-api-main-periodics.yaml172 # Please also make sure to refer a version where a kindest/node image existsCOMMENT
LOW…etes-sigs/cluster-api/cluster-api-main-presubmits.yaml188 # Please also make sure to refer a version where a kindest/node image existsCOMMENT
LOW…gs/cluster-api/cluster-api-release-1-12-periodics.yaml172 # Please also make sure to refer a version where a kindest/node image existsCOMMENT
LOW…gs/cluster-api/cluster-api-release-1-13-periodics.yaml172 # Please also make sure to refer a version where a kindest/node image existsCOMMENT
LOW…gs/cluster-api/cluster-api-release-1-14-periodics.yaml172 # Please also make sure to refer a version where a kindest/node image existsCOMMENT
LOW…s/cluster-api/cluster-api-release-1-12-presubmits.yaml188 # Please also make sure to refer a version where a kindest/node image existsCOMMENT
LOW…bernetes-sigs/cluster-api/cluster-api-prowjob-gen.yaml20# # Please also make sure to refer a version where a kindest/node image exists for (see https://github.com/kubernCOMMENT
LOW…s/cluster-api/cluster-api-release-1-13-presubmits.yaml188 # Please also make sure to refer a version where a kindest/node image existsCOMMENT
LOW…s/cluster-api/cluster-api-release-1-14-presubmits.yaml188 # Please also make sure to refer a version where a kindest/node image existsCOMMENT
Modern Structural Boilerplate6 hits · 6 pts
SeverityFileLineSnippetContext
LOWgubernator/third_party/cloudstorage/cloudstorage_api.py23__all__ = ['copy2',CODE
LOWgubernator/third_party/cloudstorage/common.py21__all__ = ['CS_XML_NS',CODE
LOWgubernator/third_party/cloudstorage/errors.py21__all__ = ['AuthorizationError',CODE
LOWgubernator/third_party/cloudstorage/storage_api.py21__all__ = ['ReadBuffer',CODE
LOWgubernator/third_party/cloudstorage/api_utils.py19__all__ = ['set_default_retry_params',CODE
LOWgubernator/third_party/cloudstorage/rest_api.py21__all__ = ['add_sync_methods']CODE
AI Structural Patterns3 hits · 3 pts
SeverityFileLineSnippetContext
LOWconfig/jobs/kubernetes/kops/build_jobs.py89CODE
LOWconfig/jobs/kubernetes/kops/build_jobs.py335CODE
LOWexperiment/find_developers.py36CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMexperiment/lambda/e2e-test.sh16# e2e-test.sh -- orchestrates GPU e2e tests on a Lambda Cloud instance.COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtestgrid/config.md318 alert_mail_to_addresses: 'foo@bar.com'CODE
LOW⚡jenkins/bootstrap_test.py870 bootstrap.GCE_KEY_ENV: 'fake-key',CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWconfig/jobs/kubernetes-csi/gen-jobs.sh304# Usage:COMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWrobots/issue-creator/sources/flakyjob-reporter.go251 // TODO: implement priority calculations laterCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtriage/interactive.js305function getData() {CODE