go-pipeline-trace
Tool for ad-hoc ci pipeline importing. Similar to release-tools pipeline tracer, but slightly more standalone.
Install
$ go install gitlab.com/gitlab-com/gl-infra/go-pipeline-trace@latest
Setup
This tool reads tokens from the glab config file in ~/.config/glab-cli/config.yml
.
Alternatively, you can provide the token via the GITLAB_TOKEN
environment variable.
Setup jaeger
This tool writes traces to a local otel trace collector via otlp. Jaeger supports this protocol, and listens on port 4317
. Jaeger itself is accessible at http://localhost:16686
.
Download, install, and run the jaeger all-in-one package: https://www.jaegertracing.io/download/.
Usage
You can import pipelines, list pipelines, and use that list for bulk imports.
# import a single pipeline
$ go-pipeline-trace https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/-/pipelines/1199729880
# list recent completed pipelines
$ go-pipeline-trace https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/-/pipelines
# import recent pipelines
$ LIST_PIPELINE_NAME='Coordinator pipeline' go-pipeline-trace https://ops.gitlab.net/gitlab-org/release/tools/-/pipelines | parallel -j1 go-pipeline-trace