Skip to content

ci: scheduled advisory audits, NOT MEASURED streaks, cache cleaning and a floating-nightly docs build, each failure one issue (#1457) - #1463

Merged
DrunkOnJava merged 15 commits into
mainfrom
lane/1457-scheduled-checks
Nov 5, 2026
Merged

DrunkOnJava merged 15 commits into
mainfrom
lane/1457-scheduled-checks

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

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: ci: wheels without LTO, CodeQL on ready pull requests, one RE1 pin list, a retried SARIF upload (#1457) #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 ci: time-bound every job, pin Windows and macOS runners, lint the workflows and widen the PII guard (#1457) #1462 on every workflow: exit 0. tools/ci/check-workflows.py of ci: time-bound every job, pin Windows and macOS runners, lint the workflows and widen the PII guard (#1457) #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

  • 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 CI: where the minutes go, and what to change #1457.
  • If a limitation was resolved, the "Known limitations" section is updated. N/A.
  • 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)
  • 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
  • Reverse-engineering finding. N/A.

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
  • Any new test fixtures use synthetic values

Breaking changes

None.

Screenshots or output samples

See Testing.

Related issues

Refs #1457

…nd a floating-nightly docs build, each failure one issue (#1457)

scheduled-checks.yml runs daily: cargo audit and cargo deny check advisories on
Cargo.lock, fuzz/Cargo.lock and tools/ci/witness-ifc-lite/Cargo.lock (advisories only
for the last two), tools/ci/not_measured.py, and clean_caches.py --delete with
actions: write; and on Mondays the docs.rs build on a floating nightly. A run started
by hand or on a branch is a dry run unless dry_run is turned off.

tools/ci/not_measured.py reads the check-run annotations of the newest main pushes of
ci.yml and opens one issue when a NOT MEASURED warning is on every run that measured
it for three runs and 24 hours. It never fails CI.

report-failure.yml (a reusable workflow over tools/ci/open_issue.py) opens one issue
for each failed job under scheduled:<job name>, or leaves the open one alone: it never
comments. Corpus nightly and Performance Budgets report through it; before, a red
night or week reached nobody. Fuzz's report job, which comments on an open issue, is
unchanged.

clean_caches.py now treats Fuzz's corpus generations (fuzz-corpus-<target>-<run id>)
as a family and keeps the newest two of each target.

Refs #1457
…D warning, keep an advisory apart from a database that never came, guard the cache cleaner, and keep Fuzz's corpus in an artifact (#1457)

A job that exceeds timeout-minutes ends as cancelled, not as failed (a run nobody cancelled has
!cancelled() true), so the report jobs of scheduled-checks.yml, corpus-nightly.yml and
perf-budget.yml now run when a needed job failed or was cancelled, and open_issue.py reports a
cancelled job and the step that was running.

not_measured.py reads the check runs of a commit and the annotations of the jobs that wrote
any, so every job's NOT MEASURED warning is followed (the cited-commits lookup and the
folded-pieces viewer test were missed by a fixed list), in ci.yml's pushes to main and in the
daily scheduled-checks.yml runs.

advisory_check.py runs cargo audit and cargo deny check advisories: an advisory fails at once; a
database or index that cannot be fetched is tried three times and then a NOT MEASURED warning,
which not_measured.py follows across days.

clean_caches.py refuses to go on when the open pull request list is empty or the branch list has
no main (an empty body with a success status reads every live cache as dead), retries those
reads, and stops at once on a permission 403 instead of waiting it out as a rate limit.

fuzz.yml keeps the corpus in an artifact: the cache entry it used was evicted within a night on
2026-11-04 and 05 (no live cache had been accessed before 09:36 UTC on 2026-11-05), so those
nights started from the five seed files. The cleaner's Fuzz family is dropped with the cache key.

Refs #1457
… cache (#1457)

#1461 keys the RE1 models by the sha256 of research/re1-models.tsv (re1-<64 hex>); the keys it
replaces, re1-<commit> and re1-oracle-<commit>, are one family with it, so a superseded 26 MB
entry goes with the first new key instead of waiting for eviction.

Refs #1457
# Conflicts:
#	.github/workflows/ci.yml
@DrunkOnJava DrunkOnJava added the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 5, 2026 20:38
@DrunkOnJava DrunkOnJava removed the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
…f reporting a false failure (#1457)

A repository can have no open pull request, after a release empties the queue. The weekly clean then exited 1 and the reporter opened an issue for it. It now deletes nothing, prints a notice saying why and exits 0; a branch list without main stays an error. Refs #1457.
…rts from the seeds (#1457)

A transient failure of the artifact listing or download failed the target's job, and on a nightly the report job then opened a fuzz-build issue unrelated to the target. Both calls are tried three times; a corpus still unread, or a zip that does not test clean, warns and starts from the seeds. The zip is unpacked beside the corpus and copied in only whole. That night saves no corpus, so a seeds-only one never becomes the newest artifact. Refs #1457.
… job is (#1457)

The header still said the caller runs on failure(). It runs on !cancelled() with a needed job failed or cancelled. The issue text no longer claims a cancelled job is always a timeout, and the docstring records why no matrix leg is cancelled by a sibling: the audit matrix sets fail-fast false and the other callers have none. The maintainer doc describes the unreadable-corpus night and the empty pull request list. Refs #1457.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 5, 2026 21:04
@DrunkOnJava
DrunkOnJava merged commit fa93a53 into main Nov 5, 2026
38 checks passed
@DrunkOnJava
DrunkOnJava deleted the lane/1457-scheduled-checks branch November 5, 2026 21:40
DrunkOnJava added a commit that referenced this pull request Nov 5, 2026
…kflows and widen the PII guard (#1457) (#1462)

## 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, `-latest` runner 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 of
`tools/ci/check-workflows.py` 53 jobs ran steps on the day I started (54
now, with `claude.yml`) and 8 had a timeout.

## Changes

- PII guard (`ci.yml`): `/Users/`, `/home/` and `C:\Users\` take a user
name beginning with either case, a Windows profile folder may hold
spaces, and only `ci.yml` (which defines the patterns) is left out of
the scan instead of every workflow. A `git grep` that 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.
- Timeouts on every job that runs steps: 45 jobs gain one (`ci.yml` 20,
`publish.yml` 9, `release-binaries.yml` 4, `measure.yml` 3, `fuzz.yml`
3, and `codeql.yml`, `deploy-viewer.yml`, `corpus-nightly.yml`,
`perf-budget.yml`, `scorecard.yml`, `zizmor.yml` 1 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 of `ci.yml` for 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.yml` 20 to 90 minutes,
`release-binaries.yml` 20 to 100; `publish-testpypi` was 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.
- Corpus health has 180 minutes. A host that drops packets holds the
BIM4LCA and R2025 fetches to their own retries, which end as NOT
MEASURED, a warning: BIM4LCA tries two URLs, each five tries of 300 s
with 150 s of pauses, 55 minutes; R2025 downloads three archives, and
two at their 900 s limit followed by a third refused on four tries of
900 s is 90 minutes; the rest of the job is about 10: 155 in all, and
the limit sits above that so a dead host never becomes a red timeout.
(The RE1 fetch, `fetch-re1` since #1461, is a red failure, not NOT
MEASURED, and is cut off at 15 minutes by its own `timeout 900`: 170 in
all.)
- `tools/ci/check-workflows.py`, run by `env config lint`, with
failure-first tests in `tools/ci/test_check_workflows.py`: it fails on
- a job that runs steps without a timeout (a job that calls a workflow
is left out);
  - a `-latest` runner label;
- an MSRV that differs between `Cargo.toml`, the two test matrix
strings, the other crates (`rvt-mcp` at 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.md` and
`docs/install.md`, which also says the MCP server needs 1.88: that
sentence is read against `rvt-mcp`'s own `rust-version`, and an install
page whose MCP wording cannot be read fails instead of passing unread);
- a documentation-only path list that differs between `ci.yml`'s
`paths-ignore`, `viewer-paths` and Deploy viewer's wait step
(`viewer-paths` adds `docs/viewer-demos.json` and
`docs/support-matrix.json`, named as deliberate; the check reads the
wait step's script from a local action too, which #1460 introduces);
- a `uses: $/.github/...` or `./.github/...` that names no file, or
whose `with:` names an input the target does not declare or leaves out
one it requires. actionlint does not know the `$/` form, so
`.github/actionlint.yaml` ignores 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
joins `requirements-test.txt` with its hashes; its block was spliced in
beside the others, and the `uv pip compile` command at the top of the
file now produces a fuller file (universal markers for Python before
3.11, `colorama`, `exceptiongroup`, `tomli`, a split `rpds-py`) than the
committed one, so a later regeneration will differ in more than PyYAML.
CI installs it with `--require-hashes` on Python 3.12.
- actionlint 1.7.12 and shellcheck 0.11.0 (the latter through
`taiki-e/install-action`, which has no actionlint; the actionlint
tarball is checked against the sha256 of its release) in `env config
lint`. `.github/actionlint.yaml` ignores exactly the two messages about
the `$/` form, whole-message and only for a `$/.github/` target.
- Runner pins: every Windows leg runs on `windows-2025-vs2026` and every
macOS leg on `macos-26` (the test job, the wheel job, `publish.yml`,
`release-binaries.yml`), the images `windows-latest` and `macos-latest`
resolved 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 for `ubuntu-24.04` (the comment at `jobs:` in
`ci.yml` says so).
- Stale text: the `fast` input's description and `ci-pr.yml`'s comment
name `corpus-mcp`; the `test` job's header states the unit-test rule as
it is; the three issue forms list Revit 2027 down to 2015;
`re_finding.yml` links 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 `main` and merged into this
branch. #1460: two textual conflicts, both small
(`release-binaries.yml`: the x86_64 macOS entry, mine `macos-26` against
its `macos-latest` with `smoke: true` and `rosetta: true`;
`publish.yml`: `validate-wheel-install`'s `timeout-minutes` against its
`needs: [preflight, build-wheels]`), resolved by taking both. #1461: one
conflict, `ci.yml`'s python-wheel job (my pinned `os:` labels beside its
no-LTO `env` block), both kept. Two jobs it added had no timeout, and
`check-workflows.py` found them: `scorecard.yml`'s `upload-retry` and
`zizmor.yml`'s `zizmor-retry` now have 15 minutes, as the jobs they
retry do. `PENDING` is empty. #1463 (scheduled checks) is on `main` too
and merged: one conflict, `fuzz.yml`'s fuzz job (my timeout expression
beside its `actions: read` permissions block), both kept, and the new
`scheduled-checks.yml` and `report-failure.yml` already carry timeouts
and pinned labels. On the merged tree `check-workflows.py` finds 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`: each `curl` has
`--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 under `timeout 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.
The `publish.yml` wheel 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.sh` passes (fmt, clippy, rustdoc, build,
real-file / CLI / contract checks). N/A: CI-only change; no local
compute on this lane, CI is the build.
- [ ] 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.

What was run:

- `actionlint .github/workflows/*.yml` on `main`: 22 messages (16
`[action]`, 6 `[workflow-call]`, all the `$/` form, no shellcheck
finding); with `.github/actionlint.yaml` exit 0. In a scratch copy
`uses: foo/bar`, `uses: $/other`, `uses: $/.github/actions/with space`
and `uses: other/repo/.github/workflows/x.yml` are still reported, and
so is a shellcheck finding in a `run:` script.
- `python3 tools/ci/check-workflows.py` on 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 #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, a `uses` branch shadowed by an absent `steps`, now
has a test that observes it), and of 10 more of the two-valued prose
check nine do; the tenth is the line in `main()` that reports an
`rvt-mcp` with no `rust-version`, which the prose check reports anyway.
- Two stale prose statements planted in the working tree (`RELEASE.md`'s
`MSRV 1.86`, `docs/install.md`'s `needs Rust 1.89 or later`):
`check-workflows.py` exits 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.
- On local scratch commits, never pushed: two typos in local references
(`$/.github/actions/fetch-re1x`, `$/.github/workflows/nothere.yml`):
actionlint exits 0, `check-workflows.py` reports 4 errors, one per use;
a stale README MSRV (`MSRV 1.86`) and `publish.yml`'s `build-sdist`
without a timeout: both reported, and earlier the `fmt` job without a
timeout, MSRV 1.86 in the fast matrix string, `CITATION.cff` dropped
from `paths-ignore` and `fmt` on `ubuntu-latest`, each reported.
- The PII guard, the step's own script extracted from `ci.yml` and run
with `bash` on local scratch commits that were never pushed (a fake
capitalised user name was planted: a file holding `/Users/<Name>/`,
`/home/<Name>/` and `C:\Users\<Name With Space>\` paths):
  - `main`'s step on the planted commit: `PII guard: clean.`
- this branch's step on the same commit: exit 1, the three patterns each
matched with the file and line.
- a planted path in `zizmor.yml`, a workflow other than `ci.yml`:
`main`'s step is clean, this branch's exits 1.
  - the plants removed: `PII guard: clean.`
- a pattern that does not compile: `main`'s step prints `clean.`, this
branch's exits 1 with `git grep failed (status 128)`.
- Hashed install of `tools/ci/requirements-test.txt` on Python 3.12 (uv,
`--require-hashes`) succeeds with PyYAML 6.0.3.
- On GitHub's runners at the first push (head `cdd2c731`, run
42076073074, a draft, so the fast set): `fast / env config lint` passed
in 44 s with every new step (shellcheck 0.11.0 and actionlint installs
and runs, the tests, `check-workflows.py`), as did `fast / PII guard`,
`fast / cargo fmt`, the Ubuntu MSRV build and zizmor; Measure's `plan`,
shards, `same-project gates` and `compare` ran on the changed
`measure.yml` and 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-vs2026` and
`macos-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 under `test`'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 a `timeout-minutes` on 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

- [x] README / docs reflect the current state after this PR (no
user-visible capability changes)
- [ ] 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" / "What
works today" section is updated. N/A.
- [x] If a new limitation was introduced, it is documented in the PR
body (none).
- [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 (the planted paths of the proof were on local scratch
commits only)
- [ ] 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. 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 is `full / CI passed`, and nothing in the
repository reads the old names.

## Screenshots or output samples

See Testing.

## Related issues

Refs #1457
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.

1 participant