mirror of
https://github.com/pestphp/pest.git
synced 2026-12-04 06:55:05 +01:00
207a542547
The GitLab baseline lookup listed the project's 100 most recent successful jobs and filtered them client-side by name and ref. GitLab's jobs endpoint has no server-side ref or name filter, so that single page is the entire search space -- and on a busy project it covers very little wall-clock time. On a self-hosted instance the window measured 82 minutes, while baselines were published roughly once a day. The lookup therefore returned null almost always, and every developer silently fell back to recording a local baseline. Query pipelines instead, which does filter by ref and status server-side, then walk the default branch's successful pipelines newest-first until one contains a successful job with the configured name. This also aligns the lookup with what the download actually resolves. `glab job artifact <ref> <job>` reads from the latest successful *pipeline* for the ref, so a successful job inside a failed pipeline was never downloadable even when the old lookup returned it.