Skip to content

Latest commit

 

History

History
122 lines (89 loc) · 3.51 KB

CONTRIBUTING.md

File metadata and controls

122 lines (89 loc) · 3.51 KB

Contributing to l9gpu

Thanks for your interest in contributing. This guide covers the dev workflow, how to run tests, and what we look for in a PR.

Code of Conduct

This project follows the Contributor Covenant. By participating you agree to uphold its terms.

Repository Layout

Path What it is
l9gpu/ Python package — node-level collector + CLI
k8sprocessor/ Go OTel Collector processor (K8s enrichment)
slurmprocessor/ Go OTel Collector processor (Slurm enrichment)
k8shelper/ Go K8s API helper library
shelper/ Go Slurm helper library
deploy/helm/ Helm chart
deploy/demo/ One-command EKS demo
dashboards/ Pre-built Grafana dashboards
alerts/ Prometheus / Grafana alert rules
docs/ User-facing documentation

Development Setup

Python (l9gpu)

Requires Python 3.10+.

# Install dev deps and the package in editable mode
pip install -r dev-requirements.txt
pip install -e .

# Install the pre-commit hooks (runs black, isort, flake8, mypy on commit)
pre-commit install

Go (processors and helpers)

Requires Go 1.22+.

Each Go module is self-contained with its own go.mod:

cd k8sprocessor && go mod download
cd slurmprocessor && go mod download
cd k8shelper && go mod download
cd shelper && go mod download

Running Checks

Python

make lint       # nox -s lint         (black --check, isort --check, flake8)
make typecheck  # nox -s typecheck    (mypy)
make test       # nox -s tests        (pytest)
make format     # nox -s format       (black, isort)

Go

cd k8sprocessor   && go test ./...
cd slurmprocessor && go test ./...
cd k8shelper      && go test ./...
cd shelper        && go test ./...

Helm chart

helm lint deploy/helm/l9gpu
kubectl apply --dry-run=client -f deploy/demo/

Pull Request Process

  1. Fork the repo and create a topic branch (feat/<short-name>, fix/<short-name>, docs/<short-name>).

  2. Make focused commits. Prefer small, reviewable changes.

  3. Include tests for new functionality and bug fixes.

  4. Run the full check suite locally before opening the PR (make lint test + relevant go test).

  5. Update user-facing docs (docs/*.md, README, chart values) if behavior or configuration changes.

  6. Open the PR against main. Describe the motivation, what changed, and any follow-ups. Link related issues.

  7. Sign off your commits with the Developer Certificate of Origin (git commit -s). This line is required on every commit:

    Signed-off-by: Your Name <you@example.com>
    

Commit Messages

Use Conventional Commits prefixes:

  • feat: — user-visible new capability
  • fix: — bug fix
  • docs: — documentation only
  • refactor: — no behavior change
  • test: — test additions / changes
  • build: / chore: — tooling, deps, release plumbing

Keep the subject line under 72 characters; put the why in the body.

Reporting Bugs

Use GitHub Issues. Please include:

  • What you ran and what you expected
  • Actual output (stdout, logs, metrics samples)
  • Environment: OS, Python/Go version, Kubernetes version, GPU model + driver
  • A minimal reproduction where possible

Security

Don't open public issues for security reports. See SECURITY.md.