Contributing

Bug reports, rough edges and use cases plumeria doesn't cover yet are all welcome as issues. Changes written with an LLM's help are welcome on the same terms as any other: the person who submits a change owns its quality and correctness. AI_POLICY.md is the full stance.

Tasks

The tasks live in deps.edn and run with jolt <task>:

jolt doctor        # jolt is new enough (jolt.socket + jolt.fibers)
jolt test          # the whole suite; jolt test socket runs one namespace
jolt smoke         # end-to-end curl check => HTTP-SMOKE OK
jolt leak-check    # 200 requests, RSS must stay within 2x
jolt emfile-check  # still accepting after running out of fds
jolt acme-check    # ACME against pebble (needs PEBBLE_DIR; skips without it)
jolt bench         # ab against plumeria and minimal Undertow/Jetty servers
jolt bench-micro   # the request parser and renderer, microseconds per call
jolt metrics       # jolt-metrics report (report only)
jolt serve         # the demo server on :18090
jolt site:serve    # this guide as a site under /plumeria/ (needs a docs-engine checkout)
jolt tasks         # every task; jolt info groups them

The tasks run tests with the jolt on your PATH. JOLT=/path/to/jolt picks another one, such as a source checkout's bin/jolt.

sudo env PATH="$PATH" jolt drop-check is the one check that needs root. It proves :run-as drops privileges (see https.md).

Before a pull request

Run jolt test and jolt smoke. CI runs the suite on Ubuntu and macOS for every pull request, but a local run is quicker and catches most things first. CI also checks that the docs site builds and that no commit message or pull request description carries an AI attribution line (tools/attributioncheck.sh).

To see whether a change moves throughput, the bench workflow compares two commits on one runner: gh workflow run bench -f base=<ref>. Locally, benchmark/compare.sh <base-checkout> <head-checkout> does the same. The wire tests (keepalive, framing, stream, sse, socket, lifecycle) use real sockets, so after touching connection code run them a few times and check they pass on every run. Run the full suite on its own, since parallel runs compete for ports.

Running tests without the tasks

Each test file is a plain clojure.test script that prints Ran N tests ... 0 failures, 0 errors. and exits non-zero on a failure. Pass an absolute path and set JOLT_PWD, so a source-mode bin/jolt (which changes into its own checkout) still finds this repo's deps.edn:

JOLT_PWD="$PWD" JOLT_QUIET=1 jolt run "$PWD/test/plumeria/socket_test.clj"
# ring_compat and multipart need the :test alias (ring-core, jolt-lang/multipart)
JOLT_PWD="$PWD" JOLT_QUIET=1 jolt -A:test run "$PWD/test/plumeria/ring_compat_test.clj"

Code metrics

jolt metrics runs jolt-metrics over the repo and prints a Markdown report: a refactoring queue worst first, git hotspots, unused requires and functions nothing mentions, then per-file numbers and coupling. jolt metrics:edn gives every finding as data, jolt metrics:json a lean JSON report, and jolt metrics:html one page at target/metrics.html. Extra arguments go to its CLI (--top N, --no-git, --exclude GLOB). Findings never fail it. .jolt-metrics.edn counts test, script, benchmark and examples as test code and leaves out the JVM reference servers and docs.

Conventions

  • Kebab-case names, predicates end in ?, side-effecting fns in !.
  • Options go in an explicit map: (f x {:opt 1}).
  • Conventional Commits scoped by layer: feat(http): ..., fix(socket): ....
  • This is Jolt Clojure: Java interop only for classes Jolt provides, and no blocking foreign call on a connection fiber (see architecture.md).