Skip to content

ci(viewer): install the locked wasm-bindgen as a prebuilt binary, so a crates.io outage cannot fail a WASM build - #1413

Merged
DrunkOnJava merged 3 commits into
mainfrom
ci/wasm-bindgen-prebuilt
Nov 5, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
ci/wasm-bindgen-prebuilt

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Main went red on 07caf05 (#1405's merge): CI run 41954251714, "viewer tests / browser tests 3/3", and Deploy viewer run 41954251781. Nothing in the code failed. At build time wasm-pack build fetches the wasm-bindgen CLI that Cargo.lock pins (0.2.118), first from GitHub and then with cargo install wasm-bindgen-cli. The runner could not resolve hostnames for about 40 s, so both failed ("Could not resolve host: index.crates.io", job 127008193132). The failed jobs were rerun.

This removes that dependency in the three workflows that run wasm-pack: viewer-test.yml, deploy-viewer.yml and publish.yml.

  • A step reads the locked wasm-bindgen version from Cargo.lock, so the version cannot drift from the lockfile when Dependabot bumps it. The step fails if the version cannot be read.
  • taiki-e/install-action, the same pinned action that installs wasm-pack, also installs wasm-bindgen@<that version> as a prebuilt binary on PATH. wasm-pack uses a wasm-bindgen it finds on PATH when the version matches, so it no longer runs cargo install.

Testing

  • actionlint on the three files: no finding beyond the known $/ self-repository syntax. Each step's indentation and keys follow its neighbours.
  • Measured on this PR's CI, at 33be498, browser tests leg 1/3 (job 127018821351). install-action logs installing [email protected] and wasm-bindgen installed at /home/runner/.cargo/bin/wasm-bindgen. The WASM build step has no Installing wasm-bindgen line, which wasm-pack 0.14.0 prints only after its PATH lookup and version check fail. So wasm-pack used the prebuilt binary and fetched nothing.
  • install-action wraps each download in a retry loop (retry() in its main.sh: 11 attempts, sleeping 1 to 10 s between them, about a minute in all). That outlasts the 40 s DNS outage that broke main. Deploy viewer and publish use the same steps.
  • The version read from Cargo.lock must look like N.N.N, or the step fails with an error that names what it read.

Audit-honesty checklist

  • No product or output change. CI robustness only.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk proprietary source, decompiled internals or NDA'd SDK content.

Breaking changes

None.

Related issues

Refs #1394.

@DrunkOnJava DrunkOnJava added the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 5, 2026 02:46
@DrunkOnJava DrunkOnJava removed the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
@DrunkOnJava DrunkOnJava mentioned this pull request Nov 5, 2026
3 tasks done
@DrunkOnJava
DrunkOnJava merged commit da4c914 into main Nov 5, 2026
35 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/wasm-bindgen-prebuilt branch November 5, 2026 03:10
DrunkOnJava added a commit that referenced this pull request Nov 5, 2026
## Summary

Release 0.15.0:
- Where each decoded element was read from, down to the byte, on
request: `rvt-ifc --element-provenance` (#1325), with the copy each
body, profile and outline reader took its value from (#1360, #1368).
- Why an element, body, opening or outline was left out, one entry per
element, on request: `rvt-ifc --export-decisions` (#1326), and the MCP
server's `explain_element`.
- Where a Revit 2008 to 2023 project's element records stop, in every
export's diagnostics (#1389, for #421).
- Rooms take off the round columns their stored solid holds (#1354,
RE-334).
- Areas whose boundary lines name each other are drawn to their joins
(#1261, RE-330).
- Shape-edited floors drawn along their sloped top, and the walls on
them cut at it (#1384, RE-336).
- `rvt-ifc --family-extrusions`, opt-in, draws a family instance from
its family's own extrusions, arcs as true arcs (#156, RE-327, #1366).
- Partition streams in number order (#1356); the viewer's browser tests
in `CI passed` (#1394).
- Value sources for Areas and shaped floors (#1403), the shaped floors'
slab quantities and the GLB layer colour kept (#1405), floor voids
tagged as Revit tags them (#1402), Measure's scorer for the MCP server's
answers (#1404), and the MCP server's element names and type objects
taken from the IFC writer (#1406).

## Changes

- Version 0.14.0 -> 0.15.0 in:
  - Cargo.toml;
  - rvt-py/Cargo.toml and its `=` pin;
  - rvt-mcp/Cargo.toml and its `=` pin;
  - rvt-wasm/Cargo.toml;
  - tools/stream_evidence/Cargo.toml;
  - viewer/package.json;
  - CITATION.cff (version and date);
  - Cargo.lock and fuzz/Cargo.lock.
- `python3 tools/release/changelog.py assemble`: 23 fragments go into
`[0.15.0]`, with an introduction, a "Not measured" list, credits and
"Upgrading from 0.14". The 21 from the first assembly come in first,
then #1403's and #1405's after `main` was merged. #1405's fix is folded
into #1384's entry, since the slab quantities it restores never left a
release.
- README: the latest release and the "Upgrading from" pointer.

## Testing

- **Measure 41944962415.** It ran `main` at 77d71cb against v0.14.0
with timing, on the reference models, the samples, the held-out models
and Revit 2025, with no families.
- It found two losses from #1388 on the offices: 16 slab quantities went
from equal to missing on each file, and 14 (16) walls lost their GLB
layers.
- #1405 restores both. Measure 41949652150 shows them back to v0.14.0's
values, with 32 other models byte-identical.
  - The intro's timing figures come from this run.
- **Final Measure 41965523134.** It ran this branch at 1e56972 (with
#1402 to #1406, #1413 and #1414) against v0.14.0, with the reference
models, Revit 2025, the samples, the held-out models and the families.
  - Every figure in the introduction comes from it.
- Apart from the MCP scorer #1404 adds, every scorer output on every
model is identical to run 41963115180 (5b1a371): the held-out counts
only gain `mcp answers:` lines. #1406's writer refactor therefore moves
no export, on the samples and held-out models too.
  - Since 1e56972 the branch adds only changelog text.
- **Witness and fixtures.** The Core Interior witness observations and
verdicts (both artifacts) and the two synthetic fixtures are taken from
this PR's CI run 41954452074 on ce0b2d8. Only `witness_version`, the
verdict hashes and the version strings changed.
- **Release review.** A second read found these, all fixed on the
branch:
  - a false "and the families" for the first run;
  - #1405's missing entry;
  - an offsets claim that overreached for the decisions log;
  - stale sentences in three entries;
  - missing caveats, credits and upgrade notes;
- an MCP output schema that listed four optional fields as required.
#1414 fixes that and lands first.

## Audit-honesty checklist

- [x] The introduction keeps each entry's caveats, and adds a "Not
measured" list:
- the offsets unmeasured on Revit 2008 to 2022, and the decisions log's
before 2024;
  - the values with no recorded source;
  - the in-sample Area join rule (#1261);
- the refusal markers on Snowdon and `rac_advanced` with no IFC4 export
to score them;
  - the family-extrusions release range.
- [x] No emojis, private paths or internal jargon.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk proprietary source, decompiled internals
or NDA'd SDK content.

## Breaking changes

None in the stable API: `ExportOptions`, `ExportNote`,
`ExportDiagnostics`, `DecodedExportDiagnostics` and
`ExportedModelDiagnostics` gain fields and variants, and all are
`#[non_exhaustive]`; the provenance, decisions and stage types are new.
`--family-extrusions` is new in this release (the `arcs` field #1366
removed never shipped). Behaviour changes are listed under "Upgrading
from 0.14".

The `rvt-rs-mcp` tool output changes, as #1406 states and "Upgrading
from 0.14" lists:
- an element's `name` can be absent, where it would be a room's
`<class>-<ElementId>` placeholder;
- `element_type` is absent where the IFC export writes no type object;
- `element_type`'s `element_id` is the type object's `Tag`.

The output schemas in `docs/mcp-tools.json` say so.

## Related issues

Refs #1325, #1326, #1360, #1368, #1389, #421, #1354, #1261, #1384, #156,
#1366, #1356, #1394, #1374, #1402, #1403, #1404, #1405, #1406, #1413,
#1414.
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