Repository navigation
test: delete the never-run unit tests in src, with end-to-end checks where nothing else covered them - #1126
Merged
Conversation
…where nothing else covered them Griffin's decision (2026-10-30): the #[cfg(test)] modules in src/ go. CI never ran them; it runs only the real-file, CLI, contract and hardening targets that tools/ci/test-targets.txt classes. The last commit with them is archived at refs/archive/2026-10-30/src-unit-tests. ifc/measure.rs keeps its module until the unused-API change removes the file. Where a deleted test covered behaviour no other CI check exercised, an end-to-end check now does: - rvt-write's base64 manifest form: cli_real_files sends Global/Latest's bytes as new_decompressed_base64 (Formats/Latest stays inline). - Redaction: rvt-analyze --json --redact over the family corpus leaves no user folder, Autodesk OneDrive path or project-id folder, where the unredacted reports name some. - ProjectInformation: the two MIT magnetar projects' titles are the names they were saved under, read through the reader's inflate limit.
…e (the last title-like element)
DrunkOnJava
enabled auto-merge (squash)
October 30, 2026 07:41
This was referenced Oct 30, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Oct 30, 2026
## Summary Ten rows of `docs/support-matrix.json` cited unit tests or "unit gates" in research modules as evidence. #1126 deleted every `src/` unit test, so those citations pointed at tests that no longer exist. The rows now cite only what still runs: the integration tests under `tests/`, the probes, the scorers and the reports. ## Motivation The support matrix is the honesty ledger (`tests/support_matrix.rs`); evidence that names deleted tests overstates what is checked. Found while moving the research modules (#1139). ## Changes - `docs/support-matrix.json`: rows `element-record-stair-dimensions`, `element-record-beam-axes`, `element-record-roof-outlines`, `element-record-stair-treads`, `revit-global-ids`, `element-record-slab-plan-profile`, `element-record-wall-join-trim`, `element-record-column-type-symbol`, `element-record-wall-type-join` and `record-level-storeys-2025` lose their unit-test clauses. No status changes: every row is `partial`, and each keeps its integration tests, probes and reports. ## Testing N/A for behaviour: evidence text only. Checked that every `tests/<file>.rs::<fn>` the rows still cite exists, and that the file parses as JSON. ## Audit-honesty checklist - [x] Docs reflect the current state: no evidence names a deleted test - [x] No user-visible change, so no changelog fragment - [x] No emojis, private paths or internal jargon ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content ## Breaking changes None.
2 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Oct 30, 2026
…be unit-tested (#1149) ## Summary One rustdoc line in `src/research/partition_schema_mvp/records.rs` said `instances_from_records` was split out 'so the rule is unit-testable without a corpus file'. #1126 deleted every `src` unit test, so the line now just describes the function. ## Motivation Found while removing the support matrix's citations of the deleted unit tests (#1142). It waited for the split (#1141) so the two would not conflict. ## Testing N/A: one doc line. `rustfmt --check` passes. ## Audit-honesty checklist - [x] No claim of tests that do not exist - [x] No changelog fragment (no user-visible change) ## Breaking changes None.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 31, 2026
…what the code does now (#1219) Comments only; no code changes. From a read-only code-quality pass over `src/` (files open PRs are editing were left alone). - **Planning labels:** 26 plain `//` comments carried planning labels (`SEC-12`, `WRT-05`, `L5B-09.4`, `B70` and others) outside a `// Tracker:` line. CLAUDE.md keeps those labels to Tracker lines. `tools/ci/api-doc-ids.py` checks only `///` and `//!`, so CI never caught these. Each label now sits on its own `// Tracker:` line, or is dropped where the label added nothing, and the sentence explaining why stays. - **Stale comments:** - `redact.rs` pointed to tests below that no longer exist (#1126). - `corpus.rs` documented an `invariant_run_threshold` option that does not exist; runs are at least 8 bytes. - `walker.rs` justified a default with test fixtures that no longer exist. - `partition_ifc_export_overrides.rs` called the owner-offset read "kept for API compatibility", yet nothing calls it. - `elem_table.rs` described the rough parser as kept for old callers; the ElemTable probes and examples are what use it. No changelog fragment (no user-visible change).
6 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 3, 2026
… provenance lines agree with the reports, and it states the partial-mesh box rule (RE-224) (#1259) ## Summary Two reviews of the README found statements that contradict each other or the reports. This fixes them in place; a second PR will slim the README and render its compatibility table from `docs/support-matrix.json`. ## Motivation A reader who finds one contradiction starts doubting the measured numbers too. Each correction below takes its figure from the report or commit that measured it. ## Changes - **Revit 2008 to 2014:** the IFC elements row, the element-extraction gap, the MVP workflow, the "Revit 2016 to 2027 files" bullet and the viewer paragraph now agree with the by-input rows. Since RE-259 and RE-260, 2008 to 2014 element records decode experimentally, outside the 1.0 range, on local files only. The 2015 to 2018 row no longer says 2014's records are not read. - **Revit 2015 to 2022, 2026 and 2027:** the MVP workflow no longer says "treat IFC export as the spatial scaffold". It says the export is experimental, as the by-input table does, and that each row says what its release is measured against. The lead paragraph names 2008 to 2022, and the gap row adds the one 2015 project measured against Revit's export (RE-198). - **Before Revit 2008:** files are not read (the reader's year floor is 2008), where the README said they give the spatial scaffold. - **Revit 2023:** the gap row lists what the by-input table measures, not RE-81's first "identity, category and box". - **Geometry row:** doors and windows are drawn from saved meshes by default since 0.11.0, not boxes. - **CSV schedules:** typed on every release whose element records decode, not 2024 only. - **Layer 5a walker:** it says elements come from partition records, so the walker's 2024 to 2026 range does not limit element recovery. - **Snowdon Towers figures:** - 126 doors, not 132 (RE-94 and its opening report; 132 is Core Interior's). - Both wall ends on 724, not 716 (#446, RE-86, moved the walls row from 716 to 724 and missed the gap row). - Wall names over the 1,077 walls RE-63 matches by `Tag`. - **Office wall heights:** the 579 is the office walls Revit's export gives a `Height` (RE-257). - **Schema release counts:** 12 releases (2016 to 2027) where the text is current; the whole-schema field count gives both the 11-release and 12-release figures. - **Type `IsExternal`:** sourced to RE-286 §3's measurement, not "the maintainer". - **Symbol cross-check:** "every class and field name" becomes "the class names, by sample". - **`encoding_rs`:** std does not panic on malformed UTF-16; `String::from_utf16` rejects the string, while `encoding_rs` replaces the pair. The README and the `Cargo.toml` comment say so. - **Contributors and Scalar-Container gap:** the pre-policy unit tests were removed from the crate's source (#1126), not kept unrun, the Scalar-Container round-trip tests among them. - **Provenance:** the licence section lists the sources `CLEANROOM.md` accepts. Besides file bytes and `RevitAPI.dll` symbol names, these are published reverse-engineering work, buildingSMART's specifications, and `revit-ifc`, read for what Revit's export writes and never for the file format. The README already cites `revit-ifc` in several places. - **New:** one sentence says what a "Measure run" and an RE number are. The geometry gap states the RE-224 rule: since 0.9.0, a saved mesh with any undecoded part keeps its element's box, and `rvt-ifc` counts those elements. This rule is behind #1247. - **Viewer:** the workflow note in `viewer/index.html` names 2008 to 2022 as experimental. ## Testing N/A for code: docs, a `Cargo.toml` comment and one viewer text line only. A review read every changed line against the reports, `CLEANROOM.md`, `CHANGELOG.md` and the source. Its four blocking findings (the 2026 and pre-2015 measurement wording, the version of the partial-mesh rule, the Scalar-Container tests, the 2008 to 2015 bullet) are fixed in 7516668. `tools/ci/api-doc-ids.py` passes, so every cited RE number has a report. The checks that read the README (`tests/binary_inventory.rs`, `tools/ci/wasm-api.py`, `tests/python/test_docs_python.py`) read text this does not change. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] No user-visible capability change, so no changelog fragment - [x] Commit message describes what and why - [x] No emojis, private paths or internal jargon added ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary source (see `CLEANROOM.md`) ## Breaking changes None.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This deletes the
#[cfg(test)]modules in 13src/files: 1,786 lines that CI compiled under--all-targetsbut never ran. Three behaviours they covered had no other CI check, and each now gets an end-to-end check against real files.Motivation
This is Griffin's decision of 2026-10-30, from a repository audit. Unit tests are banned, and CI runs only the real-file, CLI, contract and hardening targets that
tools/ci/test-targets.txtclasses. The last commit with the modules is archived atrefs/archive/2026-10-30/src-unit-tests.src/ifc/measure.rskeeps its module until the unused-API change removes the whole file.What still checks each module's behaviour
bin/rvt_ifc.rs(STEP read-back)tests/witness_verdict.rsand CI's IfcOpenShell job against IfcOpenShell and IFClitebin/rvt_write.rs(base64 manifest)cli_real_filessendsGlobal/Latest's bytes asnew_decompressed_base64compression.rsresource_limits_cli(#1075),fuzz_regressions, the fuzz targets, andcli_real_files' rvt-write round trip (encoder).control.rsrvt_gltf_progress_cli(progress and cancellation)elem_table.rselem_table_corpus,elem_table_frameifc/body_geometry.rsqtos_vs_ifcand body scorers;duct_fields,segment_lengthifc/pbr.rsglb_material_colours_vs_ifcproject_information.rsproject_corpus_smokechecks that Core Interior's and Einhoven's Atom entry titles (PartAtom::entry_title) are their saved namesredact.rscli_real_filesrunsrvt-analyze --json --redactover the family corpus; no user folder, Autodesk OneDrive path or project-id folder may survive, and the unredacted reports must name at least onerevit_global_ids.rsrevit_global_ids,type_global_idsand others; Measure'sglobal_ids_vs_ifcround_trip.rssamples,cli_real_filesLeft with no check:
ifc/camera.rsandifc/clipping.rs: the viewer calls none of their wasm bindings (cameraEye,defaultSectionBoxForView). They are candidates for the unused-API removal.pbr.rs's name heuristics (metallic, roughness): no reference model's export carries them.compression::strip_revit_page_checksums: onlyexamples/probe_checksum_page_evidence.rscalls it.Testing
The three new checks run in CI's Corpus health job, which needs the family and project corpora. This PR's CI run is their first execution. In the first run, the title check failed because it read
PartAtom::title(the last title-like element: "Other", a parameter group, on Core Interior). The Atom entry's own<title>is2024_Core_Interior, read straight from the local file'sProjectInformationZIP, andentry_titlecarries it. rvt-info's Document title already usedentry_title, so only the check changed. The redact and rvt-write checks ran with the family corpus inbuild + real files / ubuntu-24.04 / stable(0.6 s and 1.7 s) and passed.Audit-honesty checklist
/Users/, and the test literals have none)Breaking changes
None.
Related issues
None.