Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 2.47 KB

CONTRIBUTING.md

File metadata and controls

65 lines (47 loc) · 2.47 KB

Contributing

Branching Model

This repository uses a GitFlow-lite workflow.

  • main Production-ready history only. Merge here from release/* and hotfix/*.
  • develop Default integration branch for day-to-day development.
  • feature/<topic> Branch from develop and open the PR back to develop.
  • release/<version> Branch from develop when preparing a release. Stabilization-only changes go here, and the PR targets main.
  • hotfix/<topic> Branch from main for urgent production fixes. The PR targets main, then the fix must be merged back into develop.

Pull Request Targets

  • feature/* -> develop
  • release/* -> main
  • hotfix/* -> main

After a release/* or hotfix/* PR lands on main, merge the resulting main commit back into develop so the integration branch stays current.

CI Expectations

GitHub Actions is split into three validation layers:

  • Fast Tests Coverage-backed unit and integration suite (make test-cov) on every supported push and PR.
  • Sample Graphs In-process graph runner plus the in-process API smoke flow (make test-samples).
  • seekdb Validation Real backend checkpoint smoke plus live HTTP e2e coverage (make test-seekdb) on PRs to develop or main, and on pushes to develop, main, release/*, and hotfix/*. CI runs this in a Docker matrix across seekdb, oceanbase, and mysql, while local quick verification should prefer embedded seekdb via scripts/seekdb_embed_launcher.py.

Keep local commands aligned with CI when possible:

  • make test
  • make test-cov
  • make test-samples
  • make test-e2e
  • make test-seekdb

For embedded seekdb locally, install the optional extra first:

  • uv sync --dev --extra embedded

Published Package Verification

After the tag-triggered release workflow publishes to PyPI, its Linux, macOS, and Windows smoke jobs each install the exact tagged version in a fresh Python 3.12 environment. They use public PyPI with caching disabled, not the checkout or the build job's wheel. The checks verify artifact provenance, package and CLI versions, imports, CLI help, and dependency compatibility.

The helper retries publication visibility for a bounded period; it does not fall back to an older version or retry failing package checks. A smoke failure makes the release workflow fail, but does not undo an already-published package.

To check an existing published release without publishing anything:

python scripts/test_pypi_release.py --tag v0.3.2