Repository Analysis

seaweedfs/seaweedfs

SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

1.8 Likely human-written View on GitHub
1.8
Adjusted Score
1.8
Raw Score
100%
Time Factor
2026-05-30
Last Push
32,597
Stars
Go
Language
816,261
Lines of Code
3020
Files
954
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 6HIGH 13MEDIUM 73LOW 862

Pattern Findings

954 matches across 17 categories. Click a row to expand file-level details.

Over-Commented Block440 hits · 434 pts
SeverityFileLineSnippet
LOWinstall.sh1#!/bin/bash
LOWS3_LIFECYCLE_REDESIGN.md381
LOWS3_LIFECYCLE_REDESIGN.md581// One probe per task entry: which per-filer log shards exist, what's the earliest
LOWS3_LIFECYCLE_REDESIGN.md601// reseeding via lazy-seeding when F reappears. Safe to delete cursor[F].
LOWS3_LIFECYCLE_REDESIGN.md621// 2. Surface `lifecycle_lost_log_total{filer_id}` and
LOWS3_LIFECYCLE_REDESIGN.md1521// RetryTarget carries the routing/identification fields needed to (a) write a
LOWseaweedfs-rdma-sidecar/rdma-engine/src/ipc.rs121/// Response with engine capabilities
LOWseaweedfs-rdma-sidecar/rdma-engine/src/lib.rs1//! High-Performance RDMA Engine for SeaweedFS
LOWseaweedfs-rdma-sidecar/rdma-engine/src/main.rs1//! RDMA Engine Server
LOWseaweedfs-rdma-sidecar/pkg/rdma/client.go421 // MOCK DATA IMPLEMENTATION - FOR DEVELOPMENT/TESTING ONLY
LOWweed/s3api/s3api_bucket_config.go201 Encryption *s3_pb.EncryptionConfiguration `json:"encryption,omitempty"`
LOWweed/s3api/s3api_bucket_config.go1141// GetBucketMetadata retrieves complete bucket metadata as a structured object
LOWweed/s3api/chunked_reader_v4.go381 //
LOWweed/s3api/auth_credentials.go1041 }
LOWweed/s3api/auth_credentials.go1461
LOWweed/s3api/auth_credentials.go2041 }
LOWweed/s3api/s3api_versioning_heal_log_test.go21 // public functions don't panic and that the format strings work.
LOWweed/s3api/s3api_versioning_heal_log_test.go101
LOWweed/s3api/s3api_object_handlers_put.go361// before CompleteMultipartUpload.
LOWweed/s3api/s3api_object_handlers_put.go981// x-amz-trailer header (including comma-separated values), and individual x-amz-checksum-*
LOWweed/s3api/s3api_object_handlers_put.go1181 }
LOWweed/s3api/s3api_object_handlers_put.go1301 }
LOWweed/s3api/s3api_object_handlers_put.go1381
LOWweed/s3api/s3api_object_handlers_put.go1521 return fmt.Errorf("failed to get .versions directory after %d attempts: %w", maxRetries, err)
LOWweed/s3api/s3api_object_handlers_put.go2181 glog.V(3).Infof("validateConditionalHeadersForReads: If-Unmodified-Since failed - object %s/%s does not exist", bucke
LOWweed/s3api/s3api_internal_lifecycle.go341 }
LOWweed/s3api/sts_params_test.go141 // The Router does not match "/" for STS because Action is not in query.
LOWweed/s3api/s3api_server_routing_test.go141
LOWweed/s3api/s3api_tables.go641// and in the X-Amz-Credential query parameter for presigned requests.
LOWweed/s3api/s3_validation_utils.go41
LOWweed/s3api/s3_sse_kms.go81 // Ensure we clear the plaintext data key from memory when done
LOWweed/s3api/s3_action_resolver.go21// - bucket: Bucket name from the request path
LOWweed/s3api/s3api_object_handlers_delete.go241 // Versioned/suspended delete with no specific version: route off the lock when
LOWweed/s3api/auth_signature_v4.go1/*
LOWweed/s3api/s3api_object_versioning.go41
LOWweed/s3api/s3api_object_versioning.go281 processedObjects := make(map[string]bool)
LOWweed/s3api/s3api_object_versioning.go1101 // Multi-version case where another version still exists, or the
LOWweed/s3api/s3api_object_versioning.go1121}
LOWweed/s3api/s3api_object_versioning.go1261// transient errors. Doubled per attempt, capped at retryCap. Total
LOWweed/s3api/s3api_object_versioning.go1341//
LOWweed/s3api/s3api_object_versioning.go1461 return s3a.mkFile(bucketDir, versionsObjectPath, versionsEntry.Chunks, func(updatedEntry *filer_pb.Entry) {
LOWweed/s3api/s3api_object_versioning.go1521
LOWweed/s3api/s3api_object_versioning.go1541// fields written concurrently between (2) and the persist are
LOWweed/s3api/s3api_bucket_policy_engine.go101// EvaluatePolicy evaluates whether an action is allowed by bucket policy
LOWweed/s3api/s3api_object_handlers_copy.go881 //
LOWweed/s3api/s3api_object_handlers_copy.go1281 overlapStart := max(rangeStart, chunkStart)
LOWweed/s3api/s3api_object_handlers_copy.go1601 }
LOWweed/s3api/s3api_object_handlers_copy.go2841 // this stored only KeyID/context/bucketKey, leaving EncryptedDataKey
LOWweed/s3api/s3api_object_handlers_copy.go2961 // bytes raw without decryption — yielding deterministic byte
LOWweed/s3api/s3api_governance_permissions_test.go181 //
LOWweed/s3api/s3api_governance_permissions_test.go201// Test specifically for users with IAM bypass permission
LOWweed/s3api/s3api_governance_permissions_test.go401 }
LOWweed/s3api/s3api_object_handlers_copy_alloc_test.go21//
LOWweed/s3api/bucket_size_metrics_test.go1package s3api
LOWweed/s3api/auto_signature_v4_test.go1201
LOWweed/s3api/s3api_server.go221 // Shared ReaderCache for the S3 GET streaming path. Keeping this shared
LOWweed/s3api/s3api_server.go341
LOWweed/s3api/s3api_server.go741 // otherwise collapse it via filepath.Join and cross bucket boundaries.
LOWweed/s3api/auth_signature_v2.go1/*
LOWweed/s3api/filer_multipart_sse_s3_test.go161// trip across the encryption boundary: it encrypts simulated multipart parts
380 more matches not shown…
Verbosity Indicators221 hits · 389 pts
SeverityFileLineSnippet
LOWweed/s3api/auth_security_test.go341 // Step 1: Sign a request targeting the client-facing URL using real AWS SDK signer
LOWweed/s3api/auth_security_test.go349 // Step 2: Create a separate request as the proxy would deliver it
LOWweed/s3api/auth_security_test.go359 // Step 3: Verify
LOWweed/s3api/auth_security_test.go501 // Step 1: Sign a request using the real AWS SDK v2 signer.
LOWweed/s3api/auth_security_test.go510 // Step 2: Build the request as the proxy would deliver it to SeaweedFS.
LOWweed/s3api/auth_security_test.go530 // Step 3: Verify extractHostHeader returns the expected value.
LOWweed/s3api/auth_security_test.go537 // Step 4: Verify the full signature matches.
LOWweed/s3api/s3api_object_handlers_put.go532 // Step 3: Calculate MD5 hash and add SSE metadata to chunks
LOWweed/s3api/s3api_object_handlers_put.go631 // Step 4: Create metadata entry
LOWweed/s3api/s3api_object_handlers_put.go791 // Step 4: Save metadata to filer via gRPC
LOWweed/s3api/s3api_object_handlers_copy.go2226 // Step 1: Decrypt source data
LOWweed/s3api/s3api_object_handlers_copy.go2323 // Step 2: Re-encrypt with destination encryption (if any)
LOWweed/s3api/s3_sse_s3_integration_test.go47 // Step 1: Encrypt (simulates what happens during PUT)
LOWweed/s3api/s3_sse_s3_integration_test.go72 // Step 2: Simulate storage (inline file - no chunks)
LOWweed/s3api/s3_sse_s3_integration_test.go83 // Step 3: Decrypt (simulates what happens during GET)
LOWweed/s3api/s3api_object_retention.go551 // Step 1: Check if governance bypass was requested via header
LOWweed/s3api/s3api_object_retention.go558 // Step 2: Validate user has permission to bypass governance retention
LOWweed/s3api/s3_list_parts_action_test.go200 // Step 1: Initiate multipart upload (POST with uploads query)
LOWweed/s3api/s3_list_parts_action_test.go210 // Step 2: List existing parts (GET with uploadId query) - THIS WAS THE MISSING MAPPING
LOWweed/s3api/s3_list_parts_action_test.go220 // Step 3: Upload a part (PUT with uploadId and partNumber)
LOWweed/s3api/s3_list_parts_action_test.go231 // Step 4: Complete multipart upload (POST with uploadId)
LOWweed/util/chunk_cache/chunk_cache.go226 // Step 1: Read and validate header (volume ID + cookie)
LOWweed/util/chunk_cache/chunk_cache.go252 // Step 2: Read actual data from the offset position (after header)
LOWweed/shell/command_remote_cache.go109 // Step 1: Collect all remote files
LOWweed/shell/command_remote_cache.go123 // Step 2: Collect all local files (only if we need to delete local extra files)
LOWweed/shell/command_remote_cache.go141 // Step 3: Determine actions needed
LOWweed/shell/command_remote_cache.go179 // For caching, we need to check if the local file exists and needs caching
LOWweed/shell/command_remote_cache.go221 // Step 4: Execute actions
LOWweed/shell/command_s3_user_provision.go114 // Step 0: Check if user already exists
LOWweed/shell/command_s3_user_provision.go123 // Step 1: Create policy
LOWweed/shell/command_s3_user_provision.go157 // Step 2: Create new user with credentials
LOWweed/shell/command_remote_copy_local.go102 // Step 1: Collect all local files that are part of the remote mount
LOWweed/shell/command_remote_copy_local.go118 // Step 2: Check which files exist on remote storage
LOWweed/shell/command_remote_copy_local.go132 // Step 3: Determine files to copy
LOWweed/shell/command_remote_copy_local.go170 // Step 4: Copy files to remote storage
LOWweed/admin/topology/storage_slot_test.go555 // Step 1: Add pending task (should reserve capacity via StorageSlotChange)
LOWweed/admin/topology/storage_slot_test.go579 // Step 2: Assign task (capacity already reserved by pending task)
LOWweed/admin/topology/storage_slot_test.go592 // Step 3: Complete task (should release reserved capacity)
LOWweed/admin/topology/storage_slot_test.go601 // Step 4: Apply actual storage change (simulates master topology update)
LOWweed/storage/volume_replica/replica_sync.go115 // Step 1: Find the largest replica (highest file count) that's not excluded.
LOWweed/storage/volume_replica/replica_sync.go136 // Step 2: Read index database from the best replica
LOWweed/storage/volume_replica/replica_sync.go147 // Step 3: For each other replica (including excluded), find entries missing from best and copy them
LOWweed/iam/integration/iam_integration_test.go64 // Step 1: Attempt role assumption
LOWweed/iam/integration/iam_integration_test.go84 // Step 2: Test policy enforcement with assumed credentials
LOWweed/iam/integration/iam_integration_test.go138 // Step 1: Attempt role assumption with LDAP credentials
LOWweed/iam/integration/iam_integration_test.go158 // Step 2: Test policy enforcement
LOWweed/iam/policy/policy_engine.go1218 // Step 1: Substitute policy variables (e.g., ${aws:username}, ${saml:username})
LOWweed/iam/policy/policy_engine.go1221 // Step 2: Handle special patterns
LOWweed/iam/policy/policy_engine.go1226 // Step 3: Case-insensitive exact match
LOWweed/iam/policy/policy_engine.go1231 // Step 4: Handle AWS-style wildcards (case-insensitive)
LOWweed/mq/topic/local_partition.go136 // Step 2: Enter the main loop - read from in-memory buffer, occasionally checking disk
LOWweed/mq/kafka/protocol/offset_fetch_pattern_test.go45 // Step 1: Fetch batch of messages starting from nextOffset
LOWweed/mq/kafka/protocol/offset_fetch_pattern_test.go64 // Step 2: Commit the last offset in this batch
LOWweed/mq/kafka/protocol/offset_fetch_pattern_test.go70 // Step 3: Verify offset is correctly stored
LOWweed/mq/kafka/protocol/offset_fetch_pattern_test.go76 // Step 4: Next fetch should start from lastConsumedOffset + 1
LOWweed/mq/kafka/protocol/fetch.go1011 // We need to check if this looks like a real RecordValue or just random bytes
LOWweed/mq/kafka/protocol/batch_crc_compat_test.go262 // Step 1: Read the batch header to get the CRC
LOWweed/mq/kafka/protocol/batch_crc_compat_test.go270 // Step 2: Calculate CRC over the data (from byte 21 onwards)
LOWweed/mq/kafka/protocol/batch_crc_compat_test.go274 // Step 3: Compare
LOWweed/mq/kafka/schema/reconstruction_test.go88 // Step 1: Decode the original message (simulate Produce path)
161 more matches not shown…
Excessive Try-Catch Wrapping76 hits · 90 pts
SeverityFileLineSnippet
LOWdocker/test.py91 except Exception as e:
MEDIUMdocker/test.py92 print(f"Error listing files: {e}")
MEDIUMtest/s3/fix_s3_tests_bucket_conflicts.py35 print(f"Error: File {file_path} not found")
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py94 except Exception:
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py132 except Exception:
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py151 except Exception:
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py161 except Exception:
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py171 except Exception:
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py183 except Exception as e: # noqa: BLE001 - Intentionally broad for compatibility testing
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py192 except Exception as e: # noqa: BLE001 - Intentionally broad for compatibility testing
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py201 except Exception as e: # noqa: BLE001 - Intentionally broad for compatibility testing
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py216 except Exception as e: # noqa: BLE001 - Intentionally broad for compatibility testing
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py225 except Exception as e: # noqa: BLE001 - Intentionally broad for compatibility testing
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py234 except Exception as e: # noqa: BLE001 - Intentionally broad for compatibility testing
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py302 except Exception as e: # noqa: BLE001 - Top-level exception handler for test orchestration
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py339 except Exception as e: # noqa: BLE001 - Top-level exception handler for test orchestration
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py352 except Exception:
LOWtest/s3/parquet/s3_parquet_test.py118 except Exception:
LOWtest/s3/parquet/s3_parquet_test.py132 except Exception:
LOWtest/s3/parquet/s3_parquet_test.py144 except Exception as e:
LOWtest/s3/parquet/s3_parquet_test.py159 except Exception as e:
LOWtest/s3/parquet/s3_parquet_test.py199 except Exception as e:
LOWtest/s3/parquet/s3_parquet_test.py225 except Exception as e:
LOWtest/s3/parquet/s3_parquet_test.py253 except Exception as e:
LOWtest/s3/parquet/s3_parquet_test.py266 except Exception as e:
LOWtest/s3/parquet/s3_parquet_test.py278 except Exception as e:
LOWtest/s3/parquet/s3_parquet_test.py319 except Exception as e:
LOWtest/s3/parquet/s3_parquet_test.py342 except Exception as e:
MEDIUMtest/s3/parquet/s3_parquet_test.py410 print(f"Error details logged to: {ERROR_LOG_FILE}")
LOWtest/s3/parquet/debug_write_dataset.py55 except Exception as e:
LOWtest/s3/parquet/debug_write_dataset.py69 except Exception as e:
LOWtest/s3/parquet/debug_write_dataset.py79 except Exception as e:
LOWtest/s3/parquet/debug_write_dataset.py82except Exception as e:
MEDIUMtest/s3/parquet/debug_write_dataset.py38def list_recursive(path, indent=0):
LOWtest/s3/parquet/test_implicit_directory_fix.py132 except Exception as e:
LOWtest/s3/parquet/test_implicit_directory_fix.py155 except Exception as e:
LOWtest/s3/parquet/test_implicit_directory_fix.py174 except Exception as e:
LOWtest/s3/parquet/test_implicit_directory_fix.py195 except Exception as e:
LOWtest/s3/parquet/test_implicit_directory_fix.py226 except Exception as e:
LOWtest/s3/parquet/test_implicit_directory_fix.py245 except Exception as e:
LOWtest/s3/parquet/test_pyarrow_native_s3.py111 except Exception:
LOWtest/s3/parquet/test_pyarrow_native_s3.py148 except Exception:
LOWtest/s3/parquet/test_pyarrow_native_s3.py170 except Exception as e:
LOWtest/s3/parquet/test_pyarrow_native_s3.py179 except Exception:
LOWtest/s3/parquet/test_pyarrow_native_s3.py266 except Exception as exc:
LOWtest/s3/parquet/test_pyarrow_native_s3.py302 except Exception:
LOWtest/s3/parquet/test_sse_s3_compatibility.py98 except Exception:
LOWtest/s3/parquet/test_sse_s3_compatibility.py134 except Exception:
LOWtest/s3/parquet/test_sse_s3_compatibility.py165 except Exception as e:
LOWtest/s3/spark/issue_8234_repro_test.go47except Exception as err:
LOWtest/s3tables/catalog/test_rest_catalog_auth.py141 except Exception as e:
LOWtest/s3tables/catalog/test_rest_catalog_auth.py182 except Exception as e:
LOWtest/s3tables/catalog/test_rest_catalog_auth.py212 except Exception as e:
LOWtest/s3tables/catalog/test_rest_catalog.py146 except Exception as e:
LOWtest/s3tables/catalog/test_rest_catalog.py172 except Exception as e:
LOWtest/s3tables/catalog/test_rest_catalog.py209 except Exception as e:
LOWtest/s3tables/catalog/test_rest_catalog.py240 except Exception as e:
LOWtest/s3tables/catalog_spark/spark_operations_test.go210 except Exception as e:
LOWtest/s3tables/sts_integration/sts_integration_test.go276 except Exception:
LOWtest/s3tables/sts_integration/sts_integration_test.go381except Exception as e:
16 more matches not shown…
Redundant / Tautological Comments57 hits · 88 pts
SeverityFileLineSnippet
LOWseaweedfs-rdma-sidecar/test-rdma-integration.sh92 # Check if it has the expected fields
LOWseaweedfs-rdma-sidecar/scripts/performance-benchmark.sh107 # Display result with color coding
LOWseaweedfs-rdma-sidecar/scripts/performance-benchmark.sh167 # Check if connection pooling is working
LOWseaweedfs-rdma-sidecar/scripts/performance-benchmark.sh186 # Check if sidecar is ready
LOW…fs-rdma-sidecar/scripts/test-complete-optimizations.sh181 # Check if socket was created
LOWseaweedfs-rdma-sidecar/scripts/mount-helper.sh65 # Check if RDMA is actually enabled
LOWseaweedfs-rdma-sidecar/scripts/mount-helper.sh118# Check if already mounted
LOWseaweedfs-rdma-sidecar/scripts/mount-health-check.sh7# Check if mount point exists and is mounted
LOW…eedfs-rdma-sidecar/scripts/test-zero-copy-mechanism.sh66 # Check if file is in page cache (approximation)
LOWseaweedfs-rdma-sidecar/scripts/run-integration-tests.sh159 # Read file
LOWseaweedfs-rdma-sidecar/scripts/run-integration-tests.sh202 # Check if response contains expected fields
LOWseaweedfs-rdma-sidecar/scripts/demo-mount-rdma.sh151# Check if mount is successful
LOWseaweedfs-rdma-sidecar/scripts/demo-mount-rdma.sh239 # Check if mount is still active
LOWdocker/admin_integration/check_volumes.sh7# Check if master is running
LOWdocker/admin_integration/demo_vacuum_testing.sh7# Check if SeaweedFS is running
LOWtest/kms/setup_openbao.sh25# Check if we can connect
LOWtest/s3/iam/setup_keycloak.sh145 # Check if it exists now (might have been created by another process)
LOWtest/s3/iam/setup_keycloak.sh215 # Check if role already assigned
LOWtest/s3/iam/setup_keycloak.sh236 # Check if a realm roles mapper already exists for this client
LOWtest/s3/iam/setup_keycloak.sh277 # Check if an audience mapper already exists for this client
LOWtest/s3/iam/setup_all_tests.sh57 # Check if LDAP container is already running
LOWtest/s3/iam/setup_all_tests.sh176 # Check if Keycloak is responding
LOWtest/s3/parquet/test_pyarrow_native_s3.py133 # Check if bucket exists
LOWtest/s3/parquet/test_pyarrow_native_s3.py156 # Check if bucket exists by trying to list it
LOWtest/java/spark/run-tests.sh8# Check if SeaweedFS is running
LOWtest/java/spark/quick-start.sh8# Check if SeaweedFS is running
LOWtest/java/spark/quick-start.sh92 # Check if Docker is available
LOWtest/java/spark/quick-start.sh98 # Check if Maven is available
LOWtest/java/spark/quick-start.sh104 # Check if SeaweedFS is running, if not start it
LOWtest/postgres/validate-setup.sh27# Check if running from correct directory
LOWtest/postgres/validate-setup.sh65# Check if services are running
LOWtest/kafka/test-schema-bypass.sh11# Check if Kafka gateway is running
LOWtest/kafka/loadtest/run_million_record_test.sh25# Check if SeaweedFS infrastructure is running
LOWtest/kafka/scripts/test_schema_registry.sh10# Check if we have a real schema registry URL
LOWtest/kafka/scripts/test_schema_registry.sh46# Check if services are running
LOW…fka/kafka-client-loadtest/scripts/wait-for-services.sh39# Check if a service is reachable
LOW…fka/kafka-client-loadtest/scripts/wait-for-services.sh71 # Check if we have at least one volume server
LOW…fka/kafka-client-loadtest/scripts/wait-for-services.sh96 # Check if Schema Registry container is running first
LOW…fka/kafka-client-loadtest/scripts/wait-for-services.sh185 # Check if it's still starting up (healthcheck start_period)
LOW…st/kafka/kafka-client-loadtest/scripts/run-loadtest.sh181# Check if Docker and Docker Compose are available
LOW…afka/kafka-client-loadtest/scripts/register-schemas.sh95 # Check if it's a consumer lag timeout (error_code 50002)
LOW.github/workflows/s3-keycloak-tests.yml62 # Set WEED_BINARY to use the installed version
LOW.github/workflows/deploy_telemetry.yml137 # Check if service exists and deploy accordingly
LOW.github/workflows/s3-policy-tests.yml113 # Set WEED_BINARY to use the installed version
LOW.github/workflows/s3-policy-tests.yml422 # Set WEED_BINARY to use the installed version (though test uses 'weed' command)
LOW.github/workflows/s3-proxy-signature-tests.yml47 # Check if containers are running
LOW.github/workflows/s3-iam-tests.yml115 # Set WEED_BINARY to use the installed version
LOW.github/workflows/s3tests.yml877 # Check if server process is still alive before waiting
LOW.github/workflows/s3tests.yml893 # Check if server process is still alive
LOW.github/workflows/kafka-tests.yml237 # Check if broker is properly registered by querying cluster nodes
LOW.github/workflows/kafka-tests.yml254 # Check if broker failed to start and show logs
LOW.github/workflows/kafka-tests.yml416 # Check if broker is properly registered by querying cluster nodes
LOW.github/workflows/kafka-tests.yml433 # Check if broker failed to start and show logs
LOW.github/workflows/kafka-tests.yml577 # Check if broker is properly registered by querying cluster nodes
LOW.github/workflows/kafka-tests.yml594 # Check if broker failed to start and show logs
LOW.github/workflows/kafka-tests.yml735 # Check if broker is properly registered by querying cluster nodes
LOW.github/workflows/kafka-tests.yml752 # Check if broker failed to start and show logs
Decorative Section Separators25 hits · 80 pts
SeverityFileLineSnippet
MEDIUMseaweedfs-rdma-sidecar/rdma-engine/src/lib.rs10//! ┌─────────────────────┐ IPC ┌─────────────────────┐
MEDIUMseaweedfs-rdma-sidecar/rdma-engine/src/lib.rs11//! │ Go Control Plane │◄─────────►│ Rust Data Plane │
MEDIUMseaweedfs-rdma-sidecar/rdma-engine/src/lib.rs17//! └─────────────────────┘ └─────────────────────┘
MEDIUMweed/shell/command_fs_distribute_chunks_test.go39// ── shortName ────────────────────────────────────────────────────────────────
MEDIUMweed/shell/command_fs_distribute_chunks_test.go56// ── relevantNodes ────────────────────────────────────────────────────────────
MEDIUMweed/shell/command_fs_distribute_chunks_test.go70// ── computeOwnerTarget ───────────────────────────────────────────────────────
MEDIUMweed/shell/command_fs_distribute_chunks_test.go110// ── buildDistributionCounts ──────────────────────────────────────────────────
MEDIUMweed/shell/command_fs_distribute_chunks_test.go156// ── selectActiveNodes ────────────────────────────────────────────────────────
MEDIUMweed/shell/command_fs_distribute_chunks_test.go181// ── planOwnerMoves ───────────────────────────────────────────────────────────
MEDIUMweed/shell/command_fs_distribute_chunks_test.go223// ── planDistribution: primary ─────────────────────────────────────────────────
MEDIUMweed/shell/command_fs_distribute_chunks_test.go287// ── planDistribution: round-robin ─────────────────────────────────────────────
MEDIUMweed/shell/command_fs_distribute_chunks_test.go361// ── planDistribution: replica ─────────────────────────────────────────────────
MEDIUMweed/shell/command_fs_distribute_chunks_test.go410// ── printRedistributionPlan ──────────────────────────────────────────────────
MEDIUM.github/workflows/container_latest.yml62 # ── Pre-build Rust volume server binaries natively ──────────────────
MEDIUM.github/workflows/container_release_unified.yml44 # ── Pre-build Rust volume server binaries natively ──────────────────
MEDIUM.github/workflows/container_release_unified.yml116 # ── Build Docker containers ─────────────────────────────────────────
MEDIUM.github/workflows/container_dev.yml12 # ── Pre-build Rust volume server binaries natively ──────────────────
MEDIUM.github/workflows/spark-integration-tests.yml30 # ========================================
MEDIUM.github/workflows/spark-integration-tests.yml32 # ========================================
MEDIUM.github/workflows/spark-integration-tests.yml73 # ========================================
MEDIUM.github/workflows/spark-integration-tests.yml75 # ========================================
MEDIUM.github/workflows/spark-integration-tests.yml143 # ========================================
MEDIUM.github/workflows/spark-integration-tests.yml149 # ========================================
MEDIUM.github/workflows/spark-integration-tests.yml236 # ========================================
MEDIUM.github/workflows/spark-integration-tests.yml238 # ========================================
AI Slop Vocabulary26 hits · 77 pts
SeverityFileLineSnippet
MEDIUMcmd/weed-sql/sqlcmd.go185 // Split file content into individual queries (robust approach).
MEDIUMseaweedfs-rdma-sidecar/test-fixes-standalone.go86 // NEW (robust):
MEDIUMweed/s3api/s3api_sts.go288 // Use typed errors for robust error checking
MEDIUMweed/s3api/s3_iam_middleware.go117 // Determine token type by issuer claim (more robust than checking role claim)
MEDIUMweed/s3api/s3_metadata_util.go55 // Use url.ParseQuery for robust parsing and automatic URL decoding
MEDIUMweed/kms/gcp/gcp_kms.go300// This is a simplified implementation - in production, you might want a more robust serialization
MEDIUMweed/util/sqlutil/splitter.go8// This robust implementation handles SQL comments, quoted strings, and escaped characters.
MEDIUMweed/shell/command_remote_cache.go37 # comprehensive sync and cache: update metadata, cache content, and remove deleted files
MEDIUMweed/shell/command_ec_decode.go206 // Keep this robust against wording tweaks while still being specific.
MEDIUMweed/server/postgres/protocol.go25 // Use typed errors for robust error mapping
MEDIUMweed/storage/disk_location_ec.go390// checkDatFileExists checks if .dat file exists with robust error handling.
MEDIUMweed/iam/providers/errors.go6// These enable robust error checking with errors.Is() throughout the stack
MEDIUMweed/iam/oidc/oidc_provider.go675 // Use JWT library's typed errors for robust error checking
MEDIUMweed/iam/utils/arn_utils_test.go13// format to ensure robust handling of both legacy and modern AWS ARN formats.
MEDIUMweed/iam/sts/sts_service.go877 // Map provider errors to STS errors using errors.Is() for robust error checking
MEDIUMweed/iam/sts/session_claims.go94// This enables seamless integration with existing code expecting SessionInfo
MEDIUMweed/iam/sts/constants.go90// Typed errors for robust error checking with errors.Is()
MEDIUMweed/filer/filer_deletion.go480// TODO: Consider these improvements for more robust error handling:
MEDIUMweed/query/engine/hybrid_message_scanner.go239// Uses SeaweedFS MQ's GenMergedReadFunc for seamless integration
MEDIUMtest/s3/remote_cache/command_edge_cases_test.go102 // This is a simplified check; a more robust test would check if the file is *actually* gone from local cache
MEDIUMtest/s3/remote_cache/command_edge_cases_test.go105 // The instruction implies just adding the test, not necessarily making it fully robust for all pattern scenarios.
MEDIUMtest/s3/iam/s3_iam_distributed_test.go114 // Test concurrent operations across distributed instances with robust retry mechanisms
MEDIUMtest/samba/smb_tests.sh5# harness (run_inside_container.sh).
MEDIUMtest/kafka/kafka-client-loadtest/docker-compose.yml65 # Enable comprehensive Kafka client DEBUG logging to trace offset management
MEDIUMtest/kafka/kafka-client-loadtest/config/loadtest.yaml4test_mode: "comprehensive" # producer, consumer, comprehensive
MEDIUM…st/kafka/kafka-client-loadtest/scripts/run-loadtest.sh81 # Run comprehensive test for 5 minutes
Cross-Language Confusion10 hits · 70 pts
SeverityFileLineSnippet
HIGHtest/s3/parquet/test_cross_filesystem_compatibility.py249 if not read.schema.equals(original.schema):
HIGHtest/s3/parquet/test_cross_filesystem_compatibility.py257 if not read_sorted.equals(original_sorted):
HIGHtest/s3/parquet/test_cross_filesystem_compatibility.py263 if not col_original.equals(col_read):
HIGHtest/s3/parquet/test_pyarrow_native_s3.py208 if not table_read.schema.equals(table.schema):
HIGHtest/s3/parquet/test_pyarrow_native_s3.py215 if not table_read_sorted.equals(table_sorted):
HIGHtest/s3/parquet/test_pyarrow_native_s3.py221 if not col_original.equals(col_read):
HIGHtest/s3/parquet/test_pyarrow_native_s3.py235 if not table_dataset_sorted.equals(table_sorted):
HIGHtest/s3/parquet/test_pyarrow_native_s3.py240 if not col_original.equals(col_read):
HIGHtest/s3/parquet/test_pyarrow_native_s3.py254 if not table_pads_sorted.equals(table_sorted):
HIGHtest/s3/parquet/test_pyarrow_native_s3.py259 if not col_original.equals(col_read):
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippet
CRITICALweed/static/javascript/jquery-3.6.0.min.js2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f
CRITICAL…a/spark/src/test/java/seaweed/spark/SparkTestBase.java108 org.apache.hadoop.fs.FileSystem fs = org.apache.hadoop.fs.FileSystem.get(
CRITICAL…java/seaweed/spark/ParquetOperationComparisonTest.java308 try (ParquetWriter<Group> writer = org.apache.parquet.hadoop.example.ExampleParquetWriter.builder(path)
CRITICAL…java/seaweed/spark/ParquetOperationComparisonTest.java347 try (ParquetWriter<Group> writer = org.apache.parquet.hadoop.example.ExampleParquetWriter.builder(path)
CRITICAL…est/java/seaweed/spark/SparkReadDirectParquetTest.java157 try (ParquetWriter<Group> writer = org.apache.parquet.hadoop.example.ExampleParquetWriter.builder(path)
CRITICAL…k/src/test/java/seaweed/spark/SimpleOneColumnTest.java27 org.apache.hadoop.fs.FileSystem fs = org.apache.hadoop.fs.FileSystem.get(
Self-Referential Comments15 hits · 47 pts
SeverityFileLineSnippet
MEDIUMseaweedfs-rdma-sidecar/scripts/demo-mount-rdma.sh169# Create a larger test file
MEDIUMweed/command/mini.go1075 sb.WriteString("# This file is loaded on startup if it exists\n\n")
MEDIUMtest/kms/setup_openbao.sh60 # Create the encryption key
MEDIUMtest/s3/parquet/debug_write_dataset.py9# Create a simple test table
MEDIUMtest/s3/parquet/test_implicit_directory_fix.py83 # Create a dataset using PyArrow (creates implicit directory)
MEDIUMtest/s3/parquet/test_implicit_directory_fix.py185 # Create an explicit directory marker
MEDIUMtest/s3/parquet/test_implicit_directory_fix.py216 # Create an empty file with text/plain mime type
MEDIUMtest/s3tables/catalog/test_rest_catalog_auth.py83 # Define a simple schema
MEDIUMtest/s3tables/catalog/test_rest_catalog.py83 # Define a simple schema
MEDIUM…afka/kafka-client-loadtest/scripts/register-schemas.sh66 # Create the schema registration payload
MEDIUM…afka/kafka-client-loadtest/scripts/register-schemas.sh181 # Define the Avro schema for load test messages
MEDIUM…afka/kafka-client-loadtest/scripts/register-schemas.sh197 # Define the JSON schema for load test messages
MEDIUM…afka/kafka-client-loadtest/scripts/register-schemas.sh217 # Define the Protobuf schema for load test messages
MEDIUM…afka/kafka-client-loadtest/scripts/register-schemas.sh232 # Define the key schema (simple string)
MEDIUMtest/foundationdb/test_fdb_s3.sh114# Create a directory
Fake / Example Data34 hits · 36 pts
SeverityFileLineSnippet
LOWweed/s3api/auth_credentials.go128 EmailAddress: "admin@example.com",
LOWweed/s3api/auth_sts_identity_test.go334 "email": "user@example.com",
LOWweed/s3api/auth_sts_identity_test.go353 assert.Equal(t, "user@example.com", sessionInfo.RequestContext["email"])
LOWweed/s3api/auth_sts_identity_test.go363 assert.Equal(t, "user@example.com", identity.Claims["email"], "email should be in Claims")
LOWweed/iam/oidc/oidc_provider_test.go128 "email": "user@example.com",
LOWweed/iam/oidc/oidc_provider_test.go140 assert.Equal(t, "user@example.com", email)
LOWweed/iam/oidc/oidc_provider_test.go353 "email": "user@example.com",
LOWweed/iam/oidc/oidc_provider_test.go362 assert.Equal(t, "user@example.com", identity.Email)
LOWweed/iam/oidc/oidc_provider_test.go376 "email": "user@example.com",
LOWweed/iam/oidc/oidc_provider_test.go454 "email": "user@example.com",
LOWweed/iam/oidc/oidc_provider_test.go486 assert.Equal(t, "user@example.com", identity.Email)
LOWweed/iam/oidc/oidc_provider_test.go538 assert.Equal(t, "user@example.com", identity.Email)
LOWweed/iam/oidc/oidc_provider_test.go646 "email": "user@example.com",
LOWweed/mq/kafka/schema/reconstruction_test.go64 "name": "John Doe",
LOWweed/mq/kafka/schema/reconstruction_test.go111 if finalDecodedMsg.RecordValue.Fields["name"].GetStringValue() != "John Doe" {
LOWweed/mq/kafka/schema/reconstruction_test.go112 t.Errorf("Expected name='John Doe', got %v", finalDecodedMsg.RecordValue.Fields["name"].GetStringValue())
LOWweed/mq/kafka/schema/reconstruction_test.go314 "name": "John Doe",
LOWweed/mq/kafka/schema/manager_test.go64 "name": "John Doe",
LOWweed/mq/kafka/schema/manager_test.go106 if nameValue == nil || nameValue.GetStringValue() != "John Doe" {
LOWweed/mq/kafka/schema/manager_test.go107 t.Errorf("Expected name='John Doe', got %v", nameValue)
LOWweed/mq/kafka/schema/decode_encode_test.go50 "name": "John Doe",
LOWweed/mq/kafka/schema/decode_encode_test.go212 "street": "123 Main St",
LOWweed/mq/kafka/schema/json_schema_decoder_test.go106 "name": "John Doe",
LOWweed/mq/kafka/schema/json_schema_decoder_test.go132 "name": "John Doe"
LOWweed/mq/kafka/schema/json_schema_decoder_test.go140 "name": "John Doe",
LOWweed/mq/kafka/schema/json_schema_decoder_test.go149 "name": "John Doe",
LOWweed/mq/kafka/schema/json_schema_decoder_test.go519 jsonData := []byte(`{"id": 123, "name": "John Doe"}`)
LOWweed/mq/kafka/schema/json_schema_decoder_test.go538 jsonData := []byte(`{"id": 123, "name": "John Doe"}`)
LOWweed/mq/kafka/schema/integration_test.go454 "email": map[string]interface{}{"string": "user@example.com"},
LOWweed/mq/kafka/schema/avro_decoder_test.go87 "name": "John Doe",
LOWweed/mq/kafka/schema/avro_decoder_test.go110 if result["name"] != "John Doe" {
LOWweed/mq/kafka/schema/avro_decoder_test.go111 t.Errorf("Expected name='John Doe', got %v", result["name"])
LOWweed/mq/kafka/schema/avro_decoder_test.go519 "name": "John Doe",
LOWweed/query/engine/test_sample_data_test.go125 "data": {Kind: &schema_pb.Value_StringValue{StringValue: `{"field": "email", "new_value": "user@example.com"}
Hyper-Verbose Identifiers17 hits · 18 pts
SeverityFileLineSnippet
LOWweed/admin/static/js/s3tables.js378async function loadIcebergNamespaceTables(node, bucketArn, catalogName) {
LOWweed/admin/static/js/admin.js954function updateDeleteSelectedButton() {
LOWweed/admin/static/js/admin.js1406function setupFileManagerEventHandlers() {
LOWweed/admin/view/app/service_accounts_templ.go275 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 26, "</select> <small class=\"form-text text-mute
LOWweed/admin/view/app/file_browser_templ.go791 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 88, "\"><!-- File List Preview --><div id=\"fileL
LOWweed/admin/view/app/object_store_users_templ.go243 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 24, "</div><div class=\"mb-3\"><label for=\"email
LOWweed/admin/view/app/plugin_templ.go107 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, "</p></div><div class=\"btn-group\"><button ty
LOWweed/admin/view/app/topic_details_templ.go1001 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 117, "</div></div></div></div></div></div></div><
LOWweed/admin/view/app/policies_templ.go196 templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, "</tbody></table></div></div></div></div></di
LOWtest/s3/fix_s3_tests_bucket_conflicts.py185def _sw_get_new_bucket_resource(name=None):
LOWtest/s3/parquet/s3_parquet_test.py259def read_with_parquet_dataset(path: str, fs: s3fs.S3FileSystem) -> Tuple[bool, str, int]:
LOWtest/s3/parquet/test_implicit_directory_fix.py69def test_implicit_directory_head_behavior(fs, s3_client):
LOWtest/s3/parquet/test_implicit_directory_fix.py159def test_pyarrow_dataset_read(fs):
LOWtest/s3/parquet/test_implicit_directory_fix.py179def test_explicit_directory_marker(fs, s3_client):
LOWtest/s3/parquet/test_implicit_directory_fix.py210def test_empty_file_not_directory(fs, s3_client):
LOWtest/s3tables/catalog/test_rest_catalog_auth.py41def test_namespace_operations(catalog, prefix):
LOWtest/s3tables/catalog/test_rest_catalog.py41def test_namespace_operations(catalog, prefix):
Example Usage Blocks10 hits · 15 pts
SeverityFileLineSnippet
LOWinstall.sh6# Usage:
LOWweed/filer/filer.go508// Example usage:
LOWweed/wdclient/vidmap_client.go132// Example usage:
LOWweed/worker/tasks/base/volume_utils.go14// Example usage:
LOWdocker/compose/test-git-on-mount.sh14# Usage:
LOWtest/s3/proxy_signature/test.sh5# Usage:
LOWtest/s3tables/catalog/docker-compose.test.yaml6# Usage:
LOWtest/samba/run.sh17# Usage:
LOWtest/pjdfstest/run.sh13# Usage:
LOWk8s/charts/seaweedfs/openshift-values.yaml19# Usage:
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippet
HIGHweed/server/volume_grpc_tier_upload.go46 // check whether the existing backend storage is the same as requested
HIGH.github/pull_request_template.md17# Checks for AI generated PRs
Unused Imports7 hits · 7 pts
SeverityFileLineSnippet
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py49
LOWtest/s3/parquet/test_cross_filesystem_compatibility.py50
LOWtest/s3/parquet/debug_write_dataset.py36
LOWtest/s3/parquet/test_implicit_directory_fix.py13
LOWtest/s3/parquet/test_implicit_directory_fix.py21
LOWtest/s3/parquet/example_pyarrow_native.py33
LOWtest/s3tables/unity_catalog/delta_rs_writer.py25
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippet
LOWtest/s3/parquet/debug_write_dataset.py38
LOWtest/s3/parquet/test_pyarrow_native_s3.py184
LOWtest/s3/parquet/test_pyarrow_native_s3.py271
LOWpostgres-examples/test_client.py103
LOWpostgres-examples/test_client.py145
LOWpostgres-examples/test_client.py242
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippet
HIGHtest/s3/parquet/s3_parquet_test.py168 Helper to discover all parquet files for a given path. Args: path: S3 path (file or directory)
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMk8s/charts/seaweedfs/values.yaml358 # If these don't meet your needs, you can use "custom" here along with extraVolumes and extraVolumeMounts