Repository navigation
ci: a draft pull request runs the fast jobs, and the full set with CI passed runs when it is marked ready (#1237) - #1319
Merged
Merged
Conversation
DrunkOnJava
marked this pull request as ready for review
November 4, 2026 03:43
…I passed once ready and only the fast jobs as fast / on a draft, so a draft head never carries the required check (#1237)
DrunkOnJava
marked this pull request as draft
November 4, 2026 03:58
DrunkOnJava
marked this pull request as ready for review
November 4, 2026 04:05
…l calls release-binaries.yml, and the docs name full / CI passed (#1237)
DrunkOnJava
enabled auto-merge (squash)
November 4, 2026 04:32
1 task done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 4, 2026
…r own, so marking a draft ready no longer cancels its fast run (#1237) (#1323) ## Summary Marking a draft ready started its full run, and `ci-pr.yml`'s single concurrency group cancelled the draft's fast run still in flight. That left eight CANCELLED `fast / ...` checks and a failed `fast / CI passed` on the head, beside the full run's green: #1317 at 8b4bbfe, run 41774698189. Neither is the required check, so GitHub blocks nothing. But the pr-queue mod reads any CANCELLED or FAILED check as a failing PR and passes it over (`queue.ts` 41-46, 68, 75-76). Fast and full pull-request runs now have concurrency groups of their own, `ci-pr-<ref>-fast` and `ci-pr-<ref>-full`, each still cancelling an older run of its own kind: - **Marking a draft ready** starts the full run at once and leaves the fast run to finish. - **A new push while a draft** cancels the older fast run. A new push while ready cancels the older full run. In both cases the cancelled run was on the previous head. `ci.yml` is unchanged. The first version of this PR changed its `CI passed` condition instead. A second read showed that left the eight cancelled checks in place, so that change is dropped. ## Testing - actionlint: nothing new. - A second read walked the cases: two quick draft pushes, ready while a fast run is in flight, two quick ready pushes, converted to draft and back on the same SHA, and a push while an older SHA's fast run is in flight. It also checked `ci.yml`'s own concurrency inside the called workflow. Results: in the PR's review. ## Legal and contribution hygiene - [x] Apache-2.0. ## Related issues Refs #1237, #1319, #1317.
6 of 11 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Nov 4, 2026
…nstall guide match the code, workflows and release assets (#1336) ## Summary `CONTRIBUTING.md`, `docs/python.md` and `docs/install.md` read line by line against the code, workflows and release assets they describe; what was wrong or stale is fixed. Docs only: no code, tests, tools or other pages change. ## Motivation The three pages are the first a contributor or user reads, and each had drifted: the unit-test rule had an exception it did not state, `python.md` still described a 395-class schema and a registry that is not wired in, and `install.md` named the release archives without the `v` they carry. ## Changes, each with the file it rests on `CONTRIBUTING.md` - The local gate: it also runs `cargo check --lib --bins` with `unnameable_types` denied, a build of every target, the doc tests and the user examples, not only fmt, clippy, rustdoc and the integration tests (`tools/check-local.sh` usage text). The jobs CI adds after it: the MSRV entry and i686 checks (`.github/workflows/ci.yml`). - Pull-request step: a user-visible change adds a fragment under `changelog.d/`, never `CHANGELOG.md` (`changelog.d/README.md`, `python3 tools/release/changelog.py check`); `main` takes signed commits and squash merges, and the maintainer replaces an unsigned contributor commit (`docs/maintaining.md`, lines 55 and 79 to 81); the one required check is `full / CI passed` once a PR is ready, only `fast / ...` while it is a draft (`.github/workflows/ci-pr.yml`, #1319). - The unit-test rule: banned, with one exception, a few fast tests of a pure helper with no file, network, process or clock I/O (the maintainer, 2026-11-04); anything that reads a file or decodes a real format is proved on real files. No `#[cfg(test)]` exists in `src/`, `rvt-py/src` or `rvt-wasm/src`, and CI's test job runs `cargo test --profile ci --doc` and the `--test integration` targets (`ci.yml` lines 242 and 490 to 597), so the first helper test adds `cargo test --lib`. - The manifest's classes are `real`, `cli`, `contract` and `hardening`; `unit` is no class any more (`tools/ci/verify-real-files.sh` line 54, the header of `tools/ci/test-targets.txt`). - The family corpus is 12 releases, 2016 to 2027, not 11 (`tests/common/mod.rs` `ALL_YEARS`, 12 entries); the project corpus holds Revit 2023, 2024 and 2025 files (`docs/reference-models.md`: Einhoven 2023, Core Interior 2024, RE1 2025). - Commit types in use are also `ci`, `build` and `research`, and the scopes in use are those of the last 400 commits of `main` (`git log origin/main`: feat 115, docs 76, fix 54, ci 48, research 33, chore 22, refactor 15, perf 14, build 14, test 6; scopes ifc 117, elements 35, measure 32, release 17, reader 16, deps 13, ...), not `object_graph`, `elem_table` and `readme`. `docs/python.md` (against `rvt-py/src/lib.rs` and `python/rvt/__init__.pyi`) - The schema is read whole since #410: 4,126 classes and 11,562 fields on a Revit 2024 file (`src/formats.rs` `SCHEMA_SCAN_LIMIT` doc, `docs/evidence.md`, RE-264's table), not 395 and 13,570; the 1 to 2 MB figure is dropped, as nothing measured it. - `schedule_csv(kind, metric, excel)` and `metadata(redact)` are methods, listed in the properties table; they are now under Methods, with `metadata`'s real keys (`lib.rs` doc of `metadata`, `docs/schemas/file-metadata.schema.json`) and `schedule_csv`'s `ValueError` on another kind (`lib.rs` 827 to 833). - `unread_streams()` was only mentioned in prose; it now has its entry (`lib.rs` 432 to 441). - `decoded_elements()` entries also carry `parameters`, and a file whose parameters cannot be read raises a `UserWarning` (`lib.rs` 697 to 724). - `read_adocument()` also raises `IOError` on a stream failure, and `read_adocument_lossy()` also raises `ValueError` when there is no `ADocument` class (`lib.rs` 575 to 604 and 647 to 652); the Errors table lists the `ValueError` cases that exist (`to_py_val` call sites). - "The 81 classes are a synthesized-fixture registry, not wired into `iter_elements`" is false: `iter_elements` prefers the typed decoders of `MVP_TYPED_CLASSES` and `decoded_elements()` exposes their projection (`src/elements/mod.rs` module doc, `docs/compatibility.md` section 3); the paragraph says what is and is not exposed. - The Contributing section names `tests/python/test_docs_python.py`, which runs every `python` block of the page against the synthetic fixture, so a signature block is fenced `text`. - Checked and unchanged: version 0.13.0 (`Cargo.toml`, `rvt-py/Cargo.toml`, tag `v0.13.0`), `abi3-py38`, MSRV 1.87, every default limit (`OpenLimits`, `InflateLimits`, `WalkerLimits`), every signature and default including `saved_meshes=True`, the saved-mesh scope (Revit 2023 to 2027, `saved_meshes::default_scope`) and the `RuntimeWarning` text (`attach_saved_meshes`), the version support table (`docs/compatibility.md` section 1), and the python blocks, which still run. `docs/install.md` - The release archives are named with the tag, `v` included: `rvt-rs-v0.13.0-x86_64-unknown-linux-musl.tar.gz` (release asset list of `v0.13.0`; `release-binaries.yml` "Package": `version="${TAG_INPUT}"`). The 12 places that wrote `<version>` for an archive now write `<tag>`, and the page says that the wheel and the image tag have no `v` (`release-binaries.yml` meta step: `version="${TAG_INPUT#v}"`). - The release page also carries the seven wheels, the sdist and `rvt-rs-<tag>.intoto.jsonl` (the `v0.13.0` asset list). - Checked and unchanged: the wheel table (`publish.yml` matrix: manylinux2014 and musllinux_1_2 on x86_64 and aarch64, macOS arm64 and x86_64, Windows x64; the assets `macosx_11_0_arm64` and `macosx_10_12_x86_64`), the archive contents (README.md, LICENSE, NOTICE), the container (distroless static, `WORKDIR /data`, `CMD rvt-info --help`, `docker/Dockerfile`), `docker/stage.sh` and `gh release download` use, the `[[bin]]` list (19, all installed by `cargo install rvt --locked`; no page here states a count), the `rvt-ifc --mode strict --diagnostics` flags, and the `confidence.level` key of the smoke test. ## Testing Unit tests are banned in this repository: none added. Docs only. - [ ] `tools/check-local.sh` passes: not run locally (no local builds here); the PR's CI is the check - [x] Every claim above is checked against the file named; no number comes from memory - [ ] If this touches the IFC exporter: N/A - [ ] If this is a performance change: N/A ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR: that is the PR - [ ] A user-visible change has a changelog fragment: N/A, docs only - [x] No emojis, no private paths, no personal email addresses - [ ] Reverse-engineering finding: N/A ## 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 - [x] No test fixtures added ## Breaking changes None. ## Screenshots or output samples N/A. ## Related issues None.
Merged
9 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 4, 2026
…e and head on one runner (#1343) ## Summary Measure's `timing` job is sharded by file. The build runs once, then four shards of about equal time each time base and head on a runner of their own, and a merge job puts their tables into the one table the single job wrote. A change in the shards' numbers is the proof run's. ## Motivation With `-f timing=true` the single "Timing (one runner)" job built both refs and exported every model, office file and sample three times each with both builds, in turn, on one runner. On run 41793618569 the other shards finished in 12.4 minutes and that job took 37 (07:37:59 to 08:14:57), so it was the long pole of every perf PR's Measure run. From run 41255129905's medians the files take about 44 minutes (base plus head, three rounds), the offices 12 of them and the 2024 samples 11. The rule that keeps a ratio honest stays: base and head of a file are timed in turn on the same runner (runner CPUs differ by up to about a quarter), so each shard times both for its own files. ## Changes - `.github/workflows/measure.yml` - `plan` outputs `timing`: the files as units with seconds that are their files' medians, base plus head, times three rounds, summed from the proof run 41797994751's table (the reference models 71, the four office files 329 when `nordic`, the samples as year ranges: to 2023 461, 2024 559, 2025 286, 2026 216, 2027 on 207, each cut to `sample_years`), packed into at most four shards largest first. With the inputs of a full run the shards weigh 559, 532, 536 and 502 s of 2,129. The proof run's four shards ran on four CPUs and no runner's rows skew clearly (its units took 0.98 to 1.21 of their time on run 41793618569's one runner), so the weights are not normalised. - `timing-build` builds `rvt-ifc` at both refs once (the cache, checkouts and build of the old job, unchanged) and uploads the two binaries as `timing-bin`. - `timing` is a matrix of the shards: it downloads the binaries (artifacts do not keep the executable bit, so it sets it), fetches only its files, runs `tools/ci/measure-timing.sh` on them and uploads `measure-timing-shard-N` (its table and its runner's CPU). - `timing-merge` puts the shards' rows into one table in the old format and order (the models, then the samples by name), writes the step summary with each shard's CPU, and uploads `measure-timing` with `timing.md` as before, plus `timing-runners.txt`. A shard that left no table fails this job after the others are merged. - The `timing` input's description says what it now does. - `CONTRIBUTING.md`: the Measure paragraph says the files are timed in shards and to compare ratios, not times, between rows. - No change to `tools/ci/measure-timing.sh`, which times what it is given. ## Testing Unit tests are banned in this repository: none added. - [x] `yaml` parses (`YAML.safe_load`), `actionlint` reports the one finding `main` has (`uses: $/.github/actions/fetch-corpus`, line 630 here, 588 there) and none new; file modes unchanged (100644). - [x] The planner, extracted from the workflow and run with seven input combinations (full, no offices, models only, `sample_years` 2015 2023 / 2026 2027 / 2025, timing off): every sample year and file is in exactly one shard, a range is cut to `sample_years`, and timing off gives the placeholder row. - [x] Proof, Measure run 41797994751 (`-f base=main -f samples=true -f nordic=true -f timing=true -f models="-" -f scorers=none`, dispatched from this branch, whose code differs from `main`'s by this workflow alone). Every job succeeded. - Shape: `timing.md` has the old header, 68 rows (the 10 models and offices and the 58 samples, the same 68 files as the old single job's table in run 41793618569) and the same order; the artifact is still `measure-timing`. - Ratios: head / base 0.96 to 1.02, mean 1.002, the totals 354.6 s and 355.2 s (1.002); 67 of 68 files within 0.97 to 1.03, the exception `Terrain_Concrete_BuildingPermit`, 0.96 (a small export). Peak memory 0.98 to 1.04 (`2015-rme_basic` 1.04: the same code on both sides). - Time: from the first job's start to the merge job's end 14 min 39 s, against the old single job's 36 min 58 s in run 41793618569 (0.40). Timing build 175 s; shards 356 s (offices), 572 s (samples 2024), 589 s (samples 2025 and 2026 and the reference models), 690 s (samples to 2023 and 2027 on); merge 6 s. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR: `CONTRIBUTING.md` is updated. - [x] Not a user-visible change: no changelog fragment (as #1317, #1319). - [x] No emojis, no private paths. ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 (see `CONTRIBUTING.md`). - [x] No Autodesk proprietary source, decompiled internals, or NDA'd SDK content. - [x] No fixtures. ## Breaking changes None to the code. The `measure-timing` artifact keeps its name and `timing.md` keeps its table; the job named "Timing (one runner)" is now "Timing", with "Timing N (what)" shards and "Timing build" beside it. ## Screenshots or output samples The step summary names each shard's runner, and `timing-runners.txt` in the artifact has them: ``` - shard 1 (offices): Intel(R) Xeon(R) 6975P-C - shard 2 (samples 2024): Intel(R) Xeon(R) 6973P-C - shard 3 (samples to 2023, samples 2027 on): AMD EPYC 7763 64-Core Processor - shard 4 (samples 2025, samples 2026, reference models): INTEL(R) XEON(R) PLATINUM 8573C ``` The four CPUs differ, which is what a ratio taken on one runner for each file is for: the same code reads 0.96 to 1.02 on all of them. First rows of the merged table: ``` | file | base (ms) | head (ms) | head / base | base peak (MiB) | head peak (MiB) | peak head / base | |---|---:|---:|---:|---:|---:|---:| | 2024_Core_Interior | 5891 | 5933 | 1.01 | 309 | 308 | 1.00 | | ARK_NordicLCA_Office_Concrete_As-Built | 26916 | 26859 | 1.00 | 919 | 919 | 1.00 | ``` The proof run's first weights (from run 41255129905) were off: the planner weighed the four office files at 720 s and they took 356, and the shard of samples to 2023 and 2027 on ran on the slower AMD runner, 690 s. The weights are now the proof run's own per-file times, which pack to 559, 532, 536 and 502 s (the planner run locally for the full, no-offices and `sample_years` cases: every unit lands in exactly one shard, one shard has the reference models and one the offices). No second proof run: only the weights changed, not the shapes; this PR's own Measure run checks that the workflow parses. ## Related issues None. Found while running #1333's unfiltered Measure.
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
The account runs at most 40 jobs at once, and was at that limit with 23 jobs queued. In the four hours before (to 03:40 UTC), pull-request CI took 1,869 runner-minutes, and 56% of it (1,047 over 36 runs) ran on drafts. Deploy viewer took another 230 minutes on drafts. A draft cannot merge. Its author needs to know whether the code builds, lints and reads the corpora, not the full matrix.
A pull request now runs
ci.ymlthrough a newci-pr.yml:full): every job, asfull / <job>.full / CI passedis the one required check (.github/rulesets/main-protection.json; the live ruleset is switched just before this merges).fast): fmt, clippy, cargo doc, the PII guard, the env lint, Corpus health, andbuild + real fileson Ubuntu stable and MSRV, asfast / <job>. The draft's head therefore never carries a check namedfull / CI passed.mainandhotfix/**: runsci.ymldirectly, as before. Its summary job is still namedCI passed, which Deploy viewer's deploy step waits for.Why the names: GitHub counts a skipped required check as passing, so a skipped
CI passedon a draft would let that head merge on the fast set the moment the PR is marked ready. A red one stayed on the head next to the later green one: the rollup read FAILURE (tested on this PR at 38a903e). Reusable-workflow jobs are named after the calling job, so the draft run cannot produce the required name at all.Testing
fast / ...checks plus a skippedfull, and nofull / CI passed.full / ...check green. That includes Windows, macOS, the wheel, IfcOpenShell and semver, andfull / CI passed.uses:form to the repository's$/path, which is what zizmor's self-repository rule wants and whatpublish.ymlalready uses, plus the docs.semver's, and no job uses secrets. Nothing else consumes the check name: Deploy viewer's wait matches the push run'sCI passed. The pr-queue mod's retry filter still matches the prefixed names.Transition
Once the live ruleset requires
full / CI passed, a PR whose last run is the oldci.yml's carries onlyCI passed. It needs one new run: an update-branch, a push, orgh pr ready --undo; gh pr ready. Every open PR is behind after this merges, so the queue's update-branch gives each itsfullrun.Legal and contribution hygiene
Related issues
Refs #1237.