AI Slop Code Risk Monitor

projectcalico/calico

SlopCodeMonitor badge for projectcalico/calico Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Cloud native networking and network security

3.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for projectcalico/calico, a Go project with 7,410 GitHub stars. SynthScan examined 1,344,193 lines of code across 5153 source files, recording 4644 pattern matches distributed across 20 syntactic categories. The legacy adjusted pattern signal is 3.8 (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.

3.8
Adjusted Signal
3.8
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
7.4K
Stars
Go
Language
1.3M
Lines of Code
5.2K
Files
4.6K
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 16.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.4/100 · LOW

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

Agent Over-Engineering Ratio 2.2/100 · LOW

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

PR Review Velocity Impact 17.3/100 · LOW

Which changes need focused human review? 4644 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 5HIGH 22MEDIUM 153LOW 4464

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 4644 distinct pattern matches across 20 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 Block3820 hits · 3754 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/bootstrap.sh1#!/bin/bashCOMMENT
LOWnetworking-calico/devstack/bootstrap.sh21# DevStack install, so take it out of the way there. Guarded because this is aCOMMENT
LOWnetworking-calico/devstack/bootstrap.sh41#------------------------------------------------------------------------------COMMENT
LOWnetworking-calico/devstack/bootstrap.sh61# For a single node Calico/DevStack cluster, the environment should leaveCOMMENT
LOWnetworking-calico/devstack/bootstrap.sh81# set to 'true', Tempest will be installed and the required initialCOMMENT
LOWnetworking-calico/devstack/bootstrap.sh101# Semaphore agent's checkout path; set it when running anywhere else.COMMENT
LOWnetworking-calico/devstack/bootstrap.sh321if ${SCALE_ONLY:-false}; thenCOMMENT
LOWnetworking-calico/devstack/bootstrap.sh381COMMENT
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.py161 while not self._stopped:COMMENT
LOWnetworking-calico/networking_calico/etcdutils.py221 # Start a watch from just after the last known revision.COMMENT
LOWnetworking-calico/networking_calico/etcdutils.py241 # revision N+1, which is no longer available.COMMENT
LOWnetworking-calico/networking_calico/etcdutils.py261 #COMMENT
LOWnetworking-calico/networking_calico/etcdutils.py281 # that the DB has just been compacted and so the revision is noCOMMENT
LOWnetworking-calico/networking_calico/etcdutils.py361 # 'value': '...',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.py301COMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py321# us by creating an instance of oslo_context.context.RequestContext (or subclass) at theCOMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py781 # port can be marked as down/removed by another component.COMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1201 p, p.get("binding:host_id"), plugin_contextCOMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1321 # port from the Neutron DB, decides present-or-absent for the slot, andCOMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1581 try:COMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1621 #COMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1661 # keep history for at least one etcd_compaction_period_minsCOMMENT
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1721 )COMMENT
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
3760 more matches not shown…
Hyper-Verbose Identifiers292 hits · 253 pts
SeverityFileLineSnippetContext
LOWnetworking-calico/devstack/resync_scale_test.py274def create_networks_and_subnets(conn, num_networks):CODE
LOW⚡networking-calico/devstack/resync_concurrency_test.py326def neutron_server_restart_and_wait(conn, deadline_secs=60):CODE
LOW⚡networking-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_v2.py59def get_port_status_id_from_key(region_string, key):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.py358 def etcd_write_data_matches_existing(self, write_data, existing):CODE
LOW⚡…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1142 def get_allowed_network_types(self, agent=None):CODE
LOW⚡…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1151 def create_network_postcommit(self, context):CODE
LOW⚡…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1156 def update_network_postcommit(self, context):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py637 def _init_start_calico_resource_syncer(self):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py640 def _init_start_calico_manager(self):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py657 def _init_start_agent_status_watcher(self):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py674 def _init_start_endpoint_status_watcher(self):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py855 def _loop_writing_port_statuses(self):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py949 def _try_to_update_port_status(self, admin_context, port_status_key):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py965 def _update_port_status_from_cache(self, admin_context, port_status_key):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1085 def _retry_port_status_update(self, port_status_key):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1237 def delete_network_postcommit(self, context):CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1561def 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.py511 def neutron_to_etcd_write_data(self, name, value, context, reread=False):CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py525 def neutron_to_port_etcd_write_data(self, port, context, reread, dest_host=None):CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py560 def neutron_to_live_migration_etcd_write_data(CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py835 def get_extra_port_information(self, context, port):CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py926 def _get_extra_port_information_from_bulk(self, context, port):CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py1204def _etcd_slots_can_exist_for(db_port, host, device_id):CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py1235def endpoint_name_without_host(name):CODE
LOW⚡…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1629 def test_get_vif_details_falls_back_when_port_mac_missing(self):CODE
LOW⚡…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1635 def test_get_vif_details_falls_back_on_malformed_port_mac(self):CODE
LOW⚡…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1641 def test_neutron_rule_to_etcd_rule_icmp(self):CODE
LOW⚡…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2757 def test_vif_plug_no_notification_for_detached_port(self):CODE
LOW⚡…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2767 def test_vif_plug_no_notification_if_dest_goes_down_during_read(self):CODE
LOW⚡…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2774 def get_port_while_dest_goes_down(context, port_id):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1463 def test_subnet_cas_retry_after_conflict(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1502 def test_subnet_cas_exhaustion(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1547 def test_check_segment_for_agent(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1608 def test_bind_port_dead_agent(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1613 def test_get_vif_details_derives_tap_mac_from_port_mac(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1718 def test_neutron_rule_to_etcd_rule_protocol_name(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1743 def test_neutron_rule_to_etcd_rule_protocol_any(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1769 def test_sg_rule_ingress_no_remote_ip_prefix(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1787 def test_sg_rule_egress_no_remote_ip_prefix(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1806 def test_sg_rule_ingress_with_remote_ip_prefix(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1826 def test_sg_rule_egress_with_remote_ip_prefix(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py1846 def test_startup_resync_disabled(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2028 def test_port_narrow_resync_no_op_when_correct(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2038 def test_port_narrow_resync_recreates_after_etcd_loss(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2051 def test_subnet_narrow_resync_writes_only_when_changed(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2075 def test_subnet_narrow_resync_deletes_when_gone(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2099 def test_security_group_narrow_resync_no_op_when_correct(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2296 def test_pre_live_migration_transient_vif_unbound(self):CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py2343 def test_live_migration_complete_transient_vif_unbound(self):CODE
232 more matches not shown…
Self-Referential Comments68 hits · 224 pts
SeverityFileLineSnippetContext
MEDIUMnetworking-calico/devstack/bootstrap.sh136# Create a directory for DevStack bootstrap and testing.COMMENT
MEDIUMnetworking-calico/devstack/bootstrap.sh365 # 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.py426 # The following methods differ from those for other resources for two reasons.COMMENT
MEDIUM…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py745 # Create a new security group.COMMENT
MEDIUM…tworking_calico/plugins/ml2/drivers/calico/test/lib.py154# Define a stub class that mocks out leader election: assume we're alwaysCOMMENT
MEDIUM…tworking_calico/plugins/ml2/drivers/calico/test/lib.py315 # Create an instance of CalicoMechanismDriver.COMMENT
MEDIUM…king-calico/networking_calico/tests/test_dhcp_agent.py114 # Create the DHCP agent.COMMENT
MEDIUM…king-calico/networking_calico/tests/test_dhcp_agent.py367 # Create the DHCP agent.COMMENT
MEDIUM⚡…king-calico/networking_calico/tests/test_dhcp_agent.py407 # Create the DHCP agent and allow it to start the SubnetWatcher loop.COMMENT
MEDIUM⚡…king-calico/networking_calico/tests/test_dhcp_agent.py418 # Create the DHCP agent.COMMENT
MEDIUM…king-calico/networking_calico/tests/test_dhcp_agent.py452 # Create the DHCP agent.COMMENT
MEDIUM…king-calico/networking_calico/tests/test_dhcp_agent.py480 # Create the DHCP agent.COMMENT
MEDIUM…king-calico/networking_calico/tests/test_dhcp_agent.py505 # Create the DHCP agent.COMMENT
MEDIUM⚡…-calico/networking_calico/tests/test_subnet_watcher.py45 # Create the DHCP agent and allow it to start theCOMMENT
MEDIUM⚡calicoctl/tests/st/calicoctl/test_migrate.py39 # Create the ipv6 pool using calicoctl, and read it out using anCOMMENT
MEDIUM⚡calicoctl/tests/st/calicoctl/test_migrate.py48 # Create a BGP ConfigCOMMENT
MEDIUM⚡calicoctl/tests/st/calicoctl/test_migrate.py56 # Create a BGP Config that should reference a node.COMMENT
MEDIUM⚡calicoctl/tests/st/calicoctl/test_migrate.py65 # Create a BGP PeerCOMMENT
MEDIUM⚡calicoctl/tests/st/calicoctl/test_migrate.py73 # Create a Felix configCOMMENT
MEDIUM⚡calicoctl/tests/st/calicoctl/test_migrate.py79 # Create a Felix config that should reference a node.COMMENT
MEDIUM⚡calicoctl/tests/st/calicoctl/test_migrate.py86 # Create a Global Network policyCOMMENT
MEDIUM⚡calicoctl/tests/st/calicoctl/test_migrate.py95 # Create a Global Network setCOMMENT
MEDIUM⚡calicoctl/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
MEDIUM⚡calicoctl/tests/st/calicoctl/test_crud.py1004 # Create a second node, this should keep the existing cluster info.COMMENT
MEDIUM⚡calicoctl/tests/st/calicoctl/test_crud.py1015 # Create a new default KubeControllersConfiguration and get it to determine the currentCOMMENT
MEDIUM⚡calicoctl/tests/st/calicoctl/test_crud.py1058 # Create a new Host Endpoint and get it to determine theCOMMENT
MEDIUM⚡calicoctl/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
MEDIUM⚡calicoctl/tests/st/calicoctl/test_crud.py1547 pass # Create an empty fileCODE
MEDIUM⚡calicoctl/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.py2942# # Create the policy using calicoctlCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py2968# # Create the policy using calicoctlCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py3003# # Create the policy using calicoctlCOMMENT
MEDIUMcalicoctl/tests/st/calicoctl/test_crud.py3038# # 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
8 more matches not shown…
Structural Annotation Overuse113 hits · 191 pts
SeverityFileLineSnippetContext
LOW⚡felix/dataplane/linux/bpf_route_mgr.go227 // Step 1: calculate any updates to the _desired_ state of the BPF map.COMMENT
LOW⚡felix/dataplane/linux/bpf_route_mgr.go230 // Step 2: if required, load the state of the map from the dataplane so we can do efficient deltas.COMMENT
LOW⚡felix/dataplane/linux/bpf_route_mgr.go237 // 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
LOW⚡confd/tests/daemon_test.go41 // Step 1: create nodes and a peering on a local subnet.COMMENT
LOW⚡confd/tests/daemon_test.go47 // Step 2: update the peering to omit source address.COMMENT
LOW⚡confd/tests/daemon_test.go55 // Step 3: add a max restart time.COMMENT
LOW⚡confd/tests/daemon_test.go80 // Step 1: no secret yet → peerings have no password.COMMENT
LOW⚡confd/tests/daemon_test.go83 // Step 2: create the secret with key "a".COMMENT
LOW⚡confd/tests/daemon_test.go92 // Step 3: update the password.COMMENT
LOW⚡confd/tests/daemon_test.go101 // Step 4: change secret to an unreferenced key → password disappears.COMMENT
LOW⚡confd/tests/daemon_test.go110 // Step 5: delete the secret → still no password.COMMENT
LOW⚡confd/tests/daemon_test.go138 // Step 1: no secrets → no passwords on any peering.COMMENT
LOW⚡confd/tests/daemon_test.go141 // Step 2: create my-secrets-1 with only key "b".COMMENT
LOW⚡confd/tests/daemon_test.go172 // Step 4: delete my-secrets-2 → password-c disappears.COMMENT
LOW⚡confd/tests/daemon_test.go177 // Step 5: change passwords in my-secrets-1.COMMENT
LOW⚡confd/tests/daemon_test.go186 // Step 6: remove key "a" from my-secrets-1 → new-password-a disappears.COMMENT
LOW⚡confd/tests/daemon_test.go384 // Step 1: create nodes and a peering on a local subnet.COMMENT
LOW⚡confd/tests/daemon_test.go390 // Step 2: update BGPConfiguration to change normal IPv4 route priority.COMMENT
LOW⚡confd/tests/daemon_test.go398 // Step 3: update BGPConfiguration to change normal IPv6 route priority.COMMENT
LOW⚡confd/tests/daemon_test.go414 // Step 1: apply resources and verify output with filter active.COMMENT
LOW⚡confd/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
53 more matches not shown…
Decorative Section Separators54 hits · 174 pts
SeverityFileLineSnippetContext
MEDIUMnetworking-calico/devstack/plugin.sh3# ===============================COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py142# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py144# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py234# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py236# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py415# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py417# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py487# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py489# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py546# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py548# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py753# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py755# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py829# ---------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/resync_scale_test.py831# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡networking-calico/devstack/bootstrap.sh33#------------------------------------------------------------------------------COMMENT
MEDIUM⚡networking-calico/devstack/bootstrap.sh41#------------------------------------------------------------------------------COMMENT
MEDIUM⚡networking-calico/devstack/bootstrap.sh43#------------------------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/devstack/bootstrap.sh112# ------------------------------------------------------------------------------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.py172 # -----------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/networking_calico/agent/dhcp_agent.py174 # -----------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/networking_calico/agent/dhcp_agent.py225 # -----------------------------------------------------------------COMMENT
MEDIUMnetworking-calico/networking_calico/agent/dhcp_agent.py227 # -----------------------------------------------------------------COMMENT
MEDIUM⚡felix/wireguard/bootstrap.go50// ┌────────────┐ ┌────────────┐ - Felix1 gets a response from Typha1 about the key update for Node2, andCOMMENT
MEDIUM⚡felix/wireguard/bootstrap.go52// │ ┌────────┐ │ │ │ node to node traffic for supporting nodes)COMMENT
MEDIUM⚡felix/wireguard/bootstrap.go53// │ │ Typha1 ◄─┼────────┼──────┐ │ - Felix2 has not yet had an update from Typha1 about the public key forCOMMENT
MEDIUM⚡felix/wireguard/bootstrap.go57// │ └────────┘ │ │ └────────┘ │ - Packets routed over Wireguard from Node1 to Node2 will be dropped by theCOMMENT
MEDIUM⚡felix/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
MEDIUM.github/workflows/auto-pick-oss-to-enterprise.yml61 # =========================================================================COMMENT
MEDIUM.github/workflows/auto-pick-oss-to-enterprise.yml63 # =========================================================================COMMENT
MEDIUM.github/workflows/auto-pick-oss-to-enterprise.yml435 # =========================================================================COMMENT
MEDIUM.github/workflows/auto-pick-oss-to-enterprise.yml438 # =========================================================================COMMENT
MEDIUM.github/workflows/scripts/oss-pick.sh52# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/scripts/oss-pick.sh54# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/scripts/oss-pick.sh116# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/scripts/oss-pick.sh119# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/scripts/oss-pick.sh431# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/scripts/oss-pick.sh434# ---------------------------------------------------------------------------COMMENT
Verbosity Indicators91 hits · 159 pts
SeverityFileLineSnippetContext
LOWfelix/bpf-gpl/ip_v4_fragment.h250 /* We do not really use bpf_loop() here, but we need to check if the kernelCOMMENT
LOWfelix/bpf-gpl/ip_v4_fragment.h326 /* We do not really use bpf_loop() here, but we need to check if the kernelCOMMENT
LOWfelix/bpf-gpl/ip_v4_fragment.h379 /* We do not really use bpf_loop() here, but we need to check if the kernelCOMMENT
LOWfelix/bpf-gpl/ip_v4_fragment.h402 /* 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
LOW⚡felix/dataplane/linux/bpf_route_mgr.go227 // Step 1: calculate any updates to the _desired_ state of the BPF map.COMMENT
LOW⚡felix/dataplane/linux/bpf_route_mgr.go230 // Step 2: if required, load the state of the map from the dataplane so we can do efficient deltas.COMMENT
LOW⚡felix/dataplane/linux/bpf_route_mgr.go237 // 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
LOW⚡confd/tests/daemon_test.go41 // Step 1: create nodes and a peering on a local subnet.COMMENT
LOW⚡confd/tests/daemon_test.go47 // Step 2: update the peering to omit source address.COMMENT
LOW⚡confd/tests/daemon_test.go55 // Step 3: add a max restart time.COMMENT
LOW⚡confd/tests/daemon_test.go80 // Step 1: no secret yet → peerings have no password.COMMENT
LOW⚡confd/tests/daemon_test.go83 // Step 2: create the secret with key "a".COMMENT
LOW⚡confd/tests/daemon_test.go92 // Step 3: update the password.COMMENT
LOW⚡confd/tests/daemon_test.go101 // Step 4: change secret to an unreferenced key → password disappears.COMMENT
LOW⚡confd/tests/daemon_test.go110 // Step 5: delete the secret → still no password.COMMENT
LOW⚡confd/tests/daemon_test.go138 // Step 1: no secrets → no passwords on any peering.COMMENT
LOW⚡confd/tests/daemon_test.go141 // Step 2: create my-secrets-1 with only key "b".COMMENT
LOW⚡confd/tests/daemon_test.go172 // Step 4: delete my-secrets-2 → password-c disappears.COMMENT
LOW⚡confd/tests/daemon_test.go177 // Step 5: change passwords in my-secrets-1.COMMENT
LOW⚡confd/tests/daemon_test.go186 // Step 6: remove key "a" from my-secrets-1 → new-password-a disappears.COMMENT
LOW⚡confd/tests/daemon_test.go384 // Step 1: create nodes and a peering on a local subnet.COMMENT
LOW⚡confd/tests/daemon_test.go390 // Step 2: update BGPConfiguration to change normal IPv4 route priority.COMMENT
LOW⚡confd/tests/daemon_test.go398 // Step 3: update BGPConfiguration to change normal IPv6 route priority.COMMENT
LOW⚡confd/tests/daemon_test.go414 // Step 1: apply resources and verify output with filter active.COMMENT
LOW⚡confd/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
LOW⚡hack/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.go266 // 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.go716 // Step 1: Lock v1 first, in case we resumed into Migrating without PendingCOMMENT
LOW⚡…be-controllers/pkg/controllers/migration/controller.go722 // Step 2: Save and delete the APIService so v3 requests route to CRDs.COMMENT
LOW⚡…be-controllers/pkg/controllers/migration/controller.go728 // Step 3: Lock v3. This has to come after the APIService delete, since theCOMMENT
LOW⚡…be-controllers/pkg/controllers/migration/controller.go734 // Step 4: Migrate all resources in order.COMMENT
LOW…be-controllers/pkg/controllers/migration/controller.go822 // Step 5: Unlock the datastore.COMMENT
LOW⚡…be-controllers/pkg/controllers/migration/controller.go1050 // Step 1: Delete v3 resources created during migration. Best-effort, sinceCOMMENT
LOW⚡…be-controllers/pkg/controllers/migration/controller.go1054 // Step 2: Restore v1 ClusterInformation to DatastoreReady=true so componentsCOMMENT
LOW⚡…be-controllers/pkg/controllers/migration/controller.go1067 // Step 3: Undo whatever this migration did to the v3 ClusterInformation.COMMENT
LOW⚡…be-controllers/pkg/controllers/migration/controller.go1070 // Step 4: Restore the aggregated APIService from the saved annotation.COMMENT
LOW⚡libcalico-go/lib/ipam/vmipam/ipam_kubevirt.go155 // Step 1: Generate handleID using the same logic as CNI pluginCOMMENT
LOW⚡libcalico-go/lib/ipam/vmipam/ipam_kubevirt.go158 // Step 2: Get all IPs allocated to this handleCOMMENT
31 more matches not shown…
Empty Error Handlers22 hits · 110 pts
SeverityFileLineSnippetContext
HIGHnetworking-calico/devstack/resync_concurrency_test.py194except FileNotFoundError:CODE
HIGHnetworking-calico/devstack/resync_concurrency_test.py296except OSError:CODE
HIGHnetworking-calico/networking_calico/datamodel_v3.py87except etcdv3.KeyNotFound:CODE
HIGH…tworking_calico/plugins/ml2/drivers/calico/election.py390except ElectorStopped:CODE
HIGH…tworking_calico/plugins/ml2/drivers/calico/election.py126except RestartElection:CODE
HIGH…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1643except etcdv3.KeyNotFound:CODE
HIGH…networking_calico/plugins/ml2/drivers/calico/policy.py113except etcdv3.KeyNotFound:CODE
HIGH…etworking_calico/plugins/ml2/drivers/calico/subnets.py71except etcdv3.KeyNotFound:CODE
HIGH…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py120except ValueError:CODE
HIGH…g-calico/networking_calico/tests/test_fv_dhcp_agent.py171except Exception:CODE
HIGH…tworking-calico/networking_calico/tests/test_etcdv3.py47except Exception:CODE
HIGH…-calico/networking_calico/tests/test_subnet_watcher.py50except Exception:CODE
HIGHnetworking-calico/networking_calico/agent/dhcp_agent.py1014except cfg.NoSuchOptError:CODE
HIGHnetworking-calico/networking_calico/agent/dhcp_agent.py329except Empty:CODE
HIGH…king-calico/networking_calico/agent/linux/interface.py67except cfg.NoSuchOptError:CODE
HIGHnetworking-calico/networking_calico/agent/linux/dhcp.py165except AttributeError:CODE
HIGHnetworking-calico/networking_calico/agent/linux/dhcp.py173except AttributeError:CODE
HIGHnetworking-calico/networking_calico/agent/linux/dhcp.py187except AttributeError:CODE
HIGHcalicoctl/tests/st/utils/utils.py383except ValueError:CODE
HIGHcalicoctl/tests/st/utils/utils.py390except yaml.YAMLError:CODE
HIGHhack/set_quay_expiry.py46except ImportError:CODE
HIGH.argoci/scripts/merge_junit.py77except ValueError:CODE
Excessive Try-Catch Wrapping46 hits · 52 pts
SeverityFileLineSnippetContext
MEDIUMnetworking-calico/devstack/resync_scale_test.py335def _add_rule(args):CODE
MEDIUMnetworking-calico/devstack/resync_scale_test.py377def _create_one(spec):CODE
LOW⚡networking-calico/devstack/resync_scale_test.py434 except Exception as exc:CODE
LOW⚡networking-calico/devstack/resync_scale_test.py444 except Exception as exc:CODE
LOW⚡networking-calico/devstack/resync_scale_test.py454 except Exception as exc:CODE
LOWnetworking-calico/devstack/resync_scale_test.py338 except Exception as exc:CODE
LOWnetworking-calico/devstack/resync_scale_test.py380 except Exception as exc:CODE
LOWnetworking-calico/devstack/resync_scale_test.py655 except Exception as e:CODE
LOWnetworking-calico/devstack/resync_scale_test.py908 except Exception:CODE
LOW⚡networking-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.py278 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.py256 except Exception:CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py867 except Exception:CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1489 except Exception:CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1500 except Exception:CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1752 except Exception:CODE
LOW…etworking_calico/plugins/ml2/drivers/calico/workers.py131 except Exception:CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py887 except Exception:CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py975 except Exception:CODE
LOW…working_calico/plugins/ml2/drivers/calico/endpoints.py1179 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.py339 except Exception:CODE
LOWnetworking-calico/networking_calico/agent/dhcp_agent.py901 except Exception:CODE
LOWnetworking-calico/networking_calico/agent/dhcp_agent.py1079 except Exception as e:CODE
MEDIUMnetworking-calico/networking_calico/agent/dhcp_agent.py159def 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/stern_junit.py127 except Exception as e:CODE
LOW.argoci/scripts/merge_junit.py40 except Exception as e:CODE
Hallucination Indicators5 hits · 50 pts
SeverityFileLineSnippetContext
CRITICALoperator/pkg/render/apiserver.go995 env = append(env, corev1.EnvVar{Name: "MULTI_INTERFACE_MODE", Value: c.cfg.Installation.CalicoNetwork.MultiInterfaceMoCODE
CRITICALoperator/pkg/render/node.go787 logFileMaxSize := c.cfg.Installation.Logging.CNI.LogFileMaxSize.Value() / (1024 * 1024)CODE
CRITICALoperator/pkg/render/windows.go286 logFileMaxSize := c.cfg.Installation.Logging.CNI.LogFileMaxSize.Value() / (1024 * 1024)CODE
CRITICALoperator/pkg/render/istio/istio.go297 Value: strconv.FormatInt(int64(c.cfg.Istio.Spec.DSCPMark.ToUint8()), 10),CODE
CRITICALoperator/pkg/controller/installation/validation.go83 instance.Spec.Logging.CNI.LogFileMaxSize.Value() <= 0) {CODE
AI Slop Vocabulary14 hits · 42 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.go1038 // but taking it now makes us robust to refactoring.COMMENT
MEDIUMfelix/dataplane/linux/bpf_ep_mgr.go1491 // 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
MEDIUMoperator/pkg/render/common/test/testing.go149// most tests should use ExpectResources instead, which is more robust and provides better error messages.COMMENT
MEDIUMoperator/pkg/controller/ippool/pool_controller.go420 // we require the v3 API to be running. This is so that we properly leverage the v3 API's validation.COMMENT
MEDIUM…ller/clusterconnection/clusterconnection_controller.go411 // Validate that the tier watch is ready before querying the tier to ensure we utilize the cache.COMMENT
MEDIUMprocess/testing/aso/vmss.sh19# It has been enhanced with ASO v2 best practices including:COMMENT
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
Modern AI Meta-Vocabulary10 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUM⚡operator/config/crd/kustomization.yaml28#+kubebuilder:scaffold:crdkustomizeresourceCOMMENT
MEDIUM⚡operator/config/crd/kustomization.yaml33#+kubebuilder:scaffold:crdkustomizewebhookpatchCOMMENT
MEDIUM⚡operator/config/crd/kustomization.yaml38#+kubebuilder:scaffold:crdkustomizecainjectionpatchCOMMENT
MEDIUMoperator/config/samples/kustomization.yaml27# +kubebuilder:scaffold:manifestskustomizesamplesCOMMENT
MEDIUMoperator/config/scorecard/kustomization.yaml16# +kubebuilder:scaffold:patchesJson6902COMMENT
MEDIUMoperator/internal/controller/controllers.go122 // +kubebuilder:scaffold:builderCOMMENT
MEDIUMoperator/internal/controller/suite_test.go35 //+kubebuilder:scaffold:importsCOMMENT
MEDIUMoperator/internal/controller/suite_test.go79 //+kubebuilder:scaffold:schemeCOMMENT
MEDIUMoperator/pkg/daemon/daemon.go76 // +kubebuilder:scaffold:importsCOMMENT
MEDIUMoperator/pkg/daemon/daemon.go90 // +kubebuilder:scaffold:schemeCOMMENT
Redundant / Tautological Comments15 hits · 22 pts
SeverityFileLineSnippetContext
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py112 # 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.yaml13304 # Set this to the same value as terminationGracePeriodSeconds; it tells Typha how much timeCOMMENT
LOWmanifests/calico-typha.yaml13424 # 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.sh485# Check if first arg is a number (node index)COMMENT
LOWprocess/testing/aso/vmss.sh517# Check if first arg is a number (node index)COMMENT
LOWprocess/testing/aso/vmss.sh549# Check if first arg is a number (node index)COMMENT
LOWprocess/testing/aso/vmss.sh595# Check if first arg is a number (node index)COMMENT
LOWprocess/testing/aso/vmss.sh703 # Check if ASO is runningCOMMENT
LOWprocess/testing/aso/vmss.sh797 # Check if resource group existsCOMMENT
LOWprocess/testing/aso/install-calico.sh69 # Verify if the required variables are set for Calico EECOMMENT
Deep Nesting24 hits · 18 pts
SeverityFileLineSnippetContext
LOWnetworking-calico/devstack/resync_scale_test.py175CODE
LOWnetworking-calico/devstack/resync_scale_test.py573CODE
LOWnetworking-calico/devstack/resync_scale_test.py624CODE
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.py406CODE
LOWnetworking-calico/networking_calico/etcdutils.py154CODE
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.py1561CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py701CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py965CODE
LOW…rking_calico/plugins/ml2/drivers/calico/mech_calico.py1472CODE
LOW…networking_calico/plugins/ml2/drivers/calico/policy.py263CODE
LOW…co/plugins/ml2/drivers/calico/test/test_plugin_etcd.py257CODE
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.py50CODE
Fake / Example Data12 hits · 12 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.go134 pool.Spec.NodeSelector = "has(dummy-key)"CODE
LOWe2e/pkg/tests/operator/ippools.go158 installation.Spec.CalicoNetwork.IPPools[i].NodeSelector = "has(dummy-key)"CODE
LOWe2e/pkg/tests/operator/ippools.go169 if pool.Spec.NodeSelector != "has(dummy-key)" {CODE
LOW…or/pkg/controller/installation/core_controller_test.go1891 "extra-dummy": "dummy-value",CODE
LOWoperator/pkg/tls/certificatemanagement/keypair_test.go83 PrivateKeyPEM: []byte("fake-key"),CODE
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.sh365 # 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