Repository navigation
feat(ifc): a tread landing and a spiral run name the type records they read, and CI reads the current copy rule (#1368) - #1481
Merged
Conversation
…y read, and CI reads the current copy rule on the permit office (#1368) A landing drawn as its runs' tread lists its landing type's record and the record of each distinct run type of its stair's runs; a spiral run lists its run type's record. The export is unchanged. Measure run 42111951132 (main at d2439b0, --element-provenance, 92 models) has the current copy rule on one model, the BIM4LCA office at building permit, and selected_frame_box on none, so the gate now fetches and reads that model.
…Measure run 42115109274 measured, and say which models the run did not fetch (#1368)
…ers, an I-section beam and an Area's Levels (#1368) A wall drawn at its type's thickness lists the type's layers, a beam drawn as its type's I section lists the section entries, and an Area lists the block of every Level its base and height compare. The one value left without a source, a rectangular column's two sides, only gates its box quantities. The MCP description no longer says a body no reader notes yet.
DrunkOnJava
marked this pull request as ready for review
November 5, 2026 22:26
…reeing, and the value-source test requires the new readers and compares two parts' numbers (#1368) scan_partition_levels keeps each Level's newest partition and never compares older copies (RE-107), so the table says frame. COVERAGE gets a per-body list of required readers, CURRENT_PINS pins the counts, a Level's block is decoded again against the storeys the export writes and a wall type's layers against the layer sets. The fragment is scoped to the four values #1368 listed.
DrunkOnJava
enabled auto-merge (squash)
November 5, 2026 23:29
DrunkOnJava
added a commit
to puzzbobb/rvt-rs
that referenced
this pull request
Nov 6, 2026
Main moved by DrunkOnJava#1468, DrunkOnJava#1477 and DrunkOnJava#1481; the addenda of RE-353 and RE-362 both stay.
8 of 15 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
… waits for a runner to say so (#1457) (#1515) ## Summary The viewer tests no longer end with a roll-up job, `legs passed`, that took a runner of its own after the legs. The call's result already says whether the legs passed, and the one case the job covered is now checked statically. ## Motivation Griffin asked for the bottlenecks to be fixed. Over the last 200 minutes the account's 40 concurrent jobs were full about 70% of the time, and on #1481's landing run `legs passed` and `CI passed` waited 4.6 and 3.2 minutes of its 28.6 for a runner each. ## Changes - `.github/workflows/viewer-test.yml`: the `result` job (`legs passed`) is removed, and the header says why it is not needed. Why it existed: `CI passed` counts a skipped job as a pass and a call whose jobs were all skipped is skipped; the legs (`test`) already run whenever the run is not cancelled and fail their first step when `build` did not pass, so every leg either runs its tests or fails the call, and the call's own result, which `CI passed` and Deploy viewer read (`needs: viewer` in `ci.yml`, `needs: [build, tests, measure]` in `deploy-viewer.yml`), aggregates them. The only case `result` added was a `legs` list that yields no leg, which skips `test`, and a call whose `test` is skipped passes. - `tools/ci/check-workflows.py` (the env config job, which runs on every pull request) now checks that case before it can happen: the default `legs` of `viewer-test.yml` (both triggers) and the `legs` of every job that calls it are a JSON list written out (not a `${{ }}` expression), non-empty, each leg with a name and either spec files or `measure: true`. Five failure-first tests of the two pure helpers in `tools/ci/test_check_workflows.py`, for the mistakes that would let the call pass (a list that yields no leg, a computed list, a leg that runs nothing, and a caller's list being read), 86 tests in all. - `CI passed` stays: it is the required check, `full / CI passed` (`.github/rulesets/main-protection.json`, `arm.sh`'s "no full / CI passed on this head yet"). It already needs the reusable `viewer` job directly, so nothing changes there. Nothing else reads the name `legs passed`: not `arm.sh`, `watch.py`, the rulesets, Deploy viewer or its `wait-for-check`, nor the release preflight (`git grep` and the scripts under `.claude/`). ## Numbers `legs passed`, queue wait (created to started) in the last 20 full `ci-pr.yml` runs that ran it: median 26 s, p90 163 s, max 277 s; it ran 3 s. `CI passed` in the last 56 runs: median 26 s, p90 181 s, max 1,317 s. So the removed job saved a median of about 30 s and about 2.8 minutes at the 90th percentile of a landing run's chain, not the 4.6 minutes of #1481's run, which was above that percentile. A job that takes a runner also counts against the 40 concurrent jobs while it runs, about 3 s. The gain depends on the pool: a roll-up job is created when its legs finish, and the median wait for it is already short (26 s), so with the pool less loaded than in the last 200 minutes the gain tends toward that median of about 30 s, and only a saturated pool gives the minutes. ## Left alone `CI passed` still waits behind everything for a runner of its own; it cannot be removed, since the ruleset requires its name. A caller that computes `legs` is now refused by the check instead of guarded at run time; none does. ## 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` passes. N/A: CI-only change; no local compute on this lane. - [ ] Verified end to end on real Revit files. N/A: no Rust or reader change. - [ ] If this touches the IFC exporter. N/A. - [ ] If this is a performance change. N/A (a CI change; the numbers above are from the last runs on `main`'s workflow). The workflow and `check-workflows.py` are those of `9018d984`; after it the test file was cut to the five new tests and `main` merged in, and 86 tests pass on the head that lands: - `actionlint` exits 0. `python3 tools/ci/check-workflows.py`: 0 errors, 0 warnings, and the new line `viewer test legs: 4 lists` (the two defaults, Deploy viewer's two calls). `python3 tools/ci/test_check_workflows.py`: 86 tests. - The full CI of this pull request, once it is ready, runs the viewer tests (`.github/` changed, so `viewer-paths` runs them): the run has the `build the WASM` job and the three `browser tests` legs, no `legs passed`, and `full / CI passed` succeeds on the `viewer` job's result. Not yet measured on this head. - Not exercised: a failing leg through a call with no roll-up job (a leg that fails fails the call, which Deploy viewer already relies on), and Deploy viewer's run (it calls the same workflow; it runs on a push to `main` that touches the viewer, and can be dispatched on this branch, not done to spare the runners). ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR (the workflow's header and `check-workflows.py`'s docstring) - [ ] A user-visible change has its entry as a fragment under `changelog.d/<section>/`. N/A: CI only, as agreed for #1457. - [ ] If a limitation was resolved, the "Known limitations" section is updated. N/A. - [x] If a new limitation was introduced, it is documented in the PR body (Left alone) - [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 - [ ] Reverse-engineering finding. N/A. ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content - [x] Any new test fixtures use synthetic values ## Breaking changes None. ## Screenshots or output samples See Testing. ## Related issues Refs #1457
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.
Summary
With
--element-provenance, the table now names the records behind a wall's layers (wall_type_layers), a beam or column drawn as its type's I section (type_i_section), an Area's Levels (area_levels), a tread landing (native_landing_type,native_run_type) and a spiral run (native_run_type). CI's gate also reads the BIM4LCA office at building permit, the one model of 92 with thecurrentcopy rule. The export is unchanged; only the provenance table gains sources.Closes #1368
Motivation
#1368 left the profile copies and the landing thickness as "no source yet", listed four more values with no reader, and said no CI model exercises
current. All three are answered below with the run and head each figure was measured on.Measured
-f samples=true -f nordic=true -f r2025=true -f ifc_flags=--element-provenance -f scorers=none, nomodelsfilter because it is the one run that answers which model exercisescurrent). 92 models: Core Interior, Einhoven, 4 RE1, 4 BIM4LCA office files, the 24 Revit 2025 models of puzzbobb's three pinned archives, 58 Autodesk samples. The held-out models, BIMcollab and theracadvmodels were not fetched.selected_frame_boxon 0 of 92 (the profile-copy gap is empty; the doc row is now the stated fallback).currenton 1 of 92, the office at permit (sketch_lines3,sketch_list1); the 2021rac_advancedhas none, its 25 Areas readarea_plan_topology;instance_transform,sketch_line_dataandroof_line_datahave none anywhere. New sources:wall_type_layers1,973 elements on 29 models,area_levels483 Areas on 17,type_i_section557 elements on 5 (Autodesk'srstbasicsampleproject2024 to 2027 and Snowdon structural; none on a CI gate model),native_run_type84 on 17,native_landing_type82 on 8.-f samples=true -f sample_years="2024 2027" -f scorers=bodies_across_saves, noifc_flags, against main) has theifc.sha256of all 31 exports (Core Interior, Einhoven, 4 RE1, Autodesk's samples 2024 to 2027) identical on both sides, and itssame-project gatescheck run on ee449c3 is a success (the neutral one on that commit is theifc_flagsrun's). The two MCP-text and doc commits after it change nosrc/.native_run_type0 to 2 andnative_landing_type21 to 22 on both office files.tests/value_sources_offsets.rson the permit office and the new readers, passed on bd3466c. The second read's fixes after it (d303289: the rule, the stricter test, the docs) have not been through the full CI.-f base=main -f samples=true -f sample_years="2024 2027" -f scorers=bodies_across_saves, noifc_flags) has theifc.sha256of all 31 exports identical tomain's, and itssame-project gatescheck run on d303289 is a success.Second read (d303289)
level_block) and an Area's Levels (area_levels) are ruleframe, notagreeing:scan_partition_levelskeeps each Level's newest partition and never compares older copies (RE-107); on the office at permit Level 1338637 is02a_P-talo 2in Partitions/340 andLevel_02a_Parkingin Partitions/405.docs/export-diagnostics.mdsays so.tests/value_sources_offsets.rs:REQUIREDmakes the new readers required perBodySource(not any-of);CURRENT_PINSpins at least 3sketch_linesand 1sketch_liston the permit office; a Level's block decoded again at its offset must give the elevation of a storey the export writes where it is a building story; a wall type's layers read again must add up to the thickness of a layer set the export writes. Not compared: the numbers of the other parts (an I section's dimensions, a hollow section's, a pipe's points) and which Level an Area's base is; no gate model has an I section, so that check would not run in CI.wall_type_layersis noted where the wall's thickness is set, not only where its layers are, so a wall drawn at its type's thickness is sourced even when its bands are empty.area_levels.research/bim4lca-models.tsvchanges that key (the whole folder is saved again, 293 MB to about 371 MB, and the first run downloads from the VTT host); Measure'sbim4lca-measure-<hash>entry is path-versioned (_bim4lca-measure), so reuse means a restore-only step and a hardlink, with a one-entry fetch as the fallback. Not done unless asked.src/outside the provenance path changed in this commit (the two labels are insideif recording, the wall note is behindattribute_value_source), so no new verdict run: the verdict on ee449c3 stands, and the merge of main was clean.Residuals for the follow-up (not what #1368 listed)
Filed as #1498. Inputs of the bodies with no source, so none of them is claimed as sourced:
PlacementAxesSource: a door or window's rotation frominstance_transformis noted but filtered out, becauseRECORD_BBOXlists onlyselected_frame; the wall's native line and the two flips have no source.m_realJoinedand itsCompoundpieces.Changes
src/reader.rs,src/research/native_stairs.rs:attribute_value_sourcesbuilds one source from several records and notes none if one is missing; tread landings and spiral runs use it for their run types. All calls return at once when the handle records no sources.src/research/partition_schema_mvp/walls.rs,src/ifc/element_provenance.rs: a wall's type layers (the sametype_layersnote a roof's use) go to the wall;SectionShapeIletstype_i_sectionlist for a beam.src/research/partition_level_records.rs,src/research/partition_area_records.rs:scan_partition_levelsnotes each Level's newest block (NameElevationBlockgains anoffset); an Area lists the block of every Level its base and height compare.rvt-mcp/src/schema.rs: the description no longer says "Absent for a body no reader notes yet";docs/mcp-tools.*came from CI's artifact (23fec52).tests/value_sources_offsets.rs: coverage andMIN_READERSfor the new readers; a part ofnative_run_type,native_landing_typeorwall_type_layersis read at its bytes; an Area'sarea_levelsparts must be all the file's Levels; the permit office is a gate model withCURRENT_PINS.research/bim4lca-models.tsv,corpus/tier2/README.md,docs/reference-models.md: CI fetches the permit office (78.3 MB, same pin asresearch/bim4lca-measure.tsv).docs/export-diagnostics.md, changelog fragment: rows, counts, and the one value without a source.Testing
tools/check-local.sh: not run locally (no local builds); the draft's fast jobs and the full CI are the gate.Audit-honesty checklist
changelog.d/changed/1368-tread-landing-and-spiral-run-sources.mdLegal and contribution hygiene
Breaking changes
None to the export.
NameElevationBlock(research API) gains a field.