Since taskcluster requires credentials for actions - which we
retrieve via their third party login - many of the isLoggedIn for users
can be relaxed.
* Changes made to Push Health and the jobs-view - PushAction, CustomJobActions, ActionBar, PushHeader.
The 'test_groups' data got added in [bug 1340551](https://bugzilla.mozilla.org/show_bug.cgi?id=1340551) to track which test manifests
contributed tests to the current task. It is not needed as part of the test
output and should be ignored.
The recent addition of Celery workers consumption has increased the usage
of number of connections to the database.
In certain cases like loading a large number of pushes we can hit the maximum
limit of connections.
This change increases the default `max_connections` to 300 (about double).
This change changes the Docker set up to use the new Pulse listener command that listens to both tasks and pushes instead of having two different ones.
This also adds a unique queue name. When running `docker-compose up` the Pulse listener will use a queue name that is the same for every developer running the listener. This means that all developers would be consuming from the same queue and stealing each other's Pulse messages. This change creates a unique name for each developer.
Co-authored-by: Armen Zambrano <armenzg@users.noreply.github.com>
Before actions were generated by triggering hooks, treeherder generated action
tasks directly. When doing this, the calling code generated the task id, and
then used that to link to the task. Now that things are generated via hooks,
refactor things so the calling code gets the task id from the code triggering
the hook.
It seems that Heroku Review apps have regressed and they are not being added to ALLOWED_HOSTS, thus,
making the web deployment have lost of errors (one of them below):
> ERROR [django.security.DisallowedHost:77] Invalid HTTP_HOST header: 'treeherder-pulse-lsiten-afvimm.herokuapp.com'. You may need to add 'treeherder-pulse-lsiten-afvimm.herokuapp.com' to ALLOWED_HOSTS.
This change can be manually tested like this:
```shell
% export HEROKU_REVIEW_APP=1
% export HEROKU_APP_NAME=treeherder-foo
% python -c "from treeherder.config import settings; print(settings.ALLOWED_HOSTS)"
['https://treeherder-foo.herokuapp.com']
```
* Configuration for black
* changes congiguration
* change pyproject's directory
* add files to be excluded and skip string normalization
* removed isort from pre-commit
* remove version locks for black
* fix
* remove all isort
* update requirements
Co-authored-by: SuyashSalampuria <suyash546@gmail.com>
Co-authored-by: Kyle Lahnakoski <kyle@lahnakoski.com>
This permits setting up the complete ingestion pipeline with a single command.
It only ingests from autoland and tries to use minimal resources on a localhost.
Co-authored-by: Armen Zambrano <armenzg@users.noreply.github.com>