Repository Analysis

firecracker-microvm/firecracker

Secure and fast microVMs for serverless computing.

4.0 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of firecracker-microvm/firecracker, a Rust project with 35,460 GitHub stars. SynthScan v2.0 examined 207,532 lines of code across 668 source files, recording 705 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 4.0 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).

4.0
Adjusted Score
4.0
Raw Score
100%
Time Factor
2026-07-13
Last Push
35.5K
Stars
Rust
Language
207.5K
Lines of Code
668
Files
705
Pattern Hits
2026-07-14
Scan Date
0.01
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 2HIGH 7MEDIUM 30LOW 666

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 705 distinct pattern matches across 17 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 Block384 hits · 384 pts
SeverityFileLineSnippetContext
LOWrust-toolchain.toml1# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtools/ab_test.py321COMMENT
LOWtools/ab_test.py341 #COMMENT
LOWresources/rootfs/overlay/usr/local/bin/readmem.c1// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWresources/rootfs/overlay/usr/local/bin/init.c1// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWresources/rootfs/overlay/usr/local/bin/fillmem.c1// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOW…/rootfs/overlay/usr/local/bin/fast_page_fault_helper.c1// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/conftest.py561# Tests get a microVM by requesting one of:COMMENT
LOW…sts/integration_tests/security/test_vulnerabilities.py141 # =============================COMMENT
LOWtests/integration_tests/security/__init__.py1# Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/integration_tests/style/__init__.py1# Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/integration_tests/style/test_licenses.py141COMMENT
LOWtests/integration_tests/performance/test_mmds.py61 {COMMENT
LOWtests/integration_tests/performance/__init__.py1# Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/integration_tests/performance/test_huge_pages.py21COMMENT
LOWtests/integration_tests/performance/test_huge_pages.py41 # Referenced: 0 kBCOMMENT
LOW…tegration_tests/functional/test_cpu_template_helper.py101 return cpu_config_dictCOMMENT
LOW…tegration_tests/functional/test_cpu_template_helper.py121 # is 0 on all tested platforms. On the other hand, the userspace cpuidCOMMENT
LOW…tegration_tests/functional/test_cpu_template_helper.py141 # CPUID.20000000h is not documented in Intel SDM and AMD APM. KVM doesn'tCOMMENT
LOW…tegration_tests/functional/test_cpu_template_helper.py181# List of MSR indices that should not be tested due to its mutability or inavailablilityCOMMENT
LOW…tegration_tests/functional/test_cpu_template_helper.py201 # SYSENTER.COMMENT
LOW…tegration_tests/functional/test_cpu_template_helper.py221 0x4B564D01,COMMENT
LOW…/integration_tests/functional/test_net_config_space.py161 # on the interface.COMMENT
LOWtests/integration_tests/functional/__init__.py1# Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOW…on_tests/functional/test_cpu_features_host_vs_guest.py161}COMMENT
LOW…on_tests/functional/test_cpu_features_host_vs_guest.py321 # tests on Intel Cascade Lake for Ubuntu.COMMENT
LOW…on_tests/functional/test_cpu_features_host_vs_guest.py381 # supports these features with multiple leaf functions, selecting a leaf functionCOMMENT
LOW…on_tests/functional/test_cpu_features_host_vs_guest.py421 }COMMENT
LOW…tegration_tests/functional/test_cpu_features_x86_64.py201 # Assert the guest frequency matches the host frequencyCOMMENT
LOWtests/framework/http_api.py21 def __init__(self):COMMENT
LOWtests/host_tools/sysgenid.c1// Copyright 2026 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/host_tools/vmclock.c1// Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/host_tools/vsock_helper.c1// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/host_tools/test_syscalls.c1// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWtests/host_tools/devmem.c1// Copyright 2026 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
LOWsrc/jailer/src/env.rs41const DEV_NET_TUN_MINOR: u32 = 200;COMMENT
LOWsrc/jailer/src/env.rs81// pid namespace, we will call clone with a NULL stack pointer. We can do this because we willCOMMENT
LOWsrc/jailer/src/env.rs681 // for all of them.COMMENT
LOWsrc/jailer/src/cgroup.rs41 // search PROC_MOUNTS for cgroup mount pointsCOMMENT
LOWsrc/jailer/src/cgroup.rs241}COMMENT
LOWsrc/jailer/src/cgroup.rs261// on the following helper function) helps with propagating the values.COMMENT
LOWsrc/jailer/src/resource_limits.rs21 RlimitFsize,COMMENT
LOWsrc/jailer/src/resource_limits.rs41 // c_uint (which is an u32)COMMENT
LOWsrc/clippy-tracing/src/main.rs21#[derive(Parser)]COMMENT
LOWsrc/acpi-tables/src/aml.rs201}COMMENT
LOWsrc/acpi-tables/src/aml.rs1241COMMENT
LOWsrc/acpi-tables/src/aml.rs1301 .unwrap()COMMENT
LOWsrc/acpi-tables/src/aml.rs1321 // 0x0CF8, // LengthCOMMENT
LOWsrc/acpi-tables/src/aml.rs1341 // 0x00000000, // Translation OffsetCOMMENT
LOWsrc/acpi-tables/src/aml.rs1621 [0x14, 0x09, 0x5F, 0x53, 0x54, 0x41, 0x00, 0xA4, 0x0A, 0x0F]COMMENT
LOWsrc/acpi-tables/src/aml.rs1861COMMENT
LOWsrc/acpi-tables/src/aml.rs1981 // {COMMENT
LOWsrc/acpi-tables/src/fadt.rs21COMMENT
LOWsrc/acpi-tables/src/rsdp.rs1// Copyright © 2019 Intel CorporationCOMMENT
LOWsrc/utils/src/time.rs181/// Converts a timestamp in seconds to an equivalent one in nanoseconds.COMMENT
LOWsrc/vmm/src/persist.rs101/// This describes the mapping between Firecracker base virtual address andCOMMENT
LOWsrc/vmm/src/persist.rs121 /// wrong but cannot be changed due to being API, so this field is deprecated,COMMENT
LOWsrc/vmm/src/persist.rs601COMMENT
LOWsrc/vmm/src/persist.rs621 // libc::SOL_SOCKET,COMMENT
LOWsrc/vmm/src/lib.rs1// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.COMMENT
324 more matches not shown…
Hyper-Verbose Identifiers197 hits · 198 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py112def pytest_runtest_makereport(item, call): # pylint:disable=unused-argumentCODE
LOWtests/conftest.py253def test_fc_session_root_path():CODE
LOWtests/README.md489def test_with_any_microvm_and_my_init(test_microvm_any):CODE
LOWtests/integration_tests/security/test_fips.py55def test_fips_rng_reseed_on_snapshot_restore(uvm_with_fips, microvm_factory):CODE
LOWtests/integration_tests/security/test_fips.py70def test_fips_reseeded_kernel_csprng(fips_snapshot_pair):CODE
LOWtests/integration_tests/security/test_seccomp.py180def test_default_seccomp_level(uvm):CODE
LOWtests/integration_tests/security/test_jail.py114def test_exec_destination_path_is_symlink(uvm):CODE
LOWtests/integration_tests/security/test_jail.py134def test_exec_destination_path_is_hardlink(uvm):CODE
LOWtests/integration_tests/security/test_jail.py154def test_default_chroot_hierarchy(uvm):CODE
LOWtests/integration_tests/security/test_jail.py209def test_arbitrary_usocket_location(uvm):CODE
LOWtests/integration_tests/security/test_jail.py227def test_jailer_bind_mount_propagation(uvm):CODE
LOWtests/integration_tests/security/test_jail.py302 def enable_controller_in_subtree(self, cgname, controller):CODE
LOWtests/integration_tests/security/test_jail.py429def test_cgroups_custom_parent(uvm, cgroups_info):CODE
LOWtests/integration_tests/security/test_jail.py484def test_cgroups_without_numa(uvm, cgroups_info):CODE
LOWtests/integration_tests/security/test_jail.py521def test_cgroups_parent_cgroup_but_no_cgroup(CODE
LOWtests/integration_tests/security/test_jail.py584def test_args_default_resource_limits(uvm):CODE
LOWtests/integration_tests/security/test_jail.py608def test_args_resource_limits(uvm):CODE
LOWtests/integration_tests/security/test_jail.py624def test_positive_file_size_limit(uvm):CODE
LOWtests/integration_tests/security/test_jail.py642def test_negative_file_size_limit(uvm):CODE
LOWtests/integration_tests/security/test_jail.py678def test_negative_no_file_limit(uvm):CODE
LOWtests/integration_tests/security/test_jail.py697def test_new_pid_ns_resource_limits(uvm):CODE
LOWtests/integration_tests/security/test_jail.py753def test_firecracker_kill_by_pid(uvm, daemonize, new_pid_ns):CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py102def download_spectre_meltdown_checker(tmp_path_factory):CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py116def test_spectre_meltdown_checker_on_host(spectre_meltdown_checker):CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py127def test_vulnerabilities_on_host():CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py134def get_vuln_files_exception_dict(template):CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py167def check_vulnerabilities_files_on_guest(microvm):CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py232def test_check_vulnerability_files_ab(request, uvm_any):CODE
LOW…sts/integration_tests/security/test_vulnerabilities.py246def test_spectre_meltdown_checker_on_guest(CODE
LOWtests/integration_tests/security/test_nv.py23def test_no_nested_virtualization(uvm_booted):CODE
LOWtests/integration_tests/style/test_repo.py15def test_repo_no_spaces_in_paths():CODE
LOWtests/integration_tests/style/test_repo.py39def test_repo_validate_changelog():CODE
LOWtests/integration_tests/style/test_markdown.py25def test_markdown_internal_links():CODE
LOWtests/integration_tests/performance/test_boottime.py70def get_systemd_analyze_times(microvm):CODE
LOWtests/integration_tests/performance/test_boottime.py101def launch_vm_with_boot_timer(CODE
LOW…s/integration_tests/performance/test_hotplug_memory.py262def test_virtio_mem_hotplug_hotunplug(uvm_any_memhp):CODE
LOW…s/integration_tests/performance/test_hotplug_memory.py320def test_snapshot_restore_persistence(uvm, microvm_factory, snapshot_type):CODE
LOW…s/integration_tests/performance/test_hotplug_memory.py360def test_snapshot_restore_incremental(uvm, microvm_factory, snapshot_type):CODE
LOW…s/integration_tests/performance/test_hotplug_memory.py486def test_memory_hotplug_latency(CODE
LOWtests/integration_tests/performance/test_block.py160def test_block_vhost_user_performance(CODE
LOWtests/integration_tests/performance/test_vsock.py99def consume_vsock_ping_output(ping_output):CODE
LOWtests/integration_tests/performance/test_initrd.py27def test_microvm_initrd_with_serial(uvm_with_initrd, huge_pages):CODE
LOWtests/integration_tests/performance/test_network.py97def test_network_tcp_throughput(CODE
LOW…tegration_tests/performance/test_vhost_user_metrics.py16def test_vhost_user_block_metrics(uvm, vcpu_count, metrics):CODE
LOWtests/integration_tests/performance/test_steal_time.py21def test_pvtime_steal_time_increases(uvm):CODE
LOW…sts/integration_tests/performance/test_rate_limiter.py97def test_rx_rate_limiting_cpu_load(uvm):CODE
LOW…sts/integration_tests/performance/test_rate_limiter.py237def _check_tx_rate_limit_patch(test_microvm):CODE
LOW…sts/integration_tests/performance/test_rate_limiter.py263def _check_rx_rate_limit_patch(test_microvm):CODE
LOW…sts/integration_tests/performance/test_rate_limiter.py340def _start_iperf_server_on_guest(test_microvm):CODE
LOW…sts/integration_tests/performance/test_rate_limiter.py356def _start_iperf_server_on_host(netns_cmd_prefix):CODE
LOWtests/integration_tests/performance/test_snapshot.py151def test_post_restore_latency(CODE
LOWtests/integration_tests/performance/test_snapshot.py267def test_snapshot_create_latency(CODE
LOWtests/integration_tests/performance/test_pmem.py155def emit_fio_single_read_metrics(logs_dir, metrics):CODE
LOWtests/integration_tests/performance/test_balloon.py51def test_hinting_reporting_cpu(CODE
LOWtests/integration_tests/performance/test_balloon.py131def test_hinting_fault_latency(CODE
LOW…gration_tests/performance/test_process_startup_time.py19def test_startup_time_new_pid_ns(microvm_factory, guest_kernel, rootfs, metrics):CODE
LOW…gration_tests/performance/test_process_startup_time.py31def test_startup_time_daemonize(microvm_factory, guest_kernel, rootfs, metrics):CODE
LOW…gration_tests/performance/test_process_startup_time.py42def test_startup_time_custom_seccomp(microvm_factory, guest_kernel, rootfs, metrics):CODE
LOWtests/integration_tests/functional/test_rng.py69def assert_virtio_rng_is_current_hwrng_device(ssh_connection: SSHConnection):CODE
LOWtests/integration_tests/functional/test_rng.py104def _get_percentage_difference(measured, base):CODE
137 more matches not shown…
Self-Referential Comments18 hits · 54 pts
SeverityFileLineSnippetContext
MEDIUMtools/release-tag.sh12# Create a tag for the specified release.COMMENT
MEDIUMresources/rebuild.sh130 # Create a temporary branch where we can apply patches and thenCOMMENT
MEDIUMresources/rebuild.sh312 # Create the directory in which we will store the kernels and rootfsCOMMENT
MEDIUMtests/integration_tests/security/test_jail.py544 # Create the parent cgroup.COMMENT
MEDIUMtests/integration_tests/performance/test_vsock.py138 # Create a vsock deviceCOMMENT
MEDIUM…/integration_tests/functional/test_net_config_space.py32 # Create the control ssh connection.COMMENT
MEDIUM…/integration_tests/functional/test_drive_vhost_user.py53 # Create a rw rootfs file that is unique to the microVMCOMMENT
MEDIUM…/integration_tests/functional/test_drive_vhost_user.py180 # Create a rw rootfs file that is unique to the microVMCOMMENT
MEDIUM…/integration_tests/functional/test_drive_vhost_user.py236 # Create a rootfs with partuuid unique to this microVMCOMMENT
MEDIUMtests/integration_tests/functional/test_vsock.py289 # Create a socat process in the guest which will connect to the host socatCOMMENT
MEDIUM…sts/functional/test_snapshot_not_losing_dirty_pages.py51 # Create a large file dynamically based on available spaceCOMMENT
MEDIUMtests/integration_tests/functional/test_api.py972 # Create a vsock device.COMMENT
MEDIUMtests/integration_tests/functional/test_api.py1004 # Create a new entropy device should be OK.COMMENT
MEDIUM…ts/integration_tests/functional/test_snapshot_basic.py158 # Create a snapshot from a microvm.COMMENT
MEDIUMtests/framework/utils.py311 # Create the async processCOMMENT
MEDIUMtests/framework/microvm.py237 # Create the jailer context associated with this microvm.COMMENT
MEDIUMtests/host_tools/udp_offload.py37 # Create a UDP socketCOMMENT
MEDIUMtests/host_tools/network.py276 # Create the tap device tap0 directly in the network namespace to avoidCOMMENT
Fake / Example Data29 hits · 38 pts
SeverityFileLineSnippetContext
LOWtests/data/metadata.json3 "meta-data": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",CODE
LOWtests/data/metadata.json3 "meta-data": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",CODE
LOWtests/data/metadata.json7 "meta-data": "Lorem ipsum dolor sit amet"CODE
LOWtests/data/metadata.json7 "meta-data": "Lorem ipsum dolor sit amet"CODE
LOWtests/data/metadata_invalid.json3 "meta-data": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",CODE
LOWtests/data/metadata_invalid.json3 "meta-data": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",CODE
LOWsrc/vmm/tests/devices.rs72 let mut dummy_data = [1u8; BYTES_COUNT];CODE
LOWsrc/vmm/tests/devices.rs76 dummy_data.as_mut_ptr() as *const c_void,CODE
LOWsrc/vmm/tests/devices.rs77 dummy_data.len(),CODE
LOWsrc/vmm/tests/devices.rs80 assert!(dummy_data.len() == usize::try_from(rc).unwrap());CODE
LOWsrc/vmm/tests/devices.rs102 assert!(data[..31] == dummy_data[..31]);CODE
LOWsrc/vmm/tests/devices.rs103 assert!(data[32..64] == dummy_data[32..64]);CODE
LOWsrc/vmm/tests/devices.rs118 dummy_data.as_mut_ptr() as *const c_void,CODE
LOWsrc/vmm/tests/devices.rs119 dummy_data.len(),CODE
LOWsrc/vmm/tests/devices.rs122 assert!(dummy_data.len() == usize::try_from(rc).unwrap());CODE
LOWsrc/vmm/tests/devices.rs220 let mut dummy_data = [1u8; BYTES_COUNT];CODE
LOWsrc/vmm/tests/devices.rs224 dummy_data.as_mut_ptr() as *const c_void,CODE
LOWsrc/vmm/tests/devices.rs225 dummy_data.len(),CODE
LOWsrc/vmm/tests/devices.rs228 assert!(dummy_data.len() == usize::try_from(rc).unwrap());CODE
LOWsrc/vmm/tests/devices.rs250 assert!(data[..31] == dummy_data[..31]);CODE
LOWsrc/vmm/tests/devices.rs251 assert!(data[32..64] == dummy_data[32..64]);CODE
LOWsrc/vmm/tests/devices.rs266 dummy_data.as_mut_ptr() as *const c_void,CODE
LOWsrc/vmm/tests/devices.rs267 dummy_data.len(),CODE
LOWsrc/vmm/tests/devices.rs270 assert!(dummy_data.len() == usize::try_from(rc).unwrap());CODE
LOWsrc/vmm/src/vmm_config/drive.rs232 let dummy_id = String::from("1");CODE
LOWsrc/vmm/src/vmm_config/drive.rs234 drive_id: dummy_id.clone(),CODE
LOWsrc/vmm/src/vmm_config/drive.rs254 assert_eq!(block_devs.get_index_of_drive_id(&dummy_id), Some(0));CODE
LOWsrc/firecracker/src/api_server/request/drive.rs119 "drive_id": "dummy_id",CODE
LOWsrc/firecracker/src/api_server/request/balloon.rs165 "amount_mib": "dummy_id",CODE
Cross-Language Confusion6 hits · 30 pts
SeverityFileLineSnippetContext
HIGH…/integration_tests/functional/test_drive_vhost_user.py305 mkfs_mount_cmd = "mkfs.ext4 /dev/vdb && mkdir -p /tmp/tmp && mount /dev/vdb /tmp/tmp && umount /tmp/tmp"CODE
HIGHtests/integration_tests/functional/test_drive_virtio.py405 vm.ssh.check_output("mount /dev/vdb /tmp && umount /tmp")CODE
HIGHtests/integration_tests/functional/test_drive_virtio.py423 vm.ssh.check_output("mount /dev/vdb /tmp && umount /tmp")CODE
HIGHtests/framework/utils.py538 cmd = "cd ../src/firecracker && cargo pkgid | cut -d# -f2 | cut -d: -f2"CODE
HIGH.buildkite/pipeline_release_qa.py69 "| jq '(..|select(.priority? != null).priority) += 100' "CODE
HIGH.buildkite/pipeline_pr.py44 "./tools/devtool -y build_devctr && DEVCTR_IMAGE_TAG=latest ./tools/devtool test --no-build -- integration_testsCODE
Deep Nesting25 hits · 25 pts
SeverityFileLineSnippetContext
LOWtools/ab_plot.py113CODE
LOWtools/ab_plot.py191CODE
LOWtests/conftest.py392CODE
LOW…ts/integration_tests/security/test_seccomp_validate.py29CODE
LOWtests/integration_tests/functional/test_vsock.py246CODE
LOWtests/integration_tests/functional/test_vsock.py404CODE
LOW…tegration_tests/functional/test_cpu_features_x86_64.py449CODE
LOW…tegration_tests/functional/test_cpu_features_x86_64.py704CODE
LOWtests/framework/swagger_validator.py52CODE
LOWtests/framework/swagger_validator.py156CODE
LOWtests/framework/gitlint_rules.py24CODE
LOWtests/framework/guest_stats.py62CODE
LOWtests/framework/jailer.py85CODE
LOWtests/framework/jailer.py180CODE
LOWtests/framework/utils.py379CODE
LOWtests/framework/microvm.py312CODE
LOWtests/framework/microvm.py590CODE
LOWtests/framework/static_analysis.py441CODE
LOWtests/framework/utils_cpuid.py104CODE
LOWtests/host_tools/fcmetrics.py28CODE
LOWtests/host_tools/fcmetrics.py446CODE
LOW.buildkite/pipeline_perf.py175CODE
LOW.buildkite/common.py131CODE
LOW.buildkite/common.py354CODE
LOW.buildkite/common.py430CODE
Decorative Section Separators6 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMtests/conftest.py557# =============================================================================COMMENT
MEDIUMtests/conftest.py559# =============================================================================COMMENT
MEDIUM…sts/integration_tests/security/test_vulnerabilities.py141 # =============================COMMENT
MEDIUM…sts/integration_tests/security/test_vulnerabilities.py144 # --------------------------------------------COMMENT
MEDIUMsrc/vmm/src/logger/rate_limited.rs16//! ┌───────────────────┬────────────────────────────────────────┐COMMENT
MEDIUMsrc/vmm/src/logger/rate_limited.rs18//! └───────────────────┴────────────────────────────────────────┘COMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALsrc/vmm/src/devices/virtio/transport/pci/device.rs575 let bar_offset: u32 = self.cap_pci_cfg_info.cap.cap.offset.into();CODE
CRITICALsrc/vmm/src/devices/virtio/transport/pci/device.rs600 let bar_offset: u32 = self.cap_pci_cfg_info.cap.cap.offset.into();CODE
Redundant / Tautological Comments11 hits · 16 pts
SeverityFileLineSnippetContext
LOWtools/ab_plot.py215 # Check if difference is significantCOMMENT
LOWtests/integration_tests/performance/test_huge_pages.py161 # Verify if guest can run commands, and also wake up the fast page fault helper to trigger page faults.COMMENT
LOWtests/integration_tests/functional/test_net.py62 # Check if the high ingress traffic broke the net interface.COMMENT
LOWtests/integration_tests/functional/test_metrics.py131 # Verify if guest can run commands.COMMENT
LOWtests/integration_tests/functional/test_error_code.py35 # Check if FC process is closedCOMMENT
LOWtests/integration_tests/functional/test_max_devices.py54 # Verify if guest can run commands.COMMENT
LOWtests/integration_tests/functional/test_uffd.py101 # Verify if the restored guest works.COMMENT
LOWtests/integration_tests/functional/test_uffd.py107 # Verify if the restored guest works.COMMENT
LOWtests/integration_tests/functional/test_drive_virtio.py49 # Check if reading from the entire disk results in a file of the same sizeCOMMENT
LOWtests/integration_tests/functional/test_serial_io.py180 # Check if the total memory size changed.COMMENT
LOWtests/framework/swagger_validator.py176 # Check if it's a parameter placeholder or exact matchCOMMENT
Excessive Try-Catch Wrapping11 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/framework/properties.py127 except Exception:CODE
LOWtests/framework/utils_vsock.py54 except Exception as err:CODE
LOWtests/framework/http_api.py65 except Exception as e:CODE
LOWtests/framework/http_api.py93 except Exception as e:CODE
LOWtests/framework/http_api.py109 except Exception as e:CODE
LOWtests/framework/utils.py75 except Exception as exc:CODE
LOWtests/framework/utils.py84 except Exception as exc:CODE
MEDIUMtests/host_tools/udp_offload.py57 eprint(f"Error sending message: {e}")CODE
LOWtests/host_tools/network.py59 except Exception as exc:CODE
LOWtests/host_tools/network.py149 except Exception:CODE
LOWtests/host_tools/network.py225 except Exception as exc:CODE
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
LOW…ts/integration_tests/security/test_seccomp_validate.py79 # We just add 1000000 to the allowed arg and assume itCOMMENT
MEDIUM.github/codecov.yml2 # We utilize optional statuses that are okay to fail, soCOMMENT
MEDIUMsrc/vmm/src/vstate/vm.rs732 // TODO: Once Host 5.10 goes out of support, we can make this more robust and work onCOMMENT
MEDIUMsrc/firecracker/examples/uffd/uffd_utils.rs80 // happening, but let's try to be a bit more robust and retry a few timesCOMMENT
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMtests/pyproject.toml29# to run only the similarities checker, you can use "--disable=allCOMMENT
LOWsrc/vmm/src/devices/virtio/balloon/util.rs62 // Don't forget to push the last range to the result.COMMENT
MEDIUMsrc/firecracker/src/main.rs134 // It's worth noting that the abort is caused by sending a SIG_ABORT signal to the process.COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHsrc/vmm/src/devices/virtio/vsock/csm/connection.rs55// respected, the receiving peer's behaviour is undefined. In this implementation, weCOMMENT
AI Structural Patterns4 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/framework/jailer.py42CODE
LOWtests/framework/utils.py615CODE
LOWtests/framework/microvm.py648CODE
LOWtests/framework/microvm.py810CODE
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocs/device-hotplug.md68### Step 1: Remove the device from the guestCOMMENT
LOWdocs/device-hotplug.md84### Step 2: Unplug from the hostCOMMENT
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/vmm/src/devices/virtio/queue.rs979 // With firecracker's batching of used IRQs, we need to check if addition of the lastCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/framework/static_analysis.py23logger = logging.getLogger(__name__)CODE