Repository navigation
fix(ci): held-out fetches, the export hash, scorer crashes, the witness verdict and the workflow checks fail when what they check did not happen (#1882) - #1892
Merged
Conversation
…ss verdict and the workflow checks fail when what they check did not happen (#1882)
DrunkOnJava
marked this pull request as ready for review
November 13, 2026 07:37
…ail, and fetch-bim4lca never inflates past a member's listed size (#1882)
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
Fixes #1882: CI checks that passed when what they check did not happen. From batch 5's CI audit, every item confirmed by a second reader and re-read here.
fetch-holdout-archives.sh,fetch-holdout-models.sh,fetch-bimcollab.sh): a missing or pin-less pins file exits 66. It used to run the loop zero times through a process substitution and exit 0, which Measure read as "fetched and verified".measure-reference-models.sh): a reference model with nomodel.ifcgets noifc.sha256, as a sample or a family already did. It used to hash the empty stream, so a crash on both sides compared as unchanged. Measure's comparison now lists "no export on the head (the base wrote one)" instead of skipping a model with no hash.schema_step): the three schema steps writeexit N(what "Whether these results are whole" looks for) on a timeout, a signal, a usage error or a Python traceback. A finding's exit 1 stays unmarked, since these scorers exit 1 for a finding (ifc_validate_summary.py:112,ifc4_property_sets.py:232).fetch-bim4lca.py: a member whose listed size is not the pinned size is refused before the download; a member whose compressed size is impossible for its inflated size is refused; inflating past the listed size stops the write.witness-verdict.py: a claimed type that no witness reports at all is aMANIFEST_ERROR. It used to compare as 0 against 0 and pass. A witness that leaves out a type it counts as zero (rvt-rs's does; IfcOpenShell and ifc-lite write explicit zeros) still reads as 0.check-workflows.py: thepagejob's ownifis read (it must run wheneveruploaddoes); release constants are read from job-level env too, and a constant set nowhere fails; ci.yml must carry exactly two matrix strings.measured_numbers.py: a code fence left open fails, with a refusal case added, and a page read as holding no number fails.check_same_project_projects.py: the docstring no longer names a year-keyedPROPERTIEScomparison the script does not make.Not changed:
lineagedefaulting to the witness id (#1882 item 6). Inresearch/witness-registry.jsonit is an opt-in field set only by a witness derived from another (uncad → libredwg, freecad-bim → ifcopenshell, ara3d → web-ifc, gdal-ogr-dgn → dgnlib), so its absence means an independent implementation by design.Testing
main's and to the committedverdict.json(Core Interior and slim, with CI's--registryand--compare-committed). WithIFCROOFremoved from every witness,mainsays PASS and this branch saysMANIFEST_ERROR: no witness reports entity_counts.IFCROOF.schema_stepagainst stub scorers: a clean pass and a finding's exit 1 add nothing; a traceback addsexit 1, a timeoutexit 124.check-workflows.pypasses on the real workflows (0 errors). On edited copies it names apagejob whoseifcan skip it, a job-levelRELEASE_ARCHIVESthat disagrees with the matrix, and aRELEASE_WHEELSset nowhere.measured_numbers.pypasses on the pages (273 of 291 numbers named), and--refusalsrefuses all 9 cases, the open fence included.python3 -m unittest test_check_workflows test_measured_numbers: 127 tests OK.main's code (b76ee16) on both sides (nordic,r2025, every scorer). The rows hold:ifc.sha256equal, 42 of 42 models, and everydiagnostics.jsonequal, 42 of 42;schema_stepadded noexitline where nothing crashed;The held-out fetch scripts are not exercised by this run (
holdoutoff); their new guard is shown above on a missing and a comments-only pins file.