go-pipeline-trace

command module
v0.0.0-...-aa0625a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 23 Imported by: 0

README

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

Configure glab

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL