Skip to content

Quantco/cf-job-logs

Repository files navigation

cf-job-logs

CI conda-forge pypi-version python-version

A utility for fetching and structuring conda-forge Azure CI logs into clean, agent-readable artifacts.

Installation

This project is managed by pixi. You can install the package in development mode using:

git clone https://github.com/Quantco/cf-job-logs
cd cf-job-logs

pixi run pre-commit-install
pixi run postinstall
pixi run test

CLI Usage

The cf-job-logs CLI provides commands to inspect Azure CI jobs for a conda-forge PR.

List jobs

List failed jobs (default) for a PR:

cf-job-logs list-jobs https://github.com/conda-forge/some-feedstock/pull/123

List all jobs (including succeeded):

cf-job-logs list-jobs --all https://github.com/conda-forge/some-feedstock/pull/123

Download a job log

Use a job ID from the list-jobs output to download its log (sanitized by default):

cf-job-logs download-log https://github.com/conda-forge/some-feedstock/pull/123 <job_id>

Use --no-sanitize to get the raw log with timestamps:

cf-job-logs download-log --no-sanitize https://github.com/conda-forge/some-feedstock/pull/123 <job_id>

Output goes to stdout, so you can redirect it to a file:

cf-job-logs download-log <pr_url> <job_id> > build.log

Verbose mode

Add -v for debug logging:

cf-job-logs -v list-jobs https://github.com/conda-forge/some-feedstock/pull/123

Running via pixi

All commands can also be run through pixi:

pixi run cf-job-logs list-jobs <pr_url>

About

A utility for fetching and structuring conda-forge Azure CI logs into clean, agent-readable artifacts.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors