lint.yml check runs out of its 15-minute timeout: the Rust NIF tree is compiled three times, cold #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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,checktask 7574, cancelled at 15m03s bytimeout-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):
cargo clippyfor native/mcl_rag_corpus_sync_nif, 6m43s. Of that, 5m38s with no output is git2 building libgit2-sys and the vendored openssl-src.cargo testprofile compiles the same tree again, cold, 6m54s.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 met: lint on main finishes inside its own timeout
Landed as
4a2526f8(--no-ff off18beab4, PR 10, Uranus PASS r=1 atf8f0d355..f18beab4, ci forgejo 3093,3092). Main'slint.ymlnow runs the corpus-sync NIF's clippy and test on--release, the profilescripts/build-corpus-sync-nif.shalready 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: 15unchanged, the same clippy flags and the same 9 tests.The green run the issue asked for: PR 10's own
lint-and-testrun 83 onf18beab4, check task 01:17:52Z → 01:23:39Z = 5m47s, success; c4-model andlock-arrivesgreen. Against the baseline in this issue: green runs 7m35s–8m, run 63 14m26s, run 68 cancelled at 15m01s, and main's tipf8f0d355(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: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).