Repository navigation
fix(fuzz): generate predefined_type in fuzz_step_writer so the target compiles again - #259
Merged
Merged
Conversation
… compiles again #236 added `predefined_type` to `IfcEntity::BuildingElement`. The fuzz crate is outside the main workspace gate, so the nightly Fuzz workflow has failed to build `fuzz_step_writer` with E0063 since then, and no STEP-writer fuzzing has run. Add the field to `FuzzElement` so the fuzzer drives it through the same truncation and STEP string-escape path as the other optional strings.
DrunkOnJava
enabled auto-merge (squash)
September 19, 2026 17:40
10 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Sep 19, 2026
…e CI audit path (#261) ## Summary Bring the prose docs up to what merged on `main` on 2026-09-19 (#256, #257, #258, #259, the four Dependabot bumps) and correct the slab-profile claim in `docs/status.md` that RE-25 had already invalidated. Docs, `README.md` and `CONTRIBUTING.md` only; no Rust, no `viewer/`, no `CHANGELOG.md`. ## Motivation `docs/status.md` reported 80 of 80 exact slab profiles from RE-25 and then, about 40 lines later, still said the slab profile "is still the bounding-box rectangle rather than the recovered boundary polygon (#31)". `docs/supported-profile.md` carried the same claim in its Unsupported list. Separately, nothing in the docs described the bounded wasm32 inflate reservation, the wasm panic hook, the hash-verified real-project demo gallery, or the `NOT MEASURED` npm audit path, and `docs/demos.md` still listed the web viewer as "not yet implemented". ## Changes - `docs/status.md` — review date to 2026-09-19; the stale slab-profile sentence now says the profile is the polygon its `OST_SketchLines` records close on 80 of 80 exported slabs, with the 20 rotated shading plates named as the remaining rectangle; new paragraph on the hash-pinned demo gallery; gzip and Browser viewer capability rows updated with the 1 MiB reservation cap and the real-project demos. - `docs/supported-profile.md` — the same stale slab claim replaced by the 20-shading-plate remainder, and the door/window host-wall binding no longer listed as unsupported (#222 matches Revit's `(host wall, filling element)` pair set on 138 of 138; it is the opening-index rows that carry no host claim). - `README.md` — viewer and demo-gallery paragraphs only: wasm32 memory behaviour and the panic hook, plus Einhoven / Core Interior sizes and measured load times. - `docs/viewer-api.md` — new "Panic reporting and wasm32 memory" section covering the seven byte-opening bindings that install `std::panic::set_hook`, `INITIAL_INFLATE_CAPACITY_BYTES`, and the before/after measurements. - `docs/viewer-build-pipeline.md` — states that VW1-01..24 shipped and the recipe is the built workflow; a "wasm32 linear memory is the real ceiling" subsection under VW1-20 so a future chunked path keeps the bound. - `docs/user-guide.md` — the two real-project demos and their honest decode times in the browser steps; the 801 of 872 storey-containment figure and the named 71. - `docs/demos.md` — the "Web viewer ... not yet implemented" bullet replaced by what actually ships and what is still missing (a broader redistributable real-project corpus). - `docs/supply-chain-policy.md` — the npm advisory 503 retry path, why a `NOT MEASURED` run is not evidence of clean dependencies, and how a measured advisory is still told apart by the output rather than the exit code (#258). - `CONTRIBUTING.md` — the same audit behaviour plus the narrower pull-request CI shape (#260, open as of 2026-09-19); a fuzz note explaining that `fuzz/` is outside the workspace gate, which is how `fuzz_step_writer` broke from #236 until #259. - `docs/contribution-map.md` — new "Open Remainders" section listing the six issues closed today and the named remainder behind each of #32, #33/#219, #23, #86 and #156. ## Testing N/A: docs-only PR. No Rust or TypeScript changed, so `cargo test` / `clippy` / `fmt` are unaffected by this diff. Verification performed instead: - Every number written was checked against the merged code or its commit: `INITIAL_INFLATE_CAPACITY_BYTES` and `shrink_to_fit` in `src/compression.rs`, the seven `install_panic_hook()` call sites in `src/wasm.rs`, the `sha256` / `size_bytes` entries in `docs/viewer-demos.json`, the two new Playwright tests in `viewer/tests/viewer-regression.spec.ts`, the retry block in `.github/workflows/ci.yml`, and the `#260` diff. - Relative Markdown links in all ten changed files resolve to existing paths. - `git diff --stat` confirms only `docs/`, `README.md` and `CONTRIBUTING.md` changed. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] A resolved limitation is updated: the slab boundary polygon moved out of the Unsupported list in `docs/supported-profile.md` and out of the stale sentence in `docs/status.md`, with the 20 rotated shading plates named as what is genuinely left - [x] No new limitation introduced - [x] Commit message describes what changed and why - [x] No emojis - [x] No private paths, personal email addresses, or internal jargon - [x] Not a reverse-engineering finding; no new probe or reconnaissance addendum needed ## Legal and contribution hygiene - [x] Licensable under Apache-2.0 - [x] No Autodesk proprietary source, decompiled internals, or NDA'd SDK content - [x] No new test fixtures; no real-world PII ## Breaking changes None. ## Screenshots or output samples N/A: docs-only PR. No UI or IFC output changed. ## Related issues Refs #256, #257, #258, #259, #260. Documents the 2026-09-19 closures of #30, #31, #66, #81, #83 and #87, and the named remainders on #32, #33, #219, #23, #86 and #156. Closes nothing. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Markdown-only changes with no runtime, CI workflow, or dependency edits in this diff. > > **Overview** > This **docs-only** PR brings README, CONTRIBUTING, and nine `docs/` pages in line with what landed on `main` on 2026-09-19 (#256–#259, related CI work), and fixes **stale capability wording** that still said slab plan profiles were bounding-box rectangles after RE-25. > > **Support-boundary honesty:** `docs/status.md` and `docs/supported-profile.md` now state that **80 of 80** exported slabs use closed sketch-line polygons; the **20 rotated shading plates** stay rectangle/`ProfileResolved: false`. Door/window **host-wall binding on the partition element-record carrier** is documented as closed (#222); opening-index rows remain unsupported for host claims. > > **Viewer and wasm:** README and `docs/viewer-api.md` / `docs/viewer-build-pipeline.md` describe the **1 MiB per gzip member** inflate reservation (#256), **wasm panic → `console.error`**, hash-verified **Einhoven / Core Interior** demo gallery (#257) with sizes and load times, and Playwright staging checks. `docs/demos.md` replaces “web viewer not yet implemented” with what ships vs a broader real-project corpus still missing. > > **Contributor / CI prose:** `CONTRIBUTING.md` and `docs/supply-chain-policy.md` explain **npm audit retries** and **`NOT MEASURED` warnings** when the advisory API is down (#258), plus **narrower pull-request CI** vs `main` (#260). CONTRIBUTING adds a **fuzz workspace** note: PR gates do not compile `fuzz/`—run nightly `cargo +nightly check --manifest-path fuzz/Cargo.toml` when changing types fuzz targets construct (#259). > > **Roadmap:** `docs/contribution-map.md` adds an **Open Remainders** table naming what is left after six issues closed the same day. `docs/user-guide.md` mirrors demo expectations and **801/872** storey containment with the named 71 unbound. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit ac4354d. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
10 of 12 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Oct 25, 2026
… reported as one, and every PR checks the fuzz targets build (#965) (#967) ## Summary The nightly fuzz run's "crash" (#965) was a build failure: `fuzz_step_writer` builds an `IfcModel` field by field and lacked `type_property_sets`, which #934 added. The target now fills every field it does not set from `IfcModel::default()`. Each nightly target is built in a step of its own, and a run in which nothing crashed but a target failed to build opens a `fuzz-build` issue rather than a `fuzz-crash` one. A new CI job, `fuzz targets build`, checks the fuzz workspace on every PR and gates `CI passed`, so a change that breaks a target is caught before it merges. ## Motivation `fuzz/` is a workspace of its own that no CI job built, so a field added to a type a target constructs broke the nightly run after merge, twice (#236 → #259, #934 → #965). The report then called it a crash, a false red. ## Changes - `fuzz/fuzz_targets/fuzz_step_writer.rs`: `..IfcModel::default()`. - `.github/workflows/fuzz.yml`: a `Build <target>` step before the run; the report job counts the run's `crash-` artifacts (uploaded only when a target's run step fails) and files `fuzz-crash` or `fuzz-build` accordingly. - `.github/workflows/ci.yml`: `fuzz-check` (`cargo +nightly-2026-10-01 check --manifest-path fuzz/Cargo.toml --bins`, the nightly toolchain the fuzz and docs.rs jobs pin), in `CI passed`'s needs. ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [ ] `tools/check-local.sh`: CI, including the new `fuzz targets build` job on this PR. - [ ] Fuzz workflow dispatched on this branch for `fuzz_step_writer` (60 s): run [40175530101](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40175530101), in progress. - [x] Both workflow files parse (YAML) and `actionlint` reports nothing new; its one complaint, `uses: $/.github/actions/fetch-corpus`, predates this change and those steps succeed on GitHub. - [x] Witness: no export changes. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR (the workflow headers say what they do) - [x] No user-visible change, so no fragment - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content - [x] No fixtures ## Breaking changes None. ## Screenshots or output samples ``` error[E0063]: missing field `type_property_sets` in initializer of `IfcModel` --> fuzz_targets/fuzz_step_writer.rs:368:17 ``` ## Related issues Closes #965
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#236 added
predefined_typetoIfcEntity::BuildingElement. The fuzzcrate is outside the main workspace gate, so the nightly Fuzz workflow
has failed to build
fuzz_step_writerwith E0063 since then, and noSTEP-writer fuzzing has run.
Add the field to
FuzzElementso the fuzzer drives it through the sametruncation and STEP string-escape path as the other optional strings.
Testing
cargo +nightly check --manifest-path fuzz/Cargo.tomlbuilds (fails with E0063 on main)Legal and contribution hygiene
Note
Low Risk
Fuzz-harness-only change that mirrors an existing entity field; no production export or runtime behavior changes.
Overview
Restores the
fuzz_step_writertarget afterIfcEntity::BuildingElementgainedpredefined_type(#236), which had left the fuzz crate failing to build with E0063 and blocked nightly STEP-writer fuzzing.The harness now generates
predefined_typeonFuzzElement, passes it intoBuildingElementwith the same optional-string truncation astype_guid, and documents that slot in the fuzz coverage list for STEP string escaping.Reviewed by Cursor Bugbot for commit 59aebcc. Configure here.