Repository navigation
ci: wheels without LTO, CodeQL on ready pull requests, one RE1 pin list, a retried SARIF upload (#1457) - #1461
Merged
Merged
Conversation
…st, a retried SARIF upload (#1457) The speed items of #1457: - python-wheel builds without fat LTO at 16 codegen units, as the viewer's WASM does, and drops a rust-cache step whose cache (target/ci) a `--release` build never reads. - CodeQL skips a draft's jobs, runs on ready_for_review, and starts no run for a pull request that changes only documentation. - research/re1-models.tsv is the one pin list of the eight RE1 files, read by the new fetch-re1 composite action in Corpus health, IfcOpenShell validates exports, the wheel job and the viewer tests: one cache entry saved on main, every file checked against its sha256 and size, the raw host and then the media host. tools/ci/check-re1-pins.py keeps the witness registry's copy of the hashes in step. - Scorecard's upload-sarif and zizmor's whole action are run once more after a failure. Refs #1457
…es, both retry shapes) and the full CI on this branch; removed before ready
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
…the cache only where it saves (#1457) The review of bd66981 found that the two upload retries could not work for the failures they target. codeql-action records the category it uploads in the job's environment (GITHUB_ENV) before it sends anything, and refuses a second upload of that category in the same job. Both observed failures died after that point, at "Uploading results", so a second step in the same job would have failed at once and hidden the real cause. - Scorecard and zizmor: the first attempt keeps its job and its step with continue-on-error, and exports the step's outcome. A second job, run when that outcome is a failure, uploads again from a clean environment: from the scorecard-results artifact, or by running zizmor-action again. The analysis key is held at the first job's, so a retried upload stays one configuration in code scanning and the categories are the SARIF's own. - fetch.sh: a pin list with no newline after its last row no longer loses that row; only a transfer that has stopped (under 1 kB/s for 60 s) is abandoned, not a slow one that keeps moving, and the step's 15 minute bound ends a crawl; every file is made good only where the job saves the cache, and a job that saves nothing fetches the files it asked for. - The action's description says it is for Linux runners. Refs #1457
…ken, the old shape as a control, the cache hit, wheel cache against none; removed before ready
…the category check (an analysis key set, a refused token); removed before ready
8 of 15 tasks
…keeps moving is not cut off and restarted (#1457)
DrunkOnJava
marked this pull request as ready for review
November 5, 2026 20:04
DrunkOnJava
enabled auto-merge (squash)
November 5, 2026 20:21
8 of 15 tasks
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
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
DrunkOnJava
added a commit
that referenced
this pull request
Nov 6, 2026
#1499) (#1504) ## Summary CodeQL's `analyze` job retries a failed SARIF upload once, in a job of its own, with the same shape #1461 gave Scorecard and zizmor. A real rejection of the file still fails the run. ## Motivation #1499: `Analyze (rust)` failed on #1468 (CodeQL run 42128776536) at `github/codeql-action/analyze` with the log ending at "Uploading results" and no finding. `arm.sh` refuses a head with a red check, so the landing waited for a hand rerun. ## Changes `.github/workflows/codeql.yml` and `docs/maintaining.md`; the matrix stays the four languages and the check names `Analyze (<language>)` do not change. - `analyze` gets `upload: failure-only` and `output: ${{ runner.temp }}/codeql-sarif`: it writes the SARIF, with the category already in it (analyze passes `category` to the CLI as the SARIF category), and does not upload it. At the pinned commit (v4.39.1, `analyze-action.ts`) analyze post-processes and writes the files for every value of `upload`, and sends them only for `always`; the one-category-per-job sentinel is set only by an upload (`validateUniqueCategory`, inside `uploadPostProcessedFiles`), so `failure-only` leaves the later upload step free of it. It is `failure-only` and not `never` because `never` makes `init-action-post-helper.ts` (`prepareFailedSarif`) skip the failed-run SARIF when the analysis itself dies, and analyze's `action.yml` calls `never` not recommended. It still saves the overlay base database on `main`. - A step of its own, `Upload the results to code scanning` (`upload-sarif`, same category, `continue-on-error: true`, waits for processing as analyze did), uploads that directory. Its failure does not fail the leg. - `Keep the SARIF for the retry` runs only when that step failed and uploads the directory as the artifact `codeql-sarif-<language>` (7 days, `overwrite: true` so that "Re-run all jobs" can replace the one an earlier attempt left; an artifact name is taken once per run). A healthy leg leaves no artifact. - `analyze-retry` (new job, `needs: analyze`, runs when `analyze` succeeded; skipped on a draft and when a leg really failed) downloads `codeql-sarif-*` into one directory (`merge-multiple`, since a single match is otherwise not put in a directory of its own) and, for each language whose SARIF is there, uploads it once more with that language's category, the matrix input the leg has (`{"language": "<language>"}`, as `toJson(matrix)` writes it) and `CODEQL_ACTION_ANALYSIS_KEY: .github/workflows/codeql.yml:analyze`, so the retry is the same configuration in code scanning and leaves no second one holding alerts. The steps are one per language, each `if: ${{ !cancelled() && hashFiles('retry/<codeql language>.sarif') != '' }}` (javascript-typescript's file is `javascript.sarif`): a rejected file fails its step and the job, and the next language is still tried. - The job's last step, `Fail on a SARIF no step above uploads`, fails on a kept `retry/<name>.sarif` that no `sarif_file:` of the workflow names, so a language added to `analyze`'s matrix and not to the retry cannot pass with its kept results unsent. It reads the steps from the job's own checkout, not from a second list of names. - The retry job holds `contents: read` and `security-events: write`. It does not hold `actions: read`: with the analysis key set, the only call `upload-sarif` makes about the run (`GET /repos/:owner/:repo/actions/runs/:run_id`, `getWorkflowRelativePath` in `api-client.ts`) is not made, and the other `actions` API call in the action's source is the cache listing `analyze` uses. - Why a job of its own: codeql-action's `upload-lib.ts` exports a sentinel into the job's `GITHUB_ENV` before it sends anything and refuses a second upload of one category in a job ("only one run of the codeql/analyze or codeql/upload-sarif actions is allowed per job per tool/category"), so a second step would fail at once whatever the first died of. Shown by #1461 (run 42096477400). - Why the artifacts say which leg failed: a matrix job's outputs are one set shared by its legs (the last to finish sets them), so a leg cannot report its own failure through them. The cost is one job on each non-draft run that does a checkout and an empty download when nothing failed. - `docs/maintaining.md`'s CodeQL bullet names the retry job. - The SHA pins are the ones the file and #1461 already use (`upload-sarif` at the pinned v4.39.1, `upload-artifact` v7.0.2, `download-artifact` v8, as in `scorecard.yml`). ## Left alone - The retry covers a short outage, as #1461's do: a new job starts seconds after the first fails. It does not cover a long one, or a file code scanning rejects (a 422), which fail both and fail the run. The cause of #1468's failure was not recorded in the log (it ended at "Uploading results"), so that it was a transport failure is an inference, as it was for #1461. - On a pull request the retried upload skips the post-filter that drops alerts outside the diff: `filterAlertsByDiffRange` (in `postProcessSarifFiles`, `upload-lib.ts`) reads the diff-ranges file from the leg's own `RUNNER_TEMP`, which the retry job does not have, while the first attempt, in the leg's job, applies it. The query-time `restrictAlertsTo` of the diff-informed analysis still narrows the results, so the retried file is the one the analysis wrote, not the one the post-filter would have trimmed further. - A re-run of the run (all jobs) can find an artifact an earlier attempt left and upload that file again; the same commit and category replace it. ## 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. On this head (`4837ed23`): - `actionlint` exits 0. `python3 tools/ci/check-workflows.py`: 0 errors, 0 warnings (66 jobs run steps in 17 workflows, the new job has its timeout). `zizmor` 1.32.0 offline over `.github`: 45 findings (2 ignored, 37 suppressed, 6 medium: the Dependabot 3-day cooldown), the same count as `origin/main`; at the pedantic persona the retry job has no finding. The first version of the retry steps passed the matrix input as `toJson(fromJSON('{...}'))`, which zizmor reports as obfuscation, so it is written out. - First proof, on the first version (`upload: never`, `actions: read` held, a list of file names in the last step; run 42130620963, scratch branch, a copy of this workflow with the trigger `push` on that branch, the matrix cut to `actions` and `python`, and in the first upload of both legs `CODEQL_ACTION_ANALYSIS_KEY` set, so that the action needs no API call before it sends the file, and `token` set to a refused one for the `actions` leg only): the `actions` leg's upload logged `Post-processing sarif files`, `Uploading results`, then `Bad credentials`, failed, and the job stayed green; `codeql-sarif-actions` was kept; `python`'s upload succeeded and left no artifact; the retry job warned, uploaded `retry/actions.sarif` (`Successfully uploaded results`, `Analysis upload status is complete`) and skipped the other languages; code scanning listed the retried analysis with category `/language:actions`, analysis key `.github/workflows/codeql.yml:analyze` and environment `{"language":"actions"}`, the same three values `main`'s `actions` analysis has. - Second proof, on the changes of the second read (`upload: failure-only`, no `actions: read`, `!cancelled()`; run 42133787781, scratch branch, the same copy with the matrix `actions`, `javascript-typescript` and `python`, every first upload given the refused token, the retry of `actions` given a refused token as well, and the python retry step removed): all three legs' uploads failed with `Bad credentials` after `Uploading results` (so `analyze` under `failure-only` had not uploaded, and set no sentinel) and the jobs stayed green; the three artifacts were kept; the retry job (permissions `contents: read` and `security-events: write` only) downloaded the three, warned for each, failed the `actions` retry step on the refused token, still ran the `javascript-typescript` retry step, which uploaded (`Successfully uploaded results`, `Analysis upload status is complete`), skipped rust, and the job ended `failure`, so the run did. That is a real rejection staying red with the next language still tried, and the upload working without `actions: read`. - That run's last step was the first version of it, which listed the file names and so passed for the python SARIF whose upload step I had removed; it now reads the steps from the workflow. Its script, taken from the workflow, run with bash on fake kept files: no file exits 0; `actions`, `javascript`, `python` and `rust` exits 0; a kept `go.sarif` exits 1 with the error naming it; the workflow with the python step's `sarif_file` renamed and a kept `python.sarif` exits 1. Not run on a runner. - Both scratch runs' analyses on their refs, their artifacts and the two scratch branches were deleted afterwards (their commits were never on this branch). - Not exercised: the real workflow's own run. CodeQL runs on this pull request once it is ready, so the first run of `upload: failure-only` followed by the upload step, the retry job finding nothing, and all four languages on the real file is the CI run of this head; a retry of `rust` (the shape is the others', with `rust.sarif`'s name taken from a run's log); `overwrite` on a re-run. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR (`docs/maintaining.md`, and the workflow's header comment says what the retry is and why) - [ ] 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 (Left alone) - [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 Closes #1499
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
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)env:CARGO_PROFILE_RELEASE_LTO=off,CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16, asviewer-test.ymldoes for the WASM.publish.ymlstill builds the release wheels at fat LTO and one codegen unit; the comment that said--releasematched what users get is corrected.docker runline forwards-e CARGO_PROFILE_RELEASE_LTO -e CARGO_PROFILE_RELEASE_CODEGEN_UNITS, and rustc forrvtandrvt_pyruns with-C lto=off -C codegen-units=16 -C opt-level=3. Cargo finished in 1m 09s there (3m 06s in run 42067754303).rust-cacheis removed from the job. Run 42067754303 restored 246 MB on Linux and 203 MB on macOS (keyci-release, theciprofile'starget/ci) and still compiled every crate on both (62, 62, and 66 on Windows, which found no cache):--releasewritestarget/release, and on Linux the build runs in the manylinux container, which has its own cargo home and fetched every crate again.rust-cacheunder the keyci-wheel-proofand 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 tomain, so there is none.2. CodeQL skips drafts and documentation-only pull requests (
codeql.yml,docs/maintaining.md)pull_requesttypes areopened, synchronize, reopened, ready_for_review; the job runs unless the pull request is a draft;paths-ignoreis**.md,docs/**,reports/**,changelog.d/**.pushtomainand the weekly schedule are unchanged.main-protectionruleset (live and in.github/rulesets) requiresfull / CI passedonly and has no code scanning rule.arm.shrefuses a draft and a head with a pending or failed check, acceptsSKIPPED, and an absent check is not pending.watch.pygates readying on thefast / ...jobs, and itspending()reads only checks present in the rollup. Neither needs an edit.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,.rsor workflow file underdocs,reportsorchangelog.d), andmainis still analysed on every push. Scorecard's SAST check samples recent pull requests for CodeQL runs and may score a little lower.ready_for_reviewrun, 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 areresearch/witness-registry.json's; all sixteen values were measured again from the raw host..github/actions/fetch-re1(action.yml,fetch.sh), inputsfilesandpath; 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 topathand checks them there. Only onmaindoes 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.viewer-test.yml(four).tools/fetch-reference-models.shis not a fifth copy: it readsresearch/witness-registry.json, which is, with URLs onmain.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 andmeasure.ymlis another lane's, so neither is touched.--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.mainmakes 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).fetch.shdropped that row.mainafter 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 keysre1-oracle-<commit>andre1-<commit>are no longer read.4. A failed SARIF upload is retried, in a job of its own
upload-lib.tsrunsvalidateUniqueCategorybefore the HTTP request and exports a sentinel withcore.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 andCODEQL_ACTION_ANALYSIS_KEYset so that the action needs no API call before it sends the file, logsUploading results, retries for 14 s, and fails withBad credentials/Please check that your token is valid; a second upload of the same category in the same job, with the real token, fails withAborting 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.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 thescorecard-resultsartifact 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 needsuses, from checkout, upload-artifact, upload-sarif, scorecard-action, harden-runner); other jobs are checked only forid-token: write.zizmor-action, and withadvanced-security: falseit writes no SARIF at all (action.shswitches the output format), so the retry job runs the whole action again (about 6 seconds), keeping the analysis key.github/workflows/zizmor.yml:zizmorand the action's own categoryzizmor. Findings alone do not fail it (SARIF mode exits 0).Uploading resultsand 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_STATUSESis 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.continue-on-error);upload-retryruns, warns, downloads the artifact, and logsSuccessfully uploaded resultsandAnalysis 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 categoryzizmor; the retry job runs the realzizmor-action1.30.1 (zizmor exited 0) and its upload completes with categoryzizmorand 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).main(median of 13 runs, 42025959348 to 42067754303)mainmainmainThe "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
mainruns. 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-timefromfetch.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 arein 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 withmatches its pin ... from neither hostand places nothing. The first run (42075324569, job 127413864377) shows the save and the race:Cache saved with key re1-..., then in a second callFailed 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.shwas 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 withoutFILL_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
ready_for_reviewCodeQL run and a documentation-only pull request (above).mainand the first-run race onmain(the save ismain-only; the race was seen on a branch).main, not on a pull request. The new job layout was checked against scorecard-webapp'sverify_workflow.go(it reads the steps of the scorecard job only, and the other jobs only forid-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.python-wheeland CodeQL'sanalyzejob stay with ci: time-bound every job, pin Windows and macOS runners, lint the workflows and widen the PII guard (#1457) #1462.Related issues
Refs #1457