Skip to main content

Runs a thing that analyzes experiments

Project description

jetstream

Automated experiment analysis.

Jetstream automatically calculates metrics and applies statistical treatments to collected experiment data for different analysis windows.

For more information, see the documentation.

Local installation

# Create and activate a python virtual environment.
python3 -m venv venv/
source venv/bin/activate
# --no-deps to workaround https://github.com/pypa/pip/issues/9644
pip install --no-deps -r requirements.txt
pip install -e .

Running tests

  • Install tox (included in requirements.txt)

  • Run tox from wherever you cloned this repository. (You don't need to install jetstream first.)

    • To run integration tests, run tox -e py310-integration.

Linting / Formatting

We use ruff for linting and formatting:

  • lint: ruff check jetstream
  • format: ruff format --check jetstream

ruff can also fix (some) issues:

  • lint: ruff check jetstream --fix
  • format: ruff format jetstream

We also use mypy:

  • mypy -p jetstream

You can also run tox py310-format to run all the ruff and mypy checks.

Dependencies

Jetstream uses pip-tools to manage dependencies, along with a script that runs the pip-tools commands. There are two requirements files auto-generated by script/update_deps:

  • requirements.in: Listing of dependencies and versions generated from the dependencies list in pyproject.toml.
  • requirements.txt: Auto-generated by pip-tools (pip-compile) from the requirements.in file. Also contains the hashes of each package for verification by pip during installation, and comments showing lineage for each dependency.

Add a new dependency

  1. Add to pyproject.toml list of dependencies.
  2. Generate new requirements files with ./script/update_deps
  3. Install with python -m pip install -r requirements.txt

Update all dependencies

./script/update_deps

Be sure to run pip install --no-deps -r requirements.txt and reinstall jetstream (pip install -e .) afterwards, and test functionality!

Update a single dependency

  1. Prefer to update all dependencies (see above)!

  2. Edit requirements.in

  • mypy==1.8.0 --> mypy==1.9.0
  1. Regenerate requirements.txt
  • pip-compile --generate-hashes -o requirements.txt requirements.in
    • (Note: this is the last line of script/update_deps)
  1. Install dependencies
  • pip install --no-deps -r requirements.txt
  • pip install -e .
  1. Test!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mozilla_jetstream-2026.1.1.tar.gz (823.4 kB view details)

Uploaded Source

File details

Details for the file mozilla_jetstream-2026.1.1.tar.gz.

File metadata

  • Download URL: mozilla_jetstream-2026.1.1.tar.gz
  • Upload date:
  • Size: 823.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mozilla_jetstream-2026.1.1.tar.gz
Algorithm Hash digest
SHA256 c7c8d508d8c4658116ef96f32b1d14646bfadf6d12415090b0cb5cdd9bb696d4
MD5 954e927bad7c9b1762b735c47c0e978c
BLAKE2b-256 99ad4be5ffb428e7656e5b9e9dae080b86e90433192a67c33211337d94996a93

See more details on using hashes here.

Provenance

The following attestation bundles were made for mozilla_jetstream-2026.1.1.tar.gz:

Publisher: build-and-deploy.yml on mozilla/jetstream

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page