Skip to content

ci: a workflow builds one probe for Windows, macOS and Linux as run artifacts, for a reporter whose file cannot leave a machine with no Rust toolchain (#1838) - #1851

Merged
DrunkOnJava merged 3 commits into
mainfrom
ci/probe-binaries
Nov 12, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
ci/probe-binaries

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

probe-binaries.yml builds one probe of the rvt-probes crate for Windows, macOS and Linux and keeps each binary as a run artifact, with its SHA256SUMS and the commit it was built from. It is for a reporter who can run a probe on a file that must stay on their machine but has no Rust toolchain there. Nothing is published or attached to a release.

Motivation

#1838: HWT-25 offered to run probe_re35_record_wrapper on both saves of a confidential Revit 2027 model (#1829). The machine that holds it has no Rust toolchain, and no workflow builds a probe today.

Changes

  • .github/workflows/probe-binaries.yml:
    • workflow_dispatch takes probe, which must be a plain file name under probes/examples, and builds the dispatched ref (--ref). A ref input would check out code CodeQL reads as untrusted where the default branch's caches can be written, so there is none;
    • it builds --profile ci for x86_64-pc-windows-msvc (static CRT, as the released CLIs), aarch64-apple-darwin and x86_64-unknown-linux-gnu;
    • a change to the workflow builds Revit 2027: 84 framing records of one save are read with no ElementId, and the save a day before reads all 84 (#1829) #1838's probe on the pull request, so this PR runs it end to end;
    • contents: read only, credentials not persisted, and actions pinned as release-binaries pins them.
  • docs/maintaining.md (Triage): when to use it, and to ask only for probes whose output names no element or person.

Testing

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • N/A: no user-visible change to the crate, so no changelog fragment
  • N/A: no limitation resolved or introduced
  • Commit messages describe WHAT changed and WHY
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • N/A: no probe added

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content
  • No new test fixtures

Breaking changes

None.

…rtifacts, for a reporter whose file cannot leave a machine with no Rust toolchain (#1838)

HWT-25 can run probe_re35_record_wrapper on both saves of a Revit 2027 model that must stay on its machine (#1829), but that machine has no Rust toolchain. probe-binaries.yml takes a probe's name, checks it names a file under probes/examples, builds it with the ci profile for x86_64 Windows (static CRT, as the released CLIs), aarch64 macOS and x86_64 Linux, and keeps each binary with its SHA256SUMS and the commit it was built from. A change to the workflow builds #1838's probe, so its pull request runs it end to end.
…ut, which CodeQL reads as untrusted code where the default branch's caches can be written (#1838)
@DrunkOnJava
DrunkOnJava merged commit d1c2fa0 into main Nov 12, 2026
42 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/probe-binaries branch November 12, 2026 23:05
DrunkOnJava added a commit that referenced this pull request Nov 13, 2026
…uctural usage against the class Revit's export gives it (#1841) (#1853)

## Summary

`probe_1841_framing_usage` counts each framing instance's structural
usage (`InsertableInst.m_structUsage`) against the class rvt-rs writes
for it and, given Revit's IFC export of the same file, the class Revit
writes. It prints counts only: no name, no ElementId. It is for HWT-25
to run on CHL (#1829), where Revit writes one framing member as
`IfcMember` and rvt-rs as `IfcBeam`. Part of #1841.

## Motivation

#1841's member half. Autodesk's exporter classes a framing instance by a
sub-category of its structural usage (revit-ifc,
`ExporterUtil.GetSpecificCategoryForElement`): a brace by the bracing
category, which Revit's class table maps to `IfcMember`. What each
stored value means has to come from the files, not the API's
enumeration. No model Measure scores against a Revit export has a
framing member that Revit's export moves to `IfcMember` (#1841
comments), so the evidence has to come from CHL.

## Changes

- `probes/examples/probe_1841_framing_usage.rs`:
  - exports the model as `rvt-ifc` does;
- reads `m_structUsage` from the native record of each element written
as `IFCBEAM` or `IFCMEMBER`;
- with a second argument, matches Revit's export by `Tag` inside the
probe;
  - prints, per value, the counts of each side's classes.

## Testing

- A probe Measure run on Autodesk's structural samples (`rst_basic` of
2023 to 2027 and Snowdon Towers Structural, no Revit export): every
sample prints its `framing` line, and `without_usage` is reported. If
`m_structUsage` is absent from the framing records, the field is wrong,
and that is said here before the probe goes to the reporter.
- On CHL, through #1851's workflow, by HWT-25.

- N/A: no `src/` change.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- N/A: no user-visible change, so no changelog fragment
- N/A: no limitation resolved or introduced
- [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
- [x] The probe under `probes/examples/` states its FACT

## 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. revit-ifc is read and cited, never
copied (CLEANROOM.md source 5).
- [x] No new test fixtures

## Breaking changes

None.
DrunkOnJava added a commit that referenced this pull request Nov 13, 2026
…e cut of the column, wall or beam it names beside Revit's beam, on ten BIM4LCA models (#1839) (RE-455) (#1917)

## Summary

A probe and a scorer for #1839 (a Revit 2027 concrete frame whose beams
run past Revit's), and RE-455, which reads them on the ten BIM4LCA
models that have Revit's export. Result: negative. The record box of a
beam that names a column already ends at the column's near face, so
RE-122's face rule has nothing to cut there; and none of the three kinds
of element a beam's list can name (columns, walls, other beams) explains
the 13 beams Revit does shorten. Nothing is exported differently.

## Motivation

#1839 asks where Revit keeps the cutback of a beam and which measured
models can score a rule for it. The BIM4LCA models are the open
candidates; this reads them, so that the test that remains is a model
whose boxes run to the lines' ends, such as the reporter's. The probe
and the scorer are what the reporter would run (the scorer prints counts
only without `--list`, and `probe-binaries.yml` (#1851) builds the probe
for a machine with no toolchain).

## Changes

- `probes/examples/probe_1839_beam_column_ends.rs`: per placed
structural framing record, its box along the longer plan axis, the 2023
rule's bounds, and for columns, walls and other beams how many its list
names, how many hold each end and where the beam would stop at the near
face of the one element that holds an end.
- `tools/re/beam_ends_vs_ifc.py`: meshes Revit's beam in its own frame
and counts the beams by Revit's length against the box's, the rule's
bounds, and each kind's cut (exact, too far, too little, and cut where
Revit does not).
- `reports/element-framing/RE-455-beam-ends-box-and-column-face.md`,
`changelog.d/research/1839-beam-ends.md`.

## Testing

Unit tests are banned in this repository; none added. The probe and the
scorer are shown working on real files; the rows were registered on
#1839 before each run
([comment](#1839 (comment))
for the second).

- [x] End to end on real Revit files, with the licence and the reproduce
command in RE-455: Measure
[43450655901](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43450655901)
and
[43455872839](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43455872839)
on the ten BIM4LCA models (CC BY-SA 4.0) with Revit's own IFC4 export;
the scorer was also run on a synthetic probe file (old and new format)
to check its counting.
- [x] Nothing is exported differently (no `src/` change), so there is no
witness refresh and no Measure of an output.
- [ ] `tools/check-local.sh`: CI runs it. `changelog.py check`,
`api-doc-ids.py` and `rustfmt --check` on the probe were run locally.

## Audit-honesty checklist

- [x] The report says what was measured and what was not: the reporter's
pattern is not in these ten models, so the column face stays unmeasured
for 2024 and later.
- [x] The changelog fragment is under `changelog.d/research/`.
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- [x] No emojis
- [x] A probe under `probes/examples/` and its report are included.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk proprietary source, decompiled internals
or NDA content (`CLEANROOM.md`): the figures are counts and lengths of
public sample files.
- [x] No fixtures added.

## Breaking changes

None.
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.

2 participants