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

6618 Коммитов

Автор SHA1 Сообщение Дата
Ed Morley c1dfddc5f6 Bug 1348375 - Re-enable flake8 rule F401
Since it's actually needed to catch unused imports, albeit it's a bit
more strict than it used to be, so required some fix-ups before it could
be re-enabled.
2017-03-20 13:18:21 +00:00
Ed Morley 395df0a5e9 Bug 1348375 - Mark treeherder.client.thclient wildcard imports as `noqa`
These are used by consumers of the package on PyPI, so whilst there are
probably better ways to structure the modules (including more contained
exports by using `__all__`), this is safer/less effort for now.

Fixes:

treeherder/client/thclient/__init__.py:1:1: F401 '.client.*' imported but unused
treeherder/client/thclient/__init__.py:2:1: F401 '.perfherder.*' imported but unused
2017-03-20 13:18:21 +00:00
Ed Morley 7ea160559e Bug 1348375 - Stop using a wildcard import in treeherder.perfalert
At some point we should probably just merge perfalert into Perfherder,
but for now let's avoid unnecessary wildcard imports to save a few
characters.

Fixes:

treeherder/perfalert/__init__.py:1:1: F401 '.perfalert.*' imported but unused
2017-03-20 13:18:21 +00:00
Ed Morley f4b37c026b Bug 1348375 - Stop using a wildcard import in treeherder.client
This import only affects internal treeherder usage, people using the
PyPI package import from the `thclient` subdirectory instead.

Fixes:

treeherder/client/__init__.py:1:1: F401 '.thclient.*' imported but unused
2017-03-20 13:18:20 +00:00
Ed Morley 6337223216 Bug 1348375 - Stop using wildcard imports in treeherder.etl.tasks
They only save a few characters and make the location of imported
functions less clear.

Fixes:

treeherder/etl/tasks/__init__.py:1:1: F401 '.buildapi_tasks.*' imported but unused
treeherder/etl/tasks/__init__.py:2:1: F401 '.pulse_tasks.*' imported but unused
treeherder/etl/tasks/__init__.py:3:1: F401 '.classification_mirroring_tasks.*' imported but unused
treeherder/etl/tasks/__init__.py:4:1: F401 '.tasks.*' imported but unused
2017-03-20 13:18:20 +00:00
Ed Morley 4c66f383ef Bug 1348375 - Remove unused imports
Fixes:

tests/autoclassify/test_classify_failures.py:7:1: F401 'treeherder.model.models.TextLogErrorMetadata' imported but unused
tests/etl/test_job_loader.py:7:1: F401 'treeherder.model.models.Repository' imported but unused
tests/model/test_classified_failure.py:6:1: F401 'treeherder.model.models.FailureLine' imported but unused
tests/seta/conftest.py:2:1: F401 'django.utils.timezone' imported but unused
tests/seta/test_job_priorities.py:8:1: F401 'treeherder.seta.settings.SETA_LOW_VALUE_PRIORITY' imported but unused
tests/webapp/api/test_text_log_summary_lines.py:4:1: F401 'treeherder.model.models.TextLogError' imported but unused
treeherder/auth/backends.py:13:5: F401 'django.utils.encoding.smart_str as smart_bytes' imported but unused
treeherder/autoclassify/tasks.py:4:1: F401 'django.conf.settings' imported but unused
treeherder/autoclassify/tasks.py:6:1: F401 'treeherder.celery_app' imported but unused
treeherder/perfalert/__init__.py:1:1: F401 '.perfalert.*' imported but unused
treeherder/seta/analyze_failures.py:7:1: F401 'treeherder.etl.seta.valid_platform' imported but unused
treeherder/seta/job_priorities.py:10:1: F401 'treeherder.model.models.Repository' imported but unused
treeherder/seta/models.py:7:1: F401 'treeherder.model.models.Repository' imported but unused

The seta migrations file change is due to the seta models no longer
depending on `model` (since the unnecessary `Repository` import has
been removed).
2017-03-20 13:18:14 +00:00
KWierso 2ad2731221 Bug 1347764 - followup to strip more useless paths (#2267) r=me 2017-03-17 12:14:23 -07:00
Ed Morley cfc8870e98 Bug 1348360 - Remove 'flake8: noqa' from update_job_priority.py
Since it isn't required on this line as line length checks are disabled,
and in fact disables flake8 for the entire file rather than just the
one line.
2017-03-17 18:04:19 +00:00
Ed Morley 8ff5ee631e Bug 1348360 - Fix flake8 linter errors in update_job_priority.py
These were hidden by the use of `# flake8: noqa`.

treeherder/seta/update_job_priority.py:12:1: F401 'copy' imported but unused
treeherder/seta/update_job_priority.py:14:1: F401 'json' imported but unused
treeherder/seta/update_job_priority.py:16:1: F401 'os' imported but unused
treeherder/seta/update_job_priority.py:17:1: F401 'time' imported but unused
treeherder/seta/update_job_priority.py:54:1: E302 expected 2 blank lines, found 1
treeherder/seta/update_job_priority.py:104:1: E302 expected 2 blank lines, found 1
treeherder/seta/update_job_priority.py:126:1: E302 expected 2 blank lines, found 1
treeherder/seta/update_job_priority.py:129:1: E302 expected 2 blank lines, found 1
treeherder/seta/update_job_priority.py:144:1: E302 expected 2 blank lines, found 1
treeherder/seta/update_job_priority.py:192:23: E127 continuation line over-indented for visual indent
2017-03-17 18:04:19 +00:00
KWierso e328bff65d Bug 1347764 - Do a better job of selecting product/component in the bug filer (#2260) rs=emorley 2017-03-17 10:48:41 -07:00
Jonathan French 10430f39d7 Bug 1347278 - Disable Successful Step checkbox for TaskCluster jobs (#2253) 2017-03-17 10:43:28 -04:00
William Lachance e702a309d9 Bug 1342495 - Allow perfherder to alert on abs change instead of percentage (#2242) 2017-03-17 10:37:41 -04:00
KWierso 296ecb19c3 Bug 1305507 - Make sure canSaveClassifications works while entering bug number (#1883) r=camd 2017-03-16 09:43:23 -10:00
Ed Morley dfb82632f9 Bug 1336276 - Update newrelic from 2.78.0.57 to 2.82.0.62
Notably this fixes the reporting of exceptions that occur outside of a
view handler (which previously did not show up in APM at all).

https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-282062
https://github.com/edmorley/newrelic-python-agent/compare/v2.78.0.57...v2.82.0.62
2017-03-16 17:29:13 +00:00
William Lachance 584bc84b0c Bug 1347732 - Fix interpretation of "context" for taskcluster actions (#2259) 2017-03-16 11:45:50 -04:00
William Lachance 9ff7e98c78 Bug 1347655 - Don't use "inspect task" link to get tc id of decision task (#2257) 2017-03-16 11:43:05 -04:00
camd 2b0ef8a6dd Bug 1306588 - Log unsupported repos for pulse jobs (#1895) 2017-03-15 13:37:07 -07:00
Jonathan French 4155feb325 Bug 1345512 - Remove unused css from Logviewer (#2247) 2017-03-15 14:45:16 -04:00
William Lachance fd4c5b5c07 Bug 1330762 - Create taskcluster links from metadata, not job details
This will allow us to link to the task inspector for pending jobs, amongst
other things.
2017-03-15 13:20:43 -04:00
William Lachance a4abc791e5 Bug 1330762 - Make sure even pending jobs have taskcluster metadata 2017-03-15 13:20:43 -04:00
William Lachance fbe0b9432f Revert "Bug 1333604 - Allow specific treeherder instance to be used in backfill (#2108) r=camd"
This reverts commit e280bcd618.
2017-03-15 16:18:44 +00:00
James Graham 23ed987124 Bug 1344546 - Enable failure classification UI by default. 2017-03-15 15:08:56 +00:00
James Graham 56ef7ed62b Update the intermittent classification panel description 2017-03-15 15:08:56 +00:00
William Lachance 170b3630d6 Bug 1347366 - Fix file bug feature for perfherder (#2254) 2017-03-15 09:38:58 -04:00
jgraham 9a4d2dea63 Bug 1347454 - Make prev/next keybindings match vi again. (#2255)
The autoclassify UI rewrite accidentially swapped the meaning of the
j and k keys.
2017-03-15 10:21:43 +00:00
William Lachance 86d002918d Bug 1347275 - Another lodash fix for performance alerts (#2251) 2017-03-14 17:11:12 -04:00
William Lachance 6116f1218b Bug 1347275 - Fix acknowledging performance alerts (#2250) 2017-03-14 16:16:53 -04:00
William Lachance 9f1cb4a7a1 Bug 1347232 - Simplify getNewFilterParams function 2017-03-14 14:56:05 -04:00
William Lachance a60ea36cf6 Bug 1347232 - Replace homegrown startsWith with native javascript equivalent 2017-03-14 14:56:05 -04:00
William Lachance ddfe69ce6d Bug 1347209 - Fix "pin all" function (#2249) 2017-03-14 14:21:16 -04:00
William Lachance de18f1ffc9 Bug 1347189 - Remove or replace uses of deprecated _.where function (#2246) 2017-03-14 13:01:09 -04:00
Ed Morley c77f8ff85c Bug 1343624 - Vagrant: Run yarn install during provision
This will give a working environment out of the box, which will be
necessary once the Neutrino work lands in bug 1336556.
2017-03-13 15:27:46 +00:00
Ed Morley 51c386ee21 Bug 1343928 - Switch from npm to yarn
Since it's faster, deterministic and doesn't given obscure errors when
using `--no-bin-links` (which is required for both npm and yarn on
Windows hosts), and as such unblocks the work in bug 1343624.

Many of the commands are the same as with npm. See:
https://yarnpkg.com/en/docs/usage
2017-03-13 15:27:46 +00:00
Ed Morley a1bf9e19e2 Bug 1343624 - Make package.json scripts work with --no-bin-symlinks
Node packages that are intended to be called from the command line can
request that symlinks be added to `node_modules/.bin/` as part of their
installation. When `npm/yarn run` is used, it automatically adds that
directory to the PATH, so commands listed in `scripts` in `package.json`
can normally be specified without the full filepath.

However when npm/yarn is used inside a Linux Vagrant instance running on
a Windows host, even though the guest OS supports symlinks, errors will
occur if symlinks are created in a directory that is shared with the
host using Virtualbox shared folders.

In this case, the workaround is to prevent the creation of symlinks
using `--no-bin-links`. However unfortunately instead of having a
sensible fallback (eg a shell script that acts like a symlink) instead
no files are created in `node_modules/.bin/` at all.

As such, we have to use full paths in `package.json` after all.
2017-03-13 15:27:46 +00:00
Ed Morley 7b533c6b68 Bug 1343624 - Use `npm test` alias instead of old Karma wrapper scripts
The `test` script entry in `package.json` (used by `npm test`) already
calls karma with the appropriate parameters, so the helper scripts are
unnecessary.
2017-03-13 15:27:46 +00:00
Ed Morley 245696ef53 Bug 1343624 - Add `npm run lint` as an alias of `grunt checkjs`
For the same reason as the previous commit.

Ideally we'd remove the grunt abstraction entirely and call eslint from
the `lint` command, but we might as well save that to the Neutrino PR.
2017-03-13 15:27:46 +00:00
Ed Morley 21abe6ed75 Bug 1343624 - Add `npm run build` as an alias of `grunt build`
Routing commands via npm/yarn is preferred, since it avoids
having to do global installs of grunt-cli, which simplifies contributor
setup, and means less effort when we switch to Yarn (since it requires
manual PATH setup for globally installed packages).
2017-03-13 15:27:46 +00:00
Ed Morley b12defb0cb Bug 1346567 - Rewrite inefficient queries in cycle_non_job_data()
Since previously the select was evaluated independently of the delete,
causing timeouts when attempting to returning 2.6 million machine ids
from the jobs table.

Now the select queryset isn't evaluated on it's own, and instead is only
used to generate the subquery in eg:
  SELECT `machine`.`id`, `machine`.`name` FROM `machine` WHERE NOT
        (`machine`.`id` IN (SELECT U0.`machine_id` FROM `job` U0));
2017-03-12 22:21:36 +00:00
William Lachance 73670ac626 Bug 1329742 - Expire performance data (with option to override) (#2084)
In most cases, but not all, we want to expire performance datum on the
same cadence as job data. Add some code to do this, with an optional
override to keep it around indefinitely for some cases.
2017-03-10 15:35:25 -05:00
Aki Sasaki 2e1d1539a4 Bug 1344321 - Support Linux Nightlies on Beta (#2240) 2017-03-10 11:17:47 +00:00
Ed Morley e1d9a10e71 Bug 1343932 - Update nodejs used on Heroku/Travis from 7.7.1 to 7.7.2
Vagrant uses the latest 7.x.x release, which is now 7.7.2. To reduce
differences between environments whilst the Neutrino/webpack work is
stabilised, it makes sense to update Heroku/Travis again too.
2017-03-10 11:04:38 +00:00
Brian Stack e280bcd618 Bug 1333604 - Allow specific treeherder instance to be used in backfill (#2108) r=camd 2017-03-09 12:19:16 -10:00
William Lachance a45f2d3c48 Bug 1344018 - Add ability to execute custom taskcluster actions per job (#2220) 2017-03-09 15:07:29 -05:00
William Lachance 69ea1f63bf Bug 1345565 - Upgrade lodash.js to 4.17.4 (#2238) 2017-03-09 14:11:08 -05:00
William Lachance 12885ae1ae Bug 1343586 - Increase # of available colors for perf graphs (#2214)
It's not recommended, but also not unusual for people to have graphs with 6+ series in them. Let's try to handle this case a little better.
2017-03-09 13:15:30 -05:00
Ed Morley a066f335b5 Bug 1343624 - Vagrant: Install nodejs and yarn during provision
Since once we switch to Neutrino/webpack all UI and full-stack
development will require building the UI using nodejs.

Uses the steps here:
https://github.com/nodesource/distributions#manual-installation
https://yarnpkg.com/en/docs/install#linux-tab
2017-03-09 17:24:03 +00:00
William Lachance 840fcf7d9c Bug 1345149 - Update default perfherder controller window titles (#2231) 2017-03-09 10:39:38 -05:00
KWierso 805f9f6016 Bug 1345309 - Add Android 7.1 to thPlatformMap (#2236) r=camd 2017-03-08 13:26:09 -10:00
KWierso f22e2bc508 Bug 1344958 - Add revision comments to the fixed-by-commit suggestions (#2229) r=camd 2017-03-08 13:25:57 -10:00
Jonathan French bb5d4e5540 Bug 1340232 - Remove unused -webkit css from perf (#2235) 2017-03-08 10:54:19 -05:00