bug(1854406): Addressing installation problems affecting consumers of this repo. (#277)
updated setup.py and explitly specifying dependencies versions + removed user_scm_version flag
Tweaked CI configuration to comment out any potential publishing steps
trying to fix CI build
fixing linting error
Tweaked CI configuration to comment out any potential publishing steps
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
python_moztelemetry

PySpark bindings for Mozilla Telemetry
The underlying data no longer exists, so this repository is archived. See the
fx-data-devmailing list posting for more information.Documentation
Online documentation is available at https://mozilla.github.io/python_moztelemetry/
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
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
Note that this file was formerly called histogram_tools.py and was renamed in Bug 1419761.
Updating message_pb2.py
moztelemetry/heka/message_pb2.pyis generated from mozilla-services/heka. To regenerate it, you’ll need to install aprotobufpackage for your system. To avoid installing go-specific extensions, remove thegogo.protoimport and thegogoprotooptions and then runprotoc: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:
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/testscript 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:It’s also possible to run the tests locally outside of docker by invoking
toxdirectly, but the details of doing so depend on your local development environment and are outside the scope of these docs. Be aware that you will need to have a working installation of Java and libsnappy, likely via your OS’s package manager (i.e.brew install snappyon MacOS).If you’re receiving mysterious errors, try removing cached files via: