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

8881 Коммитов

Автор SHA1 Сообщение Дата
Simon Sapin dbfc2afcbf Fix import of force-pushes from github (#4284)
When `git push -f` is used, the "base" commit of the github push event
is whatever was previously in that branch.
That commit is likely not part of the history of the new branch,
so using the "List commits" API will not allow to find it
as a starting point.
Instead, if the API did not force pagination, we’d get the entire
repository history!

Using the "Compare two commits" API instead lets GitHub’s server
figure out which commits reachable from the new branch
that were not before, which is exactly the set of commits we need
to be "part of a push".
2018-11-16 12:36:05 -08:00
Ed Morley 3decefed0b
Clean up the location of generated output directories (#4289)
So that their purposes are clearer and it's easier to differentiate
between generated content and files committed to the repository.

* Neutrino build: `build/` -> `.build/`
* Sphinx build: `_build/` -> `.build-docs/`
* Django collectstatic: `treeherder/static/` -> `.django-static/`
2018-11-16 19:18:18 +00:00
Sarah Clements 13159634a5
Fix getData helper (#4283)
Change response header to account for additional info such as
the utf charset (when checking for errors)
2018-11-16 11:04:33 -08:00
Ed Morley 352ed07555
Bug 1495402 - Update the Infra menu links (#4290)
To remove the EOL buildbot entries and add Taskcluster equivalents.
The headings/separator have been removed since there aren't enough
entries of each type to warrant them.
2018-11-16 15:22:41 +00:00
ionutgoldan 6c72fb310d Bug 1505955 - Replace PhFramework and PhIssueTracker with getData() (#4261) 2018-11-16 13:18:45 +00:00
Ed Morley c3567a2a0c
Bug 1507172 - Add additional .prettierignore entries (#4288)
For:
* generated directories such as `build/`
* filetypes that are supported by Prettier, but that we haven't yet
  converted to its style (eg CSS, HTML, JSON, YAML)

These entries are not needed when running Prettier via ESLint, but
help prevent the "format on save" feature of IDE prettier plugins
from auto-formatting files when making unrelated changes to them.

As and when we use Prettier with more filetypes, these can be removed.
2018-11-16 11:31:00 +00:00
Ed Morley 65b7f4ab45
Bug 1507172 - Use Prettier for formatting JS/JSX (#4276)
Since it's more reliable (and strict) at code formatting than ESLint.
We use it via an ESLint plugin, and so disable the style-related AirBnB
preset rules, leaving the AirBnB guide to handle only correctness and
best practices rules.

It's highly encouraged to use an IDE integration or Git commit hook
to run Prettier (or `yarn lint --fix`) automatically. See:
* https://prettier.io/docs/en/editors.html
* https://prettier.io/docs/en/precommit.html

We may consider enabling a git commit hook out of the box (using eg
Husky) in the future, however they have previously been known to
interfere with partial-staging workflows, so would need to test the
fixes they have made for them thoroughly first.

In future PRs we may also want to start formatting JSON/CSS/Markdown
using Prettier too.
2018-11-16 08:28:34 +00:00
Ed Morley 4db0cfa973
Bug 1507406 - ESLint: Enforce more strict import style (#4279)
Imports must now be grouped like so (with newlines between each):

```
// "external" modules
import _ from 'lodash';
import chalk from 'chalk';

// modules from a "parent" directory
import foo from '../foo';
import qux from '../../foo/qux';

// "sibling" modules from the same or a sibling's directory
import bar from './bar';
import baz from './bar/baz';
```

The `import/order` rule has auto-fix support, so any errors can be
resolved using `yarn lint --fix`.

See:
https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
2018-11-16 08:07:49 +00:00
Renovate Bot 4e3bcfa1a8 Update Node.js to v11.2.0 2018-11-16 07:09:20 +00:00
Renovate Bot 4252d7eb8a Update dependency karma-jasmine to v2 2018-11-16 06:57:18 +00:00
Ed Morley 701e6b0e76
Bug 1472542 - Use native setTimeout rather than via a polyfill (#4281)
The `timers` module is a Node.js built-in, which webpack will polyfill
during the build. Using it adds `timers-browserify` to the bundle
unnecessarily, given that browsers natively support `setTimeout`:
https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout

(This import was presumably copied from a react-native code example.)
2018-11-15 18:17:17 +00:00
Ed Morley 84072ff42c
Bug 1507449 - Remove link to WPT viewer since it doesn't work (#4282)
The WPT viewer no longer seems to load correctly, so the link has
been removed to prevent end-user confusion.
2018-11-15 12:59:39 +00:00
pyup.io bot cb8eb20b7b Update pytest from 3.10.1 to 4.0.0 (#4277) 2018-11-15 08:03:51 +00:00
pyup.io bot 2f5cbc8b65 Update responses from 0.10.3 to 0.10.4 (#4278) 2018-11-15 06:28:38 +00:00
Cameron Dawson 0ec2c6cc41 Bump asset threshold to 1.3MiB 2018-11-14 12:21:05 -08:00
Renovate Bot 0a9993f798 Update dependency auth0-js to v9.8.2 2018-11-14 17:21:07 +00:00
Cameron Dawson fdb48d0aa2
Bug 1505336 - Make notifications clear-able (#4254) 2018-11-14 08:36:18 -08:00
Cameron Dawson a9c2dedf0a
Bug 1506424 - Fix logic to unselect job by clicking open areas (#4269) 2018-11-14 08:27:46 -08:00
Cameron Dawson 7f3db4090f
Bug 1506633 - Fix Logviewer links to original job in Treeherder (#4270) 2018-11-14 08:26:57 -08:00
Ed Morley 96f7ade06d
Bug 1505417 - Remove viewport meta tag for Perfherder too (#4275)
The Perfherder equivalent of #4262 since the changes there only
affected auto-generated HTML, but Perfherder still uses its own
custom HTML template (until the React conversion is finished).
2018-11-14 16:26:24 +00:00
Simon Sapin dd46b181e4 Add another (try-taskcluster) branch for the Servo repository (#4274) 2018-11-14 14:25:35 +00:00
ionutgoldan 9168eba8e8 Bug 1431085 - Increase max length of PerformanceSignature.extra_options (#4238) 2018-11-14 09:22:11 +00:00
renovate[bot] 2005e74f68 Update react monorepo to v16.6.3 (#4271) 2018-11-14 08:31:36 +00:00
William Lachance b7d5b0f499 Make "waiting for push" message a little nicer (#4255)
* Better spacing and padding
* Reduce verbage a bit
2018-11-14 07:56:58 +00:00
Ed Morley 8010cd4435
Bug 1505417 - Stop setting a viewport meta tag (#4262)
Previously all pages were using the following meta tag:

```
<meta name="viewport" content="width=device-width,initial-scale=1">
```

On mobile devices this causes the viewport to be set at the device
screen width, which is likely to be very small. Most of Treeherder's
pages do not function well under 800-900 pixels, so this meant mobile
users had to enable the "Request desktop site" feature for them to
be usable.

With this change we now don't set a viewport meta tag at all, which
causes Firefox for Android to use a default viewport of 980 pixels
(and similar other mobile browsers). This will mean they see scroll
bars, however the UI will at least be usable.

See:
https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag
2018-11-14 07:36:04 +00:00
Sarah Clements 4e1effdddf
Bug 1506856 - fix IFV bug details count (#4268)
Since the failuresbybug API changed to deliver all results with no pagination (and its
associated meta), the bug count needed to be changed to tableData.length from tableData.count
2018-11-13 12:56:19 -08:00
Cameron Dawson 40273405c7
Bug 1506630 - Fix revision link in Logviewer (#4267) 2018-11-13 12:40:44 -08:00
Simon Sapin e9111b0629 Add more branches for the Servo repository (#4249) 2018-11-13 12:29:24 -08:00
pyup.io bot 181bb1a703 Update pytest-django from 3.4.3 to 3.4.4 (#4266) 2018-11-13 12:26:54 +00:00
pyup.io bot fb60aa28eb Update newrelic from 4.4.1.104 to 4.6.0.106 (#4265) 2018-11-13 08:00:56 +00:00
pyup.io bot a3ab724b0c Update whitenoise from 4.1 to 4.1.1 (#4264) 2018-11-13 07:50:07 +00:00
Renovate Bot 632a21c716 Lock file maintenance 2018-11-12 14:46:17 +00:00
Renovate Bot 378b8aa5d1 Update dependency react-redux to v5.1.1 2018-11-12 08:44:45 +00:00
Renovate Bot 4c12ccc483 Update dependency eslint to v5.9.0 2018-11-12 08:22:07 +00:00
pyup.io bot da81886277 Update sphinx from 1.8.1 to 1.8.2 (#4257) 2018-11-12 08:20:16 +00:00
pyup.io bot ef2b3bf07b Update pytest from 3.10.0 to 3.10.1 (#4259) 2018-11-12 08:16:22 +00:00
Sarah Clements c6502e5bff Bug 1465589 - Convert Perfherder services to functions (#4243) 2018-11-09 16:02:07 +00:00
Ed Morley 4a6095784c
Travis: Remove deprecated `sudo` option (#4253)
Since all jobs are now being run on the GCE infra now, regardless of
what the option is set to:
https://blog.travis-ci.com/2018-10-04-combining-linux-infrastructures
2018-11-09 14:53:38 +00:00
renovate[bot] 4ab1d82697 Update dependency popper.js to v1.14.5 (#4252) 2018-11-09 14:37:00 +00:00
Cameron Dawson 3ad320d958 Bug 1450045 - Convert Logviewer to ReactJS (#4223)
And switch to using react-lazylog instead of unified-logviewer.
2018-11-09 09:15:00 +00:00
Renovate Bot e33a1dbb8c Update dependency enzyme-adapter-react-16 to v1.7.0 2018-11-09 08:39:24 +00:00
pyup.io bot b88f8463e3 Update requests from 2.20.0 to 2.20.1 (#4248) 2018-11-09 07:44:51 +00:00
Renovate Bot 43bd04f138 Update Yarn to v1.12.3 2018-11-09 07:40:13 +00:00
Renovate Bot 2d999cf67b Update dependency taskcluster-client-web to v8.1.0 2018-11-09 07:38:12 +00:00
pyup.io bot fbb6d61a2d Update responses from 0.10.2 to 0.10.3 (#4246) 2018-11-08 17:08:59 +00:00
Ed Morley 69501e0de8 Bug 1505758 - Enable ESLint 'react/no-multi-comp'
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-multi-comp.md
2018-11-08 16:27:37 +00:00
Ed Morley 362cbde850 Bug 1505758 - Fix/enable ESLint 'func-names'
https://eslint.org/docs/rules/func-names
2018-11-08 16:27:37 +00:00
Ed Morley 70e15b8334 Bug 1505758 - Fix/enable ESLint 'prefer-arrow-callback'
https://eslint.org/docs/rules/prefer-arrow-callback
2018-11-08 16:27:37 +00:00
Ed Morley ec87836e3b Bug 1505758 - Fix/enable ESLint 'prefer-destructuring'
https://eslint.org/docs/rules/prefer-destructuring
2018-11-08 16:27:37 +00:00
Ed Morley 107b67bd69 Bug 1505758 - Fix/enable ESLint 'object-shorthand'
https://eslint.org/docs/rules/object-shorthand
2018-11-08 16:27:37 +00:00