We would love to accept your patches and contributions to this project.
Contributions to this project must be accompanied by a Contributor License Agreement (CLA). You (or your employer) retain the copyright to your contribution; this simply gives us permission to use and redistribute your contributions as part of the project.
If you or your current employer have already signed the Google CLA (even if it was for a different project), you probably don't need to do it again.
Visit https://cla.developers.google.com/ to see your current agreements or to sign a new one.
This project follows Google's Open Source Community Guidelines.
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose.
-
Clone the repository:
git clone https://github.com/chronicle/logstory.git cd logstory -
Set up development environment:
Using
uv/just(recommended):just deps-sync uv run pre-commit install
Using
just/pip:just dev-setup # or manually: python -m pip install --upgrade pip pip install -e ".[dev,docs]" pre-commit install
- Linting & Formatting: Ruff is used for linting, and Pyink (2-space Google style) for formatting
- Testing: Add tests for new functionality in the
tests/directory - Documentation: Update relevant documentation for user-facing changes
# Run test suite with pytest
just test
# or directly via uv:
uv run pytest --cov=logstory
# Run linting and format checks
just check
# or directly via uv:
uv run ruff check .
uv run pyink . --check
# Build documentation locally
just docs-buildThis project uses an automated release process triggered by GitHub Releases. Only maintainers can create releases.
- No special release actions needed - just submit quality pull requests
- All releases go through comprehensive quality gates automatically
- Follow standard Git workflow for contributions
-
Ensure main branch is ready:
# All desired changes should be merged to main git checkout main git pull origin main -
Create a GitHub Release:
# Using GitHub CLI (recommended) gh release create v1.2.3 --title "Release 1.2.3" --notes " ## New Features - Feature description ## Bug Fixes - Bug fix description ## Breaking Changes - Any breaking changes " # Or via GitHub web interface: # Go to: Releases → Draft a new release → Fill in details → Publish release
-
Automation handles the rest:
- Runs comprehensive quality gates
- Updates version in
pyproject.toml - Builds Python package
- Publishes to PyPI
- Uploads build artifacts to GitHub release
For urgent fixes that need immediate release:
# Trigger workflow manually with specific version
gh workflow run release.yml -f version=1.2.4Before creating a release, ensure:
- All tests pass on main branch
- Version number follows semantic versioning
- Release notes describe changes clearly
PYPI_TOKENsecret is configured in repository settings
Every release automatically runs:
- Code Quality: Ruff linting and formatting checks (currently non-blocking)
- Security: Bandit security scanning and dependency vulnerability checks
- Testing: Full test suite across Python 3.9-3.12
- Validation: Timestamp configuration validation
- Build: Package building and installation verification
Currently, only testing, validation, and build failures will block releases. Code quality checks run but don't fail the pipeline yet.
For detailed technical documentation about the release pipeline, see docs/development/releases.md.