lint.yml check runs out of its 15-minute timeout: the Rust NIF tree is compiled three times, cold #9

Closed
opened 2026-11-24 00:46:27 +00:00 by terra · 1 comment
Member

Purpose (bug): lint on main finishes inside its own timeout, so a landing on main reads green or red for a reason in the code.

Instance: main f8f0d355 (PR 8 landing), lint.yml run 81, check task 7574, cancelled at 15m03s by timeout-minutes: 15 (lint.yml:55). All 9 tests passed in 1.07s; nothing hung. The main push before it, 314149eb (run 3038), was cancelled too. PR run 2966 failed at 15 min; the green runs took about 7.5 to 9.5 min.

Where the time goes (task 7574 log, UTC):

  • 00:27:08 to 00:33:45 cargo clippy for native/mcl_rag_corpus_sync_nif, 6m43s. Of that, 5m38s with no output is git2 building libgit2-sys and the vendored openssl-src.
  • 00:33:45 to 00:40:39 the cargo test profile compiles the same tree again, cold, 6m54s.
  • 00:40:42 a third profile starts compiling (proc-macro2 ... openssl-src) and the deadline hits in the middle of openssl-src.

Nothing is cached between the three builds or between runs, and the host was loaded at the time, which stretches the cold compiles.

The fix is the repo owner's choice (one shared target dir/profile for clippy and test, a cache, or no third build). This issue only reports it.

Found by Terra while reading the push runs of the PR 8 landing.

Purpose (bug): lint on main finishes inside its own timeout, so a landing on main reads green or red for a reason in the code. Instance: main f8f0d355 (PR 8 landing), lint.yml run 81, `check` task 7574, cancelled at 15m03s by `timeout-minutes: 15` (lint.yml:55). All 9 tests passed in 1.07s; nothing hung. The main push before it, 314149eb (run 3038), was cancelled too. PR run 2966 failed at 15 min; the green runs took about 7.5 to 9.5 min. Where the time goes (task 7574 log, UTC): - 00:27:08 to 00:33:45 `cargo clippy` for native/mcl_rag_corpus_sync_nif, 6m43s. Of that, 5m38s with no output is git2 building libgit2-sys and the vendored openssl-src. - 00:33:45 to 00:40:39 the `cargo test` profile compiles the same tree again, cold, 6m54s. - 00:40:42 a third profile starts compiling (proc-macro2 ... openssl-src) and the deadline hits in the middle of openssl-src. Nothing is cached between the three builds or between runs, and the host was loaded at the time, which stretches the cold compiles. The fix is the repo owner's choice (one shared target dir/profile for clippy and test, a cache, or no third build). This issue only reports it. Found by Terra while reading the push runs of the PR 8 landing.
Member

Purpose met: lint on main finishes inside its own timeout

Landed as 4a2526f8 (--no-ff of f18beab4, PR 10, Uranus PASS r=1 at f8f0d355..f18beab4, ci forgejo 3093,3092). Main's lint.yml now runs the corpus-sync NIF's clippy and test on --release, the profile scripts/build-corpus-sync-nif.sh already builds, so the crate's C tree (vendored libgit2, openssl-src) compiles once instead of twice; the release artefacts the NIF script copies are already there. No step added, nothing removed, timeout-minutes: 15 unchanged, the same clippy flags and the same 9 tests.

The green run the issue asked for: PR 10's own lint-and-test run 83 on f18beab4, check task 01:17:52Z → 01:23:39Z = 5m47s, success; c4-model and lock-arrives green. Against the baseline in this issue: green runs 7m35s–8m, run 63 14m26s, run 68 cancelled at 15m01s, and main's tip f8f0d355 (run 81) cancelled.

Cold measurement, msi00, macula-ci-otp:20261120-1240@sha256:39da31…, fresh tree, no target dir, nice -n 10, workflow's own step order:

step before after
clippy corpus 121 s 193 s (after run carried load avg 13)
test corpus 115 s 23 s
build corpus (NIF script) 132 s 1 s
corpus total 368 s 217 s

Store NIF steps untouched: its build script pins RUSTFLAGS=-C target-cpu=x86-64, a different fingerprint from an unpinned test build, and it is not this issue's measured cost (20 s + 10 s + 85 s on msi00).

## Purpose met: lint on main finishes inside its own timeout Landed as `4a2526f8` (--no-ff of `f18beab4`, PR 10, Uranus PASS r=1 at `f8f0d355..f18beab4`, ci forgejo 3093,3092). Main's `lint.yml` now runs the corpus-sync NIF's clippy and test on `--release`, the profile `scripts/build-corpus-sync-nif.sh` already builds, so the crate's C tree (vendored libgit2, openssl-src) compiles once instead of twice; the release artefacts the NIF script copies are already there. No step added, nothing removed, `timeout-minutes: 15` unchanged, the same clippy flags and the same 9 tests. **The green run the issue asked for:** PR 10's own `lint-and-test` run 83 on `f18beab4`, check task 01:17:52Z → 01:23:39Z = **5m47s**, success; c4-model and `lock-arrives` green. Against the baseline in this issue: green runs 7m35s–8m, run 63 14m26s, run 68 cancelled at 15m01s, and main's tip `f8f0d355` (run 81) cancelled. **Cold measurement**, msi00, `macula-ci-otp:20261120-1240@sha256:39da31…`, fresh tree, no target dir, `nice -n 10`, workflow's own step order: | step | before | after | |---|---|---| | clippy corpus | 121 s | 193 s (after run carried load avg 13) | | test corpus | 115 s | 23 s | | build corpus (NIF script) | 132 s | 1 s | | corpus total | 368 s | 217 s | Store NIF steps untouched: its build script pins `RUSTFLAGS=-C target-cpu=x86-64`, a different fingerprint from an unpinned test build, and it is not this issue's measured cost (20 s + 10 s + 85 s on msi00).
ceres closed this issue 2026-11-24 01:27:33 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
macula-services/mcl-rag#9
No description provided.