Real-time monitoring of Firefox release health
Перейти к файлу
Anna Scholtz 40054cd3fe
Fix display_version comparison to account for 100+ versions (#423)
2022-04-29 11:38:15 -07:00
.circleci Update docker-compose used in ci (#373) 2019-10-24 16:44:33 -04:00
bin Fix wait for db/redis code 2019-04-04 16:50:25 -04:00
docs Allow skipping the first 24 hours in relative release view 2018-02-14 13:39:09 -05:00
frontend Make "all" the default rate calculation in the subview (#355) 2019-02-06 17:08:55 -05:00
missioncontrol Fix display_version comparison to account for 100+ versions (#423) 2022-04-29 11:38:15 -07:00
requirements Upgrade Django to 2.2.9 (#379) 2019-12-19 15:18:04 -05:00
tests Bug 1594111 - Change data source to BigQuery (#376) 2019-11-22 16:00:20 -05:00
.coveragerc Use ATMO-like build/test/deploy structure 2017-06-27 12:55:51 -07:00
.dockerignore Add node_modules/docs to .dockerignore 2017-07-25 14:28:41 -07:00
.env-dist Bug 1594111 - Change data source to BigQuery (#376) 2019-11-22 16:00:20 -05:00
.eslintrc.js Upgrade Neutrino to v7, have eslint bin use Neutrino configuration 2017-11-14 11:20:32 -05:00
.gitignore Remove doc placeholders (#187) 2018-01-15 10:42:59 -05:00
.neutrinorc.js Set up Jest tests for React-Redux (#332) 2018-11-14 11:50:37 -05:00
.pyup.yml Configure pyup to only apply security updates 2017-08-08 10:48:33 +01:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct file (#360) 2019-03-30 09:09:14 -04:00
Dockerfile Fix display_version comparison to account for 100+ versions (#423) 2022-04-29 11:38:15 -07:00
LICENSE Initial commit 2017-06-15 19:32:30 +01:00
Makefile Update makefile commands to use exec instead of shell 2019-04-04 16:50:25 -04:00
README.md Set up Jest tests for React-Redux (#332) 2018-11-14 11:50:37 -05:00
contribute.json Initial commit 2017-06-15 19:32:30 +01:00
docker-compose-ci.yml Fix display_version comparison to account for 100+ versions (#423) 2022-04-29 11:38:15 -07:00
docker-compose.yml Attempt to not make ci interfere with dev setup 2019-04-04 16:50:25 -04:00
fixtures_init.sql Bug 1594111 - Change data source to BigQuery (#376) 2019-11-22 16:00:20 -05:00
manage.py Initial commit 2017-06-15 19:32:30 +01:00
package.json Bump lodash from 4.17.5 to 4.17.13 (#374) 2019-10-24 16:50:55 -04:00
pytest.ini Add a unit test to make sure all update_measure calls are scheduled 2018-01-18 15:15:32 -05:00
sample.snappy.parquet Update dimensions list to reflect schema changes 2017-06-29 13:14:05 -07:00
setup.cfg Ignore some silly / annoying flake8 rules 2018-03-21 19:34:15 -04:00
setup.py Initial commit 2017-06-15 19:32:30 +01:00
yarn.lock Bump lodash from 4.17.5 to 4.17.13 (#374) 2019-10-24 16:50:55 -04:00

README.md

Mission Control

CircleCI codecov

Mission Control is a monitoring service for Firefox release health, it allows you to view in (near) real time the rate of crashes and other quantitative measures of quality. It uses the dataset generated by the telemetry-streaming library.

The server-side backend is written in Python using Django. The UI is written in React, Redux and metricsgraphics.

Getting in touch

If you have any questions about Mission Control (either as a user or contributor), the best place to ask is the #missioncontrol channel on irc.mozilla.org (learn more about irc @ Mozilla).

Contributing

We welcome contributions to Mission Control! Working on the UI component (see instructions immediately below) does not require any special access to Mozilla's internal systems.

If youre looking for a way to jump in and contribute, our list of good first issues is a great place to start.

Instructions for development (UI only)

If you only want to hack on the UI, you can set up a local-only of missioncontrol which pulls data from the current production server. You only need to have yarn installed.

Run:

yarn install
yarn start

This should start up a webserver at http://localhost:5000 which you can connect to.

To run the Jest tests for Mission Control's React components, execute:

yarn test

Instructions for development (full stack)

Make sure you have docker, docker-compose, and yarn installed.

Then run:

yarn install
cp .env-dist .env
make build
make up
make fixtures

After you have brought the environment up, you can bring up a development version of the server by running make shell and then running ./manage.py runserver from there. You should then be able to connect to http://localhost:8000 from your web browser.

By default the environment uses a rather improverished set of test data, so the environment will not be that interesting. If you have Mozilla credentials, you can set up PRESTO_URL and SECRET_KEY variables in a .env file to have it pull data from a production dataset. Once you have that set up, you should be able to download a set of recent data from a shell environment (make shell) via the load_measure_data subcommand. E.g.:

./manage.py load_measure_data linux release main_crashes

The recommended way of running the tests locally is via the shell environment. After running make shell, execute:

pytest tests/

By default all tests and linters are run. Often you just want to run a subset of the python tests. You can do this by adding some arguments to your tox invocation:

tox -e tests -- -k tests/test_api.py  # run only tests in test_api.py

Instructions for deployment

The target environment for this project follows the dockerflow conventions. In order to run it correctly, a number of environment variables need to be set up. The full list of variables can be found in the web section of the docker-compose.yml file. From a services standpoint, this project requires:

  • a Postgres DB to store the application data, defined by DATABASE_URL
  • a Presto/Athena service, defined by PRESTO_URL
  • an optional Redis cache service, defined by CACHE_URL