Skip to content

Fix remaining test failures from pre-existing issues #615

Closed

Description

@malibio

Summary

30 tests are failing due to pre-existing issues (not related to snake_case migration #611). These failures exist on the main branch as well.

Categories of Failures

1. Sibling Ordering Issues (likely before_sibling_id related) - See #614

  • test_reorder_siblings
  • test_sibling_chain_ordering
  • test_get_children_ordered_with_multiple_insertions
  • test_get_child_at_index_out_of_bounds
  • test_move_child_to_index_beyond_sibling_count

2. Markdown/Export Tests (depend on ordering)

  • test_get_markdown_simple
  • test_get_markdown_max_depth
  • test_get_markdown_preserves_hierarchy
  • test_bullet_roundtrip
  • test_roundtrip_import_export
  • test_update_root_from_markdown_complex_structure

3. Mentions/Container Tests

  • mentioning_containers_tests::basic_backlinks
  • mentioning_containers_tests::deduplication
  • mentioning_containers_tests::task_exception
  • mentioning_containers_tests::mixed_containers
  • test_prevent_root_level_self_reference

4. Version Tracking Tests

  • test_auto_created_date_nodes_get_version
  • test_new_nodes_get_schema_version
  • test_nodes_with_existing_version_not_modified

5. Container/Task Filter Tests

  • container_task_filter_tests::basic_filter
  • container_task_filter_tests::content_contains_with_filter
  • container_task_filter_tests::mentioned_by_with_filter

6. Search/Embeddings Tests

  • test_search_with_similar_nodes
  • test_search_with_threshold_filter
  • test_search_with_real_nlp_embeddings

7. Properties/OCC Tests

  • test_property_update_increments_version
  • test_update_nodes_batch_with_properties
  • test_persisted_date_takes_precedence_over_virtual

8. MCP Tools Tests

  • test_all_expected_tools_present
  • test_tools_list_returns_all_schemas

9. Flaky Performance Test

  • test_atomic_operations_performance (passes when run alone, fails in suite)

Root Causes

Many of these failures likely stem from:

  1. Complete before_sibling_id removal - use has_child edge ordering #614 - before_sibling_id removal incomplete (affects ordering tests)
  2. Query result parsing issues with SurrealDB Thing types
  3. Properties not being stored for non-spoke types (date, text)

Acceptance Criteria

  • Identify root cause for each category
  • Fix or update tests as appropriate
  • All tests pass

Test Results

Metadata

Metadata

Assignees

Labels

bugtesting

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions