Skip to content

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
DrunkOnJava merged 2 commits into
mainfrom
fix/1882-ci-false-greens
Nov 13, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/1882-ci-false-greens

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

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.

  • Held-out fetches (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".
  • Export hash (measure-reference-models.sh): a reference model with no model.ifc gets no ifc.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.
  • Scorer crashes (schema_step): the three schema steps write exit 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 a MANIFEST_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: the page job's own if is read (it must run whenever upload does); 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-keyed PROPERTIES comparison the script does not make.

Not changed: lineage defaulting to the witness id (#1882 item 6). In research/witness-registry.json it 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

  • Both committed witness verdicts replay byte-identical to main's and to the committed verdict.json (Core Interior and slim, with CI's --registry and --compare-committed). With IFCROOF removed from every witness, main says PASS and this branch says MANIFEST_ERROR: no witness reports entity_counts.IFCROOF.
  • Each fetch script exits 66 on a missing pins file and on a comments-only one.
  • schema_step against stub scorers: a clean pass and a finding's exit 1 add nothing; a traceback adds exit 1, a timeout exit 124.
  • check-workflows.py passes on the real workflows (0 errors). On edited copies it names a page job whose if can skip it, a job-level RELEASE_ARCHIVES that disagrees with the matrix, and a RELEASE_WHEELS set nowhere.
  • measured_numbers.py passes on the pages (273 of 291 numbers named), and --refusals refuses all 9 cases, the open fence included. python3 -m unittest test_check_workflows test_measured_numbers: 127 tests OK.
  • Measure 43384478890 on this branch's scripts, with main's code (b76ee16) on both sides (nordic, r2025, every scorer). The rows hold:
    • every ifc.sha256 equal, 42 of 42 models, and every diagnostics.json equal, 42 of 42;
    • "Whether these results are whole" printed none of its failure lines on any shard, so schema_step added no exit line where nothing crashed;
    • the comparison lists no "no export on the head" line;
    • no scorer output differs (head-only probe and Areas lines only).
      The held-out fetch scripts are not exercised by this run (holdout off); their new guard is shown above on a missing and a comments-only pins file.

…ss verdict and the workflow checks fail when what they check did not happen (#1882)
@DrunkOnJava
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)
@DrunkOnJava
DrunkOnJava merged commit b928e39 into main Nov 13, 2026
64 of 68 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1882-ci-false-greens branch November 13, 2026 08:17
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.

ci: held-out fetches, the export hash and the witness verdict pass when what they check did not happen

1 participant