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
.
- To run integration tests, run
Linting
ruff check jetstream
ruff
can also fix lint issues:
ruff format jetstream
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 inpyproject.toml
.requirements.txt
: Auto-generated by pip-tools (pip-compile
) from therequirements.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
- Add to
pyproject.toml
list of dependencies. - Generate new requirements files with
./script/update_deps
- 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
-
Prefer to update all dependencies (see above)!
-
Edit
requirements.in
mypy==1.8.0
-->mypy==1.9.0
- Regenerate
requirements.txt
pip-compile --generate-hashes -o requirements.txt requirements.in
- (Note: this is the last line of
script/update_deps
)
- (Note: this is the last line of
- Install dependencies
pip install --no-deps -r requirements.txt
pip install -e .
- Test!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file mozilla_jetstream-2024.9.1.tar.gz
.
File metadata
- Download URL: mozilla_jetstream-2024.9.1.tar.gz
- Upload date:
- Size: 816.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba689e90e34eeeed19170bb2ab770d026aeb1ce0808c825956d19a3e6252d321 |
|
MD5 | 5d017820c5e28d998fcf5bb023988b25 |
|
BLAKE2b-256 | 93d93710c3d30f9498184916927654e293981ebc64e816997c4036e630cf54d6 |