Spark bindings for Mozilla Telemetry
Перейти к файлу
Jeff Klukas 4d6280c04f Bug 1477808 Move from TravisCI to CircleCI 2.0 2018-08-17 14:19:28 -04:00
.circleci Bug 1477808 Move from TravisCI to CircleCI 2.0 2018-08-17 14:19:28 -04:00
bin Bug 1477808 Move from TravisCI to CircleCI 2.0 2018-08-17 14:19:28 -04:00
docs Update sphinx-rtd-theme from 0.2.4 to 0.4.0 2018-06-08 11:36:00 -04:00
moztelemetry Add Dataset max_concurrency parameter 2018-08-17 14:19:28 -04:00
tests Add Dataset max_concurrency parameter 2018-08-17 14:19:28 -04:00
.dockerignore Bug 1477808 Move from TravisCI to CircleCI 2.0 2018-08-17 14:19:28 -04:00
.gitignore Bug 1477808 Move from TravisCI to CircleCI 2.0 2018-08-17 14:19:28 -04:00
Dockerfile Bug 1477808 Move from TravisCI to CircleCI 2.0 2018-08-17 14:19:28 -04:00
LICENSE add license and how to install 2016-06-03 16:21:06 -07:00
README.md Bug 1477808 Move from TravisCI to CircleCI 2.0 2018-08-17 14:19:28 -04:00
readthedocs.yml Bug 1477808 Move from TravisCI to CircleCI 2.0 2018-08-17 14:19:28 -04:00
setup.cfg Bug 1477808 Move from TravisCI to CircleCI 2.0 2018-08-17 14:19:28 -04:00
setup.py Bug 1477808 Move from TravisCI to CircleCI 2.0 2018-08-17 14:19:28 -04:00
tox.ini Bug 1477808 Move from TravisCI to CircleCI 2.0 2018-08-17 14:19:28 -04:00

README.md

python_moztelemetry CircleCI Build Status Documentation Status Updates codecov.io

Spark bindings for Mozilla Telemetry

Deploying a code change

After having your PR reviewed and merged create a new release on github. A new pypi release will be automatically triggered by Travis.

Installing from pypi

  • To install this package from pypi run:
pip install python_moztelemetry

Updating parse_histograms.py

moztelemetry/parse_histograms.py is a mirror of its counterpart from mozilla-central. To update it to the latest version you can run

bin/update_parser_scripts

Note that this file was formerly called histogram_tools.py and was renamed in Bug 1419761.

Testing locally

To test/debug this package locally, you can run exactly the job that CircleCI runs for continuous integration by installing the CircleCI local CLI and invoking:

circleci build --job py36

See [.circleci/config.yml] for the other configured job names (for running tests on different python versions).

The above process takes a few minutes to run every time, so there is also a bin/test script that builds a docker image and python environment (both of which are cached locally) and allows you to run a subset of tests. Here are some sample invocations:

./bin/test tests/ -k test_unpack  # runs only tests with key "test_unpack"
./bin/test tests/heka/            # runs only tests in tests/heka
PYTHON_VERSION=2.7 ./bin/test     # specify a python version