A tool for generating traces from GitHub Actions. The generated traces are compatible with Perfetto. Example traces can be found in this discussion post.
- Download the
.whlfile from the latest release. - Install the wheel:
pip install <path_to_file.whl> - Run the CLI:
gatrace --help
Example usage:
gatrace generate-trace https://github.com/WATonomous/github-actions-tracing/actions/runs/11205960644This will generate a trace file in the current directory.
To view the trace, you can use Perfetto UI.
To generate traces for private repositories, you will need to provide a GitHub token. You can do this by passing the --github-token argument to the CLI.
This token must have the workflow scope.
gatrace generate-trace <run_url> --github-token <token>Note that to view organization private repositories, the token must have the read:org scope.
This project uses PDM for dependency management.
# Install dependencies
pdm sync --dev
# Run tests
pdm run --verbose pytest tests
# Run CLI
pdm run gatraceReleases are manually created from the Releases page. CI will automatically build the wheel and publish it to the release page. Release notes can be auto-generated via the web interface.
Please follow semantic versioning when creating tags for releases.
Tags should be prefixed with v (e.g. v1.0.0).
Version numbers less than 1.0.0 should be considered unstable and may have breaking changes in minor versions.