Skip to content

test(saved-batches) + ci: the three review follow-ups for #1827 - #2081

Closed
shifatrHtH wants to merge 3 commits into
DrunkOnJava:hotfix/v0.14.1from
shifatrHtH:review-1827-fixes
Closed

shifatrHtH wants to merge 3 commits into
DrunkOnJava:hotfix/v0.14.1from
shifatrHtH:review-1827-fixes

Conversation

@shifatrHtH

@shifatrHtH shifatrHtH commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Commits

  • cfb44fa2 test(saved-batches): a contract target that reads tests/fixtures/saved-batches/einhoven-2023.rvt both ways and compares the elements. The fixture is magnetar-io's MIT Revit 2023 project, 913 KiB, unmodified, with a licence sidecar naming its source commit and SHA-256; it holds 2,615 owners with saved graphics. The only proof that the batched read equals the one-shot read was the probe_1075_saved_batches example, which no workflow runs. contract saved_batches is in tools/ci/test-targets.txt, so verify-real-files.sh runs it on every push, the tier-two job included.
  • fdaec930 ci(viewer): Deploy viewer's inline wait piped gh api into grep without pipefail. A failed call left grep with no input, grep exited 1, the ! read that as "CI skips this commit", and the deploy went ahead. The step now uses .github/actions/wait-for-check, which retries the call and then fails the step.

Verification

  • cargo fmt --all -- --check clean.
  • cargo clippy --all-targets --all-features -- -D warnings clean.
  • tools/ci/verify-real-files.sh --check-only: every tests/*.rs target is classified and merged.
  • saved_batches::the_batched_read_agrees_with_the_one_shot_read passes in 0.4 s, 2,615 elements and their progress events compared.
  • main's tools/ci/check-workflows.py, run against this diff: 0 errors over this repo's workflows, including the documentation-path rule (it reads the regex out of wait.sh and finds it equal to ci.yml's on.push.paths-ignore), every local uses: with its declared inputs, and the release page chain.
  • The changed workflows and actions parse as YAML.

Landing

The three commits sit on f76ff06c, the current head of hotfix/v0.14.1, so git merge --ff-only is enough. Two of the three changed workflows differ only in comments; the third changes one step.

tests/fixtures/ is outside the crate's include list, so the 913 KiB fixture does not enter the published crate or the Python sdist.

…runkOnJava#1457)

`tools/ci/test_release_preflight.py` and `tools/ci/check-workflows.py` live on
`main`; this branch's `ci.yml` runs neither, and neither file is here. Four
comments described them as present. The preflight docstring and `publish.yml`
said the decisions are "tested beside it", and `release-binaries.yml` said the
wheel and archive counts are "compared" with and that the job-`if` rule above
`attest` is enforced.

They now say where the guard is, what that leaves to a rehearsal on this branch,
and that a leg added to either matrix has to move `RELEASE_WHEELS`,
`RELEASE_ARCHIVES` and the `checksums` count by hand in the same change.

Only comments change.
…ched saved-graphics read and the one-shot read the same elements (DrunkOnJava#1075, DrunkOnJava#1429)

The batching this line ships (DrunkOnJava#1691, and the owner freeing of DrunkOnJava#1441) had one
proof that it still emits what `extract_at_detail_with_control` emits: the
`probe_1075_saved_batches` example, which no workflow runs. `tests/saved_batches.rs`
is that comparison as a contract target, so every push runs it.

It needs a model with channel-103 saved graphics. None was committed:
`gen-fixture` writes an empty `Partitions/NN` stream, `empty.rfa` is a Revit 2013
family with no channel-103 record, and the ElemTable excerpts are channel 102.
The fixture is `tests/fixtures/saved-batches/einhoven-2023.rvt`, magnetar-io's
MIT Revit 2023 project, 913 KiB, unmodified, with a licence sidecar naming its
source commit and SHA-256. It holds 2,615 owners with saved graphics, among them
an owner that names another owner and a symbol that names one, the shapes DrunkOnJava#1429
and DrunkOnJava#1691 need. Each read takes about a third of a second, so the target compares
every owner and not a doors-and-windows selection.

The target compares each element's meshes, diagnostics, status, identity, source
and referenced sources, the progress events, and that no owner is visited twice.
It asserts the fixture's 2,615 owners, so a replaced file cannot leave the check
comparing nothing. The fixture's graphs are small, so it says nothing about where
`OWNER_OBJECT_BUDGET` or `BATCH_OBJECT_BUDGET` splits a plan; those need the
corpus models the Measure runs read.

`contract saved_batches` in `tools/ci/test-targets.txt`. The manifest check
(`tools/ci/verify-real-files.sh --check-only`), `cargo fmt --all -- --check` and
`cargo clippy --all-targets --all-features -- -D warnings` pass, and
`saved_batches::the_batched_read_agrees_with_the_one_shot_read` passes in 0.42 s.
… a failed API call no longer deploys (DrunkOnJava#1457)

The deploy job's inline copy read `gh api` through a pipe to `grep` without
`pipefail`. An API call that failed gave grep no input, grep exited 1, the `!`
turned that into "CI's push filter skips this commit", and the step deployed
without waiting. It now uses `.github/actions/wait-for-check`, whose `wait.sh`
retries each call and then fails the step. That is the action the release
preflight uses, and the one its description already said the viewer deploy uses.
`checks: read` was already on the job, so the permissions do not change.

Checked locally with `main`'s `tools/ci/check-workflows.py`, which this line does
not carry: 0 errors over this diff's workflows, including its documentation-path
rule, which reads the regex out of `wait.sh` and finds it equal to `ci.yml`'s
`on.push.paths-ignore`, and its local-reference rule, which finds the action and
the `sha` input it declares.
DrunkOnJava pushed a commit that referenced this pull request Nov 19, 2026
… read give the same elements on the Einhoven project (#1075, #1429, #1808)

shifatrHtH's check from #2081 (cfb44fa), which until now only the
probe_1075_saved_batches example proved and no workflow ran: every owner
with saved graphics is read both ways, and the elements and the progress
events must be equal.

Adapted by the maintainer in one way. #2081 committed the project file
(magnetar-io's MIT Revit_IFC5_Einhoven.rvt, 913,408 bytes, sha256
d3a0c6d3...a948) under tests/fixtures; this repository commits no Revit
project file, and CI on this line already fetches that exact file into the
project corpus. So the check reads it through RVT_PROJECT_CORPUS_DIR, as
tests/native_current_records.rs does, and is classed as a real-file target:
it runs in Corpus health on every push, skips where no corpus is configured,
and fails where one is configured without the file. The 2,615-owner count
and every comparison are the contributor's.

Claude-Session: https://claude.ai/code/session_01NCFPVqpXUmLDmXf35nPPeP
@DrunkOnJava

Copy link
Copy Markdown
Owner

Thank you, @shifatrHtH, for reviewing #1827 and for doing the follow-ups yourself instead of listing them. And I owe you an apology: on #1808 I said 0.14.1 would be tagged by November 16 if we had not heard from you. You answered that day, and the tag did not go out until today. That is on me.

0.14.1 is out.

  • Release page, with the binaries for Linux, macOS and Windows and SHA256SUMS
  • cargo install rvt --version 0.14.1 --locked, or rvt = "=0.14.1" in a manifest
  • pip install rvt==0.14.1
  • ghcr.io/drunkonjava/rvt-rs:0.14.1

Checked after publishing: every file on the release page against SHA256SUMS, the PyPI files against the release page, the build provenance of all 13 files against the tag, and the exports of the published macOS binary and the PyPI wheel on three reference models, which are 0.14.0's line for line apart from the version they record and the time of the export.

What went in from #2081

  • Your contract test, with one change. It closes a real gap: until now only an example that no workflow runs proved that the batched read equals the one-shot read. I did not commit the .rvt: this repository does not commit Revit project files (project fixtures are generated at test time, and real projects are fetched by CI at a pinned commit), and CI on this line already fetches that exact file, Revit_IFC5_Einhoven.rvt, byte for byte (sha256 d3a0c6d3…a948). So your test reads it from there: the same comparisons, the same 2,615 owners, the same count assertion, on every push. It ran and passed on the tagged commit before the tag went out. You are its author (7193e911).
  • The Deploy viewer wait and the four comments, as you wrote them (5486acaf, 0d6e7442).
  • Your commits were unsigned and the release line only takes signed ones, so all three are re-signed by me with you as author. That is why test(saved-batches) + ci: the three review follow-ups for #1827 #2081 shows as closed and not as merged. chore(release): 0.14.1 hotfix, review only (#1808) #1827, the review-only pull request, is closed unmerged as planned, now that the tag is out.
  • The changelog credits your review and your check.

The three findings you left open

  • The branch gate accepting any hotfix/*. You are right, and main already requires hotfix/v<version> for the tag's own version. I left the 0.14 line as it is: hotfix/v0.14.1 is the only hotfix branch there is, and changing the preflight would have meant rehearsing it again before a tag that was already late.
  • skip-existing on a re-run. The same as on main: the first attempt fails on a file PyPI already has, and only a re-run of the failed jobs skips what is there. It was not needed. The release went through on its first attempt, and the PyPI files match the release page hash for hash.
  • latest decided from every v* tag. Already fixed on this line (e8e3a5ff): only vX.Y.Z tags count. Checked after the release: the Latest mark and the image's latest are still 0.25.0's.

One thing I would like from you, once you have it running: 0.14.1's peak memory on your 122 MiB model, and whether its output equals 0.14.0's apart from the version string. As the release notes say, 0.14.1 itself was never run on that model: it keeps 0.14.0's batch plan, and the 6.8 GB to 1.8 GB you measured was your own port. If it does worse than your port there, tell me and a 0.14.2 follows.

My answer to #2085 is on that issue.

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