Skip to main content

Collection of Python utils for auditing software releases.

Project description

jps-release-audit-utils

Build Publish to PyPI codecov

A comprehensive Python toolkit for auditing software releases, comparing multiple Git branches, and producing Excel-based release intelligence reports.
Designed to help engineering, QA, release management, and DevOps teams understand what code is in a release, what is missing, and how commit history evolved.


🚀 Overview

jps-release-audit-utils analyzes commit histories across multiple Git branches and generates a multi-worksheet Excel report with rich metadata, topology-aware commit ordering, branch coverage analysis, and color-coded indicators.

It is useful for:

  • Preparing release candidates
  • Verifying required commits are present
  • Identifying missing or cherry-pick commits
  • Understanding merge timing vs. authored commit dates
  • Explaining branching and merging behavior to auditors or QA
  • Producing reproducible release audit artifacts

🔍 Key Features

✔ Multi-branch commit analysis

  • Accepts branches via --branches or --branches-file
  • Compares branch membership for every commit
  • Identifies missing, unique, and shared commits

✔ Four Excel worksheets (configurable names)

  1. timeline_by_date
    Chronological commit history sorted by authored date.

  2. timeline_by_topology
    Git DAG (ancestry) order using git rev-list --topo-order.

  3. timeline_hybrid
    Combines date and topology order; highlights out-of-order commits.

  4. analytics_summary
    High-level metrics across branches: unique commits, missing commits, out-of-order count, etc.

✔ Rich metadata extraction

  • Commit hash
  • Commit message
  • Author
  • PR number (when present)
  • Authored date + datetime
  • Presence per branch

✔ Color-coded Excel output

  • Red for commits missing from a branch
  • Green for commits present in all branches
  • Yellow for commits whose dates contradict topology order
  • Colors configurable via YAML

✔ YAML-based configuration

Located at:
src/jps_release_audit_utils/conf/config.yaml

Configurable items include:

sheets:
  timeline_by_date: "Timeline (By Date)"
  timeline_by_topology: "Timeline (By Topology)"
  timeline_hybrid: "Hybrid Timeline"
  analytics_summary: "Analytics Summary"

colors:
  missing: "FFC7CE"
  all_present: "C6EFCE"
  out_of_order: "FFEB9C"

✔ Enhanced Excel formatting

Frozen header rows

Auto-filter enabled

Auto-adjusted column widths

📊 Worksheet Overview

Each worksheet provides a different perspective on commit history:

Worksheet Purpose
timeline_by_date Understand when commits were authored.
timeline_by_topology Understand how Git applied commits (true ancestry).
timeline_hybrid Detect rebases/cherry-picks via date vs. topology mismatch.
analytics_summary Quickly assess branch readiness and commit coverage.

For detailed explanations, see: ➡️ docs/worksheet_explanations.md (recommended to create as part of project)

🧪 Example Usage

Compare 3 branches and output Excel report

python -m jps_release_audit_utils.commit_report \
    --repo-path /path/to/repo \
    --branches develop,main,release/v5.8.0-rc \
    --output release_audit.xlsx
``

Using a branches file
```bash
python -m jps_release_audit_utils.commit_report \
    --branches-file branches.txt \
    --output audit.xlsx

Using a custom YAML configuration

python -m jps_release_audit_utils.commit_report \
    --branches-file branches.txt \
    --config src/jps_release_audit_utils/conf/config.yaml

📦 Installation

make install

or:

pip install jps-release-audit-utils

🧪 Development

make fix && make format && make lint
make test

📝 Roadmap (Optional Suggestions)

Optional PR-scraping via GitHub API

Release note generation

Branch divergence visualization

GitHub Actions plugin integration

HTML dashboards

📜 License

MIT License © Jaideep Sundaram

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jps_release_audit_utils-0.3.0.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jps_release_audit_utils-0.3.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file jps_release_audit_utils-0.3.0.tar.gz.

File metadata

  • Download URL: jps_release_audit_utils-0.3.0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for jps_release_audit_utils-0.3.0.tar.gz
Algorithm Hash digest
SHA256 abbd2eb67582e1c64780beb7bec3fe3b7aaba5050d764d1c0b85ae4049cfadca
MD5 9842e80d5e57020ea5f172f8f7d6e751
BLAKE2b-256 365ae1641a8a11c8353ae087f9bfda48db297d7d96ae899e3af11664e92b5b9c

See more details on using hashes here.

File details

Details for the file jps_release_audit_utils-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jps_release_audit_utils-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85e74a9a40fddb291f8bccf06529d306b0ee4cb8d7e45f4cf965dca73291951b
MD5 b2dc982f98275018b8319bb8698beda1
BLAKE2b-256 abfd7b2027580ed65a52906e9797b6f41900943a950afad95cd5c7b080c47a06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page