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

8881 Коммитов

Автор SHA1 Сообщение Дата
Ed Morley dd0165c0e0 Bug 1505758 - Fix/enable ESLint 'no-restricted-globals'
https://eslint.org/docs/rules/no-restricted-globals
2018-11-08 16:27:37 +00:00
Ed Morley 714e8260c5 Bug 1505758 - Fix/enable ESLint 'no-nested-ternary'
https://eslint.org/docs/rules/no-nested-ternary
2018-11-08 16:27:37 +00:00
Ed Morley 6b664dc144 Bug 1505758 - Fix/enable ESLint 'no-mixed-operators'
https://eslint.org/docs/rules/no-mixed-operators
2018-11-08 16:27:37 +00:00
Ed Morley b9d70dfffd Bug 1505758 - Fix/enable ESLint 'no-else-return'
https://eslint.org/docs/rules/no-else-return
2018-11-08 16:27:37 +00:00
Ed Morley 6d18047fd6 Bug 1505758 - Fix/enable ESLint 'no-prototype-builtins'
https://eslint.org/docs/rules/no-prototype-builtins
2018-11-08 16:27:37 +00:00
Ed Morley 0e8406a4aa Bug 1505758 - Fix/enable ESLint 'no-useless-escape'
https://eslint.org/docs/rules/no-useless-escape
2018-11-08 16:27:37 +00:00
Ed Morley 4ea8abe421 Bug 1505758 - Fix/enable ESLint 'radix'
https://eslint.org/docs/rules/radix
2018-11-08 16:27:37 +00:00
Ed Morley 7af125f626 Bug 1505758 - Fix/enable ESLint 'prefer-template'
https://eslint.org/docs/rules/prefer-template
2018-11-08 16:27:37 +00:00
Renovate Bot 160a4d8007 Update dependency webpack to v4.25.1 2018-11-08 07:26:00 +00:00
Renovate Bot c849cdcf56 Update react monorepo to v16.6.1 2018-11-08 07:20:12 +00:00
Cameron Dawson 07aeb95ff9
Bug 1502350 - Fix waiting for push (#4241) 2018-11-07 08:29:07 -08:00
Cameron Dawson f9a8d899ac
Bug 1183749 - Enable eslint rule: react/no-unused-state (#4240) 2018-11-06 12:23:09 -08:00
Cameron Dawson 4991cb56d4
Make the LogoMenu shared (#4231) 2018-11-06 08:48:51 -08:00
pyup.io bot 41164215fe Update markupsafe from 1.0 to 1.1.0 (#4228) 2018-11-06 08:26:24 +00:00
Renovate Bot 9574e09950 Update dependency ajv to v6.5.5 2018-11-06 08:16:38 +00:00
pyup.io bot c67cd438bc Update pbr from 5.1.0 to 5.1.1 (#4230) 2018-11-06 08:05:23 +00:00
Sarah Clements e590908b69
Bug 1465588 - Remove dead perf dashboard code part2 (#4222)
remove baseTitle and newTitle values from compare.js and into comparetable.html partial. Remove releaseBlockerCriteria, unused 'blocker' refs and getTrendMap method from compare.js. Delete comparetable partial and trendtable partials .
2018-11-05 11:30:43 -08:00
Renovate Bot bcf09f2cfa Lock file maintenance 2018-11-05 11:07:46 +00:00
Renovate Bot 038ce63e2a Update dependency json-e to v2.7.1 2018-11-05 10:41:55 +00:00
Renovate Bot c1122e1232 Update dependency fetch-mock to v7.2.5 2018-11-05 10:28:03 +00:00
pyup.io bot b5cb6e536c Update pytest from 3.9.3 to 3.10.0 (#4225) 2018-11-05 10:17:58 +00:00
pyup.io bot 4c81d18ccd Update urllib3 from 1.24 to 1.24.1 (#4221) 2018-11-05 10:04:26 +00:00
Ed Morley bb86b7fb6b
Bug 1504617 - Travis: Explicitly start redis-server (#4227)
Since the service is no longer started by default in the base Travis
image as of travis-ci/travis-cookbooks#999.

Fixes:

```
ConnectionError: Error 111 connecting to localhost:6379. Connection refused.
```
(eg https://travis-ci.org/mozilla/treeherder/jobs/450605269#L880)
2018-11-05 09:38:28 +00:00
Ed Morley 565ae4c13e
Bug 1364894 - Upgrade from Neutrino 4 to 9 (#4216)
Neutrino controls our frontend linting, transpilation, source-maps,
testing, dev-server and optimisation of production builds.

Highlights of the upgrade are:

* Major version updates to the individual tools within (such as webpack,
  Babel and ESLint), significantly improving performance, fixing
  transpilation/minification correctness bugs, adding support for newer
  ECMAScript features, and increasing linter coverage.
* Hot reloading in the dev server now works for all entry-points and not
  just the jobs view, shortening the feedback cycle.
* Reduced bundle size due to webpack 4's tree shaking, scope hoisting,
  automatic shared/vendor code chunk splitting (no need for the manually
  maintained 'vendor' list).
* CSS is now extracted out of JS, which improves performance, reduces
  bundle size and prevents the initial white flash of un-styled content.
* Support for dynamic imports/code splitting (needed for bug 1502192).
* Support for Jest via a new Jest preset (unblocks bug 1364045).
* Support for public class field declarations (unblocks bug 1480166).
* Improved source-maps (increases the quality of production exception
  trace-backs and fixes several debugger breakpoint bugs).
* Reduced amount of custom configuration required for our fairly complex
  frontend needs, reducing maintenance burden and allowing for easier
  future Neutrino upgrades.

In addition this PR:

* Fixes the WhiteNoise `immutable_file_test()` regex, so that it now
  correctly enables browser caching of images, fonts and source maps.
* Enables webpack-dev-server's overlay feature, which displays any
  compilation errors in the browser, saving having to switch back
  to the console (this can be enabled for warnings too if desired).
* Enables webpack-dev-server's automatic browser-opening feature,
  which saves having to manually navigate to `localhost:5000` after
  running `yarn start`.
* Switches Karma tests to run Firefox in headless mode, reducing the
  workflow disruption when running `yarn test`.
* Uses the new webpack `performance` option to enable maximum asset
  file size thresholds, to help prevent bundle-size regressions.
* Rewrites the `package.json` script commands so that they now work
  correctly on Windows, even when setting environment variables.

Performance comparison:

* Local `yarn build`:
  - Cached: 2m34s -> 23s
  - Uncached: 2m34s -> 58s
* Local `yarn start`:
  - Cached: 34.5s -> 13.6s
  - Uncached: 34.5s -> 31.3s
* Local `yarn test`
  - Cached: 61.5s -> 19.8s
  - Uncached: 61.5s -> 22.0s
* Local `yarn lint`
  - Cached: 3.8s -> 1.8s
  - Uncached: 13.7s -> 13.4s
* Travis end-to-end time:
  9 minutes -> 6 minutes
* Heroku deploy end-to-end time:
  14 minutes -> 9 minutes
2018-11-02 18:48:28 +00:00
Cameron Dawson cbd0a384eb Fix updating details if selectedJob is updated 2018-11-02 09:09:48 -07:00
Renovate Bot c5a71be0ea Update Node.js to v11.1.0 2018-11-02 13:32:38 +00:00
Sarah Clements debac0c5c2
Bug 1465588 - Remove unused Perfherder dashboard code (#4211) 2018-11-01 18:09:07 -07:00
Ed Morley 037a233960
Bug 1503576 - New Relic: Instrument cycle_data & update_bugscache (#4214)
Since we now run them as Django management commands (rather than
scheduled Celery tasks), which New Relic only instruments if explicitly
instructed.
2018-11-01 18:02:20 +00:00
pyup.io bot 9716e6b551 Update selenium from 3.14.1 to 3.141.0 (#4217) 2018-11-01 11:19:24 +00:00
Cameron Dawson 363dd0a1aa Bug 1450045 - Create a shared JobInfo component 2018-10-31 13:58:18 -07:00
Florin Strugariu 9b01377881 Bug 1470473 - Add more Perfherder Selenium tests (#4195) 2018-10-31 19:44:31 +00:00
Renovate Bot cbf14f4816 Update Yarn to v1.12.1 2018-10-31 14:25:18 +00:00
ionutgoldan bfd784e0fb Bug 1503195 - Mention deadline for build_metrics regressions (#4210) 2018-10-31 10:15:55 +00:00
pyup.io bot a462309374 Update future from 0.17.0 to 0.17.1 (#4212) 2018-10-31 06:42:25 +00:00
Sarah Clements f761c72803
Bug 1456934 - add search to IFV main table (#4190) 2018-10-29 12:39:06 -07:00
Sarah Clements f1aab1596b
Bug 1495429 - change IFV table sorting (#4178)
Remove API pagination and serve all results to client so table
sorting is completely client-side.
2018-10-29 12:18:37 -07:00
Ed Morley f8a47a5d0a
Bug 1502847 - Update to djangorestframework 3.9.0 (#4208)
Usages of the deprecated `@list_route` and `@detail_route` decorators
have been updated to use the use `@action(detail=...)`:
https://www.django-rest-framework.org/community/3.9-announcement/#action-decorator-replaces-list_route-and-detail_route
https://www.django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing

Release notes:
https://www.django-rest-framework.org/community/3.9-announcement/
https://www.django-rest-framework.org/community/release-notes/#390

Closes #4204.
2018-10-29 17:30:55 +00:00
Ed Morley 597bb4146e
Bug 1502306 - Make it easier to run Selenium tests (#4194)
* Enables the display of skipped test/expected fail reasons, in
  the pytest summary.
* Skips the Selenium tests with a clear reason message, unless the
  built UI is found (preventing the annoying/confusing test timeouts).
* Removes the disabling of the `pytest-html` and `pytest-metadata`
  plugins, since they are required when passing the `--html` option
  to generate an HTML report.
* Updates the docs to mention `yarn build` and `--html`.
2018-10-29 17:07:38 +00:00
pyup.io bot 4dc3777fa3 Update pypom from 2.1.0 to 2.2.0 (#4207) 2018-10-29 13:27:08 +00:00
Renovate Bot 7ac6ecabb7 Lock file maintenance 2018-10-29 12:09:22 +00:00
pyup.io bot 1bbc11c09b Update zope.component to 4.5 (#4205)
And add new dependencies.
2018-10-29 11:20:23 +00:00
pyup.io bot f9ab8aef1f Update pytz from 2018.6 to 2018.7 (#4206) 2018-10-29 10:47:52 +00:00
Ed Morley 4ee2cd77c5
Bug 1502290 - Update to Node.js 11 (#4193)
https://nodejs.org/en/blog/release/v11.0.0/
2018-10-29 10:45:05 +00:00
Ed Morley 974c9c2c5f
Bug 1502288 - Update flake8, pycodestyle and pyflakes (#4192)
* Switches from the `ignore` setting to the new `extend_ignore`, which
  doesn't overwrite the default ignore list, meaning we no longer have
  to duplicate it ourselves.
* Remove the rarely used `[pycodestyle]` config section, since it's
  only used when using tools like autopep8, which should really learn
  to use the `[flake8]` section themselves.
* Enables the previously ignored F403 and F405 rules, adding `# noqa`
  entries to instances that we do not wish to fix.
* Adjust max line length down to 100, since we already disable the
  `E501: line too long` rule, making the length mostly redundant
  other than in IDEs, where it's probably good to show a warning if
  exceeding 100 characters.
* Fixes:
```
treeherder/intermittents_commenter/commenter.py:202:10:
  W605 invalid escape sequence '\['
treeherder/intermittents_commenter/commenter.py:202:24:
  W605 invalid escape sequence '\]'
treeherder/webapp/graphql/schema.py:7:1:
  F403 'from treeherder.model.models import *' used; unable to detect undefined names
```

Closes #4177.
Refs #3425.
Refs #3565.
2018-10-29 09:44:34 +00:00
pyup.io bot 5a4f752ba5 Update pytest from 3.9.2 to 3.9.3 (#4200) 2018-10-29 09:29:26 +00:00
pyup.io bot 4937701331 Update pycryptodome from 3.6.6 to 3.7.0 (#4201) 2018-10-29 09:22:34 +00:00
Ed Morley 47419fde6c
Bug 1428031 - Heroku: Increase max load_initial_data retries to 10 (#4203)
Since there was still a deploy failure after five attempts here:
https://dashboard.heroku.com/apps/treeherder-prototype/activity/releases/2847
2018-10-29 09:14:15 +00:00
Renovate Bot a8d327dc4c Update dependency react-redux to v5.1.0 2018-10-29 09:10:48 +00:00
pyup.io bot 5de4b356d8 Update python-dateutil from 2.7.4 to 2.7.5 (#4199) 2018-10-29 09:06:10 +00:00
Renovate Bot d9011634c6 Update dependency fetch-mock to v7.2.2 2018-10-29 09:04:25 +00:00