Skip to content

mozilla-mobile/testops-dashboard

Repository files navigation

test-dashboard

The Mozilla Mobile TestOps Dashboard is data pump that collects data from diverse APIs (datasources) and aggregates it in a Cloud SQL database for display in Looker graphs.

Overview

The following is an overview of the test-dashboard.

The code is in this repository provides the backend which enables us to publish graphs in Looker.

It is constructed to function as follows

  1. __main__.py script invoked via github workflow cron to initiate a data extraction
  2. Data 'pumped' from source API indicated
  3. Data temporarily packaged into a payload
  4. Payload used to update Cloud SQL database

Once the updated data is available in the database, it is made available to our Looker graphs via BigQuery views.

Description

  1. Main menu

    Usage: __main__.py [-h] --project {fenix,focus-android,reference-browser,firefox-ios,focus-ios,ALL}
                       --report-type {test-case-coverage,test-run-counts,issue-regression} [--num-days NUM_DAYS]
    
    Retrieve and update mobile project test data
    
    optional arguments:
      -h, --help            show this help message and exit
      --project {fenix,focus-android,reference-browser,firefox-ios,focus-ios,ALL}
                        Indicate project
      --report-type {test-case-coverage,test-run-counts,issue-regression}
                        Indicate report type
      --num-days NUM_DAYS   Indicate number of historic days of records to include
    
  2. API Requests

    Queries data from a given data source (see: Source APIs below).

  3. Data Payload

    Repackage desired data points (usually JSON) from source API into a pandas dataframe. This allows for easy updates to database.

  4. Database Update

    Uses SQLAlchemy to update database with pandas dataframe data payload. Data reports are generated using github workflows set to specified cron periods:

    • Daily
    • Weekly
    • Fortnightly
    • Monthly
  5. Data Retrieval

    Database is connected to a BigQuery instance. Corresponding views are created in BigQuery that can be directly accessed for generating report in Looker.

Source APIs

Data Sources

  • Testrail
  • Github - TBD
  • Taskcluster - TBD
  • Bitrise.io - TBD

Database

Data is aggregated / cached in a Cloud SQL database. Data queries are constructed using BigQuery views.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published