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

1679 Коммитов

Автор SHA1 Сообщение Дата
octavian-negru 560fdc83c7 Bug 1587017 - Provide display variants for suite & test names (#5567) 2019-11-12 10:07:40 -08:00
renovate[bot] c1c3ecca50 Update dependency prettier to v1.19.1 (#5622)
* Update dependency prettier to v1.19.1
* Automatic linting suggestions
2019-11-12 11:48:02 -05:00
Shoaib Shaikh 6a0dc1221b Remove Elasticsearch code (#5606) 2019-11-12 11:26:41 -05:00
Armen Zambrano G 97a6301143 Ignore jest/expect-expect rule for a couple of test files 2019-11-12 10:58:29 -05:00
Musa Talluzi fbdb71d41c Reenable camelCase eslint rule and fix all violations 2019-11-12 10:36:55 -05:00
Sarah Clements fd19ee836d
Bug 1566190 - Implement Taskcluster login change (#5543)
* remove taskcluster credentials from WebAuth audience and scope
* create set up separate tc auth callback component and route
2019-11-09 11:25:27 -08:00
Sebastian Hengst b25eee2090 Bug 1594247 - Do not automatically set the severity of crashes to `critical` (#5607) 2019-11-08 10:50:49 -08:00
octavian-negru 979573904e Bug 1585966 - Centered header titles from Compare views should be editable 2019-11-06 17:28:38 +02:00
octavian-negru 084fa55148 Bug 1582108 - Completely remove confirming state 2019-10-22 09:16:10 +03:00
Sarah Clements 56df383970
Revert "Bug 1582108 - Completely remove confirming state" (#5496)
This reverts commit 40e546ad07 due to migration file conflict.
2019-10-11 09:53:35 -07:00
octavian-negru 40e546ad07 Bug 1582108 - Completely remove confirming state 2019-10-11 09:16:32 +03:00
Dustin J. Mitchell 5684321c50 Bug 1574651 - ingest from multiple rabbitmq servers (#5399)
* Bug 1574651 - remove unused JobConsumer and related code

The `update_pulse_test_fixtures` management command listens for job
messages, so is of no use anymore.

* Bug 1574651 - refactor pulse listening to support multiple AMQP servers

This looks forward to supporting ingesting jobs and tasks from multiple
Taskcluster depoyments, each of which is on its own AMQP server (or, at
least, a vhost).

* Bug 1574651 - pass rootUrl from pulse to celery, verify against repository

When jobs and pushes are loaded, the repo's root URL is known.  This
just serves to ensure that the rootUrl for the repo and the rootUrl for
the event match up.

* Bug 1574651 - use root_url from message to make in-job URLs
* Bug 1574651 - update ingest-and-push-tasks to take --root-url
2019-10-10 16:53:18 -07:00
octavian-negru c0d49d8c7e Bug 1584936 - Ingest available measurement units 2019-10-10 14:24:36 +03:00
Cameron Dawson 508a4786fc
Bug 1576966 - Convert Selenium Filter menu Reset test to Jest (#5482) 2019-10-09 13:32:42 -07:00
Armen Zambrano a45bb487d7
Upgrade to Neutrino 9 RC4 (#5454)
* Upgrade to Neutrino 9 RC4
* yarn-deduplicate
2019-10-08 10:13:28 -04:00
Sebastian Hengst 342d16bb38 Bug 1571054 - Don't add the 'regression' keyword automatically to intermittent bugs (#5453) 2019-10-07 14:28:23 -07:00
ionutgoldan 53c639c166
Bug 1571404 - Set assignees for alert summaries 2019-10-02 14:50:12 +03:00
Cameron Dawson 7f72192565
Bug 1574651 - add tc_root_url to each repository (#5405)
* Bug 1574651 - add tc_root_url to each repository

* Fix issues introduced since initial creation of this feature
* Fix unit tests
* Fix retriggers in Compare Chooser of Perfherder
2019-09-30 16:18:07 -07:00
octavian-negru 6ca78bd25c Bug 1582692 - Ensure no one can add confirming state from Perfherder 2019-09-30 13:40:57 +03:00
Sarah Clements 59737af771
Bug 1539232 - Switch Perfherder to react-router (#5379)
Switch Perfherder to react-router
Use top-level of app as a cache for projects, frameworks, alerts data and compare data
Cleanup files and move constants to dedicated perfherder file
Remove angular-related libraries and bump up the neutrino entry and asset limits
2019-09-25 15:15:37 -07:00
Cameron Dawson 2f9d6b2a1c
Bug 1576966 - Convert range and get next selenium tests (#5385) 2019-09-20 12:10:53 -07:00
Cameron Dawson 10a351a587
Bug 1576966 - Convert app switch test to React Testing Library (#5383) 2019-09-18 12:48:44 -07:00
Cameron Dawson adffd63a27
Bug 1575006 - Include Tier-2 jobs in Push Health (#5378) 2019-09-18 11:28:46 -07:00
Cameron Dawson aff331f3d3
Bug 1566077 - Improve getting decision task ID (#5360) 2019-09-17 14:42:57 -07:00
octavian-negru 185ac4e43f Bug 1571364 - Synthesize backfill report 2019-09-16 16:53:05 +03:00
Cameron Dawson 9b095eb04b Bug 1575941 - Fix error message when task action not available 2019-09-13 07:40:00 -07:00
Alexandru Irimovici ec7b376043 Bug 1571643 - retrigger from compare view (#5304) 2019-09-11 10:07:19 -07:00
ionutgoldan 6753250f7e
Bug 1202731 - Provide permalinks in Compare view 2019-09-10 13:02:17 +03:00
Sarah Clements 47b53c157a
Bug 1519995 - Perfherder graphs react conversion part 3 (#5286)
Create components to handle graph controls, legend and graph container
Convert graph functionalty to react and replace jquery.flot with Victory
2019-09-09 13:19:04 -07:00
Cameron Dawson 6899768b35 Bug 1573462 - Job and group name keeps capitalizations 2019-09-06 11:02:10 -07:00
Cameron Dawson 56f2c5ca78 Bug 1576966 - Convert filtering selenium tests to React Testing Library 2019-09-05 09:17:13 -07:00
ionutgoldan aeecdc28ce
Bug 1571361 - Identify retriggerable perf jobs 2019-09-05 09:57:24 +03:00
octavian-negru 04b7878244 Bug 1571363 - Define algorithm for picking relevant alerts 2019-09-02 09:46:20 +03:00
Cameron Dawson f6be2c334c added unit tests 2019-08-27 08:34:18 -04:00
ionutgoldan c7c5672939
Bug 1571403 - Add assignee field to alert summary table 2019-08-23 17:40:29 +03:00
Armen Zambrano 03a3fd82e8
Merge pull request #5310 from mozilla/disable_test
Disable test_clear_filter because it times out too often preventing d…
2019-08-22 09:10:34 -04:00
Armen Zambrano G 90c3d98cf3 Disable no-unused-vars for few lines 2019-08-21 16:16:45 -04:00
Cameron Dawson 6581c84289 Fix retriggers and add new jobs 2019-08-21 12:02:26 -07:00
Cameron Dawson 9f37dc3343 Bug 1331399 - Reduce payload size and memory footprint of job data
This fixes the issues with retriggering and add-new-jobs that the
original PR introduced.  It also adds a few unit tests to catch
this potential mistake in the future.

This reverts commit ffd871ae34.
2019-08-21 12:02:26 -07:00
Cameron Dawson 8ad1b1fec0 Bug 1572095 - Fix commit/revision links after changing repo 2019-08-16 15:30:35 -07:00
Cameron Dawson ffd871ae34 Revert "Bug 1331399 - Trim job data that we store"
This reverts commit 613d7f0172.
2019-08-14 11:58:40 -07:00
Cameron Dawson 613d7f0172 Bug 1331399 - Trim job data that we store 2019-08-13 14:45:21 -07:00
Cameron Dawson c58badbe60 Bug 1510280 - Convert PinnedJobs context to Redux 2019-08-12 14:08:49 -07:00
Cameron Dawson f408887675
Bug 1572255 - Fix set top and bottom of range links (#5253) 2019-08-08 12:19:23 -07:00
Armen Zambrano G 879918708a Switch from `jest-dom` to `@testing-library/jest-dom`
`jest-dom` has moved to `@testing-library/jest-dom`. Please uninstall jest-dom and install `@testing-library/jest-dom` instead,
or use an older version of `jest-dom`. If you do upgrade to `@testing-library/jest-dom`, make sure to update your usage of `jest-dom`
to use `@testing-library/jest-dom/extend-expect` rather than simply `jest-dom/extend-expect`. Learn more about this change here:
https://github.com/testing-library/dom-testing-library/issues/260 Thanks!
2019-08-08 10:10:16 -04:00
Alexandru Irimovici fd7f541076 Bug 1553719 - Trim revision id for compare chooser 2019-08-07 09:48:19 +03:00
Cameron Dawson 5d4ca44e7d
Rename details selectedJob to selectedJobFull (#5230)
* Rename details panel ``selectedJob`` to ``selectedJobFull``

The job that's passed in the DetailsPanel has a bunch of extra fields
that are not in the normal downloaded list of jobs.  So I wanted to
depict that ``selectedJob`` is not the same thing as what you see
in the DetailsPanel.

* Stop using Redux where not necessary

I was using Redux to assign the selectedJob in a few details
classes when I should have just passed it where it was needed.

* New addAggregateFields function

Instead of using a more heavy weight JobModel for each job,
we just persist some fields that were getting constantly calculated
over and over.  This was especially true during filtering and re-rendering.

* Remove some cruft leftover from Buildbot.
2019-08-06 12:10:33 -07:00
ionutgoldan a5df8a966b
Bug 1346567 - Re enable Perfherder data cycler 2019-08-02 16:04:24 +03:00
Armen Zambrano G 9de99b4711 Bug 1395254 - Consume Taskcluster Pulse messages from standard queue exchanges
Currently, Treeherder consumes Pulse messages from an intermediary service called `taskcluster-treeherder`.
Such service needs to be shut down and its functionality imported into Treeherder.

In order to do this we need to switch to the standard Taskcluster exchanges as defined in here:
https://docs.taskcluster.net/docs/reference/platform/queue/exchanges

On a first pass we are only including the code from `taskcluster-treeherder` without changing
much of Treeherder's code. The code is translated from Javascript to Python and only some minor
code changes were done to reduce the difficulty on porting the code without introducing bugs.
Internally, on this first pass, we will still have an intermediary data structure representing
what `taskcluster-treeherder` is emitting, however, we will stop consuming the messages
from it and be able to shut it down.

Instead of consuming from one single exchange we will be consuming multiple ones. Each one representing
a different kind of task (e.g. pending vs running).

In order to test this change you need to open 5 terminal windows and follow these steps:

* On the first window run `docker-compose up`
* On the next three windows `export PULSE_URL="amqp://foo:bar@pulse.mozilla.org:5671/?ssl=1"` and run the following commands:
      * `docker-compose run -e PULSE_URL backend ./manage.py pulse_listener_jobs`
      * `docker-compose run -e PULSE_URL backend ./manage.py pulse_listener_tasks`
      * `docker-compose run -e PULSE_URL backend ./manage.py pulse_listener_pushes`
* On the last window run `docker-compose run backend celery -A treeherder worker -B --concurrency 5`
* Open on your browser `http://localhost:5000`

This is just a summary from [the docs](https://treeherder.readthedocs.io/pulseload.html).

= ETL management commands =
This change also introduces two ETL management command that can be executed like this:

== Ingest push and tasks ==

This script can ingest into Treeherder all tasks associated to a push.
It uses Python's asyncio to speed up the ingestion of tasks.

```bash
./manage.py ingest_push_and_tasks
```

== Update Pulse test fixtures ==

```bash
./manage.py update_pulse_test_fixtures
```

This command will read 100 Taskcluster Pulse messages, process them and store them as test fixtures
under these two files: `tests/sample_data/pulse_consumer/taskcluster_{jobs,metadata}.json`

Following this work would be to get rid of the intermediary job representation ([bug 1560596](https://bugzilla.mozilla.org/show_bug.cgi?id=1560596) which will
clean up some of the code and some of the old tests.

= Extra script =
Script that permits comparing pushes from two different Treeherder instances.

```
usage: Compare a push from a Treeherder instance to the production instance.
       [-h] [--host HOST] --revision REVISION [--project PROJECT]

optional arguments:
  -h, --help           show this help message and exit
  --host HOST          Host to compare. It defaults to localhost
  --revision REVISION  Revision to compare
  --project PROJECT    Project to compare. It defaults to mozilla-central
```

= Other changes =

Other changes included:

* Import `taskcluster-treeherder`'s validation to ensure we're not fed garbage.
* Change `yaml.load(f)` for `yaml.load(f, Loader=yaml.FullLoader)`. Read [this](https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation) for details
* Introduce `taskcluster` and `taskcluster-urls` as dependencies
* The test `test_retry_missing_revision_never_succeeds` makes no sense because
we make Json validation on the Pulse message
2019-07-29 09:42:57 -04:00
Armen Zambrano G 7f04a91af7 Revert "Bug 1395254 - Consume Taskcluster jobs from standard queue exchanges (#5042)"
This reverts commit 75dc375a93.
2019-07-23 16:24:13 -04:00