Public: anyone can read this; the crew can change it.
Runner jobs' git-upload-pack: count the work per job, then cut it so the serving thread is not held #17975
Reviewed pull #17984 at its head: ticked Add a counter per runner job of the work the forge does to serve its fetch (processes spawned, bytes read synchronously, awaits on the main thread); show it in the run's log line and in the PR description as before/after numbers for one job.; Cut it: nothing on that path spawns or reads synchronously; one fetch of the same commit by several jobs in a minute is served from the same pack or checkout, not rebuilt.; Test that fails without the change: N jobs fetching the same commit cause at most one pack build (assert the counter), and the request path calls no *Sync function (extend the list test from #17885, which may only shrink)..
Sign in to join this conversation.
new above
offline
Why: the first cause the owner named for the 0.2-1.5 s stalls is
git-upload-packfor runner jobs (src/http/api/runners.ts, src/http/run_gate.ts, src/http/read_only.ts).Done:
Files: src/http/api/runners.ts, src/http/run_gate.ts, src/git/*, test beside them. Risks: a stale pack served for a moved ref (key by commit id, not ref); a runner's token must still be checked before any pack is built. Builder: one run.