Automated end-to-end testing for Mozilla's Glean telemetry. 👩‍🚀
Перейти к файлу
Raphael Pierzina 6501fbfbb3
Merge pull request #447 from mozilla/document-project-status-and-archive-repo
Document project status on README 
2022-08-04 11:50:48 +02:00
.circleci Fixes #413: Update python version. (#425) 2022-07-12 13:17:14 +02:00
.github Submit commits to Glean probe-scraper 2022-06-21 12:22:40 -07:00
application Bump types-setuptools from 62.6.1 to 63.2.2 in /application 2022-07-29 04:05:06 +00:00
bigquery Fixes #413: Update python version. (#425) 2022-07-12 13:17:14 +02:00
fake-data-platform Bump jinja2 from 2.10.3 to 2.11.3 in /fake-data-platform 2021-03-20 02:30:50 +00:00
.dockerignore Add pytest_cache to Docker ignore 2020-06-23 18:45:32 +02:00
.gitignore Add VS Code folder to gitignore 2019-11-04 17:22:24 +01:00
CODE_OF_CONDUCT.md Add code of conduct 2019-12-18 11:38:47 +01:00
LICENSE Initial commit 2019-11-04 16:33:20 +01:00
README.md Document project status on README 2022-08-04 10:51:01 +02:00
docker-compose.yml Set environment variable for logging Glean pings 2020-09-09 15:00:21 +02:00
labels.toml Update labels file 2020-10-05 12:36:17 +02:00

README.md

burnham 👩‍🚀📈🤖

As of August 4, 2022, the burnham end-to-end test suite was disabled on Airflow. The source code in this repository is no longer actively maintained and the repository was marked as read-only as a result.

The burnham project is an end-to-end test suite that aims to automatically verify that Glean-based products correctly measure, collect, and submit non-personal information to the GCP-based Data Platform and that the received telemetry data is then correctly processed, stored to the respective tables and made available in BigQuery.

Blog post about the proof of concept: https://raphael.codes/blog/automated-end-to-end-tests-for-glean/

Overview

Glean SDK

For Mozilla, getting reliable data from our products is critical to inform our decision making. Glean is a product analytics & telemetry solution that provides a consistent experience and behavior across all of our products.

Find out more in our Data Documentation. 📝

burnham

We have developed a command-line application based on the Glean SDK Python bindings for producing test data as part of the automated end-to-end test suite. The burnham application submits Glean pings to the Data Platform which validates and stores these pings in BigQuery tables.

You can find the code for the burnham application in the application directory. 👩‍🚀

burnham-bigquery

We also developed a test suite based on the pytest framework that dynamically generates tests. Each test runs a specific query on BigQuery to verify a certain test scenario. After the test session finished, we then store the results in a designated BigQuery table with ID burnham_derived.test_results_v1.

The test suite code is located in the bigquery directory. 📊

telemetry-airflow

We build and push Docker images for both burnham and burnham-bigquery on CI for pushes to the main branch of this repository. The end-to-end test suite is configured as a DAG on telemetry-airflow on the Data Platform and scheduled to run daily. It runs several instances of a burnham Docker container to produce Glean telemetry, uses Airflow sensors to wait for the data to be available in the various burnham live tables, and then runs burnham-bigquery to verify the results.

Please see the burnham DAG for more information. 📋

Redash

We created two scheduled queries that read the results from the burnham_derived.test_results_v1 table from the past 4 days. The queries run daily at 02:00 UTC after telemetry-airflow ran the burnham DAG.

Mozilla employees can find this information in the burnham dashboard.

Development status

We successfully completed the proof of concept and are now running burnham and burnham-bigquery in production. We are now actively working on developing additional test scenarios. 🚀

Requirements

Both burnham and burnham-bigquery run on Python 3.7 on Debian.

Integration points

The burnham project has integration points with the Glean SDK team, the Data Platform team and the Ecosystem Test Engineering team.

Community Participation Guidelines

This repository is governed by Mozilla's code of conduct and etiquette. Please read the burnham Code of Conduct.

Project theme

The project theme is inspired by Michael Burnham, the fictional protagonist on the web television series Star Trek: Discovery portrayed by Sonequa Martin-Green. Burnham is a science specialist on the Discovery. She and her crew do research on spore drive technology and complete missions in outer space and these themes of scientific exploration and space travel are a perfect fit for this project. 👩‍🚀