CSC/ECE 517 Spring 2017/OSS M1706 Tracking intermittent test failures over time: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Supporting the servo OSS project. [https://github.com/servo/servo/wiki/Tracking-intermittent-failures-over-time-project]
This is a request from the Servo OSS project to reduce the impact intermittent test failures have on the software. The [https://github.com/servo/servo/wiki/Tracking-intermittent-failures-over-time-project request] made was for a Flask service using Python 2.7. The intermittent test failure tracker will store information regarding a test that fails intermittently and also provide means to quickly query for tests that have failed.


== Introduction ==
== Introduction ==
Line 10: Line 10:


== Implementation ==
== Implementation ==
The implementation was entirely influenced by the request, the servo team had clearly defined what the service should do and how it would be made.


=== Data model ===
=== Data model ===
 
To store the intermittent test failures, a library called [https://tinydb.readthedocs.io/en/latest/ TinyDB] was used. This library is a native python library that provides convenient [https://en.wikipedia.org/wiki/SQL SQL] command like helpers around a [https://www.w3schools.com/js/js_json_syntax.asp JSON] file to more easily use it like a database. The format of the JSON file is simply an array of JSON objects, making the file easily human readable.
=== Datastore ===
=== Datastore ===


=== Flask Service ===
=== Flask Service ===

Revision as of 00:26, 22 March 2017

This is a request from the Servo OSS project to reduce the impact intermittent test failures have on the software. The request made was for a Flask service using Python 2.7. The intermittent test failure tracker will store information regarding a test that fails intermittently and also provide means to quickly query for tests that have failed.

Introduction

Servo

Python

Scope

Implementation

The implementation was entirely influenced by the request, the servo team had clearly defined what the service should do and how it would be made.

Data model

To store the intermittent test failures, a library called TinyDB was used. This library is a native python library that provides convenient SQL command like helpers around a JSON file to more easily use it like a database. The format of the JSON file is simply an array of JSON objects, making the file easily human readable.

Datastore

Flask Service