Skip to content

chore: set up the contribution workflow - #11

Merged
AlexanderSlaa merged 1 commit into
mainfrom
chore/contributor-workflow
Nov 21, 2026
Merged

AlexanderSlaa merged 1 commit into
mainfrom
chore/contributor-workflow

Conversation

@AlexanderSlaa

Copy link
Copy Markdown
Contributor

Sets up everything a new contributor needs: a guide, issue and PR templates, a throwaway Ceph cluster for the integration tests, and CI that runs those tests on every pull request.

For contributors

  • CONTRIBUTING.md: three development setups, the project layout, rules for native code (in-flight guard, error reporting, lifetimes, coverage manifest), testing rules, how the PR title decides the release, and what CI checks.
  • Issue forms:
    • The bug report asks for a diagnostics snippet (package, librados/librbd versions, Node, platform, glibc, addon ABI and capabilities), the cluster version and OS, a minimal reproduction, expected vs actual behaviour with the full CephError fields or crash output, how often it happens, the last working version, and cluster context.
    • The feature request asks for the use case, proposed API and the librados functions involved.
    • Blank issues are disabled. Security reports go to private vulnerability reporting, which is now enabled.
  • PR template with a checklist.

Running the integration tests without a cluster

  • scripts/micro-ceph.sh starts a disposable single-node cluster: one monitor, one in-memory OSD, no auth. It is ready in a few seconds.
  • Devcontainer: installs ceph-mon/ceph-osd and starts that cluster on every start. CEPH_INTEGRATION and CEPH_CONF are set, so npm test includes the integration suite.
  • npm run test:docker runs the native build, type check, unit and integration tests and the API coverage check in the devcontainer image, from any host with Docker, macOS included. CEPH_RELEASE=tentacle switches release. node_modules and build/ live in Docker volumes, so the working tree is not touched.

CI on pull requests

Job Checks
integration (squid), integration (tentacle) integration suite against the micro cluster
newest-compiler every source file compiles with GCC 15 (would have caught #1)
PR title the title follows Conventional Commits, since it becomes the squash commit semantic-release reads

The release job now also waits for integration and newest-compiler.

Tested locally

  • npm run test:docker on macOS (arm64): build without warnings, type check, 9/9 tests, coverage check. About 3 minutes.
  • The integration job replayed in ubuntu:22.04 on Tentacle (librados 20.2.5): 4/4 integration tests. Squid has been tested throughout the PR reviews.
  • The newest-compiler job replayed in gcc:15: GCC 15.3, all sources compile.
  • The bug form's diagnostics command, run against an installed package layout.

🤖 Generated with Claude Code

- CONTRIBUTING.md: development setups, project layout, rules for native
  code, tests, PR titles and releases, and what CI checks.
- Issue forms for bug reports (with a diagnostics snippet, versions and a
  minimal reproduction) and feature requests; blank issues disabled.
- Pull request template with a checklist.
- scripts/micro-ceph.sh starts a disposable single-node cluster (one
  monitor, one memstore OSD, no auth) for the integration tests.
- The devcontainer installs ceph-mon and ceph-osd and starts that cluster,
  so npm test also runs the integration suite there.
- npm run test:docker builds and runs every check in the devcontainer
  image from any host with Docker, including macOS.
- CI runs the integration suite on Squid and Tentacle and compiles with
  GCC 15 on every pull request, and checks that PR titles follow
  Conventional Commits. The release job waits for both new jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AlexanderSlaa
AlexanderSlaa merged commit cdcb36b into main Nov 21, 2026
13 checks passed
@AlexanderSlaa
AlexanderSlaa deleted the chore/contributor-workflow branch November 21, 2026 22:11
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant