Repository navigation
ci: the semantic check judges the BIM4LCA housing too, and a CI step fails a pull request where the fetcher's list, its dump case and the open-model list disagree (#1678) - #1680
Merged
Conversation
…a complete Measure run is no longer NOT MEASURED (#1675) The two timber office files joined the fetcher without a MCP dump or an entry in OPEN_MODEL_NAMES, so their folders matched OPEN_MODELS, held no dump and put every complete run's semantic check under NOT MEASURED. The check's test now derives its expected count from the model list.
…at joins the fetcher needs its dump case as well as its list entry (#1675) The guide still said 34, and nothing told a contributor that a fetcher's new model without a dump reads as a gap.
…fails a pull request where the fetcher's list, its dump case and the open-model list disagree (#1678) The six housing files come from the same VTT archive as the office (CC BY-SA 4.0), so the licence that lets the office's dumps go to Jev covers them; a change confined to them, such as #1665's slab and roof quantities, was invisible to the check. tools/ci/check_semantic_models.py reads MODELS_LIST, the dump case and OPEN_MODEL_NAMES and names the five ways they can disagree; on main before #1677 it reports the two timber models of #1675, and --refusals shows it failing on mutated copies.
# Conflicts: # docs/maintaining.md # tools/ci/measure-reference-models.sh # tools/re/semantic_diff.py
DrunkOnJava
marked this pull request as ready for review
November 11, 2026 02:09
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
The six BIM4LCA housing files join the semantic check: each gets an MCP dump and is listed as an open model, so a change confined to them, such as #1665's slab and roof quantities, is no longer invisible to it. A CI step,
tools/ci/check_semantic_models.py, fails a pull request where the fetcher'sMODELS_LIST, its dump case andOPEN_MODEL_NAMESdisagree; run on main as it was before #1677 it reports exactly the two timber models of #1675. No export changes.Motivation
Closes #1678; follows #1675 (#1677). The housing comes from the same VTT archive as the office (CC BY-SA 4.0), so the licence that lets the office's dumps go to Jev covers it. A model that joined the fetcher without its dump case or its list entry made every complete run's check read NOT MEASURED once; the guard makes that a failure in the pull request that adds the model.
Changes
tools/ci/measure-reference-models.sh: the dump case coversnordic-housing-*.tools/re/semantic_diff.py:OPEN_MODELSandOPEN_MODEL_NAMESlist the housing and its six models.tools/ci/check_semantic_models.py(new), run by the PII guard job ofci.yml: five ways the three lists can disagree, and--refusals, which shows it failing on six mutated copies of the two files.docs/maintaining.md: the guide counts 42 open models and names the check.Testing
No unit tests added; the existing
test_jev_checkandtest_semantic_diffsuites still pass locally, which is a guard and not evidence. The new check is a contract check on the real files and is shown failing on mutated copies and on the real defect (main before #1677: the two timber offices). End to end: Measure run 42940165321 (this branch's tooling; head 6e58c27 against base 74a5034, complete), judged against the rows registered on #1678 and reported there:skippedanduncoveredempty, each housing model holding a dump on both sides.jev_check.py --dry-runbuilds 13 chunks and 138,753 characters, 3 chunks and 39,622 characters more than without the housing, insideMAX_CHUNKS(150).SavedMeshRefusaladditions and counters, and nothing else; no element added or removed.A side effect of that run, stated there: the Semantic check job refused to send the housing diff (main's list lacks the housing until this lands) and failed on a main commit, by design. This pull request's own gate run is dispatched from main's tooling, so no housing dump is written and the check scores it against the list of 36.
tools/check-local.shpasses: not run locally (no local builds here); CI runs itAudit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.