Skip to content

ci(semver): the Python stubs, the wasm bindings and the JSON schemas are checked against the base like the crate (#873) - #915

Merged
DrunkOnJava merged 9 commits into
mainfrom
ci/semver-surfaces
Oct 23, 2026
Merged

DrunkOnJava merged 9 commits into
mainfrom
ci/semver-surfaces

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

The last part of S2 in #873. #910's semver checks job, #912's schema corrections and #913's stubtest are merged; this PR adds the other stable surfaces to that job, so the Python type stubs (tools/ci/python-api-compat.py, now exiting 100 on a break like the other two), the wasm bindings and the CLIs' JSON schemas are compared with the PR's base under the same ! rule as the crate.

Changes so far

  • tools/ci/wasm-api.py:
    • compat <base lib.rs> <head lib.rs> reports a binding removed or renamed (by js_name), a parameter removed, moved or retyped, a new parameter that is not an Option, or a changed return type.
    • docs checks that the README's count and docs/viewer-api.md's table name exactly the bindings rvt-wasm exports.
  • tools/ci/schema-compat.py <base> <head> reads the 16 output schemas as output contracts. A removed schema or field, a field no longer required, a gained type, a changed $ref, or a changed number of anyOf branches is breaking; an added field or a narrowed type is not. A field's list of values (a status, a reason code) is open, as the Rust enums are #[non_exhaustive]: adding a value, or no longer writing one, is not breaking, so a new status needs no major release after 1.0. RELEASE.md says so under "What 1.0 keeps stable".
  • docs/viewer-api.md documented 7 of the 22 bindings, in a section that described them as still to be written, with JsError where the code throws a string. It now has a table of all 22: arguments, returns, what each does, and how errors reach JavaScript.
  • README.md said 14 bindings. It now says 22 and links the table.
  • RELEASE.md: the wasm row of "What 1.0 keeps stable" names the 22 bindings.
  • rvt-wasm/src/lib.rs: two planning labels (VW1-01, Lane Seven) out of its docs.

Testing

  • Locally, against copies with edits. wasm-api.py compat flags a renamed cameraEye and elementInfoPanel's index retyped to u32, and accepts an added Option parameter. schema-compat.py flags a field dropped from required, a type widened to include null and a removed field, and accepts an added field. Both pass on unchanged input, and wasm-api.py docs passes on this tree.
  • CI: N/A until the steps are wired.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • No limitation resolved or introduced
  • Commit messages describe what and why
  • No emojis
  • No private paths, personal email addresses, or internal jargon in committed files
  • 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

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review October 23, 2026 17:27
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 23, 2026 17:27
@DrunkOnJava
DrunkOnJava merged commit 8cb3f29 into main Oct 23, 2026
29 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/semver-surfaces branch October 23, 2026 17:32
DrunkOnJava added a commit that referenced this pull request Oct 24, 2026
…onours SOURCE_DATE_EPOCH (#873) (#926)

## Summary

`RELEASE.md` promises the output formats are written deterministically,
and nothing checked it. A new CLI test runs every shipped writer twice
on the same file and requires the same bytes. The one thing that
differed, the export time an IFC records, is now set by
`SOURCE_DATE_EPOCH`.

## Motivation

S2 of the 1.0 criteria (#873) needs a check on each stable surface. The
crate, the Python stubs, the wasm bindings and the CLIs' JSON got theirs
in #910, #913 and #915; the output formats had validity checks
(IfcOpenShell, the glTF container, the schedule columns) but none for
the determinism `RELEASE.md` names. The IfcOpenShell witness writes
`"deterministic": true` as a constant, not a measurement.

## Changes

- `src/bin/rvt_ifc.rs`: reads `SOURCE_DATE_EPOCH` (Unix seconds, the
reproducible-builds convention) and passes it to
`write_step_with_options`; unset or empty keeps the wall-clock time,
anything else that is not a number is refused before the file is opened.
The help mentions it, and the module doc and `about` no longer say the
export is document-level only.
- `tests/reproducible_outputs.rs` (class `cli`): `rvt-ifc`, `rvt-gltf`,
`rvt-sheet`, `rvt-schedule` and `rvt-schedule --schedule rooms`, twice
each, same bytes, on the tier-1 project and on `Revit_IFC5_Einhoven.rvt`
when `RVT_PROJECT_CORPUS_DIR` has it (tier 2). A second test checks the
epoch reaches the `FILE_NAME` header and `IfcOwnerHistory`, and that a
malformed value fails naming the variable.
- `docs/user-guide.md` (Export IFC), `RELEASE.md` (Output formats row),
`docs/release-1.0-criteria.md` (S2 passed, with what each check is),
`CHANGELOG.md`.

## Testing

CI runs the new target; no build on this machine. The measured result is
the test itself: the same bytes from two runs of each writer, on a
synthetic and a real file.

- [ ] `tools/check-local.sh` passes: left to CI
- [x] Verified end to end: the test runs the built CLIs on the committed
tier-1 file and on Einhoven (magnetar-io/revit-test-datasets, MIT) in
tier 2
- [x] IFC exporter: the IFC body is unchanged; only the header and
owner-history time can differ, and only when `SOURCE_DATE_EPOCH` is set.
Witness observations hash entity counts, relations and storeys, so they
do not move
- N/A: performance

## Audit-honesty checklist

- [x] Docs reflect the state after this PR
- [x] No limitation resolved beyond the check itself
- [x] No new limitation
- [x] Commit message says what and why
- [x] No emojis
- [x] No private paths
- N/A: not a format finding

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content
- [x] No new fixtures

## Breaking changes

None. Without `SOURCE_DATE_EPOCH`, `rvt-ifc` writes what it wrote
before.

## Screenshots or output samples

With `SOURCE_DATE_EPOCH=1700000000` the header reads
`FILE_NAME('…','2023-11-14T22:13:20',…)` and the owner history ends
`,1700000000);`.

## Related issues

Refs #873 (S2)
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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