Repository navigation
test(saved-batches) + ci: the three review follow-ups for #1827 - #2081
shifatrHtH wants to merge 3 commits into
Conversation
…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.
… 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
|
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.
Checked after publishing: every file on the release page against What went in from #2081
The three findings you left open
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. |
Commits
cfb44fa2test(saved-batches): a contract target that readstests/fixtures/saved-batches/einhoven-2023.rvtboth 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 theprobe_1075_saved_batchesexample, which no workflow runs.contract saved_batchesis intools/ci/test-targets.txt, soverify-real-files.shruns it on every push, the tier-two job included.fdaec930ci(viewer): Deploy viewer's inline wait pipedgh apiintogrepwithoutpipefail. 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 -- --checkclean.cargo clippy --all-targets --all-features -- -D warningsclean.tools/ci/verify-real-files.sh --check-only: everytests/*.rstarget is classified and merged.saved_batches::the_batched_read_agrees_with_the_one_shot_readpasses in 0.4 s, 2,615 elements and their progress events compared.main'stools/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 ofwait.shand finds it equal toci.yml'son.push.paths-ignore), every localuses:with its declared inputs, and the release page chain.Landing
The three commits sit on
f76ff06c, the current head ofhotfix/v0.14.1, sogit merge --ff-onlyis enough. Two of the three changed workflows differ only in comments; the third changes one step.tests/fixtures/is outside the crate'sincludelist, so the 913 KiB fixture does not enter the published crate or the Python sdist.