ci/bin: Add utility to find jobs dependencies
authorGuilherme Gallo <guilherme.gallo@collabora.com>
Fri, 15 Jul 2022 21:13:00 +0000 (18:13 -0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 3 Aug 2022 23:10:37 +0000 (23:10 +0000)
commit65b6edee3e9e7db921abb51e009779410dcd64b3
treee357d45f4bdec5f151500ed52eb9f22a66a0aa2a
parent63082cf70951262a632bbcdc35838243ea1bd4b8
ci/bin: Add utility to find jobs dependencies

Use GraphQL API from Gitlab to find jobs dependencies in a pipeline.
E.g: Find all dependencies for jobs starting with "iris-"

```sh
.gitlab-ci/bin/gitlab_gql.py --sha $(git -C ../mesa-fast-fix rev-parse HEAD) --print-dag --regex "iris-.*"
```

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17791>
.gitlab-ci/bin/download_gl_schema.sh [new file with mode: 0755]
.gitlab-ci/bin/gitlab_gql.py [new file with mode: 0755]
.gitlab-ci/bin/pipeline_details.gql [new file with mode: 0644]
.gitlab-ci/bin/requirements.txt
.graphqlrc.yml [new file with mode: 0644]