Skip to content

test: delete the schema, walker and metadata inline mirror suites, 3,356 lines (B23) - #574

Merged
DrunkOnJava merged 2 commits into
mainfrom
tests/b23-schema-walker
Oct 3, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
tests/b23-schema-walker

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Unit-suite option (c), area schema, walker, metadata. The inline test modules of walker, formats, class_index, class_tag_map, es_refs, metadata, basic_file_info, part_atom, reader (preview_png_tests) and parse_mode build synthetic schema, stream and PNG bytes in each parser's own layout and assert its fields. The test-only helper walker::find_adocument_start goes with them. None of these tests ran in CI, and none in the area is tagged keep (BACKLOG.md, B23).

Coverage of the area:

  • real-file targets: samples, schema_registry_catalogs;
  • contract targets: field_type_coverage, json_schema_contracts;
  • CLI targets: rvt_info_cli, rvt_inspect_cli, rvt_dump_cli.

This lands only with their green run on this PR.

Lines removed: 3,356.


Note

Medium Risk
No parser logic changes, but a large block of fast unit coverage for formats/walker/metadata is gone; regressions depend on the listed external/contract tests catching gaps the inline suites used to pin.

Overview
Removes ~3,356 lines of inline #[cfg(test)] modules from schema, walker, metadata, and related parsers (formats, walker, basic_file_info, part_atom, metadata, parse_mode, class_index, class_tag_map, es_refs, reader). Those suites built synthetic UTF-16LE streams, schema bytes, and PNG fixtures inside each source file and asserted parser/writer behavior locally.

Production code change is minimal: the only non-test deletion is the test-only walker::find_adocument_start wrapper (call sites use find_adocument_start_with_schema / detection APIs elsewhere).

Intent per B23: these mirrors did not run in CI and duplicate coverage now expected from real-file (samples, schema catalogs), contract tests (field_type_coverage, json_schema_contracts), and CLI integration tests—with the PR gated on those staying green.

Reviewed by Cursor Bugbot for commit 54bcf19. Configure here.

…356 lines (B23)

Unit-suite option (c), area "schema, walker, metadata": the inline test
modules of walker.rs, formats.rs, class_index.rs, class_tag_map.rs,
es_refs.rs, metadata.rs, basic_file_info.rs, part_atom.rs, reader.rs
(preview_png_tests) and parse_mode.rs build synthetic schema, stream and
PNG bytes in each parser's own layout and assert its fields. The
test-only helper walker::find_adocument_start, whose only callers were
those tests, goes with them. None ran in CI, and no suite in the area is
tagged keep (BACKLOG.md, B23).

Coverage of the area is the real-file targets samples and
schema_registry_catalogs, the contract targets field_type_coverage and
json_schema_contracts, and the CLI targets rvt_info_cli, rvt_inspect_cli
and rvt_dump_cli; this deletion lands only with their green run on this
PR.

Lines removed: 3,356.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 3, 2026 11:19
@DrunkOnJava
DrunkOnJava merged commit 931dbed into main Oct 3, 2026
23 checks passed
@DrunkOnJava
DrunkOnJava deleted the tests/b23-schema-walker branch October 3, 2026 12:00
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
Phase 0 of session 2: repository state, test inventory, the property-set
gap after #603/#605/#608, RE-157's finding, and ranked items B26 to B43
with the 16 committed for this session. Also records #601 to #608 in
B21's progress and corrects the B23 table's stale statuses.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only maintainer backlog updates; no runtime, CI config,
or application code changes in this diff.
> 
> **Overview**
> Updates **`BACKLOG.md`** for maintainer **session 2 (2026-10-03)**:
session settings now record test policy **(a)** (leave remaining suites
untouched after B23), the **ordered committed queue** (B27→B33 and
related ids), and a fresh **Phase 0** snapshot (git/CI, unit-test
inventory post-mirror deletion, `psets_vs_ifc` gaps, RE-157 pipe inner
diameter).
> 
> Adds a **session-2 work table** for **B26–B43** (16 items committed,
B42/B43 blocked on models), extends the **B21 progress log** with
**#601–#608** and reframes still-open parameter/property-set work toward
the new items, logs **four session findings** (witness CI cycles/B27,
duct segment quirk, etc.), and **marks B23 mirror-deletion areas** as
done in **#574–#577** with Python kept under **B25**.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
502bb34. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant