6fca7fe4ac
Tests that are not aimed at the jobs API should not be dependant on the order of jobs returned by get_job_list(). * test_tbpl.py does not even need to use get_job_list() since the only accessed property is the job_id, which we are better off hard-coding. * test_note_apy.py should use the job_id found earlier in the test, rather than hard-coding a wrong value. * In test_bug_job_map_api.py, there is no ORDER BY clause for the stored get_bug_job_map_list query. The current test only happens to pass since the bug_job_map table currently uses the InnoDB engine, which default to the order of the primary key. Were our test environment and production bug_job_map tables to use different engines, the behaviour would silently change, so it seems wrong for the test to give the illusion of a guaranteed order. If in the future we wanted to give such a guarantee, we should add an ORDER BY to the get_bug_job_map_list query & update the test accordingly. |
||
---|---|---|
bin | ||
deployment | ||
docs | ||
puppet | ||
requirements | ||
schemas | ||
tests | ||
treeherder | ||
vendor | ||
.coveragerc | ||
.gitignore | ||
.landscape.yaml | ||
.travis.yml | ||
LICENSE.txt | ||
README.md | ||
Vagrantfile | ||
manage.py | ||
runtests.sh | ||
setup.cfg | ||
setup.py |
README.md
treeherder-service
Description
Treeherder is a reporting dashboard for Mozilla checkins. It allows users to see the results of automatic builds and their respective tests. Treeherder-service manages the etl layer for data ingestion, web services, and the data model behind Treeherder.
Treeherder is comprised of this repo for providing those back end services, and several other component repos:
A treeherder-ui repo for the front end UI.
A treeherder-client for data submission.
A treeherder-node NodeJS interface.
Instances
Treeherder exists on three instances, dev for treeherder development, stage for pre-deployment validation, and production for actual use.
Installation
The steps to install the treeherder-service are provided here.
Links
Visit our project tracking Wiki at:
https://wiki.mozilla.org/Auto-tools/Projects/Treeherder
Visit our readthedocs page for other setup and configuration at:
https://treeherder-service.readthedocs.org/en/latest/index.html
File any bugs you may encounter here.