Closed
Labels
area:corpusSample files, their provenance and coveragepriority:P1On the path of the current milestonetype:ciWorkflows and automation
Description
Scope
A corpus job fetches nextgis/dwg_samples (AutoCAD 2016 saves of the same drawings as R14, 2000, 2004, 2007, 2010 and 2013 DWG, each with AutoCAD's DXF export; no licence stated, so fetched for the run and never committed) at a pinned commit, checks every file against a pinned sha256, and runs the tests that today skip without samples/: tests/samples.rs, class_census.rs, block_names.rs, corpus_roundtrip.rs and r2013_entity_values.rs.
State on main (2026-10-21)
CONTRIBUTING.md clones the repository by hand; ci.yml never does. The corpus tests skip in CI.
Acceptance
- A pins file (
research/corpus.tsvor similar) records origin, commit, path, release and sha256 for every file used - An unreachable host reports NOT MEASURED as a warning; a file that no longer matches its pin fails the job
- The corpus job runs on every pull request and on
main, and is part of the required checks - No sample file is committed
Parent: #94
Metadata
Metadata
Assignees
Labels
area:corpusSample files, their provenance and coveragepriority:P1On the path of the current milestonetype:ciWorkflows and automation
Activity
DrunkOnJava commentedon Oct 26, 2026
Status (2026-10-26): #225 delivers every acceptance item but the last.
tools/corpus/pins.tsvrecords repository, commit, path, licence, authoring app, release, size, sha256 and git blob id for all 102 files: 49 DWG plus their DXF twins from nextgis/dwg_samples @ ff05d5a8 and DomCR/ACadSharp @ c30a97ce.tools/corpus/fetch.pyfails the job when a file differs from its pin and reports NOT MEASURED as a warning when the host is unreachable. All four exit states are exercised in the PR's test plan.main: theCorpus (public DWG)job in ci.yml. It passed on the PR's runs: tests/samples.rs, class_census.rs, block_names.rs, corpus_roundtrip.rs and r2013_entity_values.rs (49 tests) ran on the 19 drawings they are written for, with no skip..github/rulesets/main-protection.jsonlists the job, but the live ruleset is unchanged. Adding it is Griffin's decision once the job is green on a push tomain, so this issue stays open until then.DrunkOnJava commentedon Oct 27, 2026
All four acceptance items are met on
main(9292ba3, checked 2026-10-27), including the one the 2026-10-26 comment left open.tools/corpus/pins.tsvrecords origin, commit, path, licence, authoring app, release, size, sha256 and git blob id for 102 files (52 DWG, 50 DXF exports): nextgis/dwg_samples @ ff05d5a8 and DomCR/ACadSharp @ c30a97ce (ci(corpus): measure the reader on public drawings fetched by pinned hash #225).tools/corpus/fetch.pykeeps a file only if its size and sha256 match its pin and reports an unreachable host as NOT MEASURED (ci(corpus): measure the reader on public drawings fetched by pinned hash #225).main, and required: the livemain-protectionruleset (id 15273825, updated 2026-10-26) listsCorpus (public DWG)among its 12 required status checks (gh api repos/DrunkOnJava/dwg-rs/rulesets/15273825). The job passed on a push tomain: run 40503137263 at 9292ba3, job "Corpus (public DWG)" success. Itscorpus-measurementartifact: 52 drawings, 15,541 decoded, 533 skipped, 0 errored (corpus-results.json); tests/samples.rs, class_census.rs, block_names.rs, corpus_roundtrip.rs and r2013_entity_values.rs ran 49 tests and printed noskippingline (corpus-tests.log).Closing as completed. The parent epic #94 stays open: #20 and #78 are still open under it.