For Heroku Review apps, we're trying to use a small database plan (with limited
number of collections allowed) and a small number of workers processing tasks
in order to reduce the cost of the app.
Using the PROJECTS_TO_INGEST variable we can define a small number of repos to
pay attention to and discard all other tasks.
You can remove PROJECTS_TO_INGEST to go back to using a normal ingestion behaviour.
Tasks that do not have tc-treeherder in their routes are flodding the Papertrail logs.
Reducing the level to `debug()` is more appropriate for these kinds of discarded tasks.
We also do not need to log the routes for acceptable tasks.
Defining PULSE_TASK_SOURCES and PULSE_PUSH_SOURCES is a bit of a nightmare
because `app.json` is a Json file and using double and single quotes for a
value in the file is impossible.
Some workers are set to 0 dynos so we only focus on ingesting pushes and tasks. Nevertheless,
the number of workers can be adjusted after the review app is created. The current settings
are to get us the minimum amount of functionality for the app and the minimum throughput
for the queues not to backlog.
I do not know why I suggested landing the complete PR #5604.
I wanted the UI code to be landed in advance so we can notice any edges cases
on the day before the downtime. This change only includes the UI changes from
the original PR.
- update repositories fixture with new tc_root_urls for firefox-ci and community-ci
- update getRunnableJobsUrl and RunnableJobModel to access currentRepo and tc_root_url;
refactor getInspectTaskUrl and JobInfo component to have currentRepo prop
- add new rooturls to connect-src, update rooturl for seta, update docs and
remove header in make_request,
Now you need to specify the type of ingestion you want (hg-push or task)
and makes it simpler to separate which options are used for what.
To ingest an Hg push you can do this:
```bash
./manage.py ingest_push_and_tasks hg-push --project autoland --commit 1f17d60de61efeebaf9e4d04ce2abc4290179d00
```
To ingest a task you can do this:
```bash
./manage.py ingest_push_and_tasks task --task-id QGZSGHnaSRWRFk6TZlNMHQ
```
To ingest a Github PR you can do this:
```
./manage.py ingest_push_and_tasks pr --pr-url https://github.com/servo/servo/pull/24662
```
Sometimes Travis fails because `nvm` would not be able to reach the node package with:
> Failed to install 12. Remote repository may not be reachable.
Perhaps being more specific will help with timing of node releases or more likely hitting the cache.