Repository navigation
ci: stop rebuilding the world per pull request, and unshare the Pages concurrency group - #260
Conversation
… concurrency group Measured on the latest full pull-request run (4.5 min wall): - `cargo bench --no-run` took 207 s because the default `bench` profile inherits release LTO, so the shared `ci` cache served nothing. It now builds with `--profile ci`; the Linux test job already compiles the benches with `--all-targets`, so the cache has them. - `cargo test / windows-latest` spent 181 s building every target. The non-Linux entries never run benches or examples, so they build `--lib --bins --tests`; Linux keeps `--all-targets` and owns the cache. - Three Python wheels built per PR. Pull requests now build the Linux wheel only; pushes to main build the full matrix. - deploy-viewer release-built gen-fixture with full LTO on every run (39 s). It now restores the shared `ci-release` cache and builds with `--profile ci`, exposing the binary on PATH for the stager. - deploy-viewer used one `pages` concurrency group for every PR build and deploy, so PR checks cancelled each other whenever two runs queued. Builds are now grouped per ref (PR builds supersede, main builds queue) and only the deploy job holds the Pages group.
|
Measured on this PR's own runs (CI 35459486483, deploy-viewer 35459486515), against the last full PR run before it (35458853715):
Browser regression tests are unchanged at 82 s; that cost is the 33 MB Core Interior decode and is being addressed in the IFC export performance work. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 0ddc516. Configure here.
| # release profile's full LTO rebuilt the crate from scratch here | ||
| # (39 s per run). The stager finds the binary on PATH. | ||
| cargo build --profile ci --bin gen-fixture | ||
| PATH="$(pwd)/../target/ci:$PATH" npm run stage:demos |
There was a problem hiding this comment.
Stale gen-fixture used for staging
Medium Severity
The stager still prefers target/release/gen-fixture over PATH. This job used to rebuild that release binary; it now only builds --profile ci. Restoring viewer-wasm leaves a cached release binary from an older main run, so stage:demos can generate synthetic-mvp with outdated gen-fixture while WASM and Playwright use the current tree.
Reviewed by Cursor Bugbot for commit 0ddc516. Configure here.
…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 -->
…and rvt-wasm crate (#849) ## Summary Two contributor-facing docs described a layout that C6 (2026-10-05: #724 split the bindings into `rvt-wasm`, #732 merged every test file into one binary) replaced. `docs/extending-layer-5b.md`'s Step 5 told a contributor to add a check that would never run, and the viewer docs named a bindings file that no longer exists. ## Motivation A scan of the docs for cited source paths that do not exist found these. The other misses it reported are dated notes about other repositories, historical reports, an ADR and a launch draft that says it was written for 0.1.2. - **`docs/extending-layer-5b.md`, Step 5.** It said to add a `#[test]` gated on a `corpus` feature to `tests/elements.rs`, opening `_corpus/examples/Autodesk/...` by a hard-coded path. There is no `corpus` feature and no `tests/elements.rs`. Since #732 every `tests/*.rs` file is a module of the one `integration` binary, and CI runs only the files `tools/ci/test-targets.txt` classes. A test written to the guide is neither compiled nor run, and the repository's rule is to resolve the corpus through `tests/common`, never a path. - **`docs/viewer-build-pipeline.md` and `AGENTS.md`.** Both named `src/wasm.rs` behind a `wasm` feature. #724 moved the bindings to their own crate, `rvt-wasm`, and `rvt` builds as a plain `rlib`. The build commands both docs give were already the `rvt-wasm` ones. ## Changes - `docs/extending-layer-5b.md`: - **Step 3** registers the decoder and lists its class in `elements::MVP_TYPED_CLASSES` before the corpus check, since production uses a typed decoder only for those classes (skipping an instance it rejects). The same change adds the class's arm to `typed_json::mvp_typed_view`, or the CLI and Python give it `typed: null`, and to the list `tests/python/test_decoded_api.py` pins and the class list in `docs/schemas/decoded-elements.schema.json`. It drops the `decoder_class_names_are_unique` tripwire, which no longer exists (`decoder_for_class` takes the first match). - **Step 5** says how a real-file check is added now: `tests/<name>.rs`, a line in `tests/integration/main.rs`, and the class `real` in the manifest, which fails CI for a file it does not class. The check uses the files whose oracle holds the class (the family corpus through `tests/common`, or project files through `RVT_PROJECT_CORPUS_DIR`), requires an instance only where the oracle has one, and fails on a missing file when `RVT_REQUIRE_CORPUS` is set, as `tests/elem_table_corpus.rs` does. Its example decodes through the production path (`walker::iter_elements`), keeps the schema rows (`record_kind` `schema_instance`, which typed and generic decodes share and partition records do not), asserts `provenance.decoder == "MyClassDecoder"` on each, and marks where each field is compared with the oracle by ElementId. - **The file list, Step 6 and Step 7** no longer put tests in the decoder file or say "unit-tested with synthesized bytes", and the commit scope is `elements`. - `docs/viewer-build-pipeline.md`: its note on what the snippets predate gains the `rvt-wasm` move (C6, #724) and says #260's per-ref concurrency group happened (it said "is proposed", though #260 merged on 2026-09-19). - `AGENTS.md`: the WASM package is rebuilt when `rvt-wasm/src/lib.rs` or the library code it reaches changes. ## Testing N/A: docs only. The example uses `RevitFile::schema`, `SchemaTable::classes`, `ClassEntry::{name, fields}` and `tests/common`'s `ALL_YEARS` and `sample_for_year`, as `tests/samples.rs` does. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [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] I agree this work is licensable under Apache-2.0 (see `CONTRIBUTING.md`) - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`) ## Breaking changes None. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation-only updates with no runtime or CI behavior changes. > > **Overview** > Updates contributor docs so they match **C6**: WASM bindings live in **`rvt-wasm`**, and corpus checks plug into the single **`integration`** test binary plus **`tools/ci/test-targets.txt`**. > > **`docs/extending-layer-5b.md`** expands the “three-file” checklist to include **`typed_json`**, Python/schema class lists, and the corpus/CI wiring. Step 2’s example now **fails closed** in `decode` (not just `decode_instance`). Step 3 documents **`MVP_TYPED_CLASSES`**, production scoring/provenance, and where to register typed output. Step 5 **replaces** the obsolete `tests/elements.rs` / `corpus`-feature pattern with **`tests/<name>_corpus.rs`**, a module line in **`tests/integration/main.rs`**, and classing the file **`real`** in the CI manifest, including an oracle-driven `iter_elements` example. > > **`AGENTS.md`** and **`docs/viewer-build-pipeline.md`** point rebuild notes at **`rvt-wasm/src/lib.rs`** and record the bindings split and merged **per-ref** deploy concurrency as shipped. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 3873423. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->


Measured on the latest full pull-request run (4.5 min wall):
cargo bench --no-runtook 207 s because the defaultbenchprofileinherits release LTO, so the shared
cicache served nothing. It nowbuilds with
--profile ci; the Linux test job already compiles thebenches with
--all-targets, so the cache has them.cargo test / windows-latestspent 181 s building every target. Thenon-Linux entries never run benches or examples, so they build
--lib --bins --tests; Linux keeps--all-targetsand owns the cache.wheel only; pushes to main build the full matrix.
(39 s). It now restores the shared
ci-releasecache and builds with--profile ci, exposing the binary on PATH for the stager.pagesconcurrency group for every PR buildand deploy, so PR checks cancelled each other whenever two runs
queued. Builds are now grouped per ref (PR builds supersede, main
builds queue) and only the deploy job holds the Pages group.
Testing
actionlintclean on both workflows (one pre-existing shellcheck info in the PII guard script)Legal and contribution hygiene
Note
Low Risk
Changes are limited to GitHub Actions workflow timing, caching, and matrix scope; application code and merge-test coverage on main are unchanged.
Overview
CI and deploy-viewer workflows are tuned to cut redundant compilation and runner use on pull requests, mainly by leaning on the shared
ci-releaseRust cache and theciCargo profile instead of release/LTO or the default bench profile.In
ci.yml, the matrix build step on macOS/Windows now compiles only--lib --bins --tests(Linux still uses--all-targetsand populates the shared cache for benches). The bench-build job runscargo bench --no-run --profile ciso compile-only bench checks reuse that cache. Python wheel jobs on PRs are limited to Linux; pushes to main still build the full OS matrix.In
deploy-viewer.yml, workflow concurrency is per ref (viewer-${{ github.ref }}) with in-progress PR builds cancelled, while deploy alone holds thepagesgroup so PR preview builds no longer block each other. The build job restoresci-releaserust-cache, buildsgen-fixturewith--profile ci, and putstarget/cion PATH for demo staging instead of a fresh--releasebuild.Reviewed by Cursor Bugbot for commit 0ddc516. Configure here.