Fix CI commands for merge request pipelines
As far as I could check, some CI commands are not ready to work with merge-request CI pipelines, but only with project-level pipelines. This issues will be used as a tracker to point what are the features we're lacking in what command.
- [ ] Create a merge-request pipeline for a specific MR (that might not have any)
- [ ] Allow retry of individual MR pipeline jobs
- [ ] ...
As I find more missing features I'm going to add here.
Hi! I use lab ci trace a lot for working with Alpine Linux MRs but noticed that it stopped working by the 0.24.0 release, so I downgraded and pinned it to 0.23.0 and haven't thought of it much since as it works for what I use it for (mainly following pipeline traces and statuses without having to deal with the bloated web UI).
I now did think of it and found this issue and perhaps it's related (otherwise I could create a separate on or be directed to on that is).
Perhaps I'm just missing something, but I usually run, for example, lab ci trace build-x86_64 to see the trace of the MR pipeline for that builder and, post 0.23.0, get
2023/03/01 23:46:29 ERROR: ci_trace.go:73: GET https://gitlab.alpinelinux.org/api/v4/projects/omni/aports/repository/commits/build-x86_64: 404 {message: 404 Commit Not Found}
whereas this same command works with 0.23.0 and earlier.
We're currently at GitLab CE 15.7.7.