Repository Analysis

weaviate/weaviate

Weaviate is an open-source vector database that stores both objects and vectors, allowing for the combination of vector search with structured filtering with the fault tolerance and scalability of a cloud-native database​.

3.0 Likely human-written View on GitHub
3.0
Adjusted Score
3.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
16,256
Stars
Go
Language
1,164,685
Lines of Code
4545
Files
2947
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 20HIGH 6MEDIUM 181LOW 2740

Pattern Findings

2947 matches across 16 categories. Click a row to expand file-level details.

Over-Commented Block2268 hits · 2236 pts
SeverityFileLineSnippet
LOWdocker-compose-namespaces-test.yml1# Docker Compose for the cross-reference + namespaces python acceptance test.
LOWdocker-compose-readonly-recovery-test.yml1# Docker Compose for the shard readonly recovery acceptance test.
LOWcmd/weaviate-server/main.go1// _ _
LOWcluster/store_apply.go101 // schemaOnly is necessary so that on restart when we are re-applying RAFT log entries to our in-memory schema we
LOWcluster/store_apply.go201
LOWcluster/store_snapshot.go81 return nil
LOWcluster/raft_apply_endpoints.go121// This is the public entry point: callers reach it from the REST / gRPC
LOWcluster/store.go81 RPCPort int
LOWcluster/store.go101 // raft election, heartbeat, and leader lease
LOWcluster/store.go181 // DistributedTasks is the configuration for the distributed task manager.
LOWcluster/store.go381// rationale). Called once at startup after both Store and Scheduler
LOWcluster/store.go721// leader of the cluster. They may be empty strings if there is no current leader or the leader is
LOWcluster/backoff.go21// backoffConfig creates a backoff configuration based on the election timeout.
LOWcluster/store_namespace_active.go1// _ _
LOWcluster/raft.go81// conflict-detection hooks on the underlying distributed task FSM
LOWcluster/types/errs.go1// _ _
LOWcluster/distributedtask/throttled_recorder_test.go21 "github.com/stretchr/testify/mock"
LOWcluster/distributedtask/scheduler_test.go861
LOWcluster/distributedtask/scheduler_test.go1101// Start() (e.g. RAFT not ready yet on a freshly-rebooted node), the first
LOWcluster/distributedtask/scheduler_test.go1201 require.Empty(t, groups, "no callbacks may fire on later ticks for the same already-terminal task")
LOWcluster/distributedtask/scheduler_test.go1501// pre-marked at bootstrap. If they were, the scheduler tick would skip
LOWcluster/distributedtask/scheduler_test.go1621 s.mu.Lock()
LOWcluster/distributedtask/scheduler_test.go1641// ListDistributedTasks exposes it as Active. This is the data
LOWcluster/distributedtask/scheduler_multinode_test.go1// _ _
LOWcluster/distributedtask/scheduler_multinode_test.go21// Why this exists: the FINALIZING regression (every node must fire
LOWcluster/distributedtask/scheduler_multinode_test.go341// tick drives a single scheduler's tick body directly. We deliberately
LOWcluster/distributedtask/scheduler_multinode_test.go381// distributed_tasks crash-recovery suite caught at 20+ min latency.
LOWcluster/distributedtask/scheduler_multinode_test.go621 "node %s: OnGroupCompleted must fire once for its local group", n.id)
LOWcluster/distributedtask/scheduler_multinode_test.go861// non-cancellable in-flight compaction during SIGTERM), the scheduler
LOW…er/distributedtask/scheduler_multinode_barrier_test.go1// _ _
LOW…er/distributedtask/scheduler_multinode_barrier_test.go461 // Total PHASE B fires across the cluster: exactly 3 (one per node).
LOW…er/distributedtask/scheduler_multinode_barrier_test.go941 // for group-b, then PHASE A.5 emits node-2's prep-ack.
LOWcluster/distributedtask/types.go1// _ _
LOWcluster/distributedtask/types.go21 ListDistributedTasks(ctx context.Context) (map[string][]*Task, error)
LOWcluster/distributedtask/types.go41// weaviate/0-weaviate-issues#231.
LOWcluster/distributedtask/types.go61
LOWcluster/distributedtask/types.go141// ConflictDetector is an optional interface providers implement so the
LOWcluster/distributedtask/types.go161// FSM-determinism contract: CheckConflict MUST be a pure function of
LOWcluster/distributedtask/types.go181// separate per-shard sub-tasks for the searchable and filterable
LOWcluster/distributedtask/types.go201// FSM-determinism contract: CheckPropertyUpdate MUST be a pure function
LOWcluster/distributedtask/types.go221
LOWcluster/distributedtask/types.go241// pre-restart) calls into this hook for every terminal task; if the
LOWcluster/distributedtask/types.go261 // unit assigned to localNode. Returning false means "the
LOWcluster/distributedtask/types.go281//
LOWcluster/distributedtask/types.go301 // OnTaskCompleted is invoked by the [Scheduler] once per task that has
LOWcluster/distributedtask/types.go361
LOWcluster/distributedtask/types.go381 // TaskStatusCancelled means that the task was cancelled by user.
LOWcluster/distributedtask/types.go441
LOWcluster/distributedtask/types.go481 // PREPARING. The FSM gates PREPARING → SWAPPING on every expected ack
LOWcluster/distributedtask/types.go501 // (no OnGroupCompleted to ack).
LOWcluster/distributedtask/mock_task_cleaner.go1// _ _
LOWcluster/distributedtask/throttled_recorder.go21)
LOWcluster/distributedtask/structural_invariants_test.go81}
LOW…uster/distributedtask/mock_task_completion_recorder.go1// _ _
LOWcluster/distributedtask/concurrency_limiter.go1// _ _
LOWcluster/distributedtask/doc.go1// _ _
LOWcluster/distributedtask/doc.go21// component that mutates it. All writes go through Raft Apply (see cluster/store_apply.go).
LOWcluster/distributedtask/doc.go41// assignment is implicit and driven by the Provider implementation, not prescribed by the
LOWcluster/distributedtask/doc.go61// 2. OnTaskCompleted — fires once per node after ALL units reach terminal state.
LOWcluster/distributedtask/doc.go81// Journey 2: Per-shard work, global finalize (behavior unchanged).
2208 more matches not shown…
Decorative Section Separators161 hits · 478 pts
SeverityFileLineSnippet
MEDIUMtest/acceptance_with_python/test_namespace_refs.py412# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_namespace_refs.py414# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_namespace_refs.py580# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_namespace_refs.py582# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_namespace_refs.py652# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_namespace_refs.py654# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_namespace_refs.py778# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_namespace_refs.py780# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_namespace_refs.py890# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_namespace_refs.py892# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_namespace_refs.py479# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_namespace_refs.py481# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_readonly_recovery.py73# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_readonly_recovery.py75# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_readonly_recovery.py85# ---------------------------------------------------------------------------
MEDIUMtest/acceptance_with_python/test_readonly_recovery.py87# ---------------------------------------------------------------------------
MEDIUM…e_with_python/test_nested_props_array_intermediates.py204# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py206# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py405# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py407# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py572# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py574# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py718# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py720# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py901# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py903# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py1320# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py1322# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py1458# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py1460# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py1609# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py1611# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py1935# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py1937# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py2263# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py2265# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py2974# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py2976# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py3135# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py3137# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py3316# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py3318# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py3476# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py3478# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py3765# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py3767# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py4216# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py4218# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py36# ---------------------------------------------------------------------------
MEDIUM…e_with_python/test_nested_props_array_intermediates.py38# ---------------------------------------------------------------------------
MEDIUM…e_with_python/test_nested_props_array_intermediates.py87# ---------------------------------------------------------------------------
MEDIUM…e_with_python/test_nested_props_array_intermediates.py91# ---------------------------------------------------------------------------
MEDIUM…e_with_python/test_nested_props_array_intermediates.py1114# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py1116# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py1742# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py1744# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py2091# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py2093# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py2429# ===========================================================================
MEDIUM…e_with_python/test_nested_props_array_intermediates.py2431# ===========================================================================
101 more matches not shown…
Hallucination Indicators20 hits · 220 pts
SeverityFileLineSnippet
CRITICALtest/acceptance_with_python/test_usage.py205 wvc.config.Reconfigure.VectorIndex.Quantizer.bq(enabled=True),
CRITICALtest/acceptance_with_python/test_usage.py206 wvc.config.Reconfigure.VectorIndex.Quantizer.rq(enabled=True),
CRITICALtest/acceptance_with_python/test_usage.py207 wvc.config.Reconfigure.VectorIndex.Quantizer.sq(enabled=True, training_limit=50),
CRITICALtest/acceptance_with_python/test_usage.py208 wvc.config.Reconfigure.VectorIndex.Quantizer.pq(enabled=True, training_limit=300),
CRITICALtest/acceptance_with_python/test_usage.py283 encoding=wvc.config.Configure.VectorIndex.MultiVector.Encoding.muvera(),
CRITICALtest/acceptance_with_python/test_usage.py287 encoding=wvc.config.Configure.VectorIndex.MultiVector.Encoding.muvera(),
CRITICALadapters/repos/db/inverted/searcher_ref_filter.go86 ClassName: r.filter.On.Child.Class.String(),
CRITICALadapters/repos/db/lsmkv/compactor_set.go158 kis := make([]segmentindex.KeyRedux, 0, c.c1.cache.segment.index.KeyCount()+c.c2.cache.segment.index.KeyCount())
CRITICALadapters/handlers/mcp/server.go50 return state.ServerConfig.Config.MCP.WriteAccessEnabled.Get()
CRITICALadapters/handlers/rest/handlers_misc.go64 target, err := url.JoinPath(serverConfig.Config.Authentication.OIDC.Issuer.Get(), "/.well-known/openid-configuration"
CRITICALadapters/handlers/rest/configure_api.go575 restcompat.SetAsyncReplicationGloballyDisabled(appState.ServerConfig.Config.Replication.AsyncReplicationDisabled.Get())
CRITICALadapters/handlers/rest/configure_api.go668 TimeoutsMultiplier: appState.ServerConfig.Config.Raft.TimeoutsMultiplier.Get(),
CRITICALadapters/handlers/rest/configure_api.go697 DrainSleep: appState.ServerConfig.Config.Raft.DrainSleep.Get(),
CRITICALadapters/handlers/rest/configure_api.go1446 time.Sleep(appState.ServerConfig.Config.Raft.DrainSleep.Get())
CRITICALadapters/handlers/rest/configure_api.go2644 restcompat.SetAsyncReplicationGloballyDisabled(appState.ServerConfig.Config.Replication.AsyncReplicationDisabled.Get(
CRITICALadapters/handlers/rest/handlers_mcp.go40 if !appState.ServerConfig.Config.MCP.Enabled.Get() {
CRITICALadapters/handlers/rest/filterext/parse_test.go595 assert.Equal(t, "customer1:Country", out.Root.On.Child.Class.String(),
CRITICALadapters/handlers/rest/filterext/parse_test.go606 assert.Equal(t, "customer1:Country", out.Root.On.Child.Class.String())
CRITICALadapters/handlers/rest/filterext/parse_test.go607 assert.Equal(t, "customer1:City", out.Root.On.Child.Child.Class.String(),
CRITICALadapters/handlers/rest/filterext/parse_test.go620 assert.Equal(t, "customer1:Country", out.Root.On.Child.Class.String(),
Hyper-Verbose Identifiers277 hits · 209 pts
SeverityFileLineSnippet
LOWtest/acceptance_with_python/test_named_vectors.py15def test_create_named_vectors_with_and_without_vectorizer(
LOWtest/acceptance_with_python/test_named_vectors.py42def test_hybrid_search_with_multiple_target_vectors(named_collection: NamedCollection) -> None:
LOWtest/acceptance_with_python/test_named_vectors.py214def test_near_vector_with_single_named_vector(
LOWtest/acceptance_with_python/test_named_vectors.py264def test_different_target_fusion_methods(
LOWtest/acceptance_with_python/test_named_vectors.py334def test_more_results_than_limit(
LOWtest/acceptance_with_python/test_named_vectors.py405def test_named_vectors_missing_entries(
LOWtest/acceptance_with_python/test_named_vectors.py441def test_multi_target_near_vector(collection_factory: CollectionFactory) -> None:
LOWtest/acceptance_with_python/test_named_vectors.py469def test_multi_target_with_filter(collection_factory: CollectionFactory):
LOWtest/acceptance_with_python/test_named_vectors.py565def test_single_named_vectors_without_names(collection_factory: CollectionFactory) -> None:
LOWtest/acceptance_with_python/test_named_vectors.py583def test_named_vectors_without_names(collection_factory: CollectionFactory) -> None:
LOWtest/acceptance_with_python/test_named_vectors.py600def test_single_vectorizer_with_named_vectors(collection_factory: CollectionFactory) -> None:
LOWtest/acceptance_with_python/test_namespace_refs.py417def test_single_target_add_replace_delete(
LOWtest/acceptance_with_python/test_namespace_refs.py585def test_filter_by_ref_chained_with_property(
LOWtest/acceptance_with_python/test_namespace_refs.py657def test_multi_target_replace_and_delete(
LOWtest/acceptance_with_python/test_namespace_refs.py783def test_batch_reference_insert_multi_target(
LOWtest/acceptance_with_python/test_namespace_refs.py895def test_inline_ref_in_object_create(
LOWtest/acceptance_with_python/test_namespace_refs.py346def _wait_for_collections_on_read_node(client: WeaviateClient, shorts: List[str]) -> None:
LOWtest/acceptance_with_python/test_namespace_refs.py370def _delete_qualified_collection(http_port: int, qualified: str) -> None:
LOWtest/acceptance_with_python/conftest.py176def _sanitize_collection_name(name: str) -> str:
LOW…acceptance_with_python/test_multi_target_search_gql.py132def test_test_multi_target_near_vector_gql(collection_factory: CollectionFactory):
LOW…acceptance_with_python/test_multi_target_search_gql.py174def test_test_multi_target_hybrid_gql(collection_factory: CollectionFactory):
LOWtest/acceptance_with_python/test_index_compression.py31 def generate_random_multi_vector(target_vector: str):
LOWtest/acceptance_with_python/test_errors.py8def test_error_no_module_for_vectorizer(collection_factory: CollectionFactory) -> None:
LOWtest/acceptance_with_python/test_readonly_recovery.py93def test_readonly_triggered_by_disk_usage(client: weaviate.WeaviateClient):
LOWtest/acceptance_with_python/test_readonly_recovery.py143def test_recovery_after_freeing_disk(client: weaviate.WeaviateClient):
LOWtest/acceptance_with_python/test_readonly_recovery.py156def test_writes_succeed_after_recovery(client: weaviate.WeaviateClient):
LOWtest/acceptance_with_python/test_usage.py36def test_usage_adding_named_vector(collection_factory: CollectionFactory):
LOWtest/acceptance_with_python/test_usage.py211def test_usage_enabling_compression(
LOWtest/acceptance_with_python/test_refs.py43def test_ref_with_multiple_cycle(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py214def _honda_civic_for_datatypes_test() -> Dict[str, Any]:
LOW…e_with_python/test_nested_props_array_intermediates.py415def test_same_element_and_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py583def test_arr_n_pin_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py728def test_arr_n_pin_with_and_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py911def test_arr_n_pin_with_or_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py1332def test_is_null_on_leaf_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py1467def test_contains_all_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py1619def test_contains_any_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py1947def test_multi_token_equal_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py2275def test_is_null_in_correlated_and_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py2983def test_invalid_filter_returns_server_error(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py3146def test_contains_all_with_equal_in_and_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py3327def test_contains_any_with_equal_in_and_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py3487def test_contains_none_with_equal_in_and_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py3777def test_flat_or_nested_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py4227def test_not_equal_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py234def _assert_each_datatype_filter_selects(
LOW…e_with_python/test_nested_props_array_intermediates.py291def _assert_comparison_operator_sweep_selects(
LOW…e_with_python/test_nested_props_array_intermediates.py343def test_all_datatypes_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py361def test_all_datatypes_under_country_object(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py383def test_all_datatypes_under_countries_array(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py442def test_same_element_and_under_country_object(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py493def test_same_element_and_under_countries_array(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py608def test_arr_n_pin_under_country_object(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py652def test_arr_n_pin_under_countries_array(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py765def test_arr_n_pin_with_and_under_country_object(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py820def test_arr_n_pin_with_and_under_countries_array(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py954def test_arr_n_pin_with_or_under_country_object(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py1020def test_arr_n_pin_with_or_under_countries_array(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py1128def test_or_of_correlated_ands_at_root_cars(collection_factory: CollectionFactory) -> None:
LOW…e_with_python/test_nested_props_array_intermediates.py1171def test_or_of_correlated_ands_under_country_object(collection_factory: CollectionFactory) -> None:
217 more matches not shown…
Verbosity Indicators87 hits · 158 pts
SeverityFileLineSnippet
LOWcluster/store_apply_test.go437 // Step 1: Add class "FooBar"
LOWcluster/store_apply_test.go458 // Step 2: Delete class "foobar" (different case) during RAFT replay
LOWcluster/store_apply_test.go471 // Step 3: Verify that FooBar was deleted from memory schema
LOWcluster/replication/shard_replication_apply.go77 // If it's ongoing we need to check if it's a move, in which case we can't accept any new op
LOW…ance/reindex_concurrent/parallel_same_property_test.go107 // Step 0: create collection with the property starting in both-flags-true
LOW…ance/reindex_concurrent/parallel_same_property_test.go162 // Step 3: fire both PUTs in parallel.
LOW…ance/reindex_concurrent/parallel_same_property_test.go197 // Step 4: classify the outcomes.
LOW…ance/reindex_concurrent/parallel_same_property_test.go229 // Step 5: wait for accepted tasks to FINISH. Bug repro: BOTH transition
LOW…ance/reindex_concurrent/parallel_same_property_test.go240 // Step 6: if one submit was rejected as a 409 conflict, retry it now
LOW…ance/reindex_concurrent/parallel_same_property_test.go298 // Step 7: assert both schema flags flipped to true.
LOW…ance/reindex_concurrent/parallel_same_property_test.go316 // Step 8: queries against both buckets must return data. The filterable
LOW…ceptance/reindex_multinode/round_trip_adjacent_test.go682 // Step 1: enable filterable. This writes a tidied.mig per-prop.
LOW…ceptance/reindex_multinode/round_trip_adjacent_test.go697 // Step 2: change-tokenization word→field on the same property.
LOW…ceptance/reindex_multinode/round_trip_adjacent_test.go706 // Step 3: round-trip back to word.
LOW…ceptance/reindex_multinode/round_trip_adjacent_test.go742 // Step 1: enable searchable. The backend requires a tokenization on
LOW…ceptance/reindex_multinode/round_trip_adjacent_test.go768 // Step 2: change-tokenization word→field via filterable. The
LOW…ceptance/reindex_multinode/round_trip_adjacent_test.go781 // Step 3: back to word via filterable. Same single-request shape.
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go111 // Step 1: change-tok-both from word → field via {searchable:{tokenization:field}}.
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go119 // Step 2: DELETE the searchable index.
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go122 // Step 3: filterable-only retokenize from field → word. With both
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go493 // Step 1: submit change-tok-both, then cancel mid-flight via
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go501 // Step 2: submit change-tok-filterable. The cancel left state behind
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go509 // Step 3: verify the filterable bucket actually serves queries
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go558 // Step 1: retokenize filterable from word → field.
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go566 // Step 2: enable-searchable with matching field tokenization (must
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go574 // Step 3: change-tok-both from field → word using
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go582 // Step 4: assert both buckets reflect word tokenization. With
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go170 // Step 1: change-tokenization-filterable from field → word.
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go179 // Step 2: DELETE the filterable index. The API spelling is
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go239 // Step 1: retokenize filterable from field → word.
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go245 // Step 2: enable-searchable with matching tokenization "word".
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go256 // Step 3: assert both indexes work and use word tokenization.
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go315 // Step 1: submit change-tok-both.
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go320 // Step 2: wait until the task is observable as indexing, then issue
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go358 // Step 3: wait for the reindex task to reach a terminal state. It
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go363 // Step 4: assert internal consistency. The class still exists.
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go430 // Step 1: field → word.
LOW…/reindex_singlenode/change_tok_delete_journeys_test.go438 // Step 2: word → field.
LOW…ptance/reindex_singlenode/delete_then_reenable_test.go76 // Step 1: first enable via the reindex API — lays down the
LOW…ptance/reindex_singlenode/delete_then_reenable_test.go85 // Step 2: DELETE the searchable index.
LOW…ptance/reindex_singlenode/delete_then_reenable_test.go88 // Step 3: re-enable. The crux of this test. If the .migrations
LOW…cceptance/reindex_singlenode/cancel_then_retry_test.go102 // Step 1: submit and cancel.
LOW…cceptance/reindex_singlenode/cancel_then_retry_test.go105 // Step 2: re-submit. Crux of the test — without cleanup of started.mig,
LOW…eptance/reindex_singlenode/restart_during_swap_test.go140 // Step 1: create collection with word tokenization.
LOW…eptance/reindex_singlenode/restart_during_swap_test.go150 // Step 2: insert baseline objects. Keep the count modest — the reindex
LOW…eptance/reindex_singlenode/restart_during_swap_test.go160 // Step 3: submit the change-tokenization reindex.
LOW…eptance/reindex_singlenode/restart_during_swap_test.go165 // Step 4: poll /v1/tasks until FINISHED. Keep a tight 20ms tick: this
LOW…eptance/reindex_singlenode/restart_during_swap_test.go190 // Step 5: stop the container immediately with 0 timeout (SIGKILL).
LOW…eptance/reindex_singlenode/restart_during_swap_test.go195 // Step 6: restart the container.
LOW…eptance/reindex_singlenode/restart_during_swap_test.go202 // Step 7: write the NEW object IMMEDIATELY after the container is ready.
LOW…eptance/reindex_singlenode/restart_during_swap_test.go223 // Step 8: wait for the schema tokenization to flip to "field"
LOW…eptance/reindex_singlenode/restart_during_swap_test.go243 // Step 9: query with FIELD-tokenization-style queries.
LOWtest/modules/export-s3/export_test.go1689 // Step 1: Insert 20 objects.
LOWtest/modules/export-s3/export_test.go1693 // Step 2: First export — should capture 20 objects.
LOWtest/modules/export-s3/export_test.go1699 // Step 3: Insert 10 more objects.
LOWtest/modules/export-s3/export_test.go1703 // Step 4: Second export — should capture 30 objects.
LOWtest/modules/export-s3/export_test.go1709 // Step 5: Delete the original 20 objects.
LOWtest/modules/export-s3/export_test.go1714 // Step 6: Third export — should capture only the 10 remaining objects.
LOWtest/modules/export-s3/export_test.go1720 // Step 7: Verify all exports succeeded.
LOWtest/modules/export-s3/export_test.go1727 // Step 8: Verify row counts and object identity for each snapshot.
27 more matches not shown…
Fake / Example Data58 hits · 64 pts
SeverityFileLineSnippet
LOWtest/acceptance/objects/skip_vector_index_test.go52 Properties: map[string]interface{}{"name": "Jane Doe"},
LOWtest/acceptance/objects/skip_vector_index_test.go63 assert.Equal(t, "Jane Doe", obj.Payload.Properties.(map[string]interface{})["name"].(string))
LOWtest/acceptance/mcp/query_hybrid_test.go31 authorJohnDoe = "John Doe"
LOWtest/acceptance/mcp/query_hybrid_test.go506 // Search with OR filter: author="John Doe" OR author="Jane Smith" - expects 3 results
LOWtest/acceptance/mcp/objects_upsert_test.go948 "author": "John Doe",
LOW…eindex_singlenode/delete_reenable_shortcircuit_test.go68 text = fmt.Sprintf("lorem ipsum dolor sit amet %d", i)
LOW…eindex_singlenode/delete_reenable_shortcircuit_test.go68 text = fmt.Sprintf("lorem ipsum dolor sit amet %d", i)
LOW…/acceptance/reindex_singlenode/scope_assertion_test.go72 "description": fmt.Sprintf("lorem ipsum dolor %d sit amet", i),
LOW…/acceptance/reindex_singlenode/scope_assertion_test.go147 "body": fmt.Sprintf("lorem ipsum dolor %d sit amet", i),
LOW…dex_singlenode/property_state_migration_matrix_test.go295 {propName: "alpha lorem ipsum"},
LOW…dex_singlenode/property_state_migration_matrix_test.go798 // query "alpha" matches the "alpha lorem ipsum" doc; with field
LOW…dex_singlenode/property_state_migration_matrix_test.go803 "alpha lorem ipsum",
LOW…dex_singlenode/property_state_migration_matrix_test.go876 return "Equal", `valueText: "alpha lorem ipsum"`
LOW…cceptance/reindex_singlenode/enable_searchable_test.go32 {"name": "bravo", "description": "lorem ipsum dolor sit amet consectetur adipiscing elit"},
LOW…cceptance/reindex_singlenode/enable_searchable_test.go32 {"name": "bravo", "description": "lorem ipsum dolor sit amet consectetur adipiscing elit"},
LOW…cceptance/reindex_singlenode/enable_searchable_test.go37 {"name": "golf", "description": "lorem ipsum but with extra words for tokenization"},
LOW…cceptance/reindex_singlenode/enable_searchable_test.go57 {"multi_token_lorem_ipsum", "lorem ipsum"},
LOW…cceptance/reindex_singlenode/enable_searchable_test.go173 // - "lorem" hits bravo + golf (both contain "lorem ipsum...").
LOW…nce_with_go_client/object_property_tests/batch_test.go66 "name": "John Doe",
LOW…e_with_go_client/object_property_tests/graphql_test.go49 "name": "John Doe",
LOW…e_with_go_client/object_property_tests/graphql_test.go120 assert.Equal(t, "John Doe", p["name"])
LOW…tors_tests/test_suits/mixed_vectors_name_forwarding.go53 "text": "Lorem ipsum dolor sit amet",
LOW…tors_tests/test_suits/mixed_vectors_name_forwarding.go53 "text": "Lorem ipsum dolor sit amet",
LOW…tors_tests/test_suits/mixed_vectors_name_forwarding.go81 "text": "Lorem ipsum dolor sit amet",
LOW…tors_tests/test_suits/mixed_vectors_name_forwarding.go81 "text": "Lorem ipsum dolor sit amet",
LOW…t/named_vectors_tests/test_suits/legacy_vector_misc.go490 "text": "Lorem ipsum dolor sit amet",
LOW…t/named_vectors_tests/test_suits/legacy_vector_misc.go490 "text": "Lorem ipsum dolor sit amet",
LOW…ectors_tests/test_suits/named_vectors_objects_mixed.go221 "text": "Lorem ipsum dolor sit amet",
LOW…ectors_tests/test_suits/named_vectors_objects_mixed.go221 "text": "Lorem ipsum dolor sit amet",
LOWtest/helper/backuptest/testdata.go239 "Lorem ipsum dolor sit amet consectetur adipiscing elit.",
LOWtest/helper/backuptest/testdata.go239 "Lorem ipsum dolor sit amet consectetur adipiscing elit.",
LOWadapters/repos/db/shard_write_merge.go202// cleaning up. Example `name: "John"` is updated to `name: "John Doe"`,
LOWadapters/repos/db/refcache/resolver_test.go318 "name": "John Doe",
LOWadapters/repos/db/refcache/resolver_test.go384 "name": "John Doe",
LOWadapters/repos/db/refcache/resolver_test.go483 "name": "John Doe",
LOWadapters/repos/db/refcache/resolver_test.go515 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go179 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go250 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go287 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go377 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go426 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go552 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go638 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go696 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go740 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go747 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go819 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go827 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go865 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go872 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go879 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go999 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go1007 "name": "John Doe",
LOWadapters/repos/db/refcache/cacher_test.go1015 "name": "John Doe",
LOWadapters/repos/db/lsmkv/store_integration_test.go56 err = b1.Put([]byte("name"), []byte("Jane Doe"))
LOWadapters/repos/db/lsmkv/store_integration_test.go93 assert.Equal(t, []byte("Jane Doe"), res)
LOWusecases/auth/authentication/oidc/middleware_test.go120 token := tokenWithEmail(t, "best-user", server.URL, "best_client", "foo@bar.com")
LOWusecases/auth/authentication/oidc/middleware_test.go127 assert.Equal(t, "foo@bar.com", principal.Username)
AI Slop Vocabulary10 hits · 30 pts
SeverityFileLineSnippet
MEDIUMdocker-compose.yml4# Additionally, it should not be used directly with `docker compose up`; instead, please utilize the scripts provided
MEDIUM…ptance/reindex_multinode/cross_replica_barrier_test.go173 // log. Container-log scan is robust against PREPARING being
MEDIUM…dex_singlenode/property_state_migration_matrix_test.go57// invariants above are robust to validator refactors and still catch the
MEDIUM…dex_singlenode/property_state_migration_matrix_test.go783// We deliberately keep the queries broad so the result is robust across
MEDIUMadapters/repos/db/inverted_reindex_task_generic.go310// robust against partial state.
MEDIUMadapters/repos/db/roaringset/doc.go51// Essentially this means the RoaringSet strategy behaves like a fully
MEDIUM…/db/clusterintegrationtest/cluster_integration_test.go52// non-essential parts. Essentially we fix the shard/cluster state and schema
MEDIUMadapters/repos/db/lsmkv/bucket.go1055// has dropped to zero. Essentially the switch just switches pointers, but we
MEDIUMadapters/repos/db/vector/hnsw/config_update.go48 // current timer and start a new one. Certainly possible, but let's see
MEDIUMadapters/repos/db/vector/kmeans/kmeans.go449 // We leverage existing methods to compute it.
Self-Referential Comments9 hits · 30 pts
SeverityFileLineSnippet
MEDIUMtest/acceptance_with_python/test_readonly_recovery.py99 # Create a small canary collection that we will use later to verify recovery.
MEDIUMtest/acceptance_with_python/test_readonly_recovery.py107 # Create a filler collection and write enough data to push disk usage
MEDIUM…ers/handlers/rest/operations/objects/objects_create.go48# Create an object
MEDIUM…andlers/rest/operations/namespaces/create_namespace.go48# Create a new namespace
MEDIUM…ndlers/rest/operations/schema/schema_objects_create.go48# Create a new collection
MEDIUM…ters/handlers/rest/operations/schema/aliases_create.go48# Create a new alias
MEDIUM…ters/handlers/rest/operations/schema/tenants_create.go48# Create a new tenant
MEDIUMadapters/handlers/rest/operations/users/create_user.go53# Create a new user
MEDIUM…ers/handlers/rest/operations/backups/backups_create.go48# Create a backup
Cross-Language Confusion3 hits · 22 pts
SeverityFileLineSnippet
HIGH…e_with_python/test_nested_props_array_intermediates.py2283 make_car(color="red"), # color matches, make defaults to "Toyota" (not null)
HIGH…e_with_python/test_nested_props_array_intermediates.py2290 omit_fields(make_car(color="blue"), "make"), # make null, color=blue
HIGH…e_with_python/test_nested_props_array_intermediates.py2810# match (tires present, not null), but the gap can cause contamination
Synthetic Comment Markers3 hits · 22 pts
SeverityFileLineSnippet
HIGHadapters/repos/db/shard.go487 // shutdownRequested marks shard as requested for shutdown
HIGH.github/workflows/pull_requests.yaml17 # Paths excluded from Orca SAST scans (auto-generated code + mocks).
HIGHusecases/backup/backupper.go177// - All backups have the same compression type as requested
Redundant / Tautological Comments14 hits · 21 pts
SeverityFileLineSnippet
LOWdocker-compose-raft/raft_cluster.sh29# Check if jinja2 is installed
LOWdocker-compose-raft/raft_cluster.sh31 # Check if running on Mac
LOWtools/linter_go_routines.sh25# Check if file is in excluded list
LOWtools/linter_error_groups.sh14 # Check if the file is not one of the permitted usages
LOWtools/dev/run_telemetry_dashboard.sh19# Check if something is already listening on the port
LOWtest/benchmark_bm25/gather_stats.sh3# Check if a name parameter is provided
LOWtest/benchmark_bm25/gather_stats.sh32# Check if the FlameGraph directory exists
LOWtest/benchmark_bm25/convert_json_to_jsonl.sh12# Check if the output file was created and is not empty
LOWtest/acceptance_with_python/test_readonly_recovery.py121 # Check if shards are already READONLY before writing more.
LOWtest/acceptance_with_python/run.sh7# Check if Python is installed
LOWtest/acceptance_with_python/run.sh13# Check if a virtual environment (venv) exists
LOW…handlers/rest/operations/objects/objects_class_head.go48# Check if an object exists
LOW…pters/handlers/rest/operations/objects/objects_head.go48# Check if an object exists
LOW…pters/handlers/rest/operations/schema/tenant_exists.go48# Check if a tenant exists
Unused Imports14 hits · 12 pts
SeverityFileLineSnippet
LOWtools/dev/bench/demo_indexing_mistakes_ui/start.py18
LOWtest/acceptance_with_python/test_namespace_refs.py81
LOWtest/acceptance_with_python/test_generative.py4
LOWtest/acceptance_with_python/test_usage.py8
LOWtest/acceptance_with_python/test_collection.py2
LOW…e_with_python/test_nested_props_array_intermediates.py23
LOW…ceptance_with_python/test_nested_filter_regressions.py13
LOWtest/acceptance_with_python/test_batch.py1
LOW…_with_python/test_nested_props_object_intermediates.py20
LOWtest/acceptance_with_python/rbac/conftest.py1
LOWtest/acceptance_with_python/rbac/conftest.py1
LOWtest/acceptance_with_python/rbac/test_batch_grpc.py2
LOWtest/acceptance_with_python/rbac/test_casing.py2
LOWtest/acceptance_with_python/rbac/test_casing.py3
Example Usage Blocks6 hits · 9 pts
SeverityFileLineSnippet
LOWdocker-compose-namespaces-test.yml18# Usage:
LOWdocker-compose-readonly-recovery-test.yml12# Usage:
LOWtools/dev/run_telemetry_dashboard.sh6# Usage:
LOWtools/dev/qa_pr.sh11# Usage:
LOWtools/dev/bench/measure_start_time.py6# How to use:
LOW.github/actions/security-lint/linter_hidden_unicode.sh5# Usage:
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippet
LOWtools/dev/bench/demo_reindex_ui_import.py243
LOWtools/dev/bench/demo_rangeable_reindex.py218
LOWtools/dev/bench/demo_indexing_mistakes_import.py458
LOWtest/acceptance_with_python/test_index_compression.py11
LOWtest/acceptance_with_python/test_usage.py135
LOWtest/acceptance_with_python/test_usage.py570
LOWtest/acceptance_with_python/get_debug_usage.py206
LOWtest/acceptance_with_python/test_auto_schema_ec.py20
Excessive Try-Catch Wrapping7 hits · 8 pts
SeverityFileLineSnippet
MEDIUMtools/dev/bench/demo_indexing_mistakes_ui/start.py138 print("Error: WCD_API_KEY env var not set.", file=sys.stderr)
LOWtest/acceptance_with_python/test_namespace_refs.py342 except Exception:
LOWtest/acceptance_with_python/test_readonly_recovery.py133 except Exception:
LOWtest/acceptance_with_python/test_tokenize.py34 except Exception:
LOWtest/acceptance_with_python/test_tokenize.py61 except Exception:
LOWtest/acceptance_with_python/test_tokenize.py86 except Exception:
LOWtest/acceptance_with_python/get_debug_usage.py217 except Exception as e:
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippet
LOWadapters/repos/db/shard_write_batch_references.go104 // TODO: is there any benefit in having this parallelized? if so, don't forget to lock before assigning errors
LOWusecases/auth/authorization/types.go107 // Note: if a new action added, don't forget to add it to availableWeaviateActions