Repository Analysis

projectcalico/calico

Cloud native networking and network security

3.7 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of projectcalico/calico, a Go project with 7,339 GitHub stars. SynthScan v2.0 examined 1,112,086 lines of code across 4419 source files, recording 3799 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 3.7 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.7
Adjusted Score
3.7
Raw Score
100%
Time Factor
2026-08-29
Last Push
7.3K
Stars
Go
Language
1.1M
Lines of Code
4.4K
Files
3.8K
Pattern Hits
2026-08-29
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 0MEDIUM 135LOW 3664

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 3799 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block3093 hits · 3036 pts
SeverityFileLineSnippetContext
LOWcmd/calico-windows/main.go1// Copyright (c) 2026 Tigera, Inc. All rights reserved.COMMENT
LOWcmd/calico/version.go1// Copyright (c) 2026 Tigera, Inc. All rights reserved.COMMENT
LOWcmd/calico/apiserver.go1// Copyright (c) 2026 Tigera, Inc. All rights reserved.COMMENT
LOWcmd/calico/ctl.go1// Copyright (c) 2026 Tigera, Inc. All rights reserved.COMMENT
LOWcmd/calico/health.go1// Copyright (c) 2026 Tigera, Inc. All rights reserved.COMMENT
LOWcmd/calico/cni.go1// Copyright (c) 2026 Tigera, Inc. All rights reserved.COMMENT
LOWcmd/calico/component.go1// Copyright (c) 2026 Tigera, Inc. All rights reserved.COMMENT
LOWcmd/calico/main.go1// Copyright (c) 2026 Tigera, Inc. All rights reserved.COMMENT
LOWcmd/calico/main.go61COMMENT
LOWcmd/calico/main_test.go1// Copyright (c) 2026 Tigera, Inc. All rights reserved.COMMENT
LOWnetworking-calico/setup.py1# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.COMMENT
LOWnetworking-calico/devstack/plugin.sh101COMMENT
LOWnetworking-calico/devstack/resync_scale_test.py1#!/usr/bin/env python3COMMENT
LOWnetworking-calico/devstack/resync_scale_test.py81# Default scales to measure if RESYNC_SCALES is not set. Stops at 3000 because largerCOMMENT
LOWnetworking-calico/devstack/bootstrap.sh1#!/bin/bashCOMMENT
LOWnetworking-calico/devstack/bootstrap.sh21sudo rm -rf /usr/local/lib/python3.8/dist-packages/setuptools-*.dist-infoCOMMENT
LOWnetworking-calico/devstack/bootstrap.sh41# is run, and is _different_ from the local machine's hostname, theCOMMENT
LOWnetworking-calico/devstack/bootstrap.sh61# DEVSTACK_BRANCHCOMMENT
LOWnetworking-calico/devstack/bootstrap.sh301# fixes we have specifically landed in the Calico driver, plus aCOMMENT
LOWnetworking-calico/devstack/bootstrap.sh321# (e.g. unit not found on a future devstack version): treat that as aCOMMENT
LOWnetworking-calico/devstack/resync_concurrency_test.py1#!/usr/bin/env python3COMMENT
LOWnetworking-calico/networking_calico/monotonic.py1# -*- coding: utf-8 -*-COMMENT
LOWnetworking-calico/networking_calico/datamodel_v1.py1# -*- coding: utf-8 -*-COMMENT
LOWnetworking-calico/networking_calico/etcdv3.py1# -*- coding: utf-8 -*-COMMENT
LOWnetworking-calico/networking_calico/etcdv3.py421COMMENT
LOWnetworking-calico/networking_calico/etcdv3.py521COMMENT
LOWnetworking-calico/networking_calico/logutils.py1# -*- coding: utf-8 -*-COMMENT
LOWnetworking-calico/networking_calico/etcdutils.py1# Copyright (c) 2016, 2018 Tigera, Inc. All rights reserved.COMMENT
LOWnetworking-calico/networking_calico/etcdutils.py221 )COMMENT
LOWnetworking-calico/networking_calico/etcdutils.py241 # prefix that we are monitoring:COMMENT
LOWnetworking-calico/networking_calico/etcdutils.py261 #COMMENT
LOWnetworking-calico/networking_calico/etcdutils.py281COMMENT
LOWnetworking-calico/networking_calico/etcdutils.py341 # loop.COMMENT
LOWnetworking-calico/networking_calico/etcdutils.py361 # }}COMMENT
LOWnetworking-calico/networking_calico/datamodel_v2.py1# -*- coding: utf-8 -*-COMMENT
LOWnetworking-calico/networking_calico/timestamp.py1# -*- coding: utf-8 -*-COMMENT
LOWnetworking-calico/networking_calico/datamodel_v3.py1# -*- coding: utf-8 -*-COMMENT
LOW…ing-calico/networking_calico/plugins/calico/context.py1# Copyright (c) 2025 Tigera, Inc. All Rights Reserved.COMMENT
LOW…king-calico/networking_calico/plugins/calico/plugin.py1# Copyright (c) 2015 Cisco Systems. All Rights Reserved.COMMENT
LOW…king-calico/networking_calico/plugins/calico/plugin.py81 # a way as to avoid tracebacks in the neutron-server log.COMMENT
LOW…king-calico/networking_calico/plugins/calico/plugin.py101 # .../neutron/db/l3_db.py", line 198, in _get_dead_floating_port_candidatesCOMMENT
LOW…king-calico/networking_calico/plugins/calico/plugin.py121 # .../neutron_lib/db/api.py", line 183, in wrappedCOMMENT
LOW…networking_calico/plugins/ml2/drivers/calico/syncer.py1# -*- coding: utf-8 -*-COMMENT
LOW…tworking_calico/plugins/ml2/drivers/calico/election.py1# -*- coding: utf-8 -*-COMMENT
LOW…tworking_calico/plugins/ml2/drivers/calico/election.py181 #COMMENT
LOW…orking_calico/plugins/ml2/drivers/calico/qos_driver.py1# -*- coding: utf-8 -*-COMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1# -*- coding: utf-8 -*-COMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py301# called from any of those contexts: from multiple OS processes, or from multipleCOMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py321# non-Calico context will be missing that key when it tries to log. (Resulting inCOMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py761 port_status_key = (intern_string(hostname), port_id)COMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py781 # - the impact on the database of sending port status updates toCOMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1081 # update_network_postcommit above for rationale.COMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1181 original.get("status"),COMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1481 # expired and been removed. We can also get KeyError 'TTL'COMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1601 # discover exactly what the current compacted revision is, justCOMMENT
LOW…networking_calico/plugins/ml2/drivers/calico/policy.py1# -*- coding: utf-8 -*-COMMENT
LOW…networking_calico/plugins/ml2/drivers/calico/policy.py281 # "The IP protocol can be represented by a string, an integer, or null. Valid stringCOMMENT
LOW…etworking_calico/plugins/ml2/drivers/calico/subnets.py1# -*- coding: utf-8 -*-COMMENT
LOW…ico/plugins/ml2/drivers/calico/fairy_gc_diagnostics.py1# -*- coding: utf-8 -*-COMMENT
LOW…ico/plugins/ml2/drivers/calico/fairy_gc_diagnostics.py181 "Calico fairy-GC diagnostics: eventlet is importable but time is not "COMMENT
3033 more matches not shown…
Self-Referential Comments70 hits · 230 pts
SeverityFileLineSnippetContext
MEDIUMnetworking-calico/devstack/bootstrap.sh108# Create a directory for DevStack bootstrap and testing.COMMENT
MEDIUMnetworking-calico/devstack/bootstrap.sh287 # Create a Calico network, for demonstration purposes.COMMENT
MEDIUMnetworking-calico/devstack/qos_responsiveness_tests.py349 # Create the QoS rules and policies that we need.COMMENT
MEDIUMnetworking-calico/devstack/qos_responsiveness_tests.py366 # Create the network and subnet.COMMENT
MEDIUMnetworking-calico/devstack/qos_responsiveness_tests.py369 # Create the VM.COMMENT
MEDIUM…rking_calico/plugins/ml2/drivers/calico/mech_calico.py22# This module is the OpenStack-specific implementation of the Plugin componentCOMMENT
MEDIUM…etworking_calico/plugins/ml2/drivers/calico/workers.py64 # Create the stop event here, not in start(), because oslo_service can callCOMMENT
MEDIUM…working_calico/plugins/ml2/drivers/calico/endpoints.py394 # The following methods differ from those for other resources for two reasons.COMMENT
MEDIUM…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py763 # Create a new security group.COMMENT
MEDIUM…tworking_calico/plugins/ml2/drivers/calico/test/lib.py206# Define a stub class, that we will use as the base class for CalicoMechanismDriver.COMMENT
MEDIUM…tworking_calico/plugins/ml2/drivers/calico/test/lib.py382 # Create an instance of CalicoMechanismDriver.COMMENT
MEDIUM…king-calico/networking_calico/tests/test_dhcp_agent.py113 # Create the DHCP agent.COMMENT
MEDIUM…king-calico/networking_calico/tests/test_dhcp_agent.py246 # Create the DHCP agent.COMMENT
MEDIUM…king-calico/networking_calico/tests/test_dhcp_agent.py286 # Create the DHCP agent and allow it to start the SubnetWatcher loop.COMMENT
MEDIUM…king-calico/networking_calico/tests/test_dhcp_agent.py297 # Create the DHCP agent.COMMENT
MEDIUM…king-calico/networking_calico/tests/test_dhcp_agent.py331 # Create the DHCP agent.COMMENT
MEDIUM…king-calico/networking_calico/tests/test_dhcp_agent.py359 # Create the DHCP agent.COMMENT
MEDIUM…king-calico/networking_calico/tests/test_dhcp_agent.py384 # Create the DHCP agent.COMMENT
MEDIUM…-calico/networking_calico/tests/test_subnet_watcher.py45 # Create the DHCP agent and allow it to start theCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_migrate.py39 # Create the ipv6 pool using calicoctl, and read it out using anCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_migrate.py48 # Create a BGP ConfigCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_migrate.py56 # Create a BGP Config that should reference a node.COMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_migrate.py65 # Create a BGP PeerCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_migrate.py73 # Create a Felix configCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_migrate.py79 # Create a Felix config that should reference a node.COMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_migrate.py86 # Create a Global Network policyCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_migrate.py95 # Create a Global Network setCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_migrate.py103 # Create a HostEndpointCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_migrate.py139 # Create a Node, this should also trigger auto-creation of a cluster infoCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_migrate.py154 # Create an IP reservation.COMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_migrate.py158 # Create a BGPFilter.COMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py1004 # Create a second node, this should keep the existing cluster info.COMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py1015 # Create a new default KubeControllersConfiguration and get it to determine the currentCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py1058 # Create a new Host Endpoint and get it to determine theCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py1495 # Create a resource with invalid syntax (negative AS number causes parse error)COMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py44 # Create the ipv6 pool using calicoctl, and read it out using anCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py219 # Create a new BGP Peer and get it to determine the current resourceCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py250 # Create a new Network Policy and get it to determine the currentCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py286 # Create a new Staged Network Policy and get it to determine the currentCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py322 # Create a new Staged Kubernetes Network Policy and get it to determine the currentCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py572 # Create a couple of resources.COMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py885 # Create a new default BGPConfiguration and get it to determine the currentCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py936 # Create a new default BGPConfiguration and get it to determine the currentCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py991 # Create a node, this should trigger auto-creation of a cluster info.COMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py1110 # Create a new Network Policy with all metadata specifiedCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py1166 # Create a new Staged Network Policy with all metadata specifiedCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py1547 pass # Create an empty fileCODE
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py1559 pass # Create an empty fileCODE
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py1592 # Create a NetworkPolicy with an invalid selector that has invalid charactersCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py2938# # Create the policy using calicoctlCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py2964# # Create the policy using calicoctlCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py2999# # Create the policy using calicoctlCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py3034# # Create the policy using calicoctlCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_flags.py47 # Create a Node, this should also trigger auto-creation of a cluster info,COMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_ipam_split.py41 # Create the ipv4 pool using calicoctl, and read it out using anCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_ipam_split.py50 # Create a Node, this should also trigger auto-creation of a cluster infoCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_ipam_split.py124 # Create the ipv4 pool using calicoctl, and read it out using anCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_ipam_split.py133 # Create a Node, this should also trigger auto-creation of a cluster infoCOMMENT
MEDIUMhack/set_quay_expiry.py338 # Create a timedelta from the number of days passed inSTRING
MEDIUMhack/test/kind/external-node.sh68 # Create the ubuntu user for the framework to SSH in as, and harden sshd toCOMMENT
10 more matches not shown…
Hyper-Verbose Identifiers222 hits · 193 pts
SeverityFileLineSnippetContext
LOWnetworking-calico/devstack/resync_scale_test.py261def create_networks_and_subnets(conn, num_networks):CODE
LOWnetworking-calico/devstack/resync_concurrency_test.py326def neutron_server_restart_and_wait(conn, deadline_secs=60):CODE
LOWnetworking-calico/devstack/resync_concurrency_test.py344def wait_for_log_text_in_journal(text, since_dt, deadline_secs):CODE
LOWnetworking-calico/devstack/resync_concurrency_test.py113def measure_port_create_burst(conn, network, subnet, sg, host, count, label):CODE
LOWnetworking-calico/devstack/resync_concurrency_test.py146def _take_warmup_then_measure(conn, network, subnet, sg, host, count, label):CODE
LOWnetworking-calico/networking_calico/datamodel_v3.py275def sanitize_label_name_value(name, max_length):CODE
LOW…king-calico/networking_calico/plugins/calico/plugin.py169 def create_security_group_rule(self, context, security_group_rule):CODE
LOW…king-calico/networking_calico/plugins/calico/plugin.py175 def create_security_group_rule_bulk(self, context, security_group_rules):CODE
LOW…king-calico/networking_calico/plugins/calico/plugin.py183 def delete_security_group_rule(self, context, sgrid):CODE
LOW…networking_calico/plugins/ml2/drivers/calico/syncer.py353 def etcd_write_data_matches_existing(self, write_data, existing):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1014 def get_allowed_network_types(self, agent=None):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1023 def create_network_postcommit(self, context):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1028 def update_network_postcommit(self, context):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py630 def _init_start_calico_resource_syncer(self):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py633 def _init_start_calico_manager(self):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py650 def _init_start_agent_status_watcher(self):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py667 def _init_start_endpoint_status_watcher(self):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py848 def _loop_writing_port_statuses(self):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py874 def _try_to_update_port_status(self, admin_context, port_status_key):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py957 def _retry_port_status_update(self, port_status_key):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1109 def delete_network_postcommit(self, context):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1425def check_request_etcd_compaction():CODE
LOW…networking_calico/plugins/ml2/drivers/calico/policy.py136 def neutron_to_etcd_write_data(self, name, sg, context, reread=False):CODE
LOW…networking_calico/plugins/ml2/drivers/calico/policy.py263def _neutron_rule_to_etcd_rule(rule):CODE
LOW…etworking_calico/plugins/ml2/drivers/calico/subnets.py78 def neutron_to_etcd_write_data(self, name, subnet, context, reread=False):CODE
LOW…ico/plugins/ml2/drivers/calico/fairy_gc_diagnostics.py206 def _calico_detect_in_hub_checkin(dbapi_conn, connection_record):CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py479 def neutron_to_etcd_write_data(self, name, value, context, reread=False):CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py493 def neutron_to_port_etcd_write_data(self, port, context, reread, dest_host=None):CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py522 def neutron_to_live_migration_etcd_write_data(CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py772 def get_extra_port_information(self, context, port):CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py863 def _get_extra_port_information_from_bulk(self, context, port):CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py1138def endpoint_name_without_host(name):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1593 def test_get_vif_details_falls_back_when_port_mac_missing(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1599 def test_get_vif_details_falls_back_on_malformed_port_mac(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1605 def test_neutron_rule_to_etcd_rule_icmp(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1475 def test_subnet_cas_retry_after_conflict(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1514 def test_subnet_cas_exhaustion(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1559 def test_check_segment_for_agent(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1578 def test_get_vif_details_derives_tap_mac_from_port_mac(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1682 def test_neutron_rule_to_etcd_rule_protocol_name(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1700 def test_neutron_rule_to_etcd_rule_protocol_any(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1714 def test_sg_rule_ingress_no_remote_ip_prefix(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1732 def test_sg_rule_egress_no_remote_ip_prefix(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1751 def test_sg_rule_ingress_with_remote_ip_prefix(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1771 def test_sg_rule_egress_with_remote_ip_prefix(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1791 def test_startup_resync_disabled(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1973 def test_port_narrow_resync_no_op_when_correct(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1983 def test_port_narrow_resync_recreates_after_etcd_loss(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1996 def test_subnet_narrow_resync_writes_only_when_changed(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2020 def test_subnet_narrow_resync_deletes_when_gone(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2044 def test_security_group_narrow_resync_no_op_when_correct(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2238 def test_pre_live_migration_transient_vif_unbound(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2282 def test_live_migration_succeeded(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2315 def test_live_migration_failed(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2346 def test_port_delete_during_migration(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2379 def _call_try_to_update_port_status(self, hostname, port_id):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2393 def test_vif_plug_notification(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2416 def test_vif_plug_no_notification_for_non_migration(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2428 def test_resync_creates_missing_live_migration(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2444 def test_resync_deletes_stale_live_migration(self):CODE
162 more matches not shown…
Structural Annotation Overuse114 hits · 192 pts
SeverityFileLineSnippetContext
LOWfelix/dataplane/linux/bpf_route_mgr.go220 // Step 1: calculate any updates to the _desired_ state of the BPF map.COMMENT
LOWfelix/dataplane/linux/bpf_route_mgr.go223 // Step 2: if required, load the state of the map from the dataplane so we can do efficient deltas.COMMENT
LOWfelix/dataplane/linux/bpf_route_mgr.go230 // Step 3: apply dataplane updates.COMMENT
LOWfelix/routetable/route_table_test.go2223 // Step 1: Felix programs a local route for the VM at normal priority.COMMENT
LOWfelix/routetable/route_table_test.go2236 // Step 2: BIRD programs a remote route at elevated priority via eth0.COMMENT
LOWfelix/routetable/route_table_test.go2260 // Step 3: Source cleanup — Felix removes the local route.COMMENT
LOWfelix/routetable/route_table_test.go2274 // Step 4: BIRD updates its route to normal priority.COMMENT
LOWfelix/routetable/route_table_test.go2320 // Step 1: BIRD remote route exists at normal priority.COMMENT
LOWfelix/routetable/route_table_test.go2343 // Step 2: VM is now live on this host — Felix programs aCOMMENT
LOWfelix/routetable/route_table_test.go2359 // Step 3: Source cleanup — BIRD removes the remote route.COMMENT
LOWfelix/routetable/route_table_test.go2371 // Step 4: Reversion to normal — Felix updates its routeCOMMENT
LOWconfd/tests/daemon_test.go41 // Step 1: create nodes and a peering on a local subnet.COMMENT
LOWconfd/tests/daemon_test.go47 // Step 2: update the peering to omit source address.COMMENT
LOWconfd/tests/daemon_test.go55 // Step 3: add a max restart time.COMMENT
LOWconfd/tests/daemon_test.go80 // Step 1: no secret yet → peerings have no password.COMMENT
LOWconfd/tests/daemon_test.go83 // Step 2: create the secret with key "a".COMMENT
LOWconfd/tests/daemon_test.go92 // Step 3: update the password.COMMENT
LOWconfd/tests/daemon_test.go101 // Step 4: change secret to an unreferenced key → password disappears.COMMENT
LOWconfd/tests/daemon_test.go110 // Step 5: delete the secret → still no password.COMMENT
LOWconfd/tests/daemon_test.go138 // Step 1: no secrets → no passwords on any peering.COMMENT
LOWconfd/tests/daemon_test.go141 // Step 2: create my-secrets-1 with only key "b".COMMENT
LOWconfd/tests/daemon_test.go172 // Step 4: delete my-secrets-2 → password-c disappears.COMMENT
LOWconfd/tests/daemon_test.go177 // Step 5: change passwords in my-secrets-1.COMMENT
LOWconfd/tests/daemon_test.go186 // Step 6: remove key "a" from my-secrets-1 → new-password-a disappears.COMMENT
LOWconfd/tests/daemon_test.go384 // Step 1: create nodes and a peering on a local subnet.COMMENT
LOWconfd/tests/daemon_test.go390 // Step 2: update BGPConfiguration to change normal IPv4 route priority.COMMENT
LOWconfd/tests/daemon_test.go398 // Step 3: update BGPConfiguration to change normal IPv6 route priority.COMMENT
LOWconfd/tests/daemon_test.go414 // Step 1: apply resources and verify output with filter active.COMMENT
LOWconfd/tests/daemon_test.go418 // Step 2: delete the BGPFilter, verify output updates.COMMENT
LOWconfd/tests/daemon_test.go153 // Step 3: update my-secrets-1 to include both keys, and create my-secrets-2.COMMENT
LOWconfd/docs/bgpfilter-bird-config-examples.md89### Step 1: BGPFilterBIRDFuncs generates BIRD function definitionsCOMMENT
LOWconfd/docs/bgpfilter-bird-config-examples.md180### Step 2: Per-peer filter calls (bgp_processor.go)COMMENT
LOWconfd/docs/bgpfilter-bird-config-examples.md213### Step 3: Final rendered BIRD configCOMMENT
LOW.claude/skills/ci-reproduce-on-gcp-vm/SKILL.md15## Step 1: Identify the CI Image FamilyCOMMENT
LOW.claude/skills/ci-reproduce-on-gcp-vm/SKILL.md29## Step 2: Create the VMCOMMENT
LOW.claude/skills/ci-reproduce-on-gcp-vm/SKILL.md48## Step 3: Wait for SSH and Install DependenciesCOMMENT
LOW.claude/skills/ci-reproduce-on-gcp-vm/SKILL.md87## Step 4: Clone Repo and Checkout BranchCOMMENT
LOW.claude/skills/ci-reproduce-on-gcp-vm/SKILL.md104## Step 5: Run the Failing TestCOMMENT
LOW.claude/skills/ci-reproduce-on-gcp-vm/SKILL.md129## Step 6: Clean UpCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md40### Step 1: API Type DefinitionCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md115### Step 2: Register in API SchemeCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md129### Step 3: Run API Code GenerationCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md144### Step 4: CRD Operator Types (crd.projectcalico.org/v1)COMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md170### Step 5: Register in CRD v1 SchemeCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md181### Step 6: Backend Model RegistrationCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md193### Step 7: K8s Backend Resource ClientCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md227### Step 8: Register in K8s Backend ClientCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md244### Step 9: Namespace Helper (if namespaced)COMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md261### Step 10: ValidatorCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md282### Step 11: clientv3 Typed ClientCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md352### Step 12: Apiserver RegistryCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md372### Step 13: Apiserver Calico Storage AdapterCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md393### Step 14: Apiserver Storage Interface SwitchCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md404### Step 15: Apiserver ConverterCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md417### Step 16: Apiserver REST Storage ProviderCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md429### Step 17: Syncers (Conditional)COMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md451### Step 18: calicoctl Resource ManagerCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md518### Step 19: RBACCOMMENT
LOW.claude/skills/implement-calico-api-resource/SKILL.md530### Step 20: Full Generation, Formatting, and CommitCOMMENT
LOWhack/check-images-availability.sh55# Step 1: Extract from manifestsCOMMENT
54 more matches not shown…
Verbosity Indicators91 hits · 159 pts
SeverityFileLineSnippetContext
LOWfelix/bpf-gpl/ip_v4_fragment.h248 /* We do not really use bpf_loop() here, but we need to check if the kernelCOMMENT
LOWfelix/bpf-gpl/ip_v4_fragment.h324 /* We do not really use bpf_loop() here, but we need to check if the kernelCOMMENT
LOWfelix/bpf-gpl/ip_v4_fragment.h377 /* We do not really use bpf_loop() here, but we need to check if the kernelCOMMENT
LOWfelix/bpf-gpl/ip_v4_fragment.h400 /* We do not really use bpf_loop() here, but we need to check if the kernelCOMMENT
LOWfelix/calc/vxlan_resolver.go158// VXLAN tunnel IP/MAC address updates. On an add/update, we need to check if there are VTEPs whichCOMMENT
LOWfelix/dataplane/linux/bpf_route_mgr.go220 // Step 1: calculate any updates to the _desired_ state of the BPF map.COMMENT
LOWfelix/dataplane/linux/bpf_route_mgr.go223 // Step 2: if required, load the state of the map from the dataplane so we can do efficient deltas.COMMENT
LOWfelix/dataplane/linux/bpf_route_mgr.go230 // Step 3: apply dataplane updates.COMMENT
LOWfelix/routetable/route_table_test.go2223 // Step 1: Felix programs a local route for the VM at normal priority.COMMENT
LOWfelix/routetable/route_table_test.go2236 // Step 2: BIRD programs a remote route at elevated priority via eth0.COMMENT
LOWfelix/routetable/route_table_test.go2260 // Step 3: Source cleanup — Felix removes the local route.COMMENT
LOWfelix/routetable/route_table_test.go2274 // Step 4: BIRD updates its route to normal priority.COMMENT
LOWfelix/routetable/route_table_test.go2320 // Step 1: BIRD remote route exists at normal priority.COMMENT
LOWfelix/routetable/route_table_test.go2343 // Step 2: VM is now live on this host — Felix programs aCOMMENT
LOWfelix/routetable/route_table_test.go2359 // Step 3: Source cleanup — BIRD removes the remote route.COMMENT
LOWfelix/routetable/route_table_test.go2371 // Step 4: Reversion to normal — Felix updates its routeCOMMENT
LOWconfd/tests/daemon_test.go41 // Step 1: create nodes and a peering on a local subnet.COMMENT
LOWconfd/tests/daemon_test.go47 // Step 2: update the peering to omit source address.COMMENT
LOWconfd/tests/daemon_test.go55 // Step 3: add a max restart time.COMMENT
LOWconfd/tests/daemon_test.go80 // Step 1: no secret yet → peerings have no password.COMMENT
LOWconfd/tests/daemon_test.go83 // Step 2: create the secret with key "a".COMMENT
LOWconfd/tests/daemon_test.go92 // Step 3: update the password.COMMENT
LOWconfd/tests/daemon_test.go101 // Step 4: change secret to an unreferenced key → password disappears.COMMENT
LOWconfd/tests/daemon_test.go110 // Step 5: delete the secret → still no password.COMMENT
LOWconfd/tests/daemon_test.go138 // Step 1: no secrets → no passwords on any peering.COMMENT
LOWconfd/tests/daemon_test.go141 // Step 2: create my-secrets-1 with only key "b".COMMENT
LOWconfd/tests/daemon_test.go172 // Step 4: delete my-secrets-2 → password-c disappears.COMMENT
LOWconfd/tests/daemon_test.go177 // Step 5: change passwords in my-secrets-1.COMMENT
LOWconfd/tests/daemon_test.go186 // Step 6: remove key "a" from my-secrets-1 → new-password-a disappears.COMMENT
LOWconfd/tests/daemon_test.go384 // Step 1: create nodes and a peering on a local subnet.COMMENT
LOWconfd/tests/daemon_test.go390 // Step 2: update BGPConfiguration to change normal IPv4 route priority.COMMENT
LOWconfd/tests/daemon_test.go398 // Step 3: update BGPConfiguration to change normal IPv6 route priority.COMMENT
LOWconfd/tests/daemon_test.go414 // Step 1: apply resources and verify output with filter active.COMMENT
LOWconfd/tests/daemon_test.go418 // Step 2: delete the BGPFilter, verify output updates.COMMENT
LOWconfd/tests/daemon_test.go153 // Step 3: update my-secrets-1 to include both keys, and create my-secrets-2.COMMENT
LOWhack/check-images-availability.sh55# Step 1: Extract from manifestsCOMMENT
LOWhack/check-images-availability.sh98# Step 2: Check availability with retriesCOMMENT
LOWhack/check-images-availability.sh138# Step 3: Final resultCOMMENT
LOWhack/test/kind/migration/run_test.sh253# Step 5: Disruption test — force-kill kube-controllers during migrationCOMMENT
LOWhack/test/kind/migration/run_test.sh72# Step 0: Preflight checksCOMMENT
LOWhack/test/kind/migration/run_test.sh144# Step 1: Deploy connectivity test workloadsCOMMENT
LOWhack/test/kind/migration/run_test.sh178# Step 2: Seed test resources via the apiserverCOMMENT
LOWhack/test/kind/migration/run_test.sh226# Step 3: Install v3 CRDs alongside v1COMMENT
LOWhack/test/kind/migration/run_test.sh237# Step 4: Install migration CRDCOMMENT
LOWhack/test/kind/migration/run_test.sh295# Step 6: Wait for migration to completeCOMMENT
LOWhack/test/kind/migration/run_test.sh343# Step 7: Verify the APIService cutover and component reconfigurationCOMMENT
LOWhack/test/kind/migration/run_test.sh402# Step 8: Verify continuous connectivityCOMMENT
LOWhack/test/kind/migration/run_test.sh435# Step 9: Test v1 CRD cleanup via CR deletion (post-completion)COMMENT
LOW…-controllers/pkg/controllers/ippool/pool_controller.go209 // Every time an IP pool is added, updated, or deleted, we need to check if it changes the active set of pools. We onlyCOMMENT
LOW…be-controllers/pkg/controllers/migration/controller.go707 // Step 1: Lock v1 first, in case we resumed into Migrating without PendingCOMMENT
LOW…be-controllers/pkg/controllers/migration/controller.go713 // Step 2: Save and delete the APIService so v3 requests route to CRDs.COMMENT
LOW…be-controllers/pkg/controllers/migration/controller.go719 // Step 3: Lock v3. This has to come after the APIService delete, since theCOMMENT
LOW…be-controllers/pkg/controllers/migration/controller.go725 // Step 4: Migrate all resources in order.COMMENT
LOW…be-controllers/pkg/controllers/migration/controller.go813 // Step 5: Unlock the datastore.COMMENT
LOW…be-controllers/pkg/controllers/migration/controller.go1011 // Step 1: Delete v3 resources created during migration. Best-effort, sinceCOMMENT
LOW…be-controllers/pkg/controllers/migration/controller.go1015 // Step 2: Restore v1 ClusterInformation to DatastoreReady=true so componentsCOMMENT
LOW…be-controllers/pkg/controllers/migration/controller.go1028 // Step 3: Undo whatever this migration did to the v3 ClusterInformation.COMMENT
LOW…be-controllers/pkg/controllers/migration/controller.go1031 // Step 4: Restore the aggregated APIService from the saved annotation.COMMENT
LOWlibcalico-go/lib/backend/etcd/syncer.go479 // Snapshot is ending, we need to check if this snapshot is still new enough toCOMMENT
LOWlibcalico-go/lib/ipam/vmipam/ipam_kubevirt.go121 // Step 1: Generate handleID using the same logic as CNI pluginCOMMENT
31 more matches not shown…
Decorative Section Separators44 hits · 144 pts
SeverityFileLineSnippetContext
MEDIUMnetworking-calico/devstack/plugin.sh3# ===============================COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py129# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py131# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py221# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py223# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py402# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py404# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py474# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py476# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py533# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py535# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py702# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py704# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py770# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py772# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/bootstrap.sh25#------------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/bootstrap.sh33#------------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/bootstrap.sh35#------------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/bootstrap.sh86# ------------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_concurrency_test.py82# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_concurrency_test.py84# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_concurrency_test.py171# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_concurrency_test.py173# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_concurrency_test.py312# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_concurrency_test.py314# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_concurrency_test.py480# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_concurrency_test.py482# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_concurrency_test.py521# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_concurrency_test.py523# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_concurrency_test.py555# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_concurrency_test.py557# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/networking_calico/agent/dhcp_agent.py176 # -----------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/networking_calico/agent/dhcp_agent.py178 # -----------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/networking_calico/agent/dhcp_agent.py229 # -----------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/networking_calico/agent/dhcp_agent.py231 # -----------------------------------------------------------------COMMENT
MEDIUMfelix/wireguard/bootstrap.go50// ┌────────────┐ ┌────────────┐ - Felix1 gets a response from Typha1 about the key update for Node2, andCOMMENT
MEDIUMfelix/wireguard/bootstrap.go52// │ ┌────────┐ │ │ │ node to node traffic for supporting nodes)COMMENT
MEDIUMfelix/wireguard/bootstrap.go53// │ │ Typha1 ◄─┼────────┼──────┐ │ - Felix2 has not yet had an update from Typha1 about the public key forCOMMENT
MEDIUMfelix/wireguard/bootstrap.go57// │ └────────┘ │ │ └────────┘ │ - Packets routed over Wireguard from Node1 to Node2 will be dropped by theCOMMENT
MEDIUMfelix/wireguard/bootstrap.go58// └────────────┘ └────────────┘ Wireguard device on Node2 because Node1 is not one of its known peers.COMMENT
MEDIUM…pkg/controllers/loadbalancer/loadbalancer_leak_test.go58 // ── Positive tests: correct code paths ─────────────────────────────────COMMENT
MEDIUM…pkg/controllers/loadbalancer/loadbalancer_leak_test.go104 // ── deleteService cleans all three maps ────────────────────────────────COMMENT
MEDIUM…pkg/controllers/loadbalancer/loadbalancer_leak_test.go135 // ── releaseAddressFromService cleans all three maps ────────────────────COMMENT
MEDIUM…pkg/controllers/loadbalancer/loadbalancer_leak_test.go162 // ── Re-assignment safety ────────────────────────────────────────────────COMMENT
Excessive Try-Catch Wrapping44 hits · 50 pts
SeverityFileLineSnippetContext
MEDIUMnetworking-calico/devstack/resync_scale_test.py322def _add_rule(args):CODE
MEDIUMnetworking-calico/devstack/resync_scale_test.py364def _create_one(spec):CODE
LOWnetworking-calico/devstack/resync_scale_test.py421 except Exception as exc:CODE
LOWnetworking-calico/devstack/resync_scale_test.py431 except Exception as exc:CODE
LOWnetworking-calico/devstack/resync_scale_test.py441 except Exception as exc:CODE
LOWnetworking-calico/devstack/resync_scale_test.py325 except Exception as exc:CODE
LOWnetworking-calico/devstack/resync_scale_test.py367 except Exception as exc:CODE
LOWnetworking-calico/devstack/resync_scale_test.py838 except Exception:CODE
LOWnetworking-calico/devstack/resync_concurrency_test.py336 except Exception as exc:CODE
LOWnetworking-calico/devstack/resync_concurrency_test.py650 except Exception:CODE
LOWnetworking-calico/devstack/qos_responsiveness_tests.py70 except Exception as e:CODE
LOWnetworking-calico/networking_calico/etcdv3.py498 except Exception:CODE
LOWnetworking-calico/networking_calico/etcdv3.py600 except Exception:CODE
LOWnetworking-calico/networking_calico/logutils.py22 except Exception:CODE
MEDIUMnetworking-calico/networking_calico/logutils.py19def wrapped(*args, **kwargs):CODE
LOWnetworking-calico/networking_calico/etcdutils.py274 except Exception:CODE
LOW…tworking_calico/plugins/ml2/drivers/calico/election.py279 except Exception as e:CODE
LOW…tworking_calico/plugins/ml2/drivers/calico/election.py321 except Exception as e:CODE
LOW…tworking_calico/plugins/ml2/drivers/calico/election.py344 except Exception as e:CODE
LOW…tworking_calico/plugins/ml2/drivers/calico/election.py374 except Exception:CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py249 except Exception:CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py860 except Exception:CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1353 except Exception:CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1364 except Exception:CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1616 except Exception:CODE
LOW…etworking_calico/plugins/ml2/drivers/calico/workers.py131 except Exception:CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py824 except Exception:CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py912 except Exception:CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py1116 except Exception:CODE
LOW…ng-calico/networking_calico/tests/test_fv_etcdutils.py110 except Exception:CODE
LOW…g-calico/networking_calico/tests/test_fv_dhcp_agent.py171 except Exception:CODE
LOW…g-calico/networking_calico/tests/test_fv_dhcp_agent.py205 except Exception:CODE
LOW…tworking-calico/networking_calico/tests/test_etcdv3.py47 except Exception:CODE
LOW…-calico/networking_calico/tests/test_subnet_watcher.py50 except Exception:CODE
LOWnetworking-calico/networking_calico/agent/dhcp_agent.py343 except Exception:CODE
LOWnetworking-calico/networking_calico/agent/dhcp_agent.py867 except Exception:CODE
LOWnetworking-calico/networking_calico/agent/dhcp_agent.py1045 except Exception as e:CODE
MEDIUMnetworking-calico/networking_calico/agent/dhcp_agent.py158def make_net_model(net_spec):CODE
LOW…king-calico/networking_calico/agent/linux/interface.py100 except Exception:CODE
LOWnetworking-calico/networking_calico/resync/scope.py178 except Exception as exc:CODE
LOWhack/strip-skipped-tests.py47 except Exception as e:CODE
LOWe2e/pkg/tests/kubevirt/utils.go122 except Exception:CODE
MEDIUMe2e/pkg/tests/kubevirt/utils.go115def handle(conn, addr):CODE
LOW.argoci/scripts/merge_junit.py37 except Exception as e:CODE
Unused Imports39 hits · 35 pts
SeverityFileLineSnippetContext
LOW…ng-calico/networking_calico/tests/test_fv_etcdutils.py22CODE
LOW…g-calico/networking_calico/tests/test_fv_dhcp_agent.py35CODE
LOWcalicoctl/tests/st/test_base.py17CODE
LOWcalicoctl/tests/st/calicoctl/test_migrate.py15CODE
LOWcalicoctl/tests/st/calicoctl/test_migrate.py16CODE
LOWcalicoctl/tests/st/calicoctl/test_migrate.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_migrate.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_migrate.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_migrate.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_migrate.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_migrate.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_migrate.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_migrate.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_migrate.py23CODE
LOWcalicoctl/tests/st/calicoctl/test_crud.py16CODE
LOWcalicoctl/tests/st/calicoctl/test_crud.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_crud.py22CODE
LOWcalicoctl/tests/st/calicoctl/test_flags.py15CODE
LOWcalicoctl/tests/st/calicoctl/test_flags.py18CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py15CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py16CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py19CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py24CODE
LOWcalicoctl/tests/st/utils/utils.py18CODE
LOWcalicoctl/tests/st/utils/utils.py19CODE
LOWcalicoctl/tests/st/utils/data.py27CODE
LOWhack/set_quay_expiry.py45CODE
LOWrelease/get-contributors.py2CODE
LOWcni-plugin/contrib/test_scripts/ping_test.py1CODE
AI Slop Vocabulary11 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMfelix/fv/live_migration_test.go211// host. Re-sending the GARP on each poll makes the test robust against the GARP being sentCOMMENT
MEDIUMfelix/dataplane/linux/bpf_ep_mgr.go1016 // but taking it now makes us robust to refactoring.COMMENT
MEDIUMfelix/dataplane/linux/bpf_ep_mgr.go1464 // but taking it now makes us robust to refactoring.COMMENT
MEDIUMfelix/dataplane/linux/qos/qos.go40// (Fundamentally, a TBF only works on traffic that the kernel is sending _to_ a network device.COMMENT
MEDIUMfelix/iptables/table.go192// to do and keeps it manageable/robust.COMMENT
MEDIUMtypha/pkg/snapcache/cache.go113// Why not use channels to fan out to the clients? I think it'd be more tricky to make robust andCOMMENT
MEDIUMlibcalico-go/lib/backend/watchersyncer/watchercache.go70 // to construct resource updates rather than utilize a watch, as watches can't be created for the resource. We can beCOMMENT
MEDIUMnode/tests/k8st/tests/local_bgp_peer_test.go554// when it did not, makes the setup robust against that flake.COMMENT
MEDIUMe2e/pkg/tests/kubevirt/live_migration.go41// KubeVirt live migration e2e tests validate Calico's seamless migration support forCOMMENT
MEDIUMe2e/pkg/utils/remotecluster/exec.go33// RemoteFrameworkAwareExec is used to execute commands in a context that forces the executed function to utilize theCOMMENT
MEDIUMprocess/testing/aso/vmss.sh19# It has been enhanced with ASO v2 best practices including:COMMENT
Redundant / Tautological Comments16 hits · 24 pts
SeverityFileLineSnippetContext
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py103 # Check if this key is already in etcd. If it is, and if it representsCOMMENT
LOWcharts/calico/templates/calico-typha.yaml132 # Set this to the same value as terminationGracePeriodSeconds; it tells Typha how much timeCOMMENT
LOWcharts/calico/templates/calico-config.yaml9 # Set these to the IP and port of your API server; In BPF mode, we need to connect directly to theCOMMENT
LOWmanifests/calico-policy-only.yaml12951 # Set this to the same value as terminationGracePeriodSeconds; it tells Typha how much timeCOMMENT
LOWmanifests/calico-typha.yaml13079 # Set this to the same value as terminationGracePeriodSeconds; it tells Typha how much timeCOMMENT
LOWmanifests/calico-bpf.yaml47 # Set these to the IP and port of your API server; In BPF mode, we need to connect directly to theCOMMENT
LOWcni-plugin/contrib/test_scripts/util.py34 # Open the file again to pass the file handle as the stdin to call the pluginCOMMENT
LOWprocess/testing/win-connections/run-tests.sh25# Check if kubeconfig exists at ../aso/kubeconfigCOMMENT
LOWprocess/testing/aso/vmss.sh463# Check if first arg is a number (node index)COMMENT
LOWprocess/testing/aso/vmss.sh495# Check if first arg is a number (node index)COMMENT
LOWprocess/testing/aso/vmss.sh527# Check if first arg is a number (node index)COMMENT
LOWprocess/testing/aso/vmss.sh573# Check if first arg is a number (node index)COMMENT
LOWprocess/testing/aso/vmss.sh681 # Check if ASO is runningCOMMENT
LOWprocess/testing/aso/vmss.sh775 # Check if resource group existsCOMMENT
LOWprocess/testing/aso/install-calico.sh69 # Verify if the required variables are set for Calico EECOMMENT
LOW.semaphore/end-to-end/scripts/global_prologue.sh135# Set needrestart to automatically restart all required services after installation.COMMENT
Deep Nesting23 hits · 18 pts
SeverityFileLineSnippetContext
LOWnetworking-calico/devstack/resync_scale_test.py162CODE
LOWnetworking-calico/devstack/resync_scale_test.py560CODE
LOWnetworking-calico/devstack/resync_concurrency_test.py186CODE
LOWnetworking-calico/devstack/resync_concurrency_test.py560CODE
LOWnetworking-calico/devstack/qos_responsiveness_tests.py33CODE
LOWnetworking-calico/devstack/qos_responsiveness_tests.py248CODE
LOWnetworking-calico/devstack/qos_responsiveness_tests.py387CODE
LOWnetworking-calico/devstack/qos_responsiveness_tests.py464CODE
LOWnetworking-calico/networking_calico/etcdv3.py96CODE
LOWnetworking-calico/networking_calico/etcdutils.py402CODE
LOWnetworking-calico/networking_calico/etcdutils.py149CODE
LOW…networking_calico/plugins/ml2/drivers/calico/syncer.py109CODE
LOW…tworking_calico/plugins/ml2/drivers/calico/election.py261CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1425CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py690CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py874CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1336CODE
LOW…networking_calico/plugins/ml2/drivers/calico/policy.py263CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py246CODE
LOW…g-calico/networking_calico/tests/test_fv_dhcp_agent.py109CODE
LOWnetworking-calico/networking_calico/agent/linux/dhcp.py50CODE
LOWcalicoctl/tests/st/calicoctl/test_crud.py768CODE
LOW.argoci/scripts/merge_junit.py47CODE
Fake / Example Data10 hits · 10 pts
SeverityFileLineSnippetContext
LOWnode/pkg/cni/token_watch_internal_test.go70 Token: "fake-token",CODE
LOWnode/pkg/cni/token_watch_internal_test.go136 Token: "fake-token",CODE
LOWnode/pkg/cni/token_watch_internal_test.go195 Token: "fake-token",CODE
LOWnode/pkg/cni/token_watch_internal_test.go260 Token: "fake-token",CODE
LOWnode/pkg/cni/token_watch_internal_test.go499 Token: "fake-token",CODE
LOWnode/pkg/cni/token_watch_internal_test.go575 Token: "fake-token",CODE
LOWnode/pkg/cni/token_watch_internal_test.go665 Token: "fake-token",CODE
LOWe2e/pkg/tests/operator/ippools.go153 pool.Spec.NodeSelector = "has(dummy-key)"CODE
LOWe2e/pkg/tests/operator/ippools.go177 installation.Spec.CalicoNetwork.IPPools[i].NodeSelector = "has(dummy-key)"CODE
LOWe2e/pkg/tests/operator/ippools.go188 if pool.Spec.NodeSelector != "has(dummy-key)" {CODE
Modern AI Meta-Vocabulary3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/ci-notify.yml2# someone approves their PR. CI is event-driven off `status`; approvals areCOMMENT
MEDIUM.github/workflows/ci-notify.yml3# polled — see the `schedule` trigger for why they cannot be event-driven.COMMENT
MEDIUM.github/workflows/ci-notify.yml25 # Approval path. Polled, not event-driven, because reacting toCOMMENT
Modern Structural Boilerplate9 hits · 8 pts
SeverityFileLineSnippetContext
LOWnetworking-calico/devstack/qos_responsiveness_tests.py26logger = logging.getLogger(__name__)CODE
LOWnetworking-calico/networking_calico/monotonic.py23__all__ = ["monotonic_time"]CODE
LOW…king-calico/networking_calico/agent/dhcp_agent_main.py44__all__ = ["main"]CODE
LOWcalicoctl/tests/st/test_base.py22logger = logging.getLogger(__name__)CODE
LOWcalicoctl/tests/st/calicoctl/test_migrate.py26logger = logging.getLogger(__name__)CODE
LOWcalicoctl/tests/st/calicoctl/test_crud.py25logger = logging.getLogger(__name__)CODE
LOWcalicoctl/tests/st/calicoctl/test_ipam_split.py27logger = logging.getLogger(__name__)CODE
LOWcalicoctl/tests/st/utils/utils.py33logger = logging.getLogger(__name__)CODE
LOWnode/workload/responder.py9logger = logging.getLogger(__name__)CODE
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMnetworking-calico/devstack/bootstrap.sh287 # Create a Calico network, for demonstration purposes.COMMENT
LOW…ng-calico/networking_calico/tests/test_fv_etcdutils.py71 # Add in an invalid API path so as to make sure to test the failureCOMMENT
MEDIUM.github/workflows/codeql.yml49 # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize howCOMMENT
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippetContext
LOWhack/list-go-sources.sh10# Usage:COMMENT
LOWhack/dev-build.sh21# Usage:COMMENT
LOWprocess/testing/aso/vmss.sh21# Usage:COMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWfelix/bpf/ut/pol_prog_test.go1525 // TODO: Add test cases for IPv6COMMENT
LOWfelix/bpf/ut/pol_prog_test.go1810 // TODO: Add test cases for IPv6COMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWnetworking-calico/networking_calico/etcdv3.py447CODE
LOWnetworking-calico/networking_calico/resync/scope.py100CODE