From dbb4d11e09ba65f2721dc67d5000914c8e5ca6a0 Mon Sep 17 00:00:00 2001 From: Jonathan French Date: Mon, 3 Nov 2014 12:20:00 -0500 Subject: [PATCH] Bug 1090689 - Add MPL2.0 headers to the repo --- .landscape.yaml | 4 ++++ .travis.yml | 4 ++++ Vagrantfile | 4 ++++ bin/download_logs.py | 4 ++++ bin/generate-vendor-lib.py | 5 +++++ bin/run_celery_worker | 5 +++++ bin/run_celery_worker_buildapi | 5 +++++ bin/run_celery_worker_gevent | 5 +++++ bin/run_celery_worker_hp | 5 +++++ bin/run_celery_worker_pushlog | 5 +++++ bin/run_celerybeat | 4 ++++ bin/run_gunicorn | 5 +++++ bin/run_pulse_adapter | 4 ++++ deployment/supervisord/admin_node.conf | 4 ++++ deployment/supervisord/etl_node.conf | 4 ++++ deployment/supervisord/worker_node.conf | 4 ++++ deployment/update/commander_settings.py-example | 4 ++++ deployment/update/update.py | 4 ++++ docs/conf.py | 4 ++++ manage.py | 5 +++++ puppet/files/apache/treeherder-service.conf | 4 ++++ puppet/manifests/classes/apache.pp | 4 ++++ puppet/manifests/classes/dev.pp | 4 ++++ puppet/manifests/classes/init.pp | 4 ++++ puppet/manifests/classes/mysql.pp | 4 ++++ puppet/manifests/classes/python.pp | 4 ++++ puppet/manifests/classes/rabbitmq.pp | 4 ++++ puppet/manifests/classes/treeherder.pp | 4 ++++ puppet/manifests/classes/utils.pp | 4 ++++ puppet/manifests/classes/varnish.pp | 4 ++++ puppet/manifests/production.pp | 6 ++++-- puppet/manifests/vagrant.pp | 6 ++++-- runtests.sh | 5 +++++ setup.py | 4 ++++ tests/conftest.py | 4 ++++ tests/e2e/conftest.py | 4 ++++ tests/e2e/test_jobs_loaded.py | 4 ++++ tests/etl/conftest.py | 4 ++++ tests/etl/test_bugzilla.py | 4 ++++ tests/etl/test_buildapi.py | 4 ++++ tests/etl/test_buildbot.py | 4 ++++ tests/etl/test_common.py | 4 ++++ tests/etl/test_perf_data_adapters.py | 4 ++++ tests/etl/test_pushlog.py | 4 ++++ tests/etl/test_tbpl.py | 4 ++++ tests/log_parser/conftest.py | 4 ++++ tests/log_parser/test_artifact_builder_collection.py | 4 ++++ tests/log_parser/test_job_artifact_builder.py | 4 ++++ tests/log_parser/test_log_view_artifact_builder.py | 4 ++++ tests/log_parser/test_performance_artifact_builder.py | 4 ++++ tests/log_parser/test_tasks.py | 4 ++++ tests/log_parser/test_tinderbox_print_parser.py | 4 ++++ tests/log_parser/test_utils.py | 4 ++++ tests/model/commands/test_init_datasource.py | 4 ++++ tests/model/derived/conftest.py | 4 ++++ tests/model/derived/sample_data_generator.py | 4 ++++ tests/model/derived/test_jobs_model.py | 4 ++++ tests/model/derived/test_objectstore_model.py | 4 ++++ tests/model/derived/test_refdata.py | 4 ++++ tests/model/sql/test_models.py | 4 ++++ tests/sample_data_generator.py | 4 ++++ tests/sampledata.py | 4 ++++ tests/test_setup.py | 4 ++++ tests/test_utils.py | 4 ++++ tests/webapp/api/test_artifact_api.py | 4 ++++ tests/webapp/api/test_bug_job_map_api.py | 4 ++++ tests/webapp/api/test_jobs_api.py | 4 ++++ tests/webapp/api/test_note_api.py | 4 ++++ tests/webapp/api/test_objectstore_api.py | 4 ++++ tests/webapp/api/test_project_api.py | 4 ++++ tests/webapp/api/test_resultset_api.py | 4 ++++ tests/webapp/api/test_utils.py | 4 ++++ tests/webapp/conftest.py | 4 ++++ treeherder/cache.py | 4 ++++ treeherder/celery.py | 4 ++++ treeherder/etl/bugzilla.py | 4 ++++ treeherder/etl/buildapi.py | 4 ++++ treeherder/etl/buildbot.py | 4 ++++ treeherder/etl/common.py | 4 ++++ treeherder/etl/daemon.py | 4 ++++ .../etl/management/commands/export_project_credentials.py | 4 ++++ .../etl/management/commands/import_project_credentials.py | 4 ++++ treeherder/etl/management/commands/start_pulse_consumer.py | 4 ++++ treeherder/etl/management/commands/test_builds4h.py | 4 ++++ treeherder/etl/mixins.py | 4 ++++ treeherder/etl/oauth_utils.py | 4 ++++ treeherder/etl/perf_data_adapters.py | 4 ++++ treeherder/etl/pulse.py | 4 ++++ treeherder/etl/pushlog.py | 4 ++++ treeherder/etl/tasks/buildapi_tasks.py | 4 ++++ treeherder/etl/tasks/cleanup_tasks.py | 4 ++++ treeherder/etl/tasks/tasks.py | 4 ++++ treeherder/etl/tasks/tbpl_tasks.py | 4 ++++ treeherder/etl/tbpl.py | 4 ++++ treeherder/events/consumer.py | 4 ++++ treeherder/events/publisher.py | 4 ++++ treeherder/events/run_socketio.py | 4 ++++ treeherder/events/sockets.py | 4 ++++ treeherder/log_parser/artifactbuildercollection.pyx | 4 ++++ treeherder/log_parser/artifactbuilders.pyx | 4 ++++ treeherder/log_parser/parsers.pyx | 4 ++++ treeherder/log_parser/tasks.py | 4 ++++ treeherder/log_parser/utils.py | 4 ++++ treeherder/model/derived/base.py | 4 ++++ treeherder/model/derived/jobs.py | 4 ++++ treeherder/model/derived/refdata.py | 4 ++++ treeherder/model/exchanges.py | 4 ++++ treeherder/model/management/commands/calculate_eta.py | 4 ++++ treeherder/model/management/commands/clear_cache.py | 4 ++++ treeherder/model/management/commands/cycle_data.py | 4 ++++ treeherder/model/management/commands/init_datasources.py | 4 ++++ treeherder/model/management/commands/init_master_db.py | 4 ++++ treeherder/model/management/commands/load_initial_data.py | 4 ++++ .../management/commands/populate_performance_series.py | 4 ++++ treeherder/model/management/commands/process_objects.py | 4 ++++ .../management/commands/publish_result_set_to_pulse.py | 4 ++++ treeherder/model/management/commands/run_sql.py | 4 ++++ .../model/management/commands/update_repository_version.py | 4 ++++ treeherder/model/migrations/0001_initial.py | 4 ++++ treeherder/model/models.py | 4 ++++ treeherder/model/pulse_publisher.py | 4 ++++ treeherder/model/tasks.py | 4 ++++ treeherder/model/utils.py | 4 ++++ treeherder/settings/base.py | 4 ++++ treeherder/settings/local.sample.py | 4 ++++ treeherder/webapp/admin.py | 4 ++++ treeherder/webapp/api/artifact.py | 4 ++++ treeherder/webapp/api/bug.py | 4 ++++ treeherder/webapp/api/exceptions.py | 4 ++++ treeherder/webapp/api/job_log_url.py | 4 ++++ treeherder/webapp/api/jobs.py | 4 ++++ treeherder/webapp/api/logslice.py | 4 ++++ treeherder/webapp/api/note.py | 4 ++++ treeherder/webapp/api/objectstore.py | 4 ++++ treeherder/webapp/api/performance_artifact.py | 4 ++++ treeherder/webapp/api/performance_data.py | 4 ++++ treeherder/webapp/api/permissions.py | 4 ++++ treeherder/webapp/api/projects.py | 4 ++++ treeherder/webapp/api/refdata.py | 4 ++++ treeherder/webapp/api/resultset.py | 4 ++++ treeherder/webapp/api/revision.py | 4 ++++ treeherder/webapp/api/serializers.py | 4 ++++ treeherder/webapp/api/urls.py | 4 ++++ treeherder/webapp/api/utils.py | 4 ++++ treeherder/webapp/urls.py | 4 ++++ treeherder/webapp/wsgi.py | 4 ++++ treeherder/workers/management/commands/shutdown_workers.py | 4 ++++ treeherder/workers/models.py | 4 ++++ treeherder/workers/tests.py | 4 ++++ treeherder/workers/views.py | 4 ++++ 150 files changed, 609 insertions(+), 4 deletions(-) diff --git a/.landscape.yaml b/.landscape.yaml index 73b4ffb78..d252b4b84 100644 --- a/.landscape.yaml +++ b/.landscape.yaml @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + uses: - django - celery diff --git a/.travis.yml b/.travis.yml index 50d40cf64..93c77cfc7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + language: python python: - "2.6" diff --git a/Vagrantfile b/Vagrantfile index fd490618c..9081a99a4 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + # -*- mode: ruby -*- # vi: set ft=ruby : diff --git a/bin/download_logs.py b/bin/download_logs.py index 978f10398..48e2e663d 100644 --- a/bin/download_logs.py +++ b/bin/download_logs.py @@ -1,5 +1,9 @@ #!/usr/bin/env python +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import sys import urllib2 diff --git a/bin/generate-vendor-lib.py b/bin/generate-vendor-lib.py index ce08da970..2f66be5ab 100755 --- a/bin/generate-vendor-lib.py +++ b/bin/generate-vendor-lib.py @@ -1,4 +1,9 @@ #!/usr/bin/env python + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + """ (Re)-generate the vendor library in ``vendor/`` from the requirements listed in ``requirements/pure.txt``. diff --git a/bin/run_celery_worker b/bin/run_celery_worker index 391926a97..77b2ce43c 100755 --- a/bin/run_celery_worker +++ b/bin/run_celery_worker @@ -1,4 +1,9 @@ #!/bin/bash + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + curr_dir=$( dirname "${BASH_SOURCE[0]}" ) cd $( dirname $curr_dir) diff --git a/bin/run_celery_worker_buildapi b/bin/run_celery_worker_buildapi index 18b1be128..debec3d2b 100755 --- a/bin/run_celery_worker_buildapi +++ b/bin/run_celery_worker_buildapi @@ -1,4 +1,9 @@ #!/bin/bash + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + curr_dir=$( dirname "${BASH_SOURCE[0]}" ) cd $( dirname $curr_dir) source /etc/profile.d/treeherder.sh diff --git a/bin/run_celery_worker_gevent b/bin/run_celery_worker_gevent index daab73192..10d9919b1 100755 --- a/bin/run_celery_worker_gevent +++ b/bin/run_celery_worker_gevent @@ -1,4 +1,9 @@ #!/bin/bash + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + curr_dir=$( dirname "${BASH_SOURCE[0]}" ) cd $( dirname $curr_dir) source /etc/profile.d/treeherder.sh diff --git a/bin/run_celery_worker_hp b/bin/run_celery_worker_hp index 13d448d3c..58bb5d9c0 100755 --- a/bin/run_celery_worker_hp +++ b/bin/run_celery_worker_hp @@ -1,4 +1,9 @@ #!/bin/bash + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + curr_dir=$( dirname "${BASH_SOURCE[0]}" ) cd $( dirname $curr_dir) diff --git a/bin/run_celery_worker_pushlog b/bin/run_celery_worker_pushlog index ea3e61f33..5602864a1 100755 --- a/bin/run_celery_worker_pushlog +++ b/bin/run_celery_worker_pushlog @@ -1,4 +1,9 @@ #!/bin/bash + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + curr_dir=$( dirname "${BASH_SOURCE[0]}" ) cd $( dirname $curr_dir) diff --git a/bin/run_celerybeat b/bin/run_celerybeat index 6b915bb49..0ca5c19ef 100755 --- a/bin/run_celerybeat +++ b/bin/run_celerybeat @@ -1,5 +1,9 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + curr_dir=$( dirname "${BASH_SOURCE[0]}" ) cd $( dirname $curr_dir) diff --git a/bin/run_gunicorn b/bin/run_gunicorn index 640d78c0f..0e0423e2d 100755 --- a/bin/run_gunicorn +++ b/bin/run_gunicorn @@ -1,4 +1,9 @@ #!/bin/bash + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + set -e curr_dir=$( dirname "${BASH_SOURCE[0]}" ) diff --git a/bin/run_pulse_adapter b/bin/run_pulse_adapter index bb2fd5123..26c6b8d81 100755 --- a/bin/run_pulse_adapter +++ b/bin/run_pulse_adapter @@ -1,5 +1,9 @@ #!/bin/bash +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + LOGDIR=/var/log/pulse_consumer/ if [ ! -d $LOGDIR ]; then diff --git a/deployment/supervisord/admin_node.conf b/deployment/supervisord/admin_node.conf index a894f350f..c942a4cc4 100644 --- a/deployment/supervisord/admin_node.conf +++ b/deployment/supervisord/admin_node.conf @@ -1,3 +1,7 @@ +; This Source Code Form is subject to the terms of the Mozilla Public +; License, v. 2.0. If a copy of the MPL was not distributed with this +; file, you can obtain one at http://mozilla.org/MPL/2.0/. + [supervisord] http_port=/var/tmp/supervisor.sock ; (default is to run a UNIX domain socket server) loglevel=info ; (logging level;default info; others: debug,warn) diff --git a/deployment/supervisord/etl_node.conf b/deployment/supervisord/etl_node.conf index a62a25a5b..09226aa76 100644 --- a/deployment/supervisord/etl_node.conf +++ b/deployment/supervisord/etl_node.conf @@ -1,3 +1,7 @@ +; This Source Code Form is subject to the terms of the Mozilla Public +; License, v. 2.0. If a copy of the MPL was not distributed with this +; file, you can obtain one at http://mozilla.org/MPL/2.0/. + [supervisord] http_port=/var/tmp/supervisor.sock ; (default is to run a UNIX domain socket server) loglevel=info ; (logging level;default info; others: debug,warn) diff --git a/deployment/supervisord/worker_node.conf b/deployment/supervisord/worker_node.conf index 33749fef3..f96459f06 100644 --- a/deployment/supervisord/worker_node.conf +++ b/deployment/supervisord/worker_node.conf @@ -1,3 +1,7 @@ +; This Source Code Form is subject to the terms of the Mozilla Public +; License, v. 2.0. If a copy of the MPL was not distributed with this +; file, you can obtain one at http://mozilla.org/MPL/2.0/. + [supervisord] http_port=/var/tmp/supervisor.sock ; (default is to run a UNIX domain socket server) loglevel=info ; (logging level;default info; others: debug,warn) diff --git a/deployment/update/commander_settings.py-example b/deployment/update/commander_settings.py-example index 33975c459..3a3a5cbf7 100644 --- a/deployment/update/commander_settings.py-example +++ b/deployment/update/commander_settings.py-example @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + # Example Commander configuration file for Chief deployment. # Copy to commander_settings.py & adjust as required. SRC_DIR = '/data/treeherder/src/treeherder.mozilla.org/' diff --git a/deployment/update/update.py b/deployment/update/update.py index 642b78a83..014f34b79 100644 --- a/deployment/update/update.py +++ b/deployment/update/update.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + """ Deploy this project in dev/stage/production. diff --git a/docs/conf.py b/docs/conf.py index bc6be5f57..c1bcd5972 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + # -*- coding: utf-8 -*- # # treeherder documentation build configuration file, created by diff --git a/manage.py b/manage.py index c8fbe5446..e7b601c03 100755 --- a/manage.py +++ b/manage.py @@ -1,4 +1,9 @@ #!/usr/bin/env python + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import os import sys diff --git a/puppet/files/apache/treeherder-service.conf b/puppet/files/apache/treeherder-service.conf index 3a867162c..48b116743 100644 --- a/puppet/files/apache/treeherder-service.conf +++ b/puppet/files/apache/treeherder-service.conf @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + ServerName <%= @APP_URL %> ProxyRequests Off diff --git a/puppet/manifests/classes/apache.pp b/puppet/manifests/classes/apache.pp index e5af2894d..6ce68ad87 100644 --- a/puppet/manifests/classes/apache.pp +++ b/puppet/manifests/classes/apache.pp @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + $apache_devel = $operatingsystem ? { ubuntu => "apache2-dev", default => "httpd-devel", diff --git a/puppet/manifests/classes/dev.pp b/puppet/manifests/classes/dev.pp index 1aaabb636..63c7b0733 100644 --- a/puppet/manifests/classes/dev.pp +++ b/puppet/manifests/classes/dev.pp @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + class dev{ exec{"pip-install-dev": user => "${APP_USER}", diff --git a/puppet/manifests/classes/init.pp b/puppet/manifests/classes/init.pp index 43f195dac..acb891bc1 100644 --- a/puppet/manifests/classes/init.pp +++ b/puppet/manifests/classes/init.pp @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + # Commands to run before all others in puppet. class init { group { "puppet": diff --git a/puppet/manifests/classes/mysql.pp b/puppet/manifests/classes/mysql.pp index f43e7150c..f42b4c95e 100644 --- a/puppet/manifests/classes/mysql.pp +++ b/puppet/manifests/classes/mysql.pp @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + # mysqldev and mysql service need to be parametrized # based on the OS $mysqldev = $operatingsystem ? { diff --git a/puppet/manifests/classes/python.pp b/puppet/manifests/classes/python.pp index 4c9aec111..d794d4c0e 100644 --- a/puppet/manifests/classes/python.pp +++ b/puppet/manifests/classes/python.pp @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + # Install python and compiled modules for project $python_devel = $operatingsystem ? { diff --git a/puppet/manifests/classes/rabbitmq.pp b/puppet/manifests/classes/rabbitmq.pp index 47a274171..3155ed40d 100644 --- a/puppet/manifests/classes/rabbitmq.pp +++ b/puppet/manifests/classes/rabbitmq.pp @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + class rabbitmq { package { "rabbitmq-server": ensure => installed; diff --git a/puppet/manifests/classes/treeherder.pp b/puppet/manifests/classes/treeherder.pp index be605da12..5cadf51e0 100644 --- a/puppet/manifests/classes/treeherder.pp +++ b/puppet/manifests/classes/treeherder.pp @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + #any additional stuff goes here class treeherder { package{"make": diff --git a/puppet/manifests/classes/utils.pp b/puppet/manifests/classes/utils.pp index aa5eb41a3..0cded3882 100644 --- a/puppet/manifests/classes/utils.pp +++ b/puppet/manifests/classes/utils.pp @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + define line($file, $line, $ensure = 'present') { case $ensure { default : { err ( "unknown ensure value ${ensure}" ) } diff --git a/puppet/manifests/classes/varnish.pp b/puppet/manifests/classes/varnish.pp index 9575a55b2..0c6c15f6a 100644 --- a/puppet/manifests/classes/varnish.pp +++ b/puppet/manifests/classes/varnish.pp @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + $varnish_port_file = $operatingsystem ? { ubuntu => "/etc/default/varnish", default => "/etc/sysconfig/varnish", diff --git a/puppet/manifests/production.pp b/puppet/manifests/production.pp index 586e693df..6c35d5f08 100644 --- a/puppet/manifests/production.pp +++ b/puppet/manifests/production.pp @@ -1,6 +1,8 @@ -# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + # Playdoh puppet magic for dev boxes -# import "classes/*.pp" $APP_URL="local.treeherder.mozilla.org" diff --git a/puppet/manifests/vagrant.pp b/puppet/manifests/vagrant.pp index f9db47cff..c6f40595c 100644 --- a/puppet/manifests/vagrant.pp +++ b/puppet/manifests/vagrant.pp @@ -1,6 +1,8 @@ -# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + # Playdoh puppet magic for dev boxes -# import "classes/*.pp" $APP_URL="local.treeherder.mozilla.org" diff --git a/runtests.sh b/runtests.sh index bb55f8bfc..d85dc7a20 100755 --- a/runtests.sh +++ b/runtests.sh @@ -1,2 +1,7 @@ #!/bin/sh + +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + py.test tests/$* --cov-report html --cov treeherder diff --git a/setup.py b/setup.py index 1a22277d2..891711e16 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from distutils.core import setup from Cython.Build import cythonize diff --git a/tests/conftest.py b/tests/conftest.py index 586f114ea..94000b074 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import os from os.path import dirname import sys diff --git a/tests/e2e/conftest.py b/tests/e2e/conftest.py index 53695c372..feb522409 100644 --- a/tests/e2e/conftest.py +++ b/tests/e2e/conftest.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import os import pytest diff --git a/tests/e2e/test_jobs_loaded.py b/tests/e2e/test_jobs_loaded.py index 0022cfa7c..483bff7aa 100644 --- a/tests/e2e/test_jobs_loaded.py +++ b/tests/e2e/test_jobs_loaded.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.core.urlresolvers import reverse from webtest import TestApp from treeherder.webapp.wsgi import application diff --git a/tests/etl/conftest.py b/tests/etl/conftest.py index 0c440fab6..c79fed9fd 100644 --- a/tests/etl/conftest.py +++ b/tests/etl/conftest.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import pytest import json from webtest.app import TestApp diff --git a/tests/etl/test_bugzilla.py b/tests/etl/test_bugzilla.py index 32d86064c..360c6b812 100644 --- a/tests/etl/test_bugzilla.py +++ b/tests/etl/test_bugzilla.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import pytest import os import json diff --git a/tests/etl/test_buildapi.py b/tests/etl/test_buildapi.py index 52c9c856f..b1291755e 100644 --- a/tests/etl/test_buildapi.py +++ b/tests/etl/test_buildapi.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import os import pytest import responses diff --git a/tests/etl/test_buildbot.py b/tests/etl/test_buildbot.py index c5e61bcc2..226d43f2a 100644 --- a/tests/etl/test_buildbot.py +++ b/tests/etl/test_buildbot.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from treeherder.etl import buildbot import pytest import datetime diff --git a/tests/etl/test_common.py b/tests/etl/test_common.py index 69d249571..dd01f8a92 100644 --- a/tests/etl/test_common.py +++ b/tests/etl/test_common.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.conf import settings diff --git a/tests/etl/test_perf_data_adapters.py b/tests/etl/test_perf_data_adapters.py index b2d643f1f..4d8545d25 100644 --- a/tests/etl/test_perf_data_adapters.py +++ b/tests/etl/test_perf_data_adapters.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json from tests.sampledata import SampleData diff --git a/tests/etl/test_pushlog.py b/tests/etl/test_pushlog.py index 1bf43fe22..526fc52f4 100644 --- a/tests/etl/test_pushlog.py +++ b/tests/etl/test_pushlog.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import os import json import responses diff --git a/tests/etl/test_tbpl.py b/tests/etl/test_tbpl.py index b278c72db..1aeac97a9 100644 --- a/tests/etl/test_tbpl.py +++ b/tests/etl/test_tbpl.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from datetime import datetime from treeherder.etl.tbpl import OrangeFactorBugRequest, BugzillaBugRequest import json diff --git a/tests/log_parser/conftest.py b/tests/log_parser/conftest.py index e69de29bb..87bf24ec2 100644 --- a/tests/log_parser/conftest.py +++ b/tests/log_parser/conftest.py @@ -0,0 +1,4 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + diff --git a/tests/log_parser/test_artifact_builder_collection.py b/tests/log_parser/test_artifact_builder_collection.py index 1a576324e..ff72a47de 100644 --- a/tests/log_parser/test_artifact_builder_collection.py +++ b/tests/log_parser/test_artifact_builder_collection.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from treeherder.log_parser.artifactbuildercollection import ArtifactBuilderCollection from treeherder.log_parser.artifactbuilders import BuildbotLogViewArtifactBuilder from ..sampledata import SampleData diff --git a/tests/log_parser/test_job_artifact_builder.py b/tests/log_parser/test_job_artifact_builder.py index ae1586c7c..be78e039c 100644 --- a/tests/log_parser/test_job_artifact_builder.py +++ b/tests/log_parser/test_job_artifact_builder.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json from datadiff import diff diff --git a/tests/log_parser/test_log_view_artifact_builder.py b/tests/log_parser/test_log_view_artifact_builder.py index 055dc52f3..9027e7207 100644 --- a/tests/log_parser/test_log_view_artifact_builder.py +++ b/tests/log_parser/test_log_view_artifact_builder.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json import pytest from datadiff import diff diff --git a/tests/log_parser/test_performance_artifact_builder.py b/tests/log_parser/test_performance_artifact_builder.py index dd4dc3be9..1b8132365 100644 --- a/tests/log_parser/test_performance_artifact_builder.py +++ b/tests/log_parser/test_performance_artifact_builder.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json from datadiff import diff from jsonschema import validate diff --git a/tests/log_parser/test_tasks.py b/tests/log_parser/test_tasks.py index a997756d3..b1dc747ed 100644 --- a/tests/log_parser/test_tasks.py +++ b/tests/log_parser/test_tasks.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import pytest import simplejson as json diff --git a/tests/log_parser/test_tinderbox_print_parser.py b/tests/log_parser/test_tinderbox_print_parser.py index 11379a702..52e824e7a 100644 --- a/tests/log_parser/test_tinderbox_print_parser.py +++ b/tests/log_parser/test_tinderbox_print_parser.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import pytest from treeherder.log_parser.parsers import TinderboxPrintParser diff --git a/tests/log_parser/test_utils.py b/tests/log_parser/test_utils.py index 7242220e8..a3ec98814 100644 --- a/tests/log_parser/test_utils.py +++ b/tests/log_parser/test_utils.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import pytest from treeherder.log_parser.utils import (get_error_search_term, get_crash_signature) diff --git a/tests/model/commands/test_init_datasource.py b/tests/model/commands/test_init_datasource.py index 39f10dd71..ee8cf3df7 100644 --- a/tests/model/commands/test_init_datasource.py +++ b/tests/model/commands/test_init_datasource.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.core.management import call_command import pytest diff --git a/tests/model/derived/conftest.py b/tests/model/derived/conftest.py index 1f4cd899f..3eecfcfa9 100644 --- a/tests/model/derived/conftest.py +++ b/tests/model/derived/conftest.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import pytest diff --git a/tests/model/derived/sample_data_generator.py b/tests/model/derived/sample_data_generator.py index a9535f2ee..f3daf894c 100644 --- a/tests/model/derived/sample_data_generator.py +++ b/tests/model/derived/sample_data_generator.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + """ Functions for flexible generation of sample input job JSON. diff --git a/tests/model/derived/test_jobs_model.py b/tests/model/derived/test_jobs_model.py index 7f070865b..15cdeb3fc 100644 --- a/tests/model/derived/test_jobs_model.py +++ b/tests/model/derived/test_jobs_model.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import time import json import pytest diff --git a/tests/model/derived/test_objectstore_model.py b/tests/model/derived/test_objectstore_model.py index 302b28b62..c10feaf42 100644 --- a/tests/model/derived/test_objectstore_model.py +++ b/tests/model/derived/test_objectstore_model.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json import pytest diff --git a/tests/model/derived/test_refdata.py b/tests/model/derived/test_refdata.py index 2d629fcf7..87aecc62c 100644 --- a/tests/model/derived/test_refdata.py +++ b/tests/model/derived/test_refdata.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import os import time import urllib2 diff --git a/tests/model/sql/test_models.py b/tests/model/sql/test_models.py index 0a20686a0..e0466126f 100644 --- a/tests/model/sql/test_models.py +++ b/tests/model/sql/test_models.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import datetime from contextlib import contextmanager diff --git a/tests/sample_data_generator.py b/tests/sample_data_generator.py index c731b5a59..b80f8062a 100644 --- a/tests/sample_data_generator.py +++ b/tests/sample_data_generator.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + """ Functions for flexible generation of sample input job JSON. diff --git a/tests/sampledata.py b/tests/sampledata.py index 48a28d480..60621be7f 100644 --- a/tests/sampledata.py +++ b/tests/sampledata.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json import os from django.conf import settings diff --git a/tests/test_setup.py b/tests/test_setup.py index e2ee3f877..902a86815 100644 --- a/tests/test_setup.py +++ b/tests/test_setup.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import pytest from django.conf import settings from treeherder.model.models import Datasource diff --git a/tests/test_utils.py b/tests/test_utils.py index f7944436b..7e551d71f 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json import itertools from webtest.app import TestApp, AppError diff --git a/tests/webapp/api/test_artifact_api.py b/tests/webapp/api/test_artifact_api.py index dcc4fa8ea..d966600f7 100644 --- a/tests/webapp/api/test_artifact_api.py +++ b/tests/webapp/api/test_artifact_api.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json import pytest from django.core.urlresolvers import reverse diff --git a/tests/webapp/api/test_bug_job_map_api.py b/tests/webapp/api/test_bug_job_map_api.py index 2eab3a574..68860bcb1 100644 --- a/tests/webapp/api/test_bug_job_map_api.py +++ b/tests/webapp/api/test_bug_job_map_api.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.core.urlresolvers import reverse from rest_framework.test import APIClient from django.contrib.auth.models import User diff --git a/tests/webapp/api/test_jobs_api.py b/tests/webapp/api/test_jobs_api.py index f228cc2c8..9cf47a95f 100644 --- a/tests/webapp/api/test_jobs_api.py +++ b/tests/webapp/api/test_jobs_api.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json from django.core.urlresolvers import reverse diff --git a/tests/webapp/api/test_note_api.py b/tests/webapp/api/test_note_api.py index 6b1c572c3..4b8bca0a5 100644 --- a/tests/webapp/api/test_note_api.py +++ b/tests/webapp/api/test_note_api.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json from django.core.urlresolvers import reverse from rest_framework.test import APIClient diff --git a/tests/webapp/api/test_objectstore_api.py b/tests/webapp/api/test_objectstore_api.py index 12f5a3e24..6aaac51f6 100644 --- a/tests/webapp/api/test_objectstore_api.py +++ b/tests/webapp/api/test_objectstore_api.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.core.urlresolvers import reverse from thclient import TreeherderJobCollection diff --git a/tests/webapp/api/test_project_api.py b/tests/webapp/api/test_project_api.py index 56294d659..51376e4c9 100644 --- a/tests/webapp/api/test_project_api.py +++ b/tests/webapp/api/test_project_api.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + def test_project_endpoint(webapp, eleven_jobs_processed, jm): """ tests the project endpoint diff --git a/tests/webapp/api/test_resultset_api.py b/tests/webapp/api/test_resultset_api.py index 127a932c4..34d5cb457 100644 --- a/tests/webapp/api/test_resultset_api.py +++ b/tests/webapp/api/test_resultset_api.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import pytest from django.core.urlresolvers import reverse diff --git a/tests/webapp/api/test_utils.py b/tests/webapp/api/test_utils.py index f3a640ded..7fe3e638c 100644 --- a/tests/webapp/api/test_utils.py +++ b/tests/webapp/api/test_utils.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from treeherder.webapp.api.utils import UrlQueryFilter diff --git a/tests/webapp/conftest.py b/tests/webapp/conftest.py index a33bcc860..46aa99c52 100644 --- a/tests/webapp/conftest.py +++ b/tests/webapp/conftest.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json import os from treeherder.webapp import wsgi diff --git a/treeherder/cache.py b/treeherder/cache.py index 077e4a188..ec7a08116 100644 --- a/treeherder/cache.py +++ b/treeherder/cache.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.core.cache.backends import memcached diff --git a/treeherder/celery.py b/treeherder/celery.py index 35a7b4d28..ecd91a641 100644 --- a/treeherder/celery.py +++ b/treeherder/celery.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from __future__ import absolute_import import os diff --git a/treeherder/etl/bugzilla.py b/treeherder/etl/bugzilla.py index 613da20f9..24e709d77 100644 --- a/treeherder/etl/bugzilla.py +++ b/treeherder/etl/bugzilla.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from urllib import urlencode from django.conf import settings diff --git a/treeherder/etl/buildapi.py b/treeherder/etl/buildapi.py index 86d2d876c..d1d20dc62 100644 --- a/treeherder/etl/buildapi.py +++ b/treeherder/etl/buildapi.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import logging import time import datetime diff --git a/treeherder/etl/buildbot.py b/treeherder/etl/buildbot.py index 143f04f6d..82ff5d11f 100644 --- a/treeherder/etl/buildbot.py +++ b/treeherder/etl/buildbot.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import re RESULT_DICT = { diff --git a/treeherder/etl/common.py b/treeherder/etl/common.py index 0cf74b176..f8db4e9af 100644 --- a/treeherder/etl/common.py +++ b/treeherder/etl/common.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from collections import defaultdict import hashlib import urllib2 diff --git a/treeherder/etl/daemon.py b/treeherder/etl/daemon.py index e58741fd1..f8dc650cd 100644 --- a/treeherder/etl/daemon.py +++ b/treeherder/etl/daemon.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import sys, os, time, atexit from signal import SIGTERM diff --git a/treeherder/etl/management/commands/export_project_credentials.py b/treeherder/etl/management/commands/export_project_credentials.py index 5364bb967..34e39c34b 100644 --- a/treeherder/etl/management/commands/export_project_credentials.py +++ b/treeherder/etl/management/commands/export_project_credentials.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import os import json diff --git a/treeherder/etl/management/commands/import_project_credentials.py b/treeherder/etl/management/commands/import_project_credentials.py index 9dae3c10c..d88fab677 100644 --- a/treeherder/etl/management/commands/import_project_credentials.py +++ b/treeherder/etl/management/commands/import_project_credentials.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import os import json diff --git a/treeherder/etl/management/commands/start_pulse_consumer.py b/treeherder/etl/management/commands/start_pulse_consumer.py index 448de164b..10ec08b3c 100644 --- a/treeherder/etl/management/commands/start_pulse_consumer.py +++ b/treeherder/etl/management/commands/start_pulse_consumer.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import os from optparse import make_option diff --git a/treeherder/etl/management/commands/test_builds4h.py b/treeherder/etl/management/commands/test_builds4h.py index 9dc14c6b4..3ac4909e4 100644 --- a/treeherder/etl/management/commands/test_builds4h.py +++ b/treeherder/etl/management/commands/test_builds4h.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.core.management.base import BaseCommand from treeherder.etl import buildapi diff --git a/treeherder/etl/mixins.py b/treeherder/etl/mixins.py index 5509b017c..099784e1d 100644 --- a/treeherder/etl/mixins.py +++ b/treeherder/etl/mixins.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from StringIO import StringIO import gzip import urllib2 diff --git a/treeherder/etl/oauth_utils.py b/treeherder/etl/oauth_utils.py index 2588543f0..eafd36ca5 100644 --- a/treeherder/etl/oauth_utils.py +++ b/treeherder/etl/oauth_utils.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json from treeherder import path import copy diff --git a/treeherder/etl/perf_data_adapters.py b/treeherder/etl/perf_data_adapters.py index 2d7edbbfc..974923b9c 100644 --- a/treeherder/etl/perf_data_adapters.py +++ b/treeherder/etl/perf_data_adapters.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json from json import encoder diff --git a/treeherder/etl/pulse.py b/treeherder/etl/pulse.py index bd70a9540..a78f5b850 100644 --- a/treeherder/etl/pulse.py +++ b/treeherder/etl/pulse.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json import time import datetime diff --git a/treeherder/etl/pushlog.py b/treeherder/etl/pushlog.py index 1efb0af61..a125989ea 100644 --- a/treeherder/etl/pushlog.py +++ b/treeherder/etl/pushlog.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.core.cache import cache from django.conf import settings import time diff --git a/treeherder/etl/tasks/buildapi_tasks.py b/treeherder/etl/tasks/buildapi_tasks.py index 57b569cb5..940444f2c 100644 --- a/treeherder/etl/tasks/buildapi_tasks.py +++ b/treeherder/etl/tasks/buildapi_tasks.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + """ This module contains """ diff --git a/treeherder/etl/tasks/cleanup_tasks.py b/treeherder/etl/tasks/cleanup_tasks.py index 198efbd51..af8498a81 100644 --- a/treeherder/etl/tasks/cleanup_tasks.py +++ b/treeherder/etl/tasks/cleanup_tasks.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import urllib import logging diff --git a/treeherder/etl/tasks/tasks.py b/treeherder/etl/tasks/tasks.py index 11f46606c..4d6af55f5 100644 --- a/treeherder/etl/tasks/tasks.py +++ b/treeherder/etl/tasks/tasks.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + """ This module contains """ diff --git a/treeherder/etl/tasks/tbpl_tasks.py b/treeherder/etl/tasks/tbpl_tasks.py index b21aa7170..41d507880 100644 --- a/treeherder/etl/tasks/tbpl_tasks.py +++ b/treeherder/etl/tasks/tbpl_tasks.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + """ This module contains """ diff --git a/treeherder/etl/tbpl.py b/treeherder/etl/tbpl.py index cb21cea03..5108c9b34 100644 --- a/treeherder/etl/tbpl.py +++ b/treeherder/etl/tbpl.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from datetime import datetime import logging diff --git a/treeherder/events/consumer.py b/treeherder/events/consumer.py index aa0e43073..4f63e1880 100644 --- a/treeherder/events/consumer.py +++ b/treeherder/events/consumer.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from kombu.mixins import ConsumerMixin from kombu import Connection, Exchange, Consumer, Queue import logging diff --git a/treeherder/events/publisher.py b/treeherder/events/publisher.py index 4d8324275..2f701997c 100644 --- a/treeherder/events/publisher.py +++ b/treeherder/events/publisher.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import logging from kombu import Connection, Exchange, Producer diff --git a/treeherder/events/run_socketio.py b/treeherder/events/run_socketio.py index 487642eea..1edf90461 100644 --- a/treeherder/events/run_socketio.py +++ b/treeherder/events/run_socketio.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + #!/usr/bin/env python import sys import argparse diff --git a/treeherder/events/sockets.py b/treeherder/events/sockets.py index ec8db4721..ef1047344 100644 --- a/treeherder/events/sockets.py +++ b/treeherder/events/sockets.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import logging from collections import defaultdict from socketio.namespace import BaseNamespace diff --git a/treeherder/log_parser/artifactbuildercollection.pyx b/treeherder/log_parser/artifactbuildercollection.pyx index 099682973..37cc7c28c 100644 --- a/treeherder/log_parser/artifactbuildercollection.pyx +++ b/treeherder/log_parser/artifactbuildercollection.pyx @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import urllib2 import gzip import io diff --git a/treeherder/log_parser/artifactbuilders.pyx b/treeherder/log_parser/artifactbuilders.pyx index dc72bad2a..7bd3985ae 100644 --- a/treeherder/log_parser/artifactbuilders.pyx +++ b/treeherder/log_parser/artifactbuilders.pyx @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from .parsers import (ErrorParser, TinderboxPrintParser, HeaderParser, StepParser, TalosParser) diff --git a/treeherder/log_parser/parsers.pyx b/treeherder/log_parser/parsers.pyx index 03c89b664..93bc4bbb0 100644 --- a/treeherder/log_parser/parsers.pyx +++ b/treeherder/log_parser/parsers.pyx @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import re import datetime import json diff --git a/treeherder/log_parser/tasks.py b/treeherder/log_parser/tasks.py index 6e7420817..6560557fb 100644 --- a/treeherder/log_parser/tasks.py +++ b/treeherder/log_parser/tasks.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import time from celery import task diff --git a/treeherder/log_parser/utils.py b/treeherder/log_parser/utils.py index b3a3a361b..c4ceb6f7d 100644 --- a/treeherder/log_parser/utils.py +++ b/treeherder/log_parser/utils.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import re import urllib diff --git a/treeherder/model/derived/base.py b/treeherder/model/derived/base.py index 997807bf9..ccbd20a76 100644 --- a/treeherder/model/derived/base.py +++ b/treeherder/model/derived/base.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + """ ``TreeHerderModelBase`` (and subclasses) are the public interface for all data access. diff --git a/treeherder/model/derived/jobs.py b/treeherder/model/derived/jobs.py index cce072eee..7ac8dbde9 100644 --- a/treeherder/model/derived/jobs.py +++ b/treeherder/model/derived/jobs.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json import MySQLdb import time diff --git a/treeherder/model/derived/refdata.py b/treeherder/model/derived/refdata.py index 95aa5b077..5b3bb3bd6 100644 --- a/treeherder/model/derived/refdata.py +++ b/treeherder/model/derived/refdata.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import os import logging from hashlib import sha1 diff --git a/treeherder/model/exchanges.py b/treeherder/model/exchanges.py index cec84956b..e4c0c1e37 100644 --- a/treeherder/model/exchanges.py +++ b/treeherder/model/exchanges.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from treeherder.model.pulse_publisher import PulsePublisher, Exchange, Key class TreeherderPublisher(PulsePublisher): diff --git a/treeherder/model/management/commands/calculate_eta.py b/treeherder/model/management/commands/calculate_eta.py index 92a8e74a0..987904cb3 100644 --- a/treeherder/model/management/commands/calculate_eta.py +++ b/treeherder/model/management/commands/calculate_eta.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from optparse import make_option from django.core.management.base import BaseCommand from treeherder.model.models import Repository diff --git a/treeherder/model/management/commands/clear_cache.py b/treeherder/model/management/commands/clear_cache.py index 7af3e2c5d..855110465 100644 --- a/treeherder/model/management/commands/clear_cache.py +++ b/treeherder/model/management/commands/clear_cache.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.core.management.base import BaseCommand from django.core.cache import cache diff --git a/treeherder/model/management/commands/cycle_data.py b/treeherder/model/management/commands/cycle_data.py index 35571b04c..c1f987832 100644 --- a/treeherder/model/management/commands/cycle_data.py +++ b/treeherder/model/management/commands/cycle_data.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from optparse import make_option from django.core.management.base import BaseCommand from treeherder.model.models import Repository diff --git a/treeherder/model/management/commands/init_datasources.py b/treeherder/model/management/commands/init_datasources.py index 5cc88149b..026ca938e 100644 --- a/treeherder/model/management/commands/init_datasources.py +++ b/treeherder/model/management/commands/init_datasources.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from optparse import make_option from django.utils.six.moves import input diff --git a/treeherder/model/management/commands/init_master_db.py b/treeherder/model/management/commands/init_master_db.py index ff1587dd4..b3bdb6476 100644 --- a/treeherder/model/management/commands/init_master_db.py +++ b/treeherder/model/management/commands/init_master_db.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import os from optparse import make_option diff --git a/treeherder/model/management/commands/load_initial_data.py b/treeherder/model/management/commands/load_initial_data.py index 4a5db48c3..2bc6d654d 100644 --- a/treeherder/model/management/commands/load_initial_data.py +++ b/treeherder/model/management/commands/load_initial_data.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.core.management.base import BaseCommand from django.core.management import call_command from treeherder.model.models import Datasource, Repository diff --git a/treeherder/model/management/commands/populate_performance_series.py b/treeherder/model/management/commands/populate_performance_series.py index 8525127f0..36ac3cf28 100644 --- a/treeherder/model/management/commands/populate_performance_series.py +++ b/treeherder/model/management/commands/populate_performance_series.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json import sys diff --git a/treeherder/model/management/commands/process_objects.py b/treeherder/model/management/commands/process_objects.py index 37bd0b543..8505ae3a3 100644 --- a/treeherder/model/management/commands/process_objects.py +++ b/treeherder/model/management/commands/process_objects.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from optparse import make_option from django.core.management.base import BaseCommand from treeherder.model.tasks import process_objects diff --git a/treeherder/model/management/commands/publish_result_set_to_pulse.py b/treeherder/model/management/commands/publish_result_set_to_pulse.py index 889e77cc9..7eb627436 100644 --- a/treeherder/model/management/commands/publish_result_set_to_pulse.py +++ b/treeherder/model/management/commands/publish_result_set_to_pulse.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from optparse import make_option from django.core.management.base import BaseCommand from treeherder.model.models import Repository diff --git a/treeherder/model/management/commands/run_sql.py b/treeherder/model/management/commands/run_sql.py index 0860f13da..7895c36c5 100644 --- a/treeherder/model/management/commands/run_sql.py +++ b/treeherder/model/management/commands/run_sql.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import MySQLdb from optparse import make_option diff --git a/treeherder/model/management/commands/update_repository_version.py b/treeherder/model/management/commands/update_repository_version.py index 038192593..0a7e17c57 100644 --- a/treeherder/model/management/commands/update_repository_version.py +++ b/treeherder/model/management/commands/update_repository_version.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from optparse import make_option from django.core.management.base import BaseCommand from treeherder.model.derived import RefDataManager diff --git a/treeherder/model/migrations/0001_initial.py b/treeherder/model/migrations/0001_initial.py index 4fd518b4b..e1cfb4933 100644 --- a/treeherder/model/migrations/0001_initial.py +++ b/treeherder/model/migrations/0001_initial.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + # -*- coding: utf-8 -*- import datetime from south.db import db diff --git a/treeherder/model/models.py b/treeherder/model/models.py index 5ba9f0e71..32119e18f 100644 --- a/treeherder/model/models.py +++ b/treeherder/model/models.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from __future__ import unicode_literals import uuid diff --git a/treeherder/model/pulse_publisher.py b/treeherder/model/pulse_publisher.py index 9036eca42..dd033771d 100644 --- a/treeherder/model/pulse_publisher.py +++ b/treeherder/model/pulse_publisher.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import kombu, re, json, os, jsonschema, logging logger = logging.getLogger(__name__) diff --git a/treeherder/model/tasks.py b/treeherder/model/tasks.py index 89aec0818..7be909f0d 100644 --- a/treeherder/model/tasks.py +++ b/treeherder/model/tasks.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from celery import task from django.conf import settings diff --git a/treeherder/model/utils.py b/treeherder/model/utils.py index 7d82103fe..93f125f0f 100644 --- a/treeherder/model/utils.py +++ b/treeherder/model/utils.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import time import json import random diff --git a/treeherder/settings/base.py b/treeherder/settings/base.py index 50890458d..bbaed289b 100644 --- a/treeherder/settings/base.py +++ b/treeherder/settings/base.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + # Django settings for webapp project. import os import sys diff --git a/treeherder/settings/local.sample.py b/treeherder/settings/local.sample.py index 2329e8081..f5f14910a 100644 --- a/treeherder/settings/local.sample.py +++ b/treeherder/settings/local.sample.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import os TREEHERDER_DATABASE_NAME = os.environ.get("TREEHERDER_DATABASE_NAME", "") diff --git a/treeherder/webapp/admin.py b/treeherder/webapp/admin.py index c8ed983ff..b56058fdc 100644 --- a/treeherder/webapp/admin.py +++ b/treeherder/webapp/admin.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.contrib import admin from treeherder.model.models import * from django_browserid.admin import site as browserid_admin diff --git a/treeherder/webapp/api/artifact.py b/treeherder/webapp/api/artifact.py index e76f463d9..280c067bc 100644 --- a/treeherder/webapp/api/artifact.py +++ b/treeherder/webapp/api/artifact.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from rest_framework import viewsets from rest_framework.response import Response from treeherder.etl.perf_data_adapters import PerformanceDataAdapter diff --git a/treeherder/webapp/api/bug.py b/treeherder/webapp/api/bug.py index 700799b54..0d9c4dc8d 100644 --- a/treeherder/webapp/api/bug.py +++ b/treeherder/webapp/api/bug.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from time import time from treeherder.model.derived.jobs import JobDataIntegrityError from rest_framework import viewsets diff --git a/treeherder/webapp/api/exceptions.py b/treeherder/webapp/api/exceptions.py index 30f37309c..e524ac8a4 100644 --- a/treeherder/webapp/api/exceptions.py +++ b/treeherder/webapp/api/exceptions.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from rest_framework import exceptions from rest_framework.response import Response from rest_framework.views import exception_handler as drf_exc_handler diff --git a/treeherder/webapp/api/job_log_url.py b/treeherder/webapp/api/job_log_url.py index 65e742338..09b7f262f 100644 --- a/treeherder/webapp/api/job_log_url.py +++ b/treeherder/webapp/api/job_log_url.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import logging from rest_framework import viewsets from rest_framework.response import Response diff --git a/treeherder/webapp/api/jobs.py b/treeherder/webapp/api/jobs.py index f25afcf64..52a855656 100644 --- a/treeherder/webapp/api/jobs.py +++ b/treeherder/webapp/api/jobs.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from rest_framework import viewsets from rest_framework.response import Response from rest_framework.decorators import action, link diff --git a/treeherder/webapp/api/logslice.py b/treeherder/webapp/api/logslice.py index 8ea2ee88f..8231f31e8 100644 --- a/treeherder/webapp/api/logslice.py +++ b/treeherder/webapp/api/logslice.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from rest_framework import viewsets from rest_framework.response import Response from django.core import cache diff --git a/treeherder/webapp/api/note.py b/treeherder/webapp/api/note.py index b9ee3217f..761e2ce57 100644 --- a/treeherder/webapp/api/note.py +++ b/treeherder/webapp/api/note.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.conf import settings from rest_framework import viewsets from rest_framework.response import Response diff --git a/treeherder/webapp/api/objectstore.py b/treeherder/webapp/api/objectstore.py index 97b944dfd..dfbab1b0a 100644 --- a/treeherder/webapp/api/objectstore.py +++ b/treeherder/webapp/api/objectstore.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json from rest_framework import viewsets diff --git a/treeherder/webapp/api/performance_artifact.py b/treeherder/webapp/api/performance_artifact.py index 937ee5e95..d2eecf4db 100644 --- a/treeherder/webapp/api/performance_artifact.py +++ b/treeherder/webapp/api/performance_artifact.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from rest_framework import viewsets from rest_framework.response import Response from treeherder.etl.perf_data_adapters import PerformanceDataAdapter diff --git a/treeherder/webapp/api/performance_data.py b/treeherder/webapp/api/performance_data.py index d3674d6c1..f29b4a978 100644 --- a/treeherder/webapp/api/performance_data.py +++ b/treeherder/webapp/api/performance_data.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import json from rest_framework import viewsets diff --git a/treeherder/webapp/api/permissions.py b/treeherder/webapp/api/permissions.py index cf6ff2f5e..b6276fc27 100644 --- a/treeherder/webapp/api/permissions.py +++ b/treeherder/webapp/api/permissions.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from rest_framework import permissions diff --git a/treeherder/webapp/api/projects.py b/treeherder/webapp/api/projects.py index 3cbb05243..00c8986ba 100644 --- a/treeherder/webapp/api/projects.py +++ b/treeherder/webapp/api/projects.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.http import HttpResponse, HttpResponseNotFound from treeherder.model.derived import DatasetNotFoundError import json diff --git a/treeherder/webapp/api/refdata.py b/treeherder/webapp/api/refdata.py index 7492b1794..dfe50d062 100644 --- a/treeherder/webapp/api/refdata.py +++ b/treeherder/webapp/api/refdata.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from rest_framework import viewsets from rest_framework.response import Response from rest_framework.authentication import SessionAuthentication diff --git a/treeherder/webapp/api/resultset.py b/treeherder/webapp/api/resultset.py index 79ab03e1b..ee81d6079 100644 --- a/treeherder/webapp/api/resultset.py +++ b/treeherder/webapp/api/resultset.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + import itertools import re diff --git a/treeherder/webapp/api/revision.py b/treeherder/webapp/api/revision.py index 7142d09aa..403aedc7e 100644 --- a/treeherder/webapp/api/revision.py +++ b/treeherder/webapp/api/revision.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from rest_framework import viewsets from rest_framework.response import Response from rest_framework.exceptions import ParseError diff --git a/treeherder/webapp/api/serializers.py b/treeherder/webapp/api/serializers.py index fe9e7fa85..842b21c1f 100644 --- a/treeherder/webapp/api/serializers.py +++ b/treeherder/webapp/api/serializers.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.contrib.auth.models import User from rest_framework import serializers diff --git a/treeherder/webapp/api/urls.py b/treeherder/webapp/api/urls.py index bacb47608..10f5aecfd 100644 --- a/treeherder/webapp/api/urls.py +++ b/treeherder/webapp/api/urls.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.conf.urls import patterns, include, url from treeherder.webapp.api import (refdata, objectstore, jobs, resultset, artifact, note, revision, bug, logslice, diff --git a/treeherder/webapp/api/utils.py b/treeherder/webapp/api/utils.py index 2cc9ce65d..19490e33c 100644 --- a/treeherder/webapp/api/utils.py +++ b/treeherder/webapp/api/utils.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from collections import defaultdict import time import datetime diff --git a/treeherder/webapp/urls.py b/treeherder/webapp/urls.py index 242415e25..8ba204b97 100644 --- a/treeherder/webapp/urls.py +++ b/treeherder/webapp/urls.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.conf import settings from django.conf.urls import patterns, include, url from django.views.generic import RedirectView diff --git a/treeherder/webapp/wsgi.py b/treeherder/webapp/wsgi.py index 7f9ea3002..8621b5457 100644 --- a/treeherder/webapp/wsgi.py +++ b/treeherder/webapp/wsgi.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + """ WSGI config for webapp project. diff --git a/treeherder/workers/management/commands/shutdown_workers.py b/treeherder/workers/management/commands/shutdown_workers.py index dbe5c9dc3..1948c4a5b 100644 --- a/treeherder/workers/management/commands/shutdown_workers.py +++ b/treeherder/workers/management/commands/shutdown_workers.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.core.management.base import BaseCommand from celery.task.control import broadcast diff --git a/treeherder/workers/models.py b/treeherder/workers/models.py index 71a836239..4fcf9410c 100644 --- a/treeherder/workers/models.py +++ b/treeherder/workers/models.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + from django.db import models # Create your models here. diff --git a/treeherder/workers/tests.py b/treeherder/workers/tests.py index 501deb776..8678445b9 100644 --- a/treeherder/workers/tests.py +++ b/treeherder/workers/tests.py @@ -1,3 +1,7 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + """ This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". diff --git a/treeherder/workers/views.py b/treeherder/workers/views.py index 60f00ef0e..a94090cc5 100644 --- a/treeherder/workers/views.py +++ b/treeherder/workers/views.py @@ -1 +1,5 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at http://mozilla.org/MPL/2.0/. + # Create your views here.