test_fast_tier_definitions.py¶
tests/test_fast_tier_definitions.py
The fast tier accepts an added, removed or renamed function (PR1; 2.0.0).
test_a_c_function_added_in_place_has_its_span_and_callees
None test_fast_tier_definitions.test_a_c_function_added_in_place_has_its_span_and_callees(Path tmp_path)
The AST path (C/C++/Python), not only JS/TS.
tests/test_fast_tier_definitions.py:172
Checks
assert _fast(out).get("pending") == "1"assert _functions(out)["extra"] == _functions(reference)["extra"]assert _callees(out, "extra") == _callees(reference, "extra") == ["entry"]assert _dangling(out) == []
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CLI-001 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → report_stats |
| REQ-DDB-CLI-002 | inferred | test_a_c_function_added_in_place_has_its_span_and_callees → _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 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _apply_declared_document → stated_document_meta |
| REQ-DDB-CONFIG-003 | inferred | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml → _is_flat_req_list |
| REQ-DDB-CONFIG-004 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor |
| REQ-DDB-CONFIG-005 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig |
| REQ-DDB-CONFIG-006 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit |
| REQ-DDB-CONFIG-007 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-CONFIG-009 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config |
| REQ-DDB-GUARD-012 | inferred | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_guard_config → read_guard_config → read_requirements_section |
| REQ-DDB-GUARD-019 | inferred | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags |
| REQ-DDB-GUARD-024 | inferred | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief |
| REQ-DDB-INDEX-001 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns |
| REQ-DDB-INDEX-002 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → build_lock |
| REQ-DDB-INDEX-003 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage |
| REQ-DDB-INDEX-004 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols |
| REQ-DDB-INDEX-005 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance |
| REQ-DDB-INDEX-006 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → refresh_main |
| REQ-DDB-INDEX-007 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners |
| REQ-DDB-INDEX-008 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses |
| REQ-DDB-INDEX-009 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc |
| REQ-DDB-INDEX-010 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes |
| REQ-DDB-INDEX-011 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys |
| REQ-DDB-MCP-001 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → refresh_main → target_for |
| REQ-DDB-MCP-004 | measured | |
| REQ-DDB-PIPE-001 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database |
| REQ-DDB-PIPE-003 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges |
| REQ-DDB-PIPE-004 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds |
| REQ-DDB-PIPE-005 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-PIPE-006 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env |
| REQ-DDB-PIPE-007 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates |
| REQ-DDB-PIPE-008 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs |
| REQ-DDB-PIPE-009 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges |
| REQ-DDB-PIPE-010 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges |
| REQ-DDB-PIPE-011 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _plan → _line_anchors → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester |
| REQ-DDB-PIPE-013 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings |
| REQ-DDB-PIPE-014 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo |
| REQ-DDB-PIPE-015 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults |
| REQ-DDB-QUERY-003 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → mark_test_scope |
| REQ-DDB-QUERY-011 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables |
| REQ-DDB-SCHEMA-001 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads |
| REQ-DDB-SCHEMA-002 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map |
| REQ-DDB-SCHEMA-003 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-004 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest |
| REQ-DDB-SCHEMA-005 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes |
| REQ-DDB-SCHEMA-006 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-SCHEMA-007 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-009 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges |
| REQ-DDB-SCHEMA-011 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts |
| REQ-DDB-SCHEMA-012 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin |
| REQ-DDB-SCHEMA-013 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys |
| REQ-DDB-SCHEMA-014 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table |
| REQ-DDB-SCHEMA-015 | measured | test_a_c_function_added_in_place_has_its_span_and_callees → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-WIKI-054 | inferred | test_a_c_function_added_in_place_has_its_span_and_callees → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _apply → all |
Source · 13 lines
def test_a_c_function_added_in_place_has_its_span_and_callees(tmp_path: Path) -> None:
"""@brief The AST path (C/C++/Python), not only JS/TS."""
repo, out = _repo(tmp_path, "src/m.c", _C)
(repo / "src/m.c").write_text(_C + "\nint extra(int x)\n{\n return entry(x) * 2;\n}\n")
_build(repo, out, tier="fast")
assert _fast(out).get("pending") == "1"
reference = tmp_path / "full.db"
_build(repo, reference)
assert _functions(out)["extra"] == _functions(reference)["extra"]
assert _callees(out, "extra") == _callees(reference, "extra") == ["entry"]
assert _dangling(out) == []
Activity · 9 steps
test_a_js_files_module_row_spans_the_new_file
None test_fast_tier_definitions.test_a_js_files_module_row_spans_the_new_file(Path tmp_path)
After a fast refresh the module row ends where a full build's does.
tests/test_fast_tier_definitions.py:265
Checks
assert (sqlite3.connect(out).execute(q).fetchall() == sqlite3.connect(reference).execute(q).fetchall() )
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CLI-001 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → report_stats |
| REQ-DDB-CLI-002 | inferred | test_a_js_files_module_row_spans_the_new_file → _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 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _apply_declared_document → stated_document_meta |
| REQ-DDB-CONFIG-003 | inferred | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml → _is_flat_req_list |
| REQ-DDB-CONFIG-004 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor |
| REQ-DDB-CONFIG-005 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig |
| REQ-DDB-CONFIG-006 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit |
| REQ-DDB-CONFIG-007 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-CONFIG-009 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config |
| REQ-DDB-GUARD-012 | inferred | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_guard_config → read_guard_config → read_requirements_section |
| REQ-DDB-GUARD-019 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags |
| REQ-DDB-GUARD-020 | measured | |
| REQ-DDB-GUARD-024 | inferred | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief |
| REQ-DDB-GUARD-025 | measured | |
| REQ-DDB-INDEX-001 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns |
| REQ-DDB-INDEX-002 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → build_lock |
| REQ-DDB-INDEX-003 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage |
| REQ-DDB-INDEX-004 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols |
| REQ-DDB-INDEX-005 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance |
| REQ-DDB-INDEX-006 | measured | test_a_js_files_module_row_spans_the_new_file → _build → refresh_main |
| REQ-DDB-INDEX-007 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners |
| REQ-DDB-INDEX-008 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses |
| REQ-DDB-INDEX-009 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc |
| REQ-DDB-INDEX-010 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes |
| REQ-DDB-INDEX-011 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys |
| REQ-DDB-MCP-001 | measured | test_a_js_files_module_row_spans_the_new_file → _build → refresh_main → target_for |
| REQ-DDB-MCP-004 | measured | |
| REQ-DDB-PIPE-001 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database |
| REQ-DDB-PIPE-003 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges |
| REQ-DDB-PIPE-004 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds |
| REQ-DDB-PIPE-005 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-PIPE-006 | inferred | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env |
| REQ-DDB-PIPE-007 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates |
| REQ-DDB-PIPE-008 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs |
| REQ-DDB-PIPE-009 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges |
| REQ-DDB-PIPE-010 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges |
| REQ-DDB-PIPE-011 | measured | test_a_js_files_module_row_spans_the_new_file → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _plan → _line_anchors → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester |
| REQ-DDB-PIPE-013 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings |
| REQ-DDB-PIPE-014 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo |
| REQ-DDB-PIPE-015 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults |
| REQ-DDB-QUERY-003 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → mark_test_scope |
| REQ-DDB-QUERY-011 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables |
| REQ-DDB-SCHEMA-001 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads |
| REQ-DDB-SCHEMA-002 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map |
| REQ-DDB-SCHEMA-003 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-004 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest |
| REQ-DDB-SCHEMA-005 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes |
| REQ-DDB-SCHEMA-006 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-SCHEMA-007 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-009 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges |
| REQ-DDB-SCHEMA-011 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts |
| REQ-DDB-SCHEMA-012 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin |
| REQ-DDB-SCHEMA-013 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys |
| REQ-DDB-SCHEMA-014 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table |
| REQ-DDB-SCHEMA-015 | measured | test_a_js_files_module_row_spans_the_new_file → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-WIKI-054 | inferred | test_a_js_files_module_row_spans_the_new_file → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _apply → all |
Source · 20 lines
def test_a_js_files_module_row_spans_the_new_file(tmp_path: Path) -> None:
"""FOUND BY `incremental_probe fastcompare` on mattermost-mobile (PR1). A JS/TS file's
`__module__` row spans the whole file (its file-scope code), and the end of the file sits past
every anchor, so the line map left it at the OLD length: 8 where a full build has 12. Any edit
that changes a file's length did this, not only an added function.
@brief After a fast refresh the module row ends where a full build's does.
"""
repo, out = _repo(tmp_path, "src/widget.ts", _TS)
(repo / "src/widget.ts").write_text(
_TS + "\nexport function addedOne(): number {\n return 1;\n}\n"
)
_build(repo, out, tier="fast")
reference = tmp_path / "full.db"
_build(repo, reference)
q = "SELECT bodystart, bodyend FROM memberdef WHERE name = '__module__'"
assert (
sqlite3.connect(out).execute(q).fetchall()
== sqlite3.connect(reference).execute(q).fetchall()
)1 more lines, not shown
Activity · 7 steps
test_a_removed_function_leaves_no_row_and_no_dangling_reference
None test_fast_tier_definitions.test_a_removed_function_leaves_no_row_and_no_dangling_reference(Path tmp_path)
Its rows, and every row pointing at them, are gone.
tests/test_fast_tier_definitions.py:149
Checks
assert _fast(out).get("pending") == "1"assert "renderWidget" not in _functions(out)assert _dangling(out) == []
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CLI-001 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → report_stats |
| REQ-DDB-CLI-002 | inferred | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _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 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _apply_declared_document → stated_document_meta |
| REQ-DDB-CONFIG-003 | inferred | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml → _is_flat_req_list |
| REQ-DDB-CONFIG-004 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor |
| REQ-DDB-CONFIG-005 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig |
| REQ-DDB-CONFIG-006 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit |
| REQ-DDB-CONFIG-007 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-CONFIG-009 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config |
| REQ-DDB-GUARD-012 | inferred | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_guard_config → read_guard_config → read_requirements_section |
| REQ-DDB-GUARD-019 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags |
| REQ-DDB-GUARD-020 | measured | |
| REQ-DDB-GUARD-024 | inferred | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief |
| REQ-DDB-GUARD-025 | measured | |
| REQ-DDB-INDEX-001 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns |
| REQ-DDB-INDEX-002 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → build_lock |
| REQ-DDB-INDEX-003 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage |
| REQ-DDB-INDEX-004 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols |
| REQ-DDB-INDEX-005 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance |
| REQ-DDB-INDEX-006 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → refresh_main |
| REQ-DDB-INDEX-007 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners |
| REQ-DDB-INDEX-008 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses |
| REQ-DDB-INDEX-009 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc |
| REQ-DDB-INDEX-010 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes |
| REQ-DDB-INDEX-011 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys |
| REQ-DDB-MCP-001 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → refresh_main → target_for |
| REQ-DDB-MCP-004 | measured | |
| REQ-DDB-PIPE-001 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database |
| REQ-DDB-PIPE-003 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges |
| REQ-DDB-PIPE-004 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds |
| REQ-DDB-PIPE-005 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-PIPE-006 | inferred | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env |
| REQ-DDB-PIPE-007 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates |
| REQ-DDB-PIPE-008 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs |
| REQ-DDB-PIPE-009 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges |
| REQ-DDB-PIPE-010 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges |
| REQ-DDB-PIPE-011 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _plan → _line_anchors → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester |
| REQ-DDB-PIPE-013 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings |
| REQ-DDB-PIPE-014 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo |
| REQ-DDB-PIPE-015 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults |
| REQ-DDB-QUERY-003 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → mark_test_scope |
| REQ-DDB-QUERY-011 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables |
| REQ-DDB-SCHEMA-001 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads |
| REQ-DDB-SCHEMA-002 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map |
| REQ-DDB-SCHEMA-003 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-004 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest |
| REQ-DDB-SCHEMA-005 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes |
| REQ-DDB-SCHEMA-006 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-SCHEMA-007 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-009 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges |
| REQ-DDB-SCHEMA-011 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts |
| REQ-DDB-SCHEMA-012 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin |
| REQ-DDB-SCHEMA-013 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys |
| REQ-DDB-SCHEMA-014 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table |
| REQ-DDB-SCHEMA-015 | measured | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-WIKI-054 | inferred | test_a_removed_function_leaves_no_row_and_no_dangling_reference → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _apply → all |
Source · 10 lines
def test_a_removed_function_leaves_no_row_and_no_dangling_reference(tmp_path: Path) -> None:
"""@brief Its rows, and every row pointing at them, are gone."""
repo, out = _repo(tmp_path, "src/widget.ts", _TS)
(repo / "src/widget.ts").write_text(_TS.split("export function renderWidget")[0])
_build(repo, out, tier="fast")
assert _fast(out).get("pending") == "1"
assert "renderWidget" not in _functions(out)
assert _dangling(out) == []
Activity · 6 steps
test_a_renamed_function_is_the_old_removed_and_the_new_added
None test_fast_tier_definitions.test_a_renamed_function_is_the_old_removed_and_the_new_added(Path tmp_path)
Old name gone, new present at the full build's span.
tests/test_fast_tier_definitions.py:159
Checks
assert _fast(out).get("pending") == "1"assert _functions(out) == _functions(reference)assert "renderWidget" not in _functions(out)assert _dangling(out) == []
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CLI-001 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → report_stats |
| REQ-DDB-CLI-002 | inferred | test_a_renamed_function_is_the_old_removed_and_the_new_added → _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 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _apply_declared_document → stated_document_meta |
| REQ-DDB-CONFIG-003 | inferred | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml → _is_flat_req_list |
| REQ-DDB-CONFIG-004 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor |
| REQ-DDB-CONFIG-005 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig |
| REQ-DDB-CONFIG-006 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit |
| REQ-DDB-CONFIG-007 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-CONFIG-009 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config |
| REQ-DDB-GUARD-012 | inferred | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_guard_config → read_guard_config → read_requirements_section |
| REQ-DDB-GUARD-019 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags |
| REQ-DDB-GUARD-020 | measured | |
| REQ-DDB-GUARD-024 | inferred | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief |
| REQ-DDB-GUARD-025 | measured | |
| REQ-DDB-INDEX-001 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns |
| REQ-DDB-INDEX-002 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → build_lock |
| REQ-DDB-INDEX-003 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage |
| REQ-DDB-INDEX-004 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols |
| REQ-DDB-INDEX-005 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance |
| REQ-DDB-INDEX-006 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → refresh_main |
| REQ-DDB-INDEX-007 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners |
| REQ-DDB-INDEX-008 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses |
| REQ-DDB-INDEX-009 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc |
| REQ-DDB-INDEX-010 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes |
| REQ-DDB-INDEX-011 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys |
| REQ-DDB-MCP-001 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → refresh_main → target_for |
| REQ-DDB-MCP-004 | measured | |
| REQ-DDB-PIPE-001 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database |
| REQ-DDB-PIPE-003 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges |
| REQ-DDB-PIPE-004 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds |
| REQ-DDB-PIPE-005 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-PIPE-006 | inferred | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env |
| REQ-DDB-PIPE-007 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates |
| REQ-DDB-PIPE-008 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs |
| REQ-DDB-PIPE-009 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges |
| REQ-DDB-PIPE-010 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges |
| REQ-DDB-PIPE-011 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _plan → _line_anchors → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester |
| REQ-DDB-PIPE-013 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings |
| REQ-DDB-PIPE-014 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo |
| REQ-DDB-PIPE-015 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults |
| REQ-DDB-QUERY-003 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → mark_test_scope |
| REQ-DDB-QUERY-011 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables |
| REQ-DDB-SCHEMA-001 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads |
| REQ-DDB-SCHEMA-002 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map |
| REQ-DDB-SCHEMA-003 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-004 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest |
| REQ-DDB-SCHEMA-005 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes |
| REQ-DDB-SCHEMA-006 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-SCHEMA-007 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-009 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges |
| REQ-DDB-SCHEMA-011 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts |
| REQ-DDB-SCHEMA-012 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin |
| REQ-DDB-SCHEMA-013 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys |
| REQ-DDB-SCHEMA-014 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table |
| REQ-DDB-SCHEMA-015 | measured | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-WIKI-054 | inferred | test_a_renamed_function_is_the_old_removed_and_the_new_added → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _apply → all |
Source · 13 lines
def test_a_renamed_function_is_the_old_removed_and_the_new_added(tmp_path: Path) -> None:
"""@brief Old name gone, new present at the full build's span."""
repo, out = _repo(tmp_path, "src/widget.ts", _TS)
(repo / "src/widget.ts").write_text(_TS.replace("renderWidget", "drawWidget"))
_build(repo, out, tier="fast")
assert _fast(out).get("pending") == "1"
reference = tmp_path / "full.db"
_build(repo, reference)
assert _functions(out) == _functions(reference)
assert "renderWidget" not in _functions(out)
assert _dangling(out) == []
Activity · 9 steps
test_an_added_class_still_takes_the_full_build
None test_fast_tier_definitions.test_an_added_class_still_takes_the_full_build(Path tmp_path)
Reconciliation is for functions; any other definition change is refused.
tests/test_fast_tier_definitions.py:185
Checks
assert _fast(out).get("pending") != "1"assert "spin" in _functions(out)
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CLI-001 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → report_stats |
| REQ-DDB-CLI-002 | inferred | test_an_added_class_still_takes_the_full_build → _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 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _apply_declared_document → stated_document_meta |
| REQ-DDB-CONFIG-003 | inferred | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml → _is_flat_req_list |
| REQ-DDB-CONFIG-004 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor |
| REQ-DDB-CONFIG-005 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig |
| REQ-DDB-CONFIG-006 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit |
| REQ-DDB-CONFIG-007 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-CONFIG-009 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config |
| REQ-DDB-GUARD-012 | inferred | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_guard_config → read_guard_config → read_requirements_section |
| REQ-DDB-GUARD-019 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags |
| REQ-DDB-GUARD-020 | measured | |
| REQ-DDB-GUARD-024 | inferred | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief |
| REQ-DDB-GUARD-025 | measured | |
| REQ-DDB-INDEX-001 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns |
| REQ-DDB-INDEX-002 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → build_lock |
| REQ-DDB-INDEX-003 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage |
| REQ-DDB-INDEX-004 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols |
| REQ-DDB-INDEX-005 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance |
| REQ-DDB-INDEX-006 | measured | test_an_added_class_still_takes_the_full_build → _build → refresh_main |
| REQ-DDB-INDEX-007 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners |
| REQ-DDB-INDEX-008 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses |
| REQ-DDB-INDEX-009 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc |
| REQ-DDB-INDEX-010 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes |
| REQ-DDB-INDEX-011 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys |
| REQ-DDB-MCP-001 | measured | test_an_added_class_still_takes_the_full_build → _build → refresh_main → target_for |
| REQ-DDB-MCP-004 | measured | |
| REQ-DDB-PIPE-001 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database |
| REQ-DDB-PIPE-003 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges |
| REQ-DDB-PIPE-004 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds |
| REQ-DDB-PIPE-005 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-PIPE-006 | inferred | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env |
| REQ-DDB-PIPE-007 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates |
| REQ-DDB-PIPE-008 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs |
| REQ-DDB-PIPE-009 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges |
| REQ-DDB-PIPE-010 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges |
| REQ-DDB-PIPE-011 | measured | test_an_added_class_still_takes_the_full_build → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _plan → _line_anchors → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester |
| REQ-DDB-PIPE-013 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings |
| REQ-DDB-PIPE-014 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo |
| REQ-DDB-PIPE-015 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults |
| REQ-DDB-QUERY-003 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → mark_test_scope |
| REQ-DDB-QUERY-011 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables |
| REQ-DDB-SCHEMA-001 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads |
| REQ-DDB-SCHEMA-002 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map |
| REQ-DDB-SCHEMA-003 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-004 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest |
| REQ-DDB-SCHEMA-005 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes |
| REQ-DDB-SCHEMA-006 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-SCHEMA-007 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-009 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges |
| REQ-DDB-SCHEMA-011 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts |
| REQ-DDB-SCHEMA-012 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin |
| REQ-DDB-SCHEMA-013 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys |
| REQ-DDB-SCHEMA-014 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table |
| REQ-DDB-SCHEMA-015 | measured | test_an_added_class_still_takes_the_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-WIKI-054 | inferred | test_an_added_class_still_takes_the_full_build → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _apply → all |
Source · 11 lines
def test_an_added_class_still_takes_the_full_build(tmp_path: Path) -> None:
"""@brief Reconciliation is for functions; any other definition change is refused."""
repo, out = _repo(tmp_path, "src/widget.ts", _TS)
(repo / "src/widget.ts").write_text(
_TS + "\nexport class Gadget {\n spin(): number { return 1; }\n}\n"
)
_build(repo, out, tier="auto")
assert _fast(out).get("pending") != "1"
assert "spin" in _functions(out)
Activity · 5 steps
test_an_added_function_is_refreshed_in_place
None test_fast_tier_definitions.test_an_added_function_is_refreshed_in_place(Path tmp_path)
The fast tier runs; the new function has its row, span and outgoing edges.
tests/test_fast_tier_definitions.py:127
Checks
assert fast.get("pending") == "1", f"the fast tier did not run: {fast}"assert "newWidget" in fast.get("provisional", "").split(",")assert _functions(out) == _functions(reference)assert _callees(out, "newWidget") == _callees(reference, "newWidget") == ["renderWidget"]assert _dangling(out) == []
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CLI-001 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → report_stats |
| REQ-DDB-CLI-002 | inferred | test_an_added_function_is_refreshed_in_place → _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 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _apply_declared_document → stated_document_meta |
| REQ-DDB-CONFIG-003 | inferred | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml → _is_flat_req_list |
| REQ-DDB-CONFIG-004 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor |
| REQ-DDB-CONFIG-005 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig |
| REQ-DDB-CONFIG-006 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit |
| REQ-DDB-CONFIG-007 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-CONFIG-009 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config |
| REQ-DDB-GUARD-012 | inferred | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_guard_config → read_guard_config → read_requirements_section |
| REQ-DDB-GUARD-019 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags |
| REQ-DDB-GUARD-020 | measured | |
| REQ-DDB-GUARD-024 | inferred | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief |
| REQ-DDB-GUARD-025 | measured | |
| REQ-DDB-INDEX-001 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns |
| REQ-DDB-INDEX-002 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → build_lock |
| REQ-DDB-INDEX-003 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage |
| REQ-DDB-INDEX-004 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols |
| REQ-DDB-INDEX-005 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance |
| REQ-DDB-INDEX-006 | measured | test_an_added_function_is_refreshed_in_place → _build → refresh_main |
| REQ-DDB-INDEX-007 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners |
| REQ-DDB-INDEX-008 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses |
| REQ-DDB-INDEX-009 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc |
| REQ-DDB-INDEX-010 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes |
| REQ-DDB-INDEX-011 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys |
| REQ-DDB-MCP-001 | measured | test_an_added_function_is_refreshed_in_place → _build → refresh_main → target_for |
| REQ-DDB-MCP-004 | measured | |
| REQ-DDB-PIPE-001 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database |
| REQ-DDB-PIPE-003 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges |
| REQ-DDB-PIPE-004 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds |
| REQ-DDB-PIPE-005 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-PIPE-006 | inferred | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env |
| REQ-DDB-PIPE-007 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates |
| REQ-DDB-PIPE-008 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs |
| REQ-DDB-PIPE-009 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges |
| REQ-DDB-PIPE-010 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges |
| REQ-DDB-PIPE-011 | measured | test_an_added_function_is_refreshed_in_place → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _plan → _line_anchors → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester |
| REQ-DDB-PIPE-013 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings |
| REQ-DDB-PIPE-014 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo |
| REQ-DDB-PIPE-015 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults |
| REQ-DDB-QUERY-003 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → mark_test_scope |
| REQ-DDB-QUERY-011 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables |
| REQ-DDB-SCHEMA-001 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads |
| REQ-DDB-SCHEMA-002 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map |
| REQ-DDB-SCHEMA-003 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-004 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest |
| REQ-DDB-SCHEMA-005 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes |
| REQ-DDB-SCHEMA-006 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-SCHEMA-007 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-009 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges |
| REQ-DDB-SCHEMA-011 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts |
| REQ-DDB-SCHEMA-012 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin |
| REQ-DDB-SCHEMA-013 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys |
| REQ-DDB-SCHEMA-014 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table |
| REQ-DDB-SCHEMA-015 | measured | test_an_added_function_is_refreshed_in_place → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-WIKI-054 | inferred | test_an_added_function_is_refreshed_in_place → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _apply → all |
Source · 22 lines
def test_an_added_function_is_refreshed_in_place(tmp_path: Path) -> None:
"""THE CASE PR1 IS FOR. Replaces the 1.3.5 test that specified a full-build fallback here.
@brief The fast tier runs; the new function has its row, span and outgoing edges.
"""
repo, out = _repo(tmp_path, "src/widget.ts", _TS)
added = (
_TS
+ "\nexport function newWidget(id: string): number {\n return renderWidget(id) * 2;\n}\n"
)
(repo / "src/widget.ts").write_text(added)
_build(repo, out, tier="fast")
fast = _fast(out)
assert fast.get("pending") == "1", f"the fast tier did not run: {fast}"
assert "newWidget" in fast.get("provisional", "").split(",")
reference = tmp_path / "full.db"
_build(repo, reference)
assert _functions(out) == _functions(reference)
assert _callees(out, "newWidget") == _callees(reference, "newWidget") == ["renderWidget"]
assert _dangling(out) == []
Activity · 12 steps
test_two_fast_refreshes_of_a_c_file_do_not_crash
None test_fast_tier_definitions.test_two_fast_refreshes_of_a_c_file_do_not_crash(Path tmp_path)
The AST writer's refid (file, line, name) must not be re-inserted.
tests/test_fast_tier_definitions.py:250
Checks
assert _fast(out).get("pending") == "1"assert _functions(out)["more"] == _functions(reference)["more"]assert _functions(out)["extra"] == _functions(reference)["extra"]
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CLI-001 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → report_stats |
| REQ-DDB-CLI-002 | inferred | test_two_fast_refreshes_of_a_c_file_do_not_crash → _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 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _apply_declared_document → stated_document_meta |
| REQ-DDB-CONFIG-003 | inferred | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml → _is_flat_req_list |
| REQ-DDB-CONFIG-004 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor |
| REQ-DDB-CONFIG-005 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig |
| REQ-DDB-CONFIG-006 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit |
| REQ-DDB-CONFIG-007 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-CONFIG-009 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config |
| REQ-DDB-GUARD-012 | inferred | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_guard_config → read_guard_config → read_requirements_section |
| REQ-DDB-GUARD-019 | inferred | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags |
| REQ-DDB-GUARD-024 | inferred | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief |
| REQ-DDB-INDEX-001 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns |
| REQ-DDB-INDEX-002 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → build_lock |
| REQ-DDB-INDEX-003 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage |
| REQ-DDB-INDEX-004 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols |
| REQ-DDB-INDEX-005 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance |
| REQ-DDB-INDEX-006 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → refresh_main |
| REQ-DDB-INDEX-007 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners |
| REQ-DDB-INDEX-008 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses |
| REQ-DDB-INDEX-009 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc |
| REQ-DDB-INDEX-010 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes |
| REQ-DDB-INDEX-011 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys |
| REQ-DDB-MCP-001 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → refresh_main → target_for |
| REQ-DDB-MCP-004 | measured | |
| REQ-DDB-PIPE-001 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database |
| REQ-DDB-PIPE-003 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges |
| REQ-DDB-PIPE-004 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds |
| REQ-DDB-PIPE-005 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-PIPE-006 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env |
| REQ-DDB-PIPE-007 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates |
| REQ-DDB-PIPE-008 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs |
| REQ-DDB-PIPE-009 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges |
| REQ-DDB-PIPE-010 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges |
| REQ-DDB-PIPE-011 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _plan → _line_anchors → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester |
| REQ-DDB-PIPE-013 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings |
| REQ-DDB-PIPE-014 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo |
| REQ-DDB-PIPE-015 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults |
| REQ-DDB-QUERY-003 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → mark_test_scope |
| REQ-DDB-QUERY-011 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables |
| REQ-DDB-SCHEMA-001 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads |
| REQ-DDB-SCHEMA-002 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map |
| REQ-DDB-SCHEMA-003 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-004 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest |
| REQ-DDB-SCHEMA-005 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes |
| REQ-DDB-SCHEMA-006 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-SCHEMA-007 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-009 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges |
| REQ-DDB-SCHEMA-011 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts |
| REQ-DDB-SCHEMA-012 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin |
| REQ-DDB-SCHEMA-013 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys |
| REQ-DDB-SCHEMA-014 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table |
| REQ-DDB-SCHEMA-015 | measured | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-WIKI-054 | inferred | test_two_fast_refreshes_of_a_c_file_do_not_crash → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _apply → all |
Source · 15 lines
def test_two_fast_refreshes_of_a_c_file_do_not_crash(tmp_path: Path) -> None:
"""@brief The AST writer's refid (file, line, name) must not be re-inserted."""
repo, out = _repo(tmp_path, "src/m.c", _C)
one = _C + "\nint extra(int x)\n{\n return entry(x) * 2;\n}\n"
(repo / "src/m.c").write_text(one)
_build(repo, out, tier="fast")
(repo / "src/m.c").write_text(one + "\nint more(int x)\n{\n return extra(x);\n}\n")
_build(repo, out, tier="fast")
assert _fast(out).get("pending") == "1"
reference = tmp_path / "full.db"
_build(repo, reference)
assert _functions(out)["more"] == _functions(reference)["more"]
assert _functions(out)["extra"] == _functions(reference)["extra"]
Activity · 11 steps
test_two_fast_refreshes_of_one_file_match_a_full_build
None test_fast_tier_definitions.test_two_fast_refreshes_of_one_file_match_a_full_build(Path tmp_path)
Two consecutive line-shifting edits plus two adds: spans equal a full build's.
tests/test_fast_tier_definitions.py:225
Checks
assert fast.get("pending") == "1", f"the second fast refresh did not run: {fast}"assert set(fast.get("provisional", "").split(",")) == {"addedOne", "addedTwo"}assert _functions(out) == _functions(reference)assert _dangling(out) == []
Result: passed
Verifies
| requirement | linked | path to the implementer |
|---|---|---|
| REQ-DDB-CLI-001 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → report_stats |
| REQ-DDB-CLI-002 | inferred | test_two_fast_refreshes_of_one_file_match_a_full_build → _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 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _apply_declared_document → stated_document_meta |
| REQ-DDB-CONFIG-003 | inferred | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml → _is_flat_req_list |
| REQ-DDB-CONFIG-004 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_preprocessor |
| REQ-DDB-CONFIG-005 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig |
| REQ-DDB-CONFIG-006 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _recorded_entry_patterns → recorded_explicit |
| REQ-DDB-CONFIG-007 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-CONFIG-009 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _apply_toolchain_exclusions → load_toolchain_config |
| REQ-DDB-GUARD-012 | inferred | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_guard_config → read_guard_config → read_requirements_section |
| REQ-DDB-GUARD-019 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → parse_doxygen_tags |
| REQ-DDB-GUARD-020 | measured | |
| REQ-DDB-GUARD-024 | inferred | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings → summarize → apply_autobrief |
| REQ-DDB-GUARD-025 | measured | |
| REQ-DDB-INDEX-001 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _verify_extra_input_is_read → effective_file_patterns |
| REQ-DDB-INDEX-002 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → build_lock |
| REQ-DDB-INDEX-003 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → report_index_coverage |
| REQ-DDB-INDEX-004 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → recover_ast_symbols |
| REQ-DDB-INDEX-005 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → stamp_external_provenance |
| REQ-DDB-INDEX-006 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → refresh_main |
| REQ-DDB-INDEX-007 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → record_owners |
| REQ-DDB-INDEX-008 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_licenses |
| REQ-DDB-INDEX-009 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc |
| REQ-DDB-INDEX-010 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_ast_includes |
| REQ-DDB-INDEX-011 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_property_keys |
| REQ-DDB-MCP-001 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → refresh_main → target_for |
| REQ-DDB-MCP-004 | measured | |
| REQ-DDB-PIPE-001 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_database |
| REQ-DDB-PIPE-003 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_call_edges |
| REQ-DDB-PIPE-004 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → python_entry_seeds |
| REQ-DDB-PIPE-005 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → write_build_signature |
| REQ-DDB-PIPE-006 | inferred | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → run_rustdoc → _require_nightly_rustdoc → clean_subprocess_env |
| REQ-DDB-PIPE-007 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_kconfig_gates |
| REQ-DDB-PIPE-008 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs |
| REQ-DDB-PIPE-009 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → prune_dominated_fuzzy_call_edges |
| REQ-DDB-PIPE-010 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _build_inferred_edges |
| REQ-DDB-PIPE-011 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _plan → _line_anchors → _harvest_one_file → _parseable_file |
| REQ-DDB-PIPE-012 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → build_harvest_plan → js_symbol_harvester |
| REQ-DDB-PIPE-013 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → enrich_python_docstrings |
| REQ-DDB-PIPE-014 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_kerneldoc → within_repo |
| REQ-DDB-PIPE-015 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_config_defaults |
| REQ-DDB-QUERY-003 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → mark_test_scope |
| REQ-DDB-QUERY-011 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads → _ensure_threads_tables |
| REQ-DDB-SCHEMA-001 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_threads |
| REQ-DDB-SCHEMA-002 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_shared_key_edges_inferred → _writer_dispatch_map |
| REQ-DDB-SCHEMA-003 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-004 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest |
| REQ-DDB-SCHEMA-005 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → resolve_key_alias_prefixes |
| REQ-DDB-SCHEMA-006 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-SCHEMA-007 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_callback_registration_edges → _ensure_external_boundaries_table |
| REQ-DDB-SCHEMA-009 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_event_edges |
| REQ-DDB-SCHEMA-011 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → extract_context_conflicts |
| REQ-DDB-SCHEMA-012 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → load_dispatch_manifest → declaration_origin |
| REQ-DDB-SCHEMA-013 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → import_data_model_keys |
| REQ-DDB-SCHEMA-014 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_file_docs → ensure_file_docs_table |
| REQ-DDB-SCHEMA-015 | measured | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → _run_pipeline → _run_pipeline_inner → _build_stages → ingest_requirements_yaml |
| REQ-DDB-WIKI-054 | inferred | test_two_fast_refreshes_of_one_file_match_a_full_build → _build → refresh_main → try_fast_refresh → _fast_refresh_locked → _apply → all |
Source · 25 lines
def test_two_fast_refreshes_of_one_file_match_a_full_build(tmp_path: Path) -> None:
"""FOUND BY `incremental_probe fastcompare` (PR1). The baseline was always the last FULL build's
content, so a second fast refresh of the same file mapped those lines onto rows the first had
already moved (a double shift), and re-added a function the first had already added (a
`refid` UNIQUE failure that crashed `clew refresh`). The baseline is now the content the index
last described, full or fast.
@brief Two consecutive line-shifting edits plus two adds: spans equal a full build's.
"""
repo, out = _repo(tmp_path, "src/widget.ts", _TS)
first = "// one\n// two\n" + _TS + "\nexport function addedOne(): number {\n return 1;\n}\n"
(repo / "src/widget.ts").write_text(first)
_build(repo, out, tier="fast")
second = "// zero\n" + first + "\nexport function addedTwo(): number {\n return 2;\n}\n"
(repo / "src/widget.ts").write_text(second)
_build(repo, out, tier="fast")
fast = _fast(out)
assert fast.get("pending") == "1", f"the second fast refresh did not run: {fast}"
assert set(fast.get("provisional", "").split(",")) == {"addedOne", "addedTwo"}
reference = tmp_path / "full.db"
_build(repo, reference)
assert _functions(out) == _functions(reference)
assert _dangling(out) == []