Skip to content

ci(measure): a probe input runs named examples at the head over the corpus directory - #487

Merged
DrunkOnJava merged 3 commits into
mainfrom
ci/measure-probe-input
Nov 30, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
ci/measure-probe-input

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

dwg-rs's Measure runs three fixed examples (the coverage report, the class census and the reference closure), so a probe of one derived field list had no way to run on the pinned corpus in CI. This adds two optional inputs, as rvt-rs's Measure has:

  • probe: example names, space-separated. Each is built at the head and run once over the corpus directory, writing measure/probe-<name>.txt, which uploads with the rest of measure/. The run summary gives each probe's exit status and line count.
  • probe_features: the cargo features those examples need (dxf-reader for the DXF twins).

The inputs reach the shell only through environment variables, and are held to example-name and feature-name characters before use. A probe that does not build fails the step; a probe's own exit status is reported, not fatal.

What it unblocks: #480's last point (the two persistent-subentity managers' newer records in 3d.dwg, against their derived lists) and #486.

Testing

  • yaml.safe_load parses the workflow, which lists the four inputs.
  • Dispatched from this branch with probe="probe_assoc_pers_subent probe_pers_subent": run 46366731085. Both probes built and ran, and measure/probe-probe_assoc_pers_subent.txt and measure/probe-probe_pers_subent.txt uploaded with the run's other results. They show every corpus record of both classes closing (Eight decoder modules nothing calls, two of them reading other field lists than the live decoder #480).
  • probe_features: run 46367874075 built probe_entity_colour with dxf-reader and compared 2,579 entities with their DXF twins.
  • The pull-request Measure this change triggers (run 46367709242) passes on the default path, with no probe.
  • A probe that exits non-zero is reported with its status, not fatal: GitHub runs the step under bash -e, so the status is caught explicitly (run 46368369704 ran probe_mesh on a directory it could not read and passed).
  • A later commit adds probe and probe_features to the concurrency group, so two probe runs of the same refs no longer cancel each other, and turns off pattern expansion in the probe loop.

… and probe names are never expanded as file patterns
@DrunkOnJava
DrunkOnJava merged commit 6a71699 into main Nov 30, 2026
35 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/measure-probe-input branch November 30, 2026 07:03
DrunkOnJava added a commit that referenced this pull request Nov 30, 2026
…here its field list ends (#486) (#488)

## Summary

#484 found records of six derived classes in drawings their derivations
never read, and could say only that those records decode. This records
what each class's own probe found, run over the whole pinned corpus
through Measure's new `probe` input (#487):

| Class | Records | Close where the field list ends |
|---|---:|---:|
| MATERIAL | 244 | 244 |
| ACSH_HISTORY_CLASS | 21 | 21 |
| ACSH_BOX_CLASS | 8 | 8 |
| ACSH_EXTRUSION_CLASS | 10 | 10 |
| ACAD_EVALUATION_GRAPH | 28 | 28 |
| ACDBASSOCPERSSUBENTMANAGER, ACDBPERSSUBENTMANAGER | 8, 8 | 8, 8 |

"Close" is a real end check on every release, R14 included: objects go
through `objects::modern`'s `finish` against the size the record states
(on R13 and R14 the `RL` in the common object data), and entities
through `checked_inline`. Two comments that said R13 and R14 carry no
boundary are corrected here. The check is known to fire on R14: an
earlier PDFUNDERLAY decoder read an inline handle and overshot R14's
stated boundary by 8 bits, which is how the 2026-10-26 CLEANROOM entry
caught it.

None of the newer drawings (kurema/BookViewerApp3, the OSHW Jetson
boards, planar-algorithm) has a DXF export pinned, so no new value is
compared. The values compared, all with 0 differences, are the
derivations' own (MATERIAL's 13,058, for example).

Closes #486.

## Testing

- Measure [run
46366731085](https://github.com/DrunkOnJava/dwg-rs/actions/runs/46366731085):
`probe_assoc_pers_subent` and `probe_pers_subent`.
- Measure [run
46367164028](https://github.com/DrunkOnJava/dwg-rs/actions/runs/46367164028):
`probe_material`, `probe_sh_history` (which covers ACSH_BOX_CLASS too),
`probe_sh_extrusion` and `probe_eval_graph`.
- `spec_citations.py` passes. Docs only.
DrunkOnJava added a commit that referenced this pull request Nov 30, 2026
…oCAD's own output on every corpus record (#478) (#490)

## Summary

Both classes of #478 are now checked by the 2026-10-26 method on every
corpus record, and recorded in CLEANROOM.md. MESH's field list came in
with `530192d7` and credited a section ODA spec v5.4.1 does not have;
WIPEOUT is read with IMAGE's field list, which it had been measured to
share on one R2018 record only.

- **`examples/probe_mesh.rs` walks the corpus.** Like the other object
probes, it uses the shared twin reader (`examples/support/twin.rs`), so
it pairs each MESH with its DXF twin by handle and tallies per release.
It took one drawing and one DXF before. The comparison is the same, now
also checking each group's code: the `AcDbSubDMesh` group in the DXF's
own order.
- **Result** ([Measure run
46372916305](https://github.com/DrunkOnJava/dwg-rs/actions/runs/46372916305),
through #487's `probe` input):
  - all 14 records close on their data-stream boundary;
- on R2000 to R2018, the 10,992 values compared equal the twin, with 0
differences;
- the two R14 records have no DXF twin, so they are held to their
boundary alone.
- CLEANROOM.md gains a dated entry for MESH, and
`docs/spec-coverage.md`'s MESH row moves from `partial` ("2 records
error") to `closes`.

- **WIPEOUT: the new `examples/probe_wipeout.rs`** compares every
raster-image field the DXF writes: the insertion point, U and V vectors,
image size, display flags, clipping, brightness, contrast, fade, clip
mode, and the clip boundary's type, count and vertices.
- **Result** ([Measure run
46372916305](https://github.com/DrunkOnJava/dwg-rs/actions/runs/46372916305)):
  - all 7 records close;
  - on R2000 to R2018, 171 values equal the twin, with 0 differences;
- the DXF writes a clip polygon's first vertex again after its last, and
that vertex equals the first on every record;
  - the clip mode is written only from R2010 (3 values not written).
- **Docs:** CLEANROOM.md gains a dated WIPEOUT entry, the coverage row
moves from `decoder` to `closes`, and `wipeout.rs`'s "Only R2018 has
been measured" now says every release is.

Closes #478.

## Testing

- The Measure run above. `spec_coverage.py --check` and
`spec_citations.py` pass, and rustfmt is clean on the probe.

## Source provenance

Measured against AutoCAD's own DXF output of the pinned public corpus
(CLEANROOM.md source rules); no third-party DWG or DXF implementation
was consulted.
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