test_build_shared_state.py¶
tests/test_build_shared_state.py
The build lock OWNS a target's shared build state (2.0.0; owner Q/A 2026-11-20).
test_a_build_that_cannot_get_the_lock_builds_privately
None test_build_shared_state.test_a_build_that_cannot_get_the_lock_builds_privately(Path tmp_path)
Contended: no shared cache, and a scratch directory carrying this process's pid.
tests/test_build_shared_state.py:108
Checks
assert args.no_index_cache is True, "a build without the lock must not open the shared cache"assert args.scratch != tmp_path / "clew.doxygen"assert str(os.getpid()) in args.scratch.name and args.scratch.parent == tmp_path
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CLI-001 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → report_stats |
| REQ-DDB-CLI-002 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → _doxygen_or_partial → _doxygen_stage → _run_doxygen_from_args → run_doxygen → doxygen_supports_sqlite3 |
| REQ-DDB-CONFIG-001 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _apply_declared_document → stated_document_meta |
| REQ-DDB-CONFIG-003 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml → _is_flat_req_list |
| REQ-DDB-CONFIG-004 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor |
| REQ-DDB-CONFIG-005 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig |
| REQ-DDB-CONFIG-006 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit |
| REQ-DDB-CONFIG-007 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-CONFIG-009 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config |
| REQ-DDB-GUARD-012 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → load_guard_config → read_guard_config → read_requirements_section |
| REQ-DDB-GUARD-019 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags |
| REQ-DDB-GUARD-024 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief |
| REQ-DDB-INDEX-001 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns |
| REQ-DDB-INDEX-002 | measured | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → build_lock |
| REQ-DDB-INDEX-003 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage |
| REQ-DDB-INDEX-004 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols |
| REQ-DDB-INDEX-005 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance |
| REQ-DDB-INDEX-006 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → record_code_text → code_text_rows |
| REQ-DDB-INDEX-007 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners |
| REQ-DDB-INDEX-008 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses |
| REQ-DDB-INDEX-009 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc |
| REQ-DDB-INDEX-010 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes |
| REQ-DDB-INDEX-011 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys |
| REQ-DDB-MCP-001 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _operator_excludes → meta_section |
| REQ-DDB-PIPE-001 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database |
| REQ-DDB-PIPE-003 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges |
| REQ-DDB-PIPE-004 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds |
| REQ-DDB-PIPE-005 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-PIPE-006 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env |
| REQ-DDB-PIPE-007 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates |
| REQ-DDB-PIPE-008 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs |
| REQ-DDB-PIPE-009 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges |
| REQ-DDB-PIPE-010 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges |
| REQ-DDB-PIPE-011 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes → run_harvest → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester |
| REQ-DDB-PIPE-013 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings |
| REQ-DDB-PIPE-014 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo |
| REQ-DDB-PIPE-015 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults |
| REQ-DDB-QUERY-003 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → mark_test_scope |
| REQ-DDB-QUERY-011 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables |
| REQ-DDB-SCHEMA-001 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads |
| REQ-DDB-SCHEMA-002 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map |
| REQ-DDB-SCHEMA-003 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-004 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest |
| REQ-DDB-SCHEMA-005 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes |
| REQ-DDB-SCHEMA-006 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-SCHEMA-007 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-009 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges |
| REQ-DDB-SCHEMA-011 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts |
| REQ-DDB-SCHEMA-012 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin |
| REQ-DDB-SCHEMA-013 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys |
| REQ-DDB-SCHEMA-014 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table |
| REQ-DDB-SCHEMA-015 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-WIKI-054 | inferred | test_a_build_that_cannot_get_the_lock_builds_privately → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols → _recover_into → all |
Source · 8 lines
def test_a_build_that_cannot_get_the_lock_builds_privately(tmp_path: Path) -> None:
"""@brief Contended: no shared cache, and a scratch directory carrying this process's pid."""
args = _seen_by_inner(tmp_path, False)
assert args.no_index_cache is True, "a build without the lock must not open the shared cache"
assert args.scratch != tmp_path / "clew.doxygen"
assert str(os.getpid()) in args.scratch.name and args.scratch.parent == tmp_path
Activity · 4 steps
test_a_build_that_holds_the_lock_uses_the_shared_state
None test_build_shared_state.test_a_build_that_holds_the_lock_uses_the_shared_state(Path tmp_path)
Held: the shared cache and `<stem>.doxygen`, as before.
tests/test_build_shared_state.py:101
Checks
assert args.no_index_cache is Falseassert args.scratch == tmp_path / "clew.doxygen"
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CLI-001 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → report_stats |
| REQ-DDB-CLI-002 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → _doxygen_or_partial → _doxygen_stage → _run_doxygen_from_args → run_doxygen → doxygen_supports_sqlite3 |
| REQ-DDB-CONFIG-001 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _apply_declared_document → stated_document_meta |
| REQ-DDB-CONFIG-003 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml → _is_flat_req_list |
| REQ-DDB-CONFIG-004 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor |
| REQ-DDB-CONFIG-005 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig |
| REQ-DDB-CONFIG-006 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit |
| REQ-DDB-CONFIG-007 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-CONFIG-009 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config |
| REQ-DDB-GUARD-012 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → load_guard_config → read_guard_config → read_requirements_section |
| REQ-DDB-GUARD-019 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags |
| REQ-DDB-GUARD-024 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief |
| REQ-DDB-INDEX-001 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns |
| REQ-DDB-INDEX-002 | measured | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → build_lock |
| REQ-DDB-INDEX-003 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage |
| REQ-DDB-INDEX-004 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols |
| REQ-DDB-INDEX-005 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance |
| REQ-DDB-INDEX-006 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → record_code_text → code_text_rows |
| REQ-DDB-INDEX-007 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners |
| REQ-DDB-INDEX-008 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses |
| REQ-DDB-INDEX-009 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc |
| REQ-DDB-INDEX-010 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes |
| REQ-DDB-INDEX-011 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys |
| REQ-DDB-MCP-001 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _operator_excludes → meta_section |
| REQ-DDB-PIPE-001 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database |
| REQ-DDB-PIPE-003 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges |
| REQ-DDB-PIPE-004 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds |
| REQ-DDB-PIPE-005 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-PIPE-006 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env |
| REQ-DDB-PIPE-007 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates |
| REQ-DDB-PIPE-008 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs |
| REQ-DDB-PIPE-009 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges |
| REQ-DDB-PIPE-010 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges |
| REQ-DDB-PIPE-011 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes → run_harvest → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester |
| REQ-DDB-PIPE-013 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings |
| REQ-DDB-PIPE-014 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo |
| REQ-DDB-PIPE-015 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults |
| REQ-DDB-QUERY-003 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → mark_test_scope |
| REQ-DDB-QUERY-011 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables |
| REQ-DDB-SCHEMA-001 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads |
| REQ-DDB-SCHEMA-002 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map |
| REQ-DDB-SCHEMA-003 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-004 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest |
| REQ-DDB-SCHEMA-005 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes |
| REQ-DDB-SCHEMA-006 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-SCHEMA-007 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-009 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges |
| REQ-DDB-SCHEMA-011 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts |
| REQ-DDB-SCHEMA-012 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin |
| REQ-DDB-SCHEMA-013 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys |
| REQ-DDB-SCHEMA-014 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table |
| REQ-DDB-SCHEMA-015 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-WIKI-054 | inferred | test_a_build_that_holds_the_lock_uses_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols → _recover_into → all |
Source · 7 lines
def test_a_build_that_holds_the_lock_uses_the_shared_state(tmp_path: Path) -> None:
"""@brief Held: the shared cache and `<stem>.doxygen`, as before."""
args = _seen_by_inner(tmp_path, True)
assert args.no_index_cache is False
assert args.scratch == tmp_path / "clew.doxygen"
Activity · 3 steps
test_a_private_scratch_directory_is_removed_after_the_build
None test_build_shared_state.test_a_private_scratch_directory_is_removed_after_the_build(Path tmp_path)
No-FS-bloat: the per-process doxygen directory does not outlive its build.
tests/test_build_shared_state.py:123
Called by none
Calls _doxygen_out_dir, _lock_yielding, _pipeline_args, _run_pipeline
Checks
assert not made["dir"].exists()
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CLI-001 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → report_stats |
| REQ-DDB-CLI-002 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → _doxygen_or_partial → _doxygen_stage → _run_doxygen_from_args → run_doxygen → doxygen_supports_sqlite3 |
| REQ-DDB-CONFIG-001 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _apply_declared_document → stated_document_meta |
| REQ-DDB-CONFIG-003 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml → _is_flat_req_list |
| REQ-DDB-CONFIG-004 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor |
| REQ-DDB-CONFIG-005 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig |
| REQ-DDB-CONFIG-006 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit |
| REQ-DDB-CONFIG-007 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-CONFIG-009 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config |
| REQ-DDB-GUARD-012 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → load_guard_config → read_guard_config → read_requirements_section |
| REQ-DDB-GUARD-019 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags |
| REQ-DDB-GUARD-024 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief |
| REQ-DDB-INDEX-001 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns |
| REQ-DDB-INDEX-002 | measured | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → build_lock |
| REQ-DDB-INDEX-003 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage |
| REQ-DDB-INDEX-004 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols |
| REQ-DDB-INDEX-005 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance |
| REQ-DDB-INDEX-006 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → record_code_text → code_text_rows |
| REQ-DDB-INDEX-007 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners |
| REQ-DDB-INDEX-008 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses |
| REQ-DDB-INDEX-009 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc |
| REQ-DDB-INDEX-010 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes |
| REQ-DDB-INDEX-011 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys |
| REQ-DDB-MCP-001 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _operator_excludes → meta_section |
| REQ-DDB-PIPE-001 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database |
| REQ-DDB-PIPE-003 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges |
| REQ-DDB-PIPE-004 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds |
| REQ-DDB-PIPE-005 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-PIPE-006 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env |
| REQ-DDB-PIPE-007 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates |
| REQ-DDB-PIPE-008 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs |
| REQ-DDB-PIPE-009 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges |
| REQ-DDB-PIPE-010 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges |
| REQ-DDB-PIPE-011 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes → run_harvest → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester |
| REQ-DDB-PIPE-013 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings |
| REQ-DDB-PIPE-014 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo |
| REQ-DDB-PIPE-015 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults |
| REQ-DDB-QUERY-003 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → mark_test_scope |
| REQ-DDB-QUERY-011 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables |
| REQ-DDB-SCHEMA-001 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads |
| REQ-DDB-SCHEMA-002 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map |
| REQ-DDB-SCHEMA-003 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-004 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest |
| REQ-DDB-SCHEMA-005 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes |
| REQ-DDB-SCHEMA-006 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-SCHEMA-007 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-009 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges |
| REQ-DDB-SCHEMA-011 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts |
| REQ-DDB-SCHEMA-012 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin |
| REQ-DDB-SCHEMA-013 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys |
| REQ-DDB-SCHEMA-014 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table |
| REQ-DDB-SCHEMA-015 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-WIKI-054 | inferred | test_a_private_scratch_directory_is_removed_after_the_build → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols → _recover_into → all |
Source · 14 lines
def test_a_private_scratch_directory_is_removed_after_the_build(tmp_path: Path) -> None:
"""@brief No-FS-bloat: the per-process doxygen directory does not outlive its build."""
made = {}
def inner(args):
made["dir"] = cli._doxygen_out_dir(args)
made["dir"].mkdir(parents=True)
(made["dir"] / "doxygen_sqlite3.db").write_text("x")
with _lock_yielding(False), mock.patch.object(cli, "_run_pipeline_inner", inner):
cli._run_pipeline(_pipeline_args(tmp_path))
assert not made["dir"].exists()
Activity · 5 steps
test_a_released_lock_is_taken_again
None test_build_shared_state.test_a_released_lock_is_taken_again(Path tmp_path)
Re-entrancy tracks the hold: after release, the next take really locks.
tests/test_build_shared_state.py:53
Checks
assert (first, second) == (True, True)
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-INDEX-002 | measured | test_a_released_lock_is_taken_again → build_lock |
Source · 9 lines
def test_a_released_lock_is_taken_again(tmp_path: Path) -> None:
"""@brief Re-entrancy tracks the hold: after release, the next take really locks."""
db = tmp_path / "clew.db"
with build_lock(db) as first:
pass
with build_lock(db) as second:
assert (first, second) == (True, True)
Activity · 5 steps
test_the_fast_tier_does_not_touch_the_cache_without_the_lock
None test_build_shared_state.test_the_fast_tier_does_not_touch_the_cache_without_the_lock(Path tmp_path)
Contended: the fast tier declines (None) before opening the shared cache.
tests/test_build_shared_state.py:137
Checks
assert fasttier.try_fast_refresh(db, tmp_path, cache) is None
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CONFIG-001 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → _fast_refresh_locked → _plan → config_inputs → load_declaration |
| REQ-DDB-GUARD-012 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → _fast_refresh_locked → _plan → config_inputs → load_declaration → load_declaration_located → _checked_sections → _checked_section → _checked_requirements → _validate_node |
| REQ-DDB-INDEX-002 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → build_lock |
| REQ-DDB-INDEX-006 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → _fast_refresh_locked → _apply → code_text_rows |
| REQ-DDB-INDEX-008 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → _fast_refresh_locked → _apply → refresh_text_layers → refresh_file_license → license_of → _license_of → spdx_of |
| REQ-DDB-INDEX-009 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → _fast_refresh_locked → _apply → refresh_text_layers → refresh_kerneldoc → kerneldoc_of → parse_kerneldoc |
| REQ-DDB-INDEX-010 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → _fast_refresh_locked → _apply → refresh_ast_includes |
| REQ-DDB-PIPE-003 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → _fast_refresh_locked → _plan → _line_anchors → _anchor_harvester → function_definition_harvester |
| REQ-DDB-PIPE-005 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → _fast_refresh_locked → _current_build → read_build_signature |
| REQ-DDB-PIPE-008 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → _fast_refresh_locked → _apply → refresh_text_layers → _refresh_file_doc → _doc_of → extract_file_doc |
| REQ-DDB-PIPE-011 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → _fast_refresh_locked → _plan → _line_anchors → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → _fast_refresh_locked → _plan → _line_anchors → _anchor_harvester → js_symbol_harvester |
| REQ-DDB-WIKI-054 | inferred | test_the_fast_tier_does_not_touch_the_cache_without_the_lock → try_fast_refresh → _fast_refresh_locked → _apply → all |
Source · 16 lines
def test_the_fast_tier_does_not_touch_the_cache_without_the_lock(tmp_path: Path) -> None:
"""@brief Contended: the fast tier declines (None) before opening the shared cache."""
db, cache = tmp_path / "clew.db", tmp_path / "clew.db.idxcache"
db.write_text("")
cache.write_text("")
@contextmanager
def contended(_output, wait_seconds=None): # noqa: ARG001
yield False
with (
mock.patch.object(fasttier, "build_lock", contended),
mock.patch.object(fasttier, "_current_build", return_value=True),
mock.patch.object(fasttier, "IndexCache", side_effect=AssertionError("cache opened")),
):
assert fasttier.try_fast_refresh(db, tmp_path, cache) is None1 more lines, not shown
Activity · 6 steps
test_the_lock_is_reentrant_within_a_process
None test_build_shared_state.test_the_lock_is_reentrant_within_a_process(Path tmp_path)
The MCP server holds it, then builds in-process: the inner take is held at once.
tests/test_build_shared_state.py:42
Checks
assert (outer, inner) == (True, True)assert elapsed < 1.0, f"the process waited {elapsed:.1f}s on a lock it already held"
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-INDEX-002 | measured | test_the_lock_is_reentrant_within_a_process → build_lock |
Source · 11 lines
def test_the_lock_is_reentrant_within_a_process(tmp_path: Path) -> None:
"""@brief The MCP server holds it, then builds in-process: the inner take is held at once."""
db = tmp_path / "clew.db"
with build_lock(db) as outer:
started = time.monotonic()
with build_lock(db, wait_seconds=2.0) as inner:
elapsed = time.monotonic() - started
assert (outer, inner) == (True, True)
assert elapsed < 1.0, f"the process waited {elapsed:.1f}s on a lock it already held"
Activity · 7 steps
test_unavailable_locking_keeps_the_shared_state
None test_build_shared_state.test_unavailable_locking_keeps_the_shared_state(Path tmp_path)
None (no locking on this platform): unchanged behaviour, the shared cache kept.
tests/test_build_shared_state.py:116
Checks
assert args.no_index_cache is Falseassert args.scratch == tmp_path / "clew.doxygen"
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CLI-001 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → report_stats |
| REQ-DDB-CLI-002 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → _doxygen_or_partial → _doxygen_stage → _run_doxygen_from_args → run_doxygen → doxygen_supports_sqlite3 |
| REQ-DDB-CONFIG-001 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _apply_declared_document → stated_document_meta |
| REQ-DDB-CONFIG-003 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml → _is_flat_req_list |
| REQ-DDB-CONFIG-004 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor |
| REQ-DDB-CONFIG-005 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig |
| REQ-DDB-CONFIG-006 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit |
| REQ-DDB-CONFIG-007 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-CONFIG-009 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config |
| REQ-DDB-GUARD-012 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → load_guard_config → read_guard_config → read_requirements_section |
| REQ-DDB-GUARD-019 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags |
| REQ-DDB-GUARD-024 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief |
| REQ-DDB-INDEX-001 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns |
| REQ-DDB-INDEX-002 | measured | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → build_lock |
| REQ-DDB-INDEX-003 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage |
| REQ-DDB-INDEX-004 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols |
| REQ-DDB-INDEX-005 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance |
| REQ-DDB-INDEX-006 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → record_code_text → code_text_rows |
| REQ-DDB-INDEX-007 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners |
| REQ-DDB-INDEX-008 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses |
| REQ-DDB-INDEX-009 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc |
| REQ-DDB-INDEX-010 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes |
| REQ-DDB-INDEX-011 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys |
| REQ-DDB-MCP-001 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _operator_excludes → meta_section |
| REQ-DDB-PIPE-001 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database |
| REQ-DDB-PIPE-003 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges |
| REQ-DDB-PIPE-004 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds |
| REQ-DDB-PIPE-005 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-PIPE-006 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env |
| REQ-DDB-PIPE-007 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates |
| REQ-DDB-PIPE-008 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs |
| REQ-DDB-PIPE-009 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges |
| REQ-DDB-PIPE-010 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges |
| REQ-DDB-PIPE-011 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes → run_harvest → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester |
| REQ-DDB-PIPE-013 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings |
| REQ-DDB-PIPE-014 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo |
| REQ-DDB-PIPE-015 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults |
| REQ-DDB-QUERY-003 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → mark_test_scope |
| REQ-DDB-QUERY-011 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables |
| REQ-DDB-SCHEMA-001 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads |
| REQ-DDB-SCHEMA-002 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map |
| REQ-DDB-SCHEMA-003 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-004 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest |
| REQ-DDB-SCHEMA-005 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes |
| REQ-DDB-SCHEMA-006 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-SCHEMA-007 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-009 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges |
| REQ-DDB-SCHEMA-011 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts |
| REQ-DDB-SCHEMA-012 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin |
| REQ-DDB-SCHEMA-013 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys |
| REQ-DDB-SCHEMA-014 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table |
| REQ-DDB-SCHEMA-015 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-WIKI-054 | inferred | test_unavailable_locking_keeps_the_shared_state → _seen_by_inner → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols → _recover_into → all |
Source · 7 lines
def test_unavailable_locking_keeps_the_shared_state(tmp_path: Path) -> None:
"""@brief None (no locking on this platform): unchanged behaviour, the shared cache kept."""
args = _seen_by_inner(tmp_path, None)
assert args.no_index_cache is False
assert args.scratch == tmp_path / "clew.doxygen"
Activity · 3 steps
test_unavailable_locking_yields_none
None test_build_shared_state.test_unavailable_locking_yields_none(Path tmp_path)
No `fcntl`: None, which is neither held nor contended.
tests/test_build_shared_state.py:62
Checks
assert held is None
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-INDEX-002 | measured | test_unavailable_locking_yields_none → build_lock |
Source · 8 lines
def test_unavailable_locking_yields_none(tmp_path: Path) -> None:
"""@brief No `fcntl`: None, which is neither held nor contended."""
with mock.patch.dict(sys.modules, {"fcntl": None}):
with build_lock(tmp_path / "clew.db") as held:
assert held is None
@contextmanager