Skip to content

Fetch nextgis/dwg_samples in CI at a pinned commit and run the corpus tests #95

Closed

Description

@DrunkOnJava

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.tsv or 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

Activity

  1. added
    type:ci
    area:corpus
    priority:P1
    on Oct 21, 2026
  2. DrunkOnJava commented on Oct 26, 2026

    @DrunkOnJava
    OwnerAuthor

    Status (2026-10-26): #225 delivers every acceptance item but the last.

    • Pins file: tools/corpus/pins.tsv records 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.
    • Fail closed, NOT MEASURED: tools/corpus/fetch.py fails 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.
    • Runs on every PR and on main: the Corpus (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.
    • No sample file committed.
    • Part of the required checks: .github/rulesets/main-protection.json lists the job, but the live ruleset is unchanged. Adding it is Griffin's decision once the job is green on a push to main, so this issue stays open until then.
  3. DrunkOnJava commented on Oct 27, 2026

    @DrunkOnJava
    OwnerAuthor

    All four acceptance items are met on main (9292ba3, checked 2026-10-27), including the one the 2026-10-26 comment left open.

    • Pins file: tools/corpus/pins.tsv records 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).
    • NOT MEASURED vs fail closed: tools/corpus/fetch.py keeps 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).
    • Every PR and main, and required: the live main-protection ruleset (id 15273825, updated 2026-10-26) lists Corpus (public DWG) among its 12 required status checks (gh api repos/DrunkOnJava/dwg-rs/rulesets/15273825). The job passed on a push to main: run 40503137263 at 9292ba3, job "Corpus (public DWG)" success. Its corpus-measurement artifact: 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 no skipping line (corpus-tests.log).
    • No sample file committed: the pins are fetched at run time; the tree holds none.

    Closing as completed. The parent epic #94 stays open: #20 and #78 are still open under it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corpuspriority:P1type:ci

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions