Repository navigation
ci: Measure exports every family it reads and hashes the export, and pins BIM4GIB's six revolution families - #1644
Merged
Merged
Conversation
…he two sides' exports of a family are compared, and pins BIM4GIB's six revolution families beside them (#1632)
…t of models, and fails a family that holds a space (#1632) A family export now writes ifc.sha256 as a model's does, so the total read every family as a model with no result and failed the run.
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
Measure now exports each family it reads (the 12-release phi-ag corpus and the makers' public families) and hashes the export as it hashes a model's (
ifc.sha256), so a change that moves what a family writes is listed by the comparison of the two sides. The six synthetic Revit 2020 families of #1632 are pinned inresearch/public-families.tsvbeside them, so the standalone-revolution export that landed there is exercised by Measure and any later change that moves it shows.Motivation
#1632's fixtures live on its author's fork release and no CI or Measure model exercised the revolution path (the review counted 0 models). Measure read a family only with
rvt-info, so no export of a family was ever compared between two commits. This closes both with the pinned package #1632 already carries (research/family-revolutions-measure.tsv).Changes
tools/ci/measure-reference-models.sh:measure_familyalso runsexport_ifcand writesifc.sha256(the IFC without itsFILE_NAMEandIfcOwnerHistory, as for a model); the export is dropped unlessKEEP_IFC.research/public-families.tsv: six rows (bim4gib-REV-A-2020.rfatobim4gib-ARC-BT-2020.rfa), the zip, its sha256 and size and each.rfa's, from feat(ifc): decode standalone Revit 2020 family revolutions as analytic solids #1632's pin..github/workflows/measure.yml: thefamiliesinput's description says so.Testing
No unit tests (banned); a real Measure run with the change:
families=true, basemain, the code ofmainon both sides, the scripts of this branch): 19 families have anifc.sha256on each side (the 12 phi-ag, the Stertil 2014 family and the 6 revolution families, whose zip's sha256 and size and each.rfa's were checked by the fetch script), every export exits 0, and the comparison lists 0 exports moved, as expected for one code state. The six revolution exports: REV-A, REV-B, REV-BT and ARC-A write the analytic solid feat(ifc): decode standalone Revit 2020 family revolutions as analytic solids #1632 landed; ARC-B and ARC-BT are refused and write no body, as feat(ifc): decode standalone Revit 2020 family revolutions as analytic solids #1632 states.shellcheckandbash -npass on the script;actionlintand a YAML load pass on the workflow.Audit-honesty checklist
rvt-ifc.logand does not fail the run, as for a model; the six hashes say the export did not move, not that it is right (feat(ifc): decode standalone Revit 2020 family revolutions as analytic solids #1632's own replay checks that); the families shard is run only withfamilies=trueand on a pull request to the workflow.Breaking changes
None.
Related issues
Follows #1632 (the fixtures' pin) and the review's coverage note.