Skip to content

ci(dependabot): earcut moves by hand until #1553 settles its 0.4.12 - #1557

Merged
DrunkOnJava merged 1 commit into
mainfrom
ci/dependabot-hold-earcut
Nov 9, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/dependabot-hold-earcut

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Dependabot's weekly cargo group stops proposing earcut, until #1553 settles whether its 0.4.12 draws the same surfaces. That release moved 6 of 92 exports (Measure run 42538445237), so #1547 held it at 0.4.11; without this, the next group run, or a rebase of a group pull request, brings 0.4.12 back.

Testing

yaml.safe_load parses the file, and the cargo entry's ignore list reads ifc-lite-core and earcut. Dependabot's own config check runs on push.

@DrunkOnJava
DrunkOnJava merged commit 47056f3 into main Nov 9, 2026
40 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/dependabot-hold-earcut branch November 9, 2026 02:05
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
… the same surfaces, and Dependabot's hold on earcut lifted (#1553)

earcut 0.4.12 moved the triangulation of six exports (Measure run 42538445237).
tools/re/ifc_surfaces_same.py pairs the surface entities of a base and a head
export by STEP id and tells a re-split face from a changed one; the bump's
evidence is its output on those exports. Dependabot's ignore of earcut (#1557),
which held it until that showed the surfaces the same, is removed.
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
… the six exports it moves (#1553) (#1592)

## Summary

`earcut` moves from 0.4.11 to 0.4.12. It re-splits six exports, and
`tools/re/ifc_surfaces_same.py` shows that every surface of those six is
the same surface it was: the same polygons, or the same points with the
same faces and boundaries and only the diagonals that cut them
different. Dependabot's ignore of `earcut` (#1557), which held it until
that was shown, is removed.

Closes #1553.

## Motivation

`earcut` 0.4.12 ("speed up triangulation with slice inputs and faster
hole bridging") changed which exports rvt-rs writes. Measure run
42538445237 found six moved of 92: Autodesk's `rac_advanced` sample on
2023, 2024, 2025, 2026 and 2027, and Snowdon Towers' architectural
sample on 2024. Their `diagnostics.json`, `schema.txt` and stage counts
were identical, so only the bodies could differ, and no scorer reads the
bodies of those samples but `bodies_across_saves`. #1547 held the crate
at 0.4.11 until a change of triangulation was shown to leave the
surfaces as they were. rvt-rs calls `earcut` in
`src/ifc/export_content.rs` and `src/research/native_saved_mesh.rs`.

## Changes

- `Cargo.lock`, `fuzz/Cargo.lock`: `earcut` 0.4.11 to 0.4.12.
`Cargo.toml` asks for `0.4.5`, so it is the lockfiles alone.
- `tools/re/ifc_surfaces_same.py` (new): two exports of one file by
builds that differ in nothing but a triangulator, paired entity by
entity by STEP id (it stops if an id has another entity type on the
other side). Each `IfcTriangulatedFaceSet` and `IfcFacetedBrep` is
reduced to its polygons, rounded to a micrometre, and the two sides are
compared: *same polygons* (the same multiset, in any order and from any
corner), *same surface* (the same points, and in every plane the same
total area to 1e-9 and the same boundary: the edges an odd number of its
polygons hold, since a diagonal is held by two triangles and drops out),
or *different*. It exits 1 on any different one. It reads no Revit
export and writes nothing.
- `.github/dependabot.yml`: the `earcut` ignore and its comment are
removed.

## Testing

Unit tests: N/A. The check is the script on the exports it was written
for.

- **The six moved exports, surface by surface.** Measure run
[42593569119](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42593569119)
(`keep_ifc`, head `441e4781` against `main` at `f8238889`), then
`tools/re/ifc_surfaces_same.py base.ifc head.ifc` on each pair:

| export | surfaces compared | same polygons | same surface | different
|
  |---|---:|---:|---:|---:|
  | `rac_advanced` 2023 | 124 | 123 | 1 | 0 |
  | `rac_advanced` 2024 | 125 | 124 (one a faceted brep) | 1 | 0 |
  | `rac_advanced` 2025 | 125 | 124 (one a faceted brep) | 1 | 0 |
  | `rac_advanced` 2026 | 124 | 123 | 1 | 0 |
  | `rac_advanced` 2027 | 124 | 123 | 1 | 0 |
  | Snowdon Towers Architectural 2024 | 172 | 170 | 2 | 0 |

The 2023 pair is the one the first attempt could not pair: the earlier
head was cut before #1519, so its 2023 export held other entities and
the STEP ids did not line up. This head is on current `main`.
- **Nothing else moves.** Measure run
[42593566009](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42593566009),
the head against `main`, `-f samples=true -f nordic=true -f r2025=true
-f racadv=true -f bimcollab=true -f holdout=true`, every scorer: 112 of
the 118 exports are byte-identical and the six that differ are the six
above; the scorer diff is empty (the held-out models, `racadv` and
`bimcollab` included, whose results leave the runner as counts), and the
`same-project gates` check run on the head reads `pass: 15 samples held
to their earlier saves, and the Areas on 4 saves and on the 2021 save`.
- `cargo deny`, `cargo audit` and the semver check run in this pull
request's CI.

## Audit-honesty checklist

- [x] A moved surface is judged by what it is, not by its hash: a
triangulator that changed a boundary or an area would read *different*
and exit 1.
- [x] The script's limit is stated: it compares surfaces of two exports
of one file that keep their STEP ids, which two builds that differ only
in a triangulator do. A change that adds or drops an entity is outside
it.
- [x] No emojis, private paths or PII.

## Legal and contribution hygiene

- [x] Apache-2.0. No Autodesk source, internals or NDA material.

## Breaking changes

None. The exports of six samples change in the order and split of their
triangles; the surfaces they draw do not.
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