Repository navigation
ci: time-bound every job, pin Windows and macOS runners, lint the workflows and widen the PII guard (#1457) - #1462
Merged
Merged
Conversation
…kflows and widen the PII guard (#1457) PII guard: the patterns began with [a-z], so a capitalised user name in a macOS or Windows path passed; they take either case, a Windows profile folder may hold spaces, and only ci.yml (which defines them) is left out of the scan instead of every workflow. A git grep that fails now fails the step instead of reading as clean. Timeouts: 45 of the 53 jobs that run steps had no timeout-minutes (the default is 360). Each now has one from the longest run in the last 96 runs on main and 29 pull requests. tools/ci/check-workflows.py (env config lint) fails on a job without one, on a -latest runner label, on an MSRV that differs between Cargo.toml, the test matrix and the crates, and on a documentation-only path list that differs between ci.yml's paths-ignore, viewer-paths and Deploy viewer's wait step. Jobs another change is editing (publish.yml, release-binaries.yml, the wheel job, CodeQL and the Deploy viewer build) are listed as pending and reported as warnings. actionlint 1.7.12 with shellcheck 0.11.0 runs on every workflow in env config lint; .github/actionlint.yaml ignores only the two messages about the $/ form of local actions and workflows. PyYAML joins requirements-test.txt with its hashes. The test job's Windows and macOS legs run on windows-2025-vs2026 and macos-26 instead of -latest. The fast set's description names the MCP server on Einhoven, the test job's header states the unit-test rule as it is, the issue forms list Revit 2015 to 2027, and re_finding.yml links the corpus intake page by its full URL. Refs #1457
8 of 15 tasks
…'s comment says what was measured (#1457)
…ows.py has no pending list; it also checks local references and the MSRV in prose (#1457) python-wheel (40), CodeQL's analyze (30), Deploy viewer's build (30), publish.yml's nine jobs (20 to 90) and release-binaries.yml's four (20 to 100) get timeouts of at least 3 times their longest sampled run, the release jobs 5 or more times; python-wheel, publish.yml and release-binaries.yml run on macos-26 and windows-2025-vs2026. Corpus health's 180 minutes exceeds the 155 its two NOT MEASURED fetches can take when both hosts drop packets. check-workflows.py reads every $/.github/... and ./.github/... reference (actionlint does not know the form and ignores it): the action or workflow must exist, and with: names only inputs it declares and gives those it requires. It reads the MSRV in README.md, CONTRIBUTING.md, .cursor/install.sh, AGENTS.md and docs/python.md. The test of a called workflow now observes the branch it names. Refs #1457
… a local action too (#1457)
# Conflicts: # .github/workflows/publish.yml # .github/workflows/release-binaries.yml
…states two minimums (#1457) docs/install.md gives the workspace's 1.87 twice and the MCP server's 1.88 once. The check reads the second against rvt-mcp's rust-version instead of skipping the page, and a page whose MCP wording it cannot read fails rather than passing unread. RELEASE.md's matrix sentence is read as the workspace's. Failure-first tests cover a stale value in each statement, the crate moving alone, a reworded MCP sentence and a crate with no rust-version. Refs #1457.
DrunkOnJava
added a commit
that referenced
this pull request
Nov 5, 2026
…st, a retried SARIF upload (#1457) (#1461) ## Summary Four speed items of #1457, all in `.github`: the CI wheels build without fat LTO, CodeQL waits for a ready pull request, the RE1 models have one pin list and one fetch action, and a failed SARIF upload is tried again in a job of its own. ## Changes **1. Wheels without LTO** (`ci.yml`, `python-wheel`) - Job `env`: `CARGO_PROFILE_RELEASE_LTO=off`, `CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16`, as `viewer-test.yml` does for the WASM. `publish.yml` still builds the release wheels at fat LTO and one codegen unit; the comment that said `--release` matched what users get is corrected. - The variables reach cargo in the manylinux container. Run 42075324569, job 127413864828 (a copy of the job with cargo verbose): the `docker run` line forwards `-e CARGO_PROFILE_RELEASE_LTO -e CARGO_PROFILE_RELEASE_CODEGEN_UNITS`, and rustc for `rvt` and `rvt_py` runs with `-C lto=off -C codegen-units=16 -C opt-level=3`. Cargo finished in 1m 09s there (3m 06s in run 42067754303). - `rust-cache` is removed from the job. Run 42067754303 restored 246 MB on Linux and 203 MB on macOS (key `ci-release`, the `ci` profile's `target/ci`) and still compiled every crate on both (62, 62, and 66 on Windows, which found no cache): `--release` writes `target/release`, and on Linux the build runs in the manylinux container, which has its own cargo home and fetched every crate again. - A cache of its own for the macOS and Windows legs, saved on main, was measured with the flags above (run 42096110868, two runs of a copy of the job, one with a warm `rust-cache` under the key `ci-wheel-proof` and one without): Windows 155 s against 200 s of maturin, macOS 113 s against 99 s, for an entry of 84 to 87 MB each. It saves 45 s on one leg that is no longer the longest job of a push to `main`, so there is none. **2. CodeQL skips drafts and documentation-only pull requests** (`codeql.yml`, `docs/maintaining.md`) - `pull_request` types are `opened, synchronize, reopened, ready_for_review`; the job runs unless the pull request is a draft; `paths-ignore` is `**.md`, `docs/**`, `reports/**`, `changelog.d/**`. `push` to `main` and the weekly schedule are unchanged. - Nothing else expects these checks on a draft or a documentation-only head. The `main-protection` ruleset (live and in `.github/rulesets`) requires `full / CI passed` only and has no code scanning rule. `arm.sh` refuses a draft and a head with a pending or failed check, accepts `SKIPPED`, and an absent check is not pending. `watch.py` gates readying on the `fast / ...` jobs, and its `pending()` reads only checks present in the rollup. Neither needs an edit. - Code scanning: a draft head shows the Analyze jobs as one skipped check named `Analyze (${{ matrix.language }})` (a skipped matrix job is not expanded; run 42096123466 on a draft head: 1 job, skipped, 0 minutes). It is analysed when it is marked ready (`ready_for_review`) and on every push after that. A documentation-only pull request has no CodeQL check and no analysis of its head, so no alert comparison for it; nothing under those paths is a language CodeQL analyses here (no `.py`, `.js`, `.ts`, `.rs` or workflow file under `docs`, `reports` or `changelog.d`), and `main` is still analysed on every push. Scorecard's SAST check samples recent pull requests for CodeQL runs and may score a little lower. - A review thread that code scanning opened on an earlier head is not updated by pushes made while the pull request is a draft (no analysis runs); the analysis that runs when it is marked ready, and those after, update it. Left as it is. - NOT OBSERVED before ready: the `ready_for_review` run, and a documentation-only pull request skipping the workflow. A draft cannot be made to run either; the first ready run is on this pull request when it is marked ready. **3. One pin list, one action, one cache for the RE1 models** - `research/re1-models.tsv`: the commit and the eight files with sha256 and byte count. Hashes are the pins the workflows carried; sizes are `research/witness-registry.json`'s; all sixteen values were measured again from the raw host. - `.github/actions/fetch-re1` (`action.yml`, `fetch.sh`), inputs `files` and `path`; Linux runners only (`sha256sum`, `timeout`). It restores one cache entry keyed on the hash of the list, makes the requested files good in it (present with the right size and sha256, else downloaded from the raw host and then the media host, else the job fails), copies them to `path` and checks them there. Only on `main` does it make all eight good and save, so the saved entry is the whole set whichever job saves it; any other job fetches only what it asked for. A 404 is not retried. - Call sites: Corpus health (eight files), IfcOpenShell validates exports (five), the wheel job (one, Linux), `viewer-test.yml` (four). `tools/fetch-reference-models.sh` is not a fifth copy: it reads `research/witness-registry.json`, which is, with URLs on `main`. `tools/ci/check-re1-pins.py` (PII guard job) fails when the list and the registry disagree on a file, a hash or a size. Measure uses the registry's script and `measure.yml` is another lane's, so neither is touched. - Finding: the media host answers 404 for all eight files at the pinned commit (plain blobs, not Git LFS objects). The wheel job tried it first with `--retry 5 --retry-all-errors`: six 404s over 31 s, all of the step's time in run 42067754303, then the raw host answered in 0.1 s. - Download bounds. Run 41902701866 (#1379's head, fff508e, behind #1380) fetched all eight files, 37,767,282 bytes, in 411 s: Architecture.rvt (6.6 MB) took 264 s and Plumbing.rvt (3.5 MB) 146 s, about 25 and 24 kB/s, and the other six files (27.7 MB) together under 4 s. Whether those two were slow or stalled and retried the log cannot say. A floor of 100 kB/s for 20 s would have aborted both if they crawled. So a transfer is abandoned only when it has stopped (under 1 kB/s for 60 s; against a server that sends 1 kB and goes quiet, curl with these flags exits 28 after 60 s), and there is no per-attempt time limit, because an attempt cut off by one starts again from the first byte: the largest file, 13.4 MB, takes about 9 minutes at 25 kB/s and would have failed a 10 minute limit at 22 kB/s. The crawl case is ended by the step's own bound of 15 minutes, and that run would have used 411 of its 900 s. The one case left in which a slow download that keeps moving goes red is a cold fetch of all eight files, which `main` makes and so does Corpus health (it asks for all eight; cold only on the first run after a pin changes): 37.8 MB inside 900 s needs about 42 kB/s, so at 25 kB/s (about 1,510 s) it ends at 15 minutes, as the Azure mirror's 30 to 40 kB/s would. Every other job fetches only what it asked for and has more room (one file, 6.6 MB: 7 kB/s; the viewer's four, 26.9 MB: 30 kB/s). - A pin list with no newline after its last row is read in full; before, `fetch.sh` dropped that row. - The first run on `main` after merge fills the cache: up to six jobs race to save the same key, and the losers log "Unable to reserve cache with key ..., another job may be creating this cache", a warning, not a failure (seen in the proof below). The old keys `re1-oracle-<commit>` and `re1-<commit>` are no longer read. **4. A failed SARIF upload is retried, in a job of its own** - The retry cannot be a second step in the same job. In codeql-action at the pinned commit, `upload-lib.ts` runs `validateUniqueCategory` before the HTTP request and exports a sentinel with `core.exportVariable` (the job's GITHUB_ENV); a second upload of that category in the job throws "only one run of the codeql/analyze or codeql/upload-sarif actions is allowed per job per tool/category". Both observed failures died after that point (they stop at "Uploading results"), so a same-job retry would have failed at once and hidden the real error. Control, run 42096477400 (head 74f7d87): the first upload, with a refused token and `CODEQL_ACTION_ANALYSIS_KEY` set so that the action needs no API call before it sends the file, logs `Uploading results`, retries for 14 s, and fails with `Bad credentials` / `Please check that your token is valid`; a second upload of the same category in the same job, with the real token, fails with `Aborting upload: only one run of the codeql/analyze or codeql/upload-sarif actions is allowed per job per tool/category ... Category: (tmp-1457-same-job/)`. The first version of this proof (run 42096110868, no key set) failed before the category check, on the call that resolves the analysis key, and its same-job second upload then succeeded: that is why it proved nothing about these two failures. - Scorecard: the first upload keeps its step, with `continue-on-error`, and the job exports the step's outcome. A second job, `upload-retry`, runs when that outcome is a failure: it downloads the `scorecard-results` artifact and uploads it again. The SARIF's three runs keep their categories (`supply-chain/branch-protection`, `/local`, `/online-scm`); the retry holds the analysis key at `.github/workflows/scorecard.yml:analysis` (`CODEQL_ACTION_ANALYSIS_KEY`, an environment variable of the pinned action) so a retried upload stays the same configuration in code scanning. The retry is not in the scorecard job because, while publishing results, scorecard-action's API accepts only its approved actions in that job (`verify_workflow.go`: every step needs `uses`, from checkout, upload-artifact, upload-sarif, scorecard-action, harden-runner); other jobs are checked only for `id-token: write`. - zizmor: the same shape. The upload is inside `zizmor-action`, and with `advanced-security: false` it writes no SARIF at all (`action.sh` switches the output format), so the retry job runs the whole action again (about 6 seconds), keeping the analysis key `.github/workflows/zizmor.yml:zizmor` and the action's own category `zizmor`. Findings alone do not fail it (SARIF mode exits 0). - What the attempt-1 logs show (Scorecard run 42062175110, job 127366580611; zizmor run 42061129888, job 127362856134): both end at `Uploading results` and the step fails 20.9 and 18.7 seconds later, with no error text in the log, the log archive or the check run's annotations. codeql-action's client retries a failed request three times with octokit's retry plugin (`DO_NOT_RETRY_STATUSES` is 400, 410, 422, 451) and warns first on an HTTP error, which neither log has. So the likeliest cause is a transport failure that outlasted the action's own retries; the error itself was not recorded and this is an inference. A new job starts seconds after the failure, so it covers a short outage. It does not cover a long one, or a rejected file (a 422), which fail both and fail the run. A duplicate upload for one commit and category is replaced, not an error. - The retry shapes, forced to fail after the category check, run 42096477400 (head 74f7d87; copies of the two workflows' structure with a throwaway tool and category, since neither can run on a pull request). Scorecard shape: the first job's upload fails as above and the job stays green (`continue-on-error`); `upload-retry` runs, warns, downloads the artifact, and logs `Successfully uploaded results` and `Analysis upload status is complete`; code scanning then lists the two categories of the SARIF with analysis key `.github/workflows/scorecard.yml:analysis`. zizmor shape: the first job's upload fails the same way under category `zizmor`; the retry job runs the real `zizmor-action` 1.30.1 (zizmor exited 0) and its upload completes with category `zizmor` and key `.github/workflows/zizmor.yml:zizmor` (the variable reaches the composite action's steps). The analyses these runs uploaded on the branch ref were deleted afterwards. ## Testing CI only: no Rust, no Measure, no changelog fragment (nothing user-visible), no gates verdict (none of `arm.sh`'s gate paths changes). | What | Before | After | |---|---|---| | Linux wheel job, pull request (median of 11 runs, 42059064892 to 42068363131) | 6.8 min, maturin 5.3 | not run on this head as a pull request (it runs once ready); the same job on a push: 2.8 min, maturin 114 s (run 42075324767, f4abada) and 3.0 min, 117 s (run 42096111313, 267fa68) | | Linux wheel job, `main` (median of 13 runs, 42025959348 to 42067754303) | 6.5 min, maturin 5.1 | as above | | macOS wheel job, `main` | 7.3 min, maturin 6.8 | 3.5 min, 179 s (f4abada); 3.2 min, 163 s (267fa68) | | Windows wheel job, `main` | 9.3 min, maturin 8.5 | 3.9 min, 198 s (f4abada); 3.8 min, 192 s (267fa68) | | Cargo's own time in the Linux container | 3m 06s (run 42067754303) | 1m 09s (run 42075324569, job 127413864828) | | Wheel job, RE1 fetch step | 31 s (run 42067754303) | 1 s cold, 2 s with the cache (the two runs above) | | One full CI as a push to `main` | 76.8 job-minutes (run 42067754303; the issue's median is 82) | 66.1 (f4abada) and 66.6 (267fa68) | | CodeQL on a draft push | 4 jobs, about 9 job-minutes (the issue: 185 runs and 1,630 job-minutes in a day) | 1 skipped job, 0 minutes (run 42096123466) | The "after" runs are the full CI called from a temporary workflow as a push event on this branch (the draft's own CI runs only the fast jobs, with no wheel job), so the wheel matrix is the one `main` runs. They are single runs against medians, on runners that vary (the same macOS build took 94 s in one job and 179 s in another at the same time). The temporary workflows and a temporary save condition are removed in 4a76afd; the tree those runs built differs from this head only by them, by the merge of main, a docs line (87b6633), a comment (c016cf8), the removal of curl's `--max-time` from `fetch.sh` (d88f9b2) and, for the first run, 52cf6ba's changes to the fetch action and the two retries. fetch-re1, run 42096110868 (a temporary job; head 267fa68): the first call restores the entry an earlier run saved (`Cache hit`, 26 MB) and all eight files are `in the cache and matches its pin`, with no save step; a store file emptied by the job is the only one downloaded again when asked for; a pin list with one wrong hash fails the step with `matches its pin ... from neither host` and places nothing. The first run (42075324569, job 127413864377) shows the save and the race: `Cache saved with key re1-...`, then in a second call `Failed to save: Unable to reserve cache with key ..., another job may be creating this cache`, a warning. On the real call sites, run 42096111313: Corpus health 0 s, IfcOpenShell 3 s, the wheel job 2 s, the viewer legs 1 to 3 s, all from the cache. `fetch.sh` was also run on its own against the live hosts: cold, warm, a truncated store file, an unknown name, a wrong hash, a wrong size, a malformed row, a pin list with no final newline (eight files), only the files asked for with and without `FILL_ALL`, a Git LFS file (the raw host answers 200 with a pointer, which fails its size and hash, then the media host serves the content), and a file on neither host (final at once, no retries). ## Not measured - The wheel job and the other fetch call sites as a pull request (they run once this is ready), and the full CI of this exact head: the runs above are of heads that differ from it only as stated. - The `ready_for_review` CodeQL run and a documentation-only pull request (above). - The cache save on `main` and the first-run race on `main` (the save is `main`-only; the race was seen on a branch). - Scorecard's real retry: the workflow runs on `main`, not on a pull request. The new job layout was checked against scorecard-webapp's `verify_workflow.go` (it reads the steps of the scorecard job only, and the other jobs only for `id-token: write`) and not run through the API. zizmor's real retry job was not exercised either, since its real first attempt passed here; the shape was. - The cause of the two original upload failures (inferred above, not read). - Not done, by agreement: timeouts for `python-wheel` and CodeQL's `analyze` job stay with #1462. ## Related issues Refs #1457
Conflict: ci.yml's python-wheel job, my pinned os labels beside main's no-LTO env block (both kept). Beyond the resolution, for what main brought in: timeout-minutes 15 on the two retry jobs it added (scorecard.yml upload-retry, zizmor.yml zizmor-retry), the Corpus health limit's arithmetic now that the RE1 fetch is bounded by fetch-re1's timeout 900, and the publish.yml wheel comment, which said it mirrors a CI wheel that is now a smoke build. check-workflows.py: 60 jobs, 0 errors, 0 warnings, PENDING empty. Refs #1457.
DrunkOnJava
marked this pull request as ready for review
November 5, 2026 21:21
DrunkOnJava
added a commit
that referenced
this pull request
Nov 5, 2026
…nd a floating-nightly docs build, each failure one issue (#1457) (#1463) ## Summary Gates and schedule, part 2 of 2 for #1457 (part 1 is #1462): a daily advisory audit of the three lockfiles, a check for a NOT MEASURED warning that persists, a daily cleaning of the Actions cache, and a weekly docs.rs build on a floating nightly, each failure opening one issue; Corpus nightly and Performance Budgets report their failures the same way. Fuzz's corpus moves from the Actions cache to an artifact, because the cache was losing it. ## Motivation #1457 and today's audit: `fuzz/Cargo.lock` and `tools/ci/witness-ifc-lite/Cargo.lock` are audited by nothing; BIM4LCA, R2025 and `pnpm audit` pass with a warning when their host is down, so a dead host stays green with nothing measured; Corpus nightly and Performance Budgets fail and nobody reads it (Performance Budgets failed 3 of its last 15 runs, on 2026-08-31, 09-07 and 09-14, in its `Run budget harness` step, and passed the 6 since; the causes were not looked into); the Actions cache sat at its 10 GB limit with 1,185 unusable entries, which evicts caches in use; and `publish.yml` is moving to a dated nightly, so a nightly that breaks the docs would show only at a tag. ## Changes - `.github/workflows/scheduled-checks.yml` (new; none of these has a workflow it belongs to, and they share one dry-run rule and one reporter). Daily at 03:23 UTC: `Audit rvt`, `Audit fuzz`, `Audit witness` (`cargo audit --file <lock>` and `cargo deny --locked --manifest-path <manifest> --config deny.toml check advisories`, advisories only, with the root's `deny.toml`; cargo-audit 0.22.2 and cargo-deny 0.20.2 as `ci.yml` pins them), `NOT MEASURED streaks`, and `Clean the Actions caches` (`tools/maintainer/clean_caches.py --delete`, with `actions: write`, `pull-requests: read` and `contents: read` only). Mondays at 03:41 UTC: `docs.rs on a floating nightly` (`cargo doc --no-deps --all-features` with docs.rs's flags and the banner check, on `nightly`, no cache). - Dry run by default off the schedule: a dispatched run (input `dry_run`, default true) or a push to a branch opens no issue and deletes no cache and prints what it would. Only the schedule, or a dispatch that turns `dry_run` off, acts. - `.github/workflows/report-failure.yml` (new, reusable over `tools/ci/open_issue.py`): for each failed job of the calling run, one issue labelled `scheduled:<job name>` and `type:ci`, or nothing if one is open under that label: no comment, no edit. `scheduled-checks.yml`, `corpus-nightly.yml` and `perf-budget.yml` each end in a `report` job that calls it. - A job that exceeds its `timeout-minutes` ends as `cancelled`, not `failure`, so the `report` jobs run `if: !cancelled() && (a needed job failed or was cancelled)` and `open_issue.py` reports a cancelled job and the step that was running. `!cancelled()` is false when the run itself was cancelled (a person, or a newer run), so such a run reports nothing. Both sides were observed (below). A cancelled job is read as a timeout, so no matrix leg may be cancelled by a sibling's failure: the only matrix that has a reporting job (`Audit`, in `scheduled-checks.yml`) sets `fail-fast: false` (and so does Fuzz's, which does not use this reporter); Corpus nightly and Performance Budgets have no matrix. The issue says "ended cancelled although nobody cancelled the run" and names a timeout and a lost or shut-down runner as the ways that happens, rather than claiming a timeout. - `tools/ci/not_measured.py`: reads the check runs of each of the newest `main` pushes of `ci.yml`, and of the daily `scheduled-checks.yml` runs, and the annotations of every job that wrote any, and opens one issue, `scheduled:not-measured-<subject>`, when a subject's `NOT MEASURED` warning is on every run in which its job succeeded for at least 3 runs spanning at least 24 hours. No list of jobs is kept, so the cited-commits lookup in the PII guard and the `folded-pieces.spec.ts` warning in the viewer tests are read like Corpus health's, and a job that starts to write such a warning is read from its next run. A run whose job failed neither adds to a streak nor ends it; a run without the warning ends it. It reads at least 3 runs and stops when nothing can change; it never fails CI, and a run it cannot read is skipped, not fatal. - Why 3 runs and 24 hours: `ci.yml` ran for 80 pushes to `main` in the 37.5 hours from 2026-11-04 03:33 to 2026-11-05 17:03 UTC, so three runs in a row can be minutes apart, and a host's outage (the npm advisory endpoint's maintenance windows) lasts hours. A warning on every run over a whole day, with none that measured it between, has been unmeasured through a night and a morning. The daily scheduled runs reach it after three days. - `tools/ci/advisory_check.py`: runs `cargo audit` and `cargo deny check advisories`. An advisory, or any other failure, fails at once. A database or crate index that cannot be fetched is tried three times (30 s, then 60 s apart) and then is a `::warning::RustSec advisory database NOT MEASURED` and exit 0, which `not_measured.py` follows across days, so a host that is down opens no `scheduled:audit-*` issue and a host that stays down opens a `not-measured` one. An advisory outranks a fetch message in the same output. - `tools/maintainer/clean_caches.py`: after three reads of each list (GitHub answers a read with an empty body and a success status now and then, `arm.sh` documents it), a branch list without `main` stops the run (exit 1, nothing deleted: that cannot be true), and an open pull request list that is still empty deletes nothing, prints a `::notice::` saying why and exits 0 (a repository can have no open pull request, for example after a release empties the queue, and every pull request's cache would read as dead on a read that may be wrong; the next run with an open pull request cleans); a 403 that is a permission stops the run at once instead of being waited out as a rate limit (about 122 s a cache, past the job's 30 minutes). It also keeps the newest two generations of the RE1 models' cache as one family: #1461's `re1-<sha256 of research/re1-models.tsv>` and the `re1-<commit>` and `re1-oracle-<commit>` keys it replaces (all three shapes exist in the repository today), so a superseded 26 MB entry goes with the first new key instead of waiting for eviction. - `fuzz.yml`: the corpus is a 30-day artifact, `fuzz-corpus-<target>`, saved by a run on `main`; the next run downloads the newest unexpired one of a run on `main` through `gh api`, with `actions: read`. See below for why. A corpus that cannot be read is not the target's failure: the listing, and the download with its unzip test, are tried three times (10 s, then 20 s apart); still unread, it is a `::warning::` and the night starts from the seeds, as when there is no artifact. The zip is unpacked beside the corpus and copied in only whole, so a corrupt one leaves no partial corpus, and that night does not save its corpus (`steps.restore.outputs.state`), so a seeds-only corpus is never the newest artifact that the next night restores in place of the one that could not be read. Before, a transient `gh api` failure failed the target's job under `set -e`, and the nightly `report` job then opened or commented on a `fuzz-build` issue that had nothing to do with the target. - Corpus nightly and Performance Budgets: a `report` job each. A manual run of either is a dry run. - `ci.yml`: the PII guard job also runs `tools/ci/test_not_measured.py` and `tools/maintainer/test_clean_caches.py`. `docs/maintaining.md` says what runs daily. ## Fuzz's corpus was being lost The nights of 2026-11-04 and 2026-11-05 logged "No cache found" for `fuzz-corpus-fuzz_open_bytes-*` and started from the five seed files, after 11-01 to 11-03 had restored 279, 319 and 321 inputs (runs 41284363283, 41405861435, 41595721515). The saves reported success on 11-04 and 11-05 (`Cache saved with key: fuzz-corpus-fuzz_open_bytes-41791657969` and `-41986602107`), and no `fuzz-corpus-*` cache exists now, nor a `v0-rust-fuzz-*` one. The key matches `fuzz-corpus-<target>-<run id>`, as the cleaner's family I had added (and now drop) read it, so the cleaner was not the cause and had nothing to match. The cause, inferred: GitHub evicts the cache least recently used first at its 10 GB limit, and a key read once a night is the oldest by the next night once the other runs have saved a day's worth (707 caches were created on 2026-11-05 alone). GitHub does not log an eviction, but no cache in the repository was last accessed before 09:36 UTC on 2026-11-05 (the oldest of 872 was 09:36:54), which is the cutoff an LRU eviction leaves; the Fuzz caches saved at 07:32 and 07:33 are older than that. The accumulated corpora (the 11-03 save and the two after it) are lost, and cannot be recovered; the fuzzer starts again from the seeds and re-finds coverage, which is slower, not wrong. An artifact lasts its `retention-days` whatever else the repository saves. ## Left as it is, and told `fuzz.yml`'s `report` job comments on an open `fuzz-crash` or `fuzz-build` issue (`gh issue comment`). The new reporter never comments; I did not change Fuzz's. ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [ ] `tools/check-local.sh` passes. N/A: CI-only change; no local compute on this lane. - [ ] Verified end to end on real Revit files. N/A: no Rust or reader change. - [ ] If this touches the IFC exporter. N/A. - [ ] If this is a performance change. N/A. A workflow file that is not on `main` yet cannot be dispatched (`gh workflow run scheduled-checks.yml --ref <branch>`: `HTTP 404: workflow ... not found on the default branch`, tried on a scratch branch with a one-job probe), so `scheduled-checks.yml` ran from scratch branches on a push, which is a dry run by its own rule, with one added trigger line (`push` on that branch) and the forced changes named below. `corpus-nightly.yml` and `fuzz.yml` exist on `main`, so they were dispatched from branches. No issue was opened and no comment posted (`gh issue list --state all --search "Scheduled check"` is empty). - The timeout (the blocker): `scratch/timeout-1457`, head `4e8fb61d`, `corpus-nightly.yml` with `timeout-minutes: 1` on its job, dispatched once, run 42096754583. `Tier 2 — wider project corpus` ended `cancelled` while the step `Tier-two open / schema health (wider limit)` was running; the report job ran and printed `dry run, would open an issue under scheduled:tier-2-wider-project-corpus, type:ci`, titled `Scheduled check did not finish: Tier 2 — wider project corpus`, saying the job "ended cancelled, which is how a job that exceeded its timeout-minutes ends (nobody cancelled the run)" (reworded since, see the reporter bullet), with the run, the job and the step. - The run cancelled by a person: `corpus-nightly.yml` dispatched from this branch and cancelled with `gh run cancel` at once, run 42097796230: the job ended `cancelled` and the report job was `skipped`. - `scheduled-checks.yml` on `scratch/sched2-1457` (head `d0d1cee7`), run 42098085270, with the `Audit witness` leg pointed at a database URL that does not exist and the docs.rs banner check forced to fail: `Audit witness` tried three times, printed `::warning::RustSec advisory database NOT MEASURED: Audit witness could not fetch it in 3 tries, so nothing was audited` and passed (its check-run annotations carry that message, and `not_measured.subject_of` reads `RustSec advisory database` from it); `Audit rvt` and `Audit fuzz` passed (cargo audit and cargo deny 0.20.2, no advisory on any of the three lockfiles); `docs.rs on a floating nightly` failed at its banner check; the report job ran under the new condition and printed `1 failed job(s)` and `dry run, would open an issue under scheduled:docs-rs-on-a-floating-nightly` with that step. `NOT MEASURED streaks` read 3 runs of `ci.yml` and none warned; `Clean the Actions caches` ran as a dry run. - Earlier runs, before the changes in the second half of the list above (the report condition was `failure()`, the audits ran the tools directly): 42078699446 (three audit legs failed on my wrong `--config` placement, and the report job listed three would-open issues), 42079385437 (all green) and 42079733457 (docs.rs forced to fail, reported), `corpus-nightly.yml` forced to fail (42078800852, reported) and passing (42079444299), `perf-budget.yml` passing (42078750697). - `advisory_check.py` with the real tools, locally: a lockfile with `time 0.1.43` (RUSTSEC-2020-0071) exits 1 at once with the advisory; a database URL that does not exist is tried three times and warns NOT MEASURED, exit 0; `Cargo.lock` passes. - `not_measured.py --history --max-runs 40` against the live repository, now reading every job's check run: 40 runs of `ci.yml` on `main`, every job measured, no warning, so no real warning has been read yet. A synthetic streak (5 runs over 31 hours of `BIM4LCA models`, ending in a run that measured) printed `PERSISTENT` and `dry run, would open an issue under scheduled:not-measured-bim4lca-models`. The annotation payload (`{annotation_level, message}`) is that of the real witness-leg warning above. - `tools/ci/open_issue.py failed-jobs --dry-run` against a past failed run of `main` (42041502131): 2 failed jobs found, each printed with its failed step. - `tools/maintainer/clean_caches.py` dry run on the live repository: 884 caches, 5.9 GB, 210 unusable. - Fuzz's corpus round trip, `scratch/fuzz-1457` (a copy of this branch whose save and restore name the scratch branch instead of `main`), `fuzz.yml` dispatched twice for one target, `fuzz_part_atom`, with a 20 s budget: run 42097959761 found no artifact (`::warning::no corpus artifact of fuzz_part_atom to restore: this night starts from the seeds`, 5 inputs), fuzzed, minimised to 549 inputs and uploaded artifact 13448991911 (256,118 bytes); run 42099451035 printed `restored artifact 13448991911`, started from 554 inputs, minimised to 624 and uploaded 13449327261. The scratch artifacts were deleted. The branch conditions of the real file (`main`) were not exercised, since a run on `main` is the nightly itself. - Tests: `tools/ci/test_not_measured.py` (36 failure-first tests of the streak logic, the reportable jobs, the advisory classification, the labels and the bodies; of 22 mutations of the code every one fails a test) and `tools/maintainer/test_clean_caches.py` (18 tests: the newest generation of a family stays, a key of no family is left alone, the three shapes of the RE1 key are one family, an empty pull request list deletes nothing and is exit 0, a branch list without `main` is exit 1 and is judged first, a permission 403 is not a rate limit). - The three fixes after the second read, without a new dispatch: `clean_caches.py main()` run with its two reads replaced (an empty pull request list with `--delete` printed the notice and exited 0, and the replaced `gh` that deletes was never called; a branch list without `main` exited 1); the `Restore the corpus` script run as extracted from `fuzz.yml` against a stub `gh` and the real `unzip`, in seven cases, each exit 0: a good zip (5 inputs restored), no artifact (warning, nothing), the listing failing three times (warning, `state=failed`, no corpus), the download failing three times (the same), the download failing once (restored on the second try), a truncated zip (three tries, `state=failed`, the corpus directory empty) and an empty download (the same). - `actionlint` with the `$/` ignores of #1462 on every workflow: exit 0. `tools/ci/check-workflows.py` of #1462 finds no missing timeout in the new files. Not measured: the daily and weekly crons themselves (the first scheduled run is after the merge); the `report` job when a needed job is skipped and another failed, as on a daily run that skips `docs-rs-nightly` (every run above was a push or a dispatch, where all four jobs ran; GitHub's rule for `failure()`-style conditions says it runs); Performance Budgets' failure path (its `report` job is written as Corpus nightly's, with the same condition, but it was only seen skipped); a real deletion by `--delete` (the dry run lists 210 caches); an issue actually opened; a NOT MEASURED streak read from real warnings over days; and the cause of Fuzz's lost cache beyond the inference above. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR (`docs/maintaining.md`) - [ ] A user-visible change has its entry as a fragment under `changelog.d/<section>/`. N/A: CI only, as agreed for #1457. - [ ] If a limitation was resolved, the "Known limitations" section is updated. N/A. - [x] If a new limitation was introduced, it is documented in the PR body (a new workflow cannot be dispatched before it is merged; Fuzz's reporter still comments; the Fuzz corpus lost to the cache is not recoverable) - [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 - [ ] 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] Any new test fixtures use synthetic values ## Breaking changes None. ## Screenshots or output samples See Testing. ## Related issues Refs #1457
DrunkOnJava
enabled auto-merge (squash)
November 5, 2026 21:41
Conflict: fuzz.yml's fuzz job, the timeout expression beside the permissions block of the corpus artifact (both kept). check-workflows.py: 65 jobs in 17 workflows, 0 errors, 0 warnings, PENDING empty; actionlint exits 0. Refs #1457.
18 tasks done
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
Gates and schedule, part 1 of 2 for #1457: every job that runs steps is time-bounded, the PII guard reads capitalised paths, every runner is a pinned image, the workflows are linted with actionlint and shellcheck, and a script holds the values that must agree across files and fails on any job that lacks a limit. The scheduled checks (part 2) are #1463.
Motivation
#1457 found most jobs with no
timeout-minutes(the default is 360), a PII guard whose patterns start with[a-z]and which skips every workflow file,-latestrunner labels that move without a commit, stale text in two workflow descriptions and four issue forms, and nothing that checks a workflow before it runs. By the count oftools/ci/check-workflows.py53 jobs ran steps on the day I started (54 now, withclaude.yml) and 8 had a timeout.Changes
ci.yml):/Users/,/home/andC:\Users\take a user name beginning with either case, a Windows profile folder may hold spaces, and onlyci.yml(which defines the patterns) is left out of the scan instead of every workflow. Agit grepthat fails (status above 1, such as a pattern that does not compile) now fails the step; it used to read as clean. The patterns are otherwise as they were.ci.yml20,publish.yml9,release-binaries.yml4,measure.yml3,fuzz.yml3, andcodeql.yml,deploy-viewer.yml,corpus-nightly.yml,perf-budget.yml,scorecard.yml,zizmor.yml1 each). Each is at least 3 times the longest run of that job among the last 96 runs on main and 29 pull-request runs (100 runs ofci.ymlfor the wheel job); the release jobs, which must not die on their limit, are at least 5 times the longest of their last 9 runs (publish.yml20 to 90 minutes,release-binaries.yml20 to 100;publish-testpypiwas skipped in all 9 runs, so it has no duration and takes the 20 of the other upload jobs).fuzz's limit is an expression: 40 minutes on the default 300 s budget (10 to 13 minutes seen), 360 when a manual run sets another duration. IfcOpenShell has 70: 3.1 times the 22.9 minutes it once took (a slow runner, every step slow) and 17 times its median of 4.0.fetch-re1since ci: wheels without LTO, CodeQL on ready pull requests, one RE1 pin list, a retried SARIF upload (#1457) #1461, is a red failure, not NOT MEASURED, and is cut off at 15 minutes by its owntimeout 900: 170 in all.)tools/ci/check-workflows.py, run byenv config lint, with failure-first tests intools/ci/test_check_workflows.py: it fails on-latestrunner label;Cargo.toml, the two test matrix strings, the other crates (rvt-mcpat 1.88 is named as deliberate) and the prose that states it (README.md,CONTRIBUTING.md,.cursor/install.sh,AGENTS.md,docs/python.md,RELEASE.mdanddocs/install.md, which also says the MCP server needs 1.88: that sentence is read againstrvt-mcp's ownrust-version, and an install page whose MCP wording cannot be read fails instead of passing unread);ci.yml'spaths-ignore,viewer-pathsand Deploy viewer's wait step (viewer-pathsaddsdocs/viewer-demos.jsonanddocs/support-matrix.json, named as deliberate; the check reads the wait step's script from a local action too, which ci(release): a preflight job refuses a bad tag before any build, and a failed release can be re-run (#1457) #1460 introduces);uses: $/.github/...or./.github/...that names no file, or whosewith:names an input the target does not declare or leaves out one it requires. actionlint does not know the$/form, so.github/actionlint.yamlignores that message and this check stands in for what actionlint would have checked.PENDING, the list of jobs another change still edits, is empty. PyYAML joinsrequirements-test.txtwith its hashes; its block was spliced in beside the others, and theuv pip compilecommand at the top of the file now produces a fuller file (universal markers for Python before 3.11,colorama,exceptiongroup,tomli, a splitrpds-py) than the committed one, so a later regeneration will differ in more than PyYAML. CI installs it with--require-hasheson Python 3.12.taiki-e/install-action, which has no actionlint; the actionlint tarball is checked against the sha256 of its release) inenv config lint..github/actionlint.yamlignores exactly the two messages about the$/form, whole-message and only for a$/.github/target.windows-2025-vs2026and every macOS leg onmacos-26(the test job, the wheel job,publish.yml,release-binaries.yml), the imageswindows-latestandmacos-latestresolved to on 2026-11-05 (actions/runner-images' README lists these labels for them). A pinned label retires eventually: GitHub announces the date in actions/runner-images and runs brownouts first, and after it a job on the label has no runner to pick it up. Moving to the next image is a deliberate edit, as forubuntu-24.04(the comment atjobs:inci.ymlsays so).fastinput's description andci-pr.yml's comment namecorpus-mcp; thetestjob's header states the unit-test rule as it is; the three issue forms list Revit 2027 down to 2015;re_finding.ymllinks the corpus intake page by its full URL.Merged with the other pull requests
#1460 (release preflight) and #1461 (wheels without LTO, CodeQL, one RE1 pin list, retried SARIF uploads) are on
mainand merged into this branch. #1460: two textual conflicts, both small (release-binaries.yml: the x86_64 macOS entry, minemacos-26against itsmacos-latestwithsmoke: trueandrosetta: true;publish.yml:validate-wheel-install'stimeout-minutesagainst itsneeds: [preflight, build-wheels]), resolved by taking both. #1461: one conflict,ci.yml's python-wheel job (my pinnedos:labels beside its no-LTOenvblock), both kept. Two jobs it added had no timeout, andcheck-workflows.pyfound them:scorecard.yml'supload-retryandzizmor.yml'szizmor-retrynow have 15 minutes, as the jobs they retry do.PENDINGis empty. #1463 (scheduled checks) is onmaintoo and merged: one conflict,fuzz.yml's fuzz job (my timeout expression beside itsactions: readpermissions block), both kept, and the newscheduled-checks.ymlandreport-failure.ymlalready carry timeouts and pinned labels. On the merged treecheck-workflows.pyfinds 65 jobs in 17 workflows, 31 local references, 0 errors and 0 warnings, and actionlint exits 0.The RE1 fetch in Corpus health is now
fetch-re1: eachcurlhas--connect-timeout 20 --speed-limit 1024 --speed-time 60(a transfer under 1 kB/s for 60 s is abandoned, three tries per host) and the step runs undertimeout 900, so a stall there is bounded at 15 minutes instead of by the job's limit. The Corpus health arithmetic is 55 + 90 + 10 + 15 = 170 minutes under the limit of 180, and the comment says so. Thepublish.ymlwheel comment said it mirrors the CI wheel, which is now a smoke build without LTO, and now says what differs.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
tools/check-local.shpasses (fmt, clippy, rustdoc, build, real-file / CLI / contract checks). N/A: CI-only change; no local compute on this lane, CI is the build.What was run:
actionlint .github/workflows/*.ymlonmain: 22 messages (16[action], 6[workflow-call], all the$/form, no shellcheck finding); with.github/actionlint.yamlexit 0. In a scratch copyuses: foo/bar,uses: $/other,uses: $/.github/actions/with spaceanduses: other/repo/.github/workflows/x.ymlare still reported, and so is a shellcheck finding in arun:script.python3 tools/ci/check-workflows.pyon this head: 0 errors, 0 warnings; 65 jobs run steps in 17 workflows, 31 local references, 8 crates and 7 prose files for the MSRV (the head merged with ci: scheduled advisory audits, NOT MEASURED streaks, cache cleaning and a floating-nightly docs build, each failure one issue (#1457) #1463).python3 tools/ci/test_check_workflows.py: 81 tests of the pure comparisons. Of 33 mutations of the script every one makes a test fail (one that did not, ausesbranch shadowed by an absentsteps, now has a test that observes it), and of 10 more of the two-valued prose check nine do; the tenth is the line inmain()that reports anrvt-mcpwith norust-version, which the prose check reports anyway.RELEASE.md'sMSRV 1.86,docs/install.md'sneeds Rust 1.89 or later):check-workflows.pyexits 1 with one error for each (RELEASE.md: states Rust 1.86, Cargo.toml's rust-version is '1.87';docs/install.md: says the MCP server needs Rust 1.89, rvt-mcp/Cargo.toml's rust-version is '1.88'), and 0 errors after both were put back.$/.github/actions/fetch-re1x,$/.github/workflows/nothere.yml): actionlint exits 0,check-workflows.pyreports 4 errors, one per use; a stale README MSRV (MSRV 1.86) andpublish.yml'sbuild-sdistwithout a timeout: both reported, and earlier thefmtjob without a timeout, MSRV 1.86 in the fast matrix string,CITATION.cffdropped frompaths-ignoreandfmtonubuntu-latest, each reported.ci.ymland run withbashon local scratch commits that were never pushed (a fake capitalised user name was planted: a file holding/Users/<Name>/,/home/<Name>/andC:\Users\<Name With Space>\paths):main's step on the planted commit:PII guard: clean.zizmor.yml, a workflow other thanci.yml:main's step is clean, this branch's exits 1.PII guard: clean.main's step printsclean., this branch's exits 1 withgit grep failed (status 128).tools/ci/requirements-test.txton Python 3.12 (uv,--require-hashes) succeeds with PyYAML 6.0.3.cdd2c731, run 42076073074, a draft, so the fast set):fast / env config lintpassed in 44 s with every new step (shellcheck 0.11.0 and actionlint installs and runs, the tests,check-workflows.py), as didfast / PII guard,fast / cargo fmt, the Ubuntu MSRV build and zizmor; Measure'splan, shards,same-project gatesandcompareran on the changedmeasure.ymland passed. 22 checks passed, none failed, 17 were skipped by the draft's fast set. The CI run of the current head is read by the main session.Not measured: the Windows and macOS legs on
windows-2025-vs2026andmacos-26(a draft does not run them; the full set will); the release workflows' new timeouts and labels (they run at a tag); every new timeout's headroom on a cold Rust cache (no run in the 96-run window rebuilt the dependencies from nothing); a cold clone of the family corpus undertest's 40 minutes (every run in the window restored it from the cache; on main's first run after #1092 moved its pin, run 40957121621, the fetch step took 2 s on Linux and 10 s on Windows, and the job's steps do not say whether that run restored or cloned); and Scorecard with atimeout-minuteson its job (the published restrictions on the job list env, defaults, containers, runners and approved steps, not a timeout, but the first Scorecard run after the merge should still say its results were published).Audit-honesty checklist
changelog.d/<section>/. N/A: CI only, as agreed for CI: where the minutes go, and what to change #1457.Legal and contribution hygiene
Breaking changes
None. The Windows, macOS and wheel job names carry the new labels (
build + real files / windows-2025-vs2026 / stable,Python wheel / macos-26); the required check isfull / CI passed, and nothing in the repository reads the old names.Screenshots or output samples
See Testing.
Related issues
Refs #1457