A utility for fetching and structuring conda-forge Azure CI logs into clean, agent-readable artifacts.
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 testThe cf-job-logs CLI provides commands to inspect Azure CI jobs for a conda-forge PR.
List failed jobs (default) for a PR:
cf-job-logs list-jobs https://github.com/conda-forge/some-feedstock/pull/123List all jobs (including succeeded):
cf-job-logs list-jobs --all https://github.com/conda-forge/some-feedstock/pull/123Use 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.logAdd -v for debug logging:
cf-job-logs -v list-jobs https://github.com/conda-forge/some-feedstock/pull/123All commands can also be run through pixi:
pixi run cf-job-logs list-jobs <pr_url>