Skip to content

docs(contributing): the contributing guide, the Python page and the install guide match the code, workflows and release assets - #1336

Merged
DrunkOnJava merged 1 commit into
mainfrom
docs/contributing-python-install
Nov 4, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
docs/contributing-python-install

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

CONTRIBUTING.md, docs/python.md and docs/install.md read line by line against the code, workflows and release assets they describe; what was wrong or stale is fixed. Docs only: no code, tests, tools or other pages change.

Motivation

The three pages are the first a contributor or user reads, and each had drifted: the unit-test rule had an exception it did not state, python.md still described a 395-class schema and a registry that is not wired in, and install.md named the release archives without the v they carry.

Changes, each with the file it rests on

CONTRIBUTING.md

  • The local gate: it also runs cargo check --lib --bins with unnameable_types denied, a build of every target, the doc tests and the user examples, not only fmt, clippy, rustdoc and the integration tests (tools/check-local.sh usage text). The jobs CI adds after it: the MSRV entry and i686 checks (.github/workflows/ci.yml).
  • Pull-request step: a user-visible change adds a fragment under changelog.d/, never CHANGELOG.md (changelog.d/README.md, python3 tools/release/changelog.py check); main takes signed commits and squash merges, and the maintainer replaces an unsigned contributor commit (docs/maintaining.md, lines 55 and 79 to 81); the one required check is full / CI passed once a PR is ready, only fast / ... while it is a draft (.github/workflows/ci-pr.yml, ci: a draft pull request runs the fast jobs, and the full set with CI passed runs when it is marked ready (#1237) #1319).
  • The unit-test rule: banned, with one exception, a few fast tests of a pure helper with no file, network, process or clock I/O (the maintainer, 2026-11-04); anything that reads a file or decodes a real format is proved on real files. No #[cfg(test)] exists in src/, rvt-py/src or rvt-wasm/src, and CI's test job runs cargo test --profile ci --doc and the --test integration targets (ci.yml lines 242 and 490 to 597), so the first helper test adds cargo test --lib.
  • The manifest's classes are real, cli, contract and hardening; unit is no class any more (tools/ci/verify-real-files.sh line 54, the header of tools/ci/test-targets.txt).
  • The family corpus is 12 releases, 2016 to 2027, not 11 (tests/common/mod.rs ALL_YEARS, 12 entries); the project corpus holds Revit 2023, 2024 and 2025 files (docs/reference-models.md: Einhoven 2023, Core Interior 2024, RE1 2025).
  • Commit types in use are also ci, build and research, and the scopes in use are those of the last 400 commits of main (git log origin/main: feat 115, docs 76, fix 54, ci 48, research 33, chore 22, refactor 15, perf 14, build 14, test 6; scopes ifc 117, elements 35, measure 32, release 17, reader 16, deps 13, ...), not object_graph, elem_table and readme.

docs/python.md (against rvt-py/src/lib.rs and python/rvt/__init__.pyi)

  • The schema is read whole since Formats/Latest is inflated without the page strip; the schema drifts after ~140 KB in every file and parsing stops at 64 KB to hide it #410: 4,126 classes and 11,562 fields on a Revit 2024 file (src/formats.rs SCHEMA_SCAN_LIMIT doc, docs/evidence.md, RE-264's table), not 395 and 13,570; the 1 to 2 MB figure is dropped, as nothing measured it.
  • schedule_csv(kind, metric, excel) and metadata(redact) are methods, listed in the properties table; they are now under Methods, with metadata's real keys (lib.rs doc of metadata, docs/schemas/file-metadata.schema.json) and schedule_csv's ValueError on another kind (lib.rs 827 to 833).
  • unread_streams() was only mentioned in prose; it now has its entry (lib.rs 432 to 441).
  • decoded_elements() entries also carry parameters, and a file whose parameters cannot be read raises a UserWarning (lib.rs 697 to 724).
  • read_adocument() also raises IOError on a stream failure, and read_adocument_lossy() also raises ValueError when there is no ADocument class (lib.rs 575 to 604 and 647 to 652); the Errors table lists the ValueError cases that exist (to_py_val call sites).
  • "The 81 classes are a synthesized-fixture registry, not wired into iter_elements" is false: iter_elements prefers the typed decoders of MVP_TYPED_CLASSES and decoded_elements() exposes their projection (src/elements/mod.rs module doc, docs/compatibility.md section 3); the paragraph says what is and is not exposed.
  • The Contributing section names tests/python/test_docs_python.py, which runs every python block of the page against the synthetic fixture, so a signature block is fenced text.
  • Checked and unchanged: version 0.13.0 (Cargo.toml, rvt-py/Cargo.toml, tag v0.13.0), abi3-py38, MSRV 1.87, every default limit (OpenLimits, InflateLimits, WalkerLimits), every signature and default including saved_meshes=True, the saved-mesh scope (Revit 2023 to 2027, saved_meshes::default_scope) and the RuntimeWarning text (attach_saved_meshes), the version support table (docs/compatibility.md section 1), and the python blocks, which still run.

docs/install.md

  • The release archives are named with the tag, v included: rvt-rs-v0.13.0-x86_64-unknown-linux-musl.tar.gz (release asset list of v0.13.0; release-binaries.yml "Package": version="${TAG_INPUT}"). The 12 places that wrote <version> for an archive now write <tag>, and the page says that the wheel and the image tag have no v (release-binaries.yml meta step: version="${TAG_INPUT#v}").
  • The release page also carries the seven wheels, the sdist and rvt-rs-<tag>.intoto.jsonl (the v0.13.0 asset list).
  • Checked and unchanged: the wheel table (publish.yml matrix: manylinux2014 and musllinux_1_2 on x86_64 and aarch64, macOS arm64 and x86_64, Windows x64; the assets macosx_11_0_arm64 and macosx_10_12_x86_64), the archive contents (README.md, LICENSE, NOTICE), the container (distroless static, WORKDIR /data, CMD rvt-info --help, docker/Dockerfile), docker/stage.sh and gh release download use, the [[bin]] list (19, all installed by cargo install rvt --locked; no page here states a count), the rvt-ifc --mode strict --diagnostics flags, and the confidence.level key of the smoke test.

Testing

Unit tests are banned in this repository: none added. Docs only.

  • tools/check-local.sh passes: not run locally (no local builds here); the PR's CI is the check
  • Every claim above is checked against the file named; no number comes from memory
  • If this touches the IFC exporter: N/A
  • If this is a performance change: N/A

Audit-honesty checklist

  • README / docs reflect the current state after this PR: that is the PR
  • A user-visible change has a changelog fragment: N/A, docs only
  • No emojis, no private paths, no personal email addresses
  • Reverse-engineering finding: N/A

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content
  • No test fixtures added

Breaking changes

None.

Screenshots or output samples

N/A.

Related issues

None.

…nstall guide match the code, workflows and release assets
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 4, 2026 06:33
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 4, 2026 06:33
@DrunkOnJava
DrunkOnJava merged commit 3e0abc6 into main Nov 4, 2026
49 checks passed
@DrunkOnJava
DrunkOnJava deleted the docs/contributing-python-install branch November 4, 2026 06:39
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