Skip to main content

bug-lifecycle-engine

QA capability package for full bug lifecycle management against the existing worky database.

QA-DB-Only Constraint

This package does not create or own a database. It maps directly onto the pre-existing bugs table in the worky Postgres instance.

Table access:

Table Access Notes
bugs read/write Core table — all lifecycle transitions
test_runs read-only FK target
test_cases read-only FK target
users read-only FK target
projects, usecases, user_stories, tasks, subtasks read-only FK targets Hierarchy
clients, programs read-only FK targets Top-level hierarchy

Migration policy:

  • This package ships additive-only migrations in migrations/versions/.
  • No existing column is dropped, renamed, or type-changed.
  • Every migration file includes a downgrade() function that fully reverses the change.
  • No migration recreates the bugs table or any other pre-existing table.

Installation

# From source
pip install -e .

# From a tagged GitHub release
pip install git+https://github.com/<org>/bug-lifecycle-engine@v1.0.0

Running migrations

# Apply all pending additive migrations
cd packages/bug-lifecycle-engine
alembic upgrade head

# Roll back the most recent migration
alembic downgrade -1

Set DATABASE_URL in the environment before running Alembic, or configure alembic.ini's sqlalchemy.url. The recommended approach is env-var-driven:

export DATABASE_URL="postgresql+psycopg2://user:pass@host:5432/worky"
alembic upgrade head

Usage

from bug_lifecycle_engine import get_engine, get_session
from bug_lifecycle_engine.crud import BugCRUD

engine = get_engine()
with get_session(engine) as session:
    crud = BugCRUD(session)
    bug = crud.create(payload)
    crud.transition(bug.id, "Open", by="USR-000001")

Environment Variables

Variable Description
DATABASE_HOST Postgres host
DATABASE_PORT Postgres port (default 5432)
DATABASE_NAME Database name
DATABASE_USER Postgres user
DATABASE_PASSWORD Postgres password
DATABASE_POOL_SIZE Connection pool size (default 5)
DATABASE_MAX_OVERFLOW Pool max overflow (default 10)

Metadata

Release files for bug-lifecycle-engine 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bug-lifecycle-engine 1.0.0
File Size Uploaded Provenance Actions
bug_lifecycle_engine-1.0.0.tar.gz 902.0 kB Without provenance Details for bug_lifecycle_engine-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bug-lifecycle-engine 1.0.0
File Interpreter ABI Platform Actions
bug_lifecycle_engine-1.0.0-py3-none-any.whl Python 3 none any Details for bug_lifecycle_engine-1.0.0-py3-none-any.whl

Total release size: 918.4 kB

Release files / bug_lifecycle_engine-1.0.0.tar.gz

Download URL bug_lifecycle_engine-1.0.0.tar.gz
Size 902.0 kB
Tags Source
SHA-256 checksum
How to use checksums
07478d1877d9df7c12b5c863e16001844dd0ace3813e3becd36fa77d71ccc7ad
BLAKE2b-256 checksum
How to use checksums
189126ae81e96c52fb12a95117956c72778167b06a91dbdffd837ce1f233d09f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / bug_lifecycle_engine-1.0.0-py3-none-any.whl

Download URL bug_lifecycle_engine-1.0.0-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e643e27c1acd28e775af0b85ce83275ebefb6f67fdeb136e430c52ab081169e
BLAKE2b-256 checksum
How to use checksums
e95a4ba061afbd97dc9a6edc89b052f8a24f12c82e73e0b34c236e6aa655d824
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Security for bug-lifecycle-engine 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page