Граф коммитов

6010 Коммитов

Автор SHA1 Сообщение Дата
Cameron Dawson a236e69474 Bug 1264074 - Add execute permission to run_read_pulse_resultsets 2016-08-30 08:34:27 -07:00
William Lachance 191bc53f63 Bug 1297696 - Remove broken and unused job/pinboard (#1805)
* a viewLog() method in the result set controller that was *supposed* to be called
  from the pinboard controller (when the user right clicks on a job), but isn't
  anymore. The fact that no one's complained or bothered to fix it since it was
  broken (this code is pretty old) is an indication to me that we don't care about
  it that much. Let's just leave it out.
* An event handler for a "job context menu" that doesn't do anything (anymore)
2016-08-29 09:35:01 -04:00
William Lachance 277b3c3b7a Bug 1178395 - Remove active status from most reference data tables (#1809)
The field is never updated or used in anything but repository, so let's just
take them out for now.
2016-08-26 13:45:55 -04:00
Ed Morley 1b4010f728 Bug 1297666 - Remove supervisord configs/documentation
Since it's a non-default workflow that isn't kept up to date, and is
going to be even less relevant once we switch to tooling that uses the
Procfile.
2016-08-26 15:56:53 +01:00
KWierso 64186fbdb6 Bug 1294746 - Disable more autoclassify buttons when not logged in (#1784) r=wlach
Bug 1294746 - Disable more autoclassify buttons when not logged in
2016-08-26 09:18:48 +01:00
KWierso 27cf342782 Bug 1297775 - Combine thPlatformNameMap and thPlatformOrder (#1808) r=emorley 2016-08-26 03:35:04 +01:00
William Lachance 75a9b74ac9 Bug 1298086 - Properly document workaround 2016-08-25 14:31:31 -04:00
William Lachance eda01aea8b Bug 1298086 - Work around incompatibilty between angular-clipboard and babel 2016-08-25 13:00:20 -04:00
William Lachance 24d6afce59 Bug 1297722 - Update npm shrinkwrap to include babel 2016-08-25 11:46:19 -04:00
William Lachance ea3c7efbb1 Merge pull request #1800 from wlach/1296692
Bug 1296692 - Transition compare perf controller to use angular components
2016-08-25 11:32:42 -04:00
William Lachance 98952774b9 Bug 1296692 - Move series/compare/math models/factories to their own files
These are big enough that they deserve their own files, especially
the compare service.
2016-08-25 11:20:08 -04:00
William Lachance 86bc65d8f3 Bug 1296692 - Move displayPrecision filter to ui/js/filters.js
There's nothing really perfherder specific about this filter (I'm planning
to use it for Infraherder) and filters.js is a more natural place for it.
2016-08-25 11:03:16 -04:00
William Lachance 9cd7df200e Bug 1296692 - Transition compare perf controller to use angular components 2016-08-25 11:03:12 -04:00
William Lachance 95c1c06c70 Bug 1297722 - Use the ES6 '=>' operator to make sure transpiling works 2016-08-25 11:02:58 -04:00
William Lachance b35fb496a9 Bug 1297722 - Use babel to transpile es6 code to es5
The uglify step of the grunt build won't work otherwise. Not crazy about the
way I did this, but I couldn't find any better way offhand.
2016-08-25 11:02:57 -04:00
William Lachance 0f936eb7e1 Merge pull request #1807 from wlach/1297722-2
Bug 1297722 - Fix ES6 use in production
2016-08-24 16:07:06 -04:00
William Lachance 9d170609de Bug 1297722 - Use the ES6 '=>' operator to make sure transpiling works 2016-08-24 14:42:19 -04:00
William Lachance 83b079c682 Bug 1297722 - Use babel to transpile es6 code to es5
The uglify step of the grunt build won't work otherwise. Not crazy about the
way I did this, but I couldn't find any better way offhand.
2016-08-24 14:42:15 -04:00
KWierso bb8e6fc15e Bug 1297589 - Add Windows 7 VM to thPlatformOrder so it can be grouped (#1802) r=camd 2016-08-24 19:10:48 +01:00
William Lachance 8150896242 Bug 1297722 - Allow ES6 features to pass eslint (#1806) 2016-08-24 12:33:05 -04:00
Mark Banner bca42942bd Bug 1297671 - Add the example-addon-repo repository (#1804) 2016-08-24 12:24:17 +01:00
Shruti Jasoria 1598665469 Order of alerts in textual summary in order of severity (#1801) 2016-08-23 15:59:29 -04:00
Ed Morley 863925c59d Bug 1296047 - Travis: Use the same MySQL config file as Vagrant
To reduce duplication and ensure the configurations remain in sync.

Note: The Vagrant config does set `bind-address` to allow non-localhost
connections, which isn't necessary on Travis, however this is fine since
(a) it's only Travis, (b) the user grants on Travis won't actually allow
non-localhost connections anyway, even if Travis' network settings
allowed connections between test nodes.
2016-08-23 00:31:48 +01:00
Ed Morley cc5b855864 Bug 1296047 - Vagrant: Only override specific MySQL server preferences
Rather than overwriting the default MySQL 5.6 config file, the specific
changes we wish to make are now made via a file in the `mysql/conf.d/`
include directory. This makes it easier to see where we differ from the
defaults, as well as preventing us from inadvertently overriding any
new defaults in `/etc/mysql/my.cnf` when we update to new MySQL major
versions in the future.

The contents of this new file were determined by diffing against the
untouched `/etc/mysql/my.cnf` file, and removing anything that was still
set to defaults.
2016-08-23 00:31:48 +01:00
Ed Morley 4504ccb5f7 Bug 1296047 - Vagrant: Remove redundant fully qualified paths
The path used for `exec{}` commands (defined in `vagrant.pp`) includes
`${VENV_DIR}/bin` so we don't need to specify the full path for pip
and python invocations that are meant to use the virtualenv binaries.
2016-08-23 00:31:48 +01:00
Ed Morley 19dbfe4c7d Bug 1296047 - Vagrant: Combine the two pip install steps
Since the dev.txt packages no longer depend on system packages installed
in mysql.pp, so don't need to be installed separately. The working
directory has also been adjusted to avoid the need to specify the full
path to the requirements files.
2016-08-23 00:31:48 +01:00
Ed Morley 033af82d77 Bug 1296047 - Vagrant: Combine the directory creation steps 2016-08-23 00:31:48 +01:00
Ed Morley 1ef96e8366 Bug 1296047 - Vagrant: Merge the two sample django settings files
Previously there were two sample Django config files, and confusingly
the one that would be used in the Vagrant environment wasn't the one
that was the most visible.

In addition, we're not performing any kind of variable substitution, so
don't need to use `content => template()`.
2016-08-23 00:31:48 +01:00
Ed Morley 7ce025af86 Bug 1296047 - Vagrant: Move .bashrc additions to .profile
Previously provision would append entries to .bashrc in multiple steps,
whereas now these are just included in the `.profile` that is symlinked
from the environment. As such, future changes will no longer need a
re-provision after pulling latest master, to take effect.
2016-08-23 00:31:48 +01:00
Ed Morley 3bb0ee5d30 Bug 1296047 - Vagrant: Move helper functions to a symlinked .profile
This renames the existing `.bash_aliases` file to `.profile`, since
we're soon going to use it for more than just aliases. It overwrites the
default `.profile` file in the VM, so we need to source `.bashrc` as the
original did.

In addition, rather than copying the file we now symlink it, so that
future changes don't require a re-provision after pulling latest master
to take effect.
2016-08-23 00:31:48 +01:00
Ed Morley ec7845ff5d Bug 1296047 - Vagrant: Move environment variables to their own file
Having them in a separate file is cleaner, makes the discovering where
the environment variables are set easier, plus means we can symlink the
file, so future variable changes will take effect immediately, rather
than needing a re-provision after pulling latest master.
2016-08-23 00:31:48 +01:00
Ed Morley 55b29baf5d Bug 1296047 - Vagrant: Use the default root mysql user
A default user exists with username 'root' and blank password, which we
might as well use to save having to create another. We still have to add
a grant to allow root to connect from outside the VM, since the default
grant of `root@localhost` only allows connections via the loopback
interface.

The dependency on the `create-db` task has also been removed, since the
grant uses a wildcard, so doesn't refer to the `treeherder` DB directly.
2016-08-23 00:31:48 +01:00
Ed Morley fd554ba8c2 Bug 1296047 - Vagrant: Avoid repetition in DATABASE_URL_RO
By using django-environ's proxied environment variable feature, like is
already being used in Heroku's value for `DATABASE_URL_RO`. See:
https://github.com/joke2k/django-environ/blob/v0.4/environ/environ.py#L257-L260
2016-08-23 00:31:48 +01:00
Ed Morley 1fc05da62c Bug 1296047 - Vagrant: Use the default rabbitmq guest user
A default user exists with username 'guest' and password 'guest', which
we might as well use to save having to create another and set up grants.

See:
https://www.rabbitmq.com/access-control.html
2016-08-23 00:31:48 +01:00
Ed Morley a5a6d5bb3c Bug 1296047 - Vagrant: Stop creating a 'puppet' group during provision
Since it's unused.
2016-08-23 00:31:48 +01:00
camd b2e5e714aa Bug 1264074 - Use Pulse for creation of Github resultsets (#1692)
* Bug 1264074 - Move to_timestamp function to a reusable location

* Bug 1264074 - Refactor JobConsumer to have a PulseConsumer super class

Much of what was in the JobConsumer is reusable by the upcoming
ResultsetConsumer.  So refactor those parts out so that each specific
consumer can reuse code as much as possible.

* Bug 1264074 - Add ability to ingest Github Resultsets via Pulse

This introduces a ResultsetConsumer and a read_pulse_resultsets
management command to ingest resultsets from the TaskCluster
github exchanges.

When a supported Github repo has a Pull Request created or
updated, or a push is made to master, then it will kick off a
Pulse message.  We will receive it and then fetch any additional
information we need from github's API and store the Resultset.

This follows a very similar pattern to the Job Pulse ingestion.

* Bug 1264074 - Old code/comments cleanup

* Bug 1264074 - Tests for the Github resultset pulse loader
2016-08-22 16:29:55 -07:00
KWierso ef7dd20173 Skip over versions that are is_active: false (#1771) r=emorley 2016-08-22 22:28:19 +01:00
William Lachance 259c6755a1 Bug 1296383 - Upgrade Angular to version 1.5.8 (#1796) 2016-08-22 10:31:33 -04:00
KWierso f5c0e7de16 Bug 1296071 - Prevent main UI keyboard shortcuts while the bugfiler is open (#1792) r=camd 2016-08-20 00:04:04 +01:00
KWierso 08d452ce52 Bug 1296553 - Make the revision link point directly to the log's job (#1797) r=emorley 2016-08-19 21:30:34 +01:00
Ed Morley 3129b6249d Docs: Update Vagrant command examples to use current shell prompt 2016-08-19 16:06:41 +01:00
Ed Morley ccaebfa04b Bug 1296267 - Vagrant: Install Elasticsearch using dpkg
Using apt-get isn't worth it since:
* we have to manually add their repository due to it being incompatible
with add-apt-repository, resulting in a lot of boilerplate
* we want to pin to a specific version, so don't need apt-get to pull
new versions from the repository for us
* the elasticsearch package doesn't declare any dependencies, so don't
need apt-get for managing them either
* it's only a development environment, so TLS is fine for security

In addition, the installation process now matches that used in Travis,
which improves consistency between environments and means in the future
we could always factor out Elasticsearch install to a shared script
to avoid duplication.
2016-08-19 13:11:05 +01:00
Ed Morley 4bbc4b359b Bug 1296267 - Vagrant: Switch to openjdk-7-jre-headless
Since Elasticsearch doesn't need the additional 144 dependencies (!!)
that come with the openjdk-7-jre package.
http://packages.ubuntu.com/trusty/openjdk-7-jre
http://packages.ubuntu.com/trusty/openjdk-7-jre-headless
2016-08-19 13:11:05 +01:00
Ed Morley 8e6ef210f1 Bug 1296267 - Travis: Update Elasticsearch to 2.3.5
In addition:
* Quietens curl's output to avoid progress bar logspam.
* Removes the unnecessary dpkg option `--force-confnew` (since it's only
needed if overwriting an existing Elasticsearch installation).
* Reduces the number of places where we duplicate the version number.
2016-08-19 13:11:05 +01:00
Ed Morley a5a899ccd4 Bug 1296267 - Travis: Start rather than restart elasticsearch
Since the service isn't running already, so doesn't need to be stopped
before starting.
2016-08-19 13:11:05 +01:00
Ed Morley 7c61fb11d6 Bug 1289830 - Block ActiveData's user agent due to excessive requests
ActiveData's scraping of Treeherder's API has caused responsiveness and
performance issues for other users of Treeherder on several occasions,
so is being blocked until we can decide upon a less detrimental way for
ActiveData to obtain this data.
2016-08-19 12:36:33 +01:00
KWierso e0789f2478 Bug 1295382 - Switch a bunch of URLs to https (#1794) r=emorley 2016-08-19 01:28:05 +01:00
KWierso 2cb332fa97 Bug 1296057 - Pin the selected job upon opening bugfiler (#1793) r=emorley 2016-08-19 00:57:53 +01:00
William Lachance 183effad0b Bug 1296044 - Enable no-lonely-if eslint rule (#1790) 2016-08-17 14:27:52 -04:00
William Lachance 0f980d1808 Merge pull request #1789 from wlach/1295536
Bug 1295536 - Validate that perfherder values are within acceptable ranges - take 2
2016-08-17 14:15:12 -04:00