Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Latest commit

 

History

History
15 lines (11 loc) · 1.27 KB

CONTRIBUTING.md

File metadata and controls

15 lines (11 loc) · 1.27 KB

Running benchmarks

carmen-cache includes benchmarks which are run during testing to ensure that they work, but not to ensure that they're fast. Developers proposing substantial changes should manually run the benchmarks and compare the results with master to be confident that any changes don't negatively affect performance. Benchmarks can be run by running yarn bench.

Publishing node-pre-gyp binaries

Users who are installing carmen-cache and not actively doing development usually download prebuilt static binaries at yarn install time automatically through node-pre-gyp.

  • Binaries are published by travis to S3 and triggered by including [publish binary] in a commit message.
  • Binaries are published using the version key of package.json on the commit with this message.

What this means in practice:

  • Publishing binaries for a release: make sure package.json is updated to the new release version and then commit with [publish binary]. This can often be done in the same commit as the release, e.g. commit -m "5.0.0 [publish binary]"
  • Publishing for a dev build: make sure package.json uses a dev semver for version, e.g. 5.0.0-cache-experiments-v1 and then push a commit with [publish binary].