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

239 Коммитов

Автор SHA1 Сообщение Дата
Ed Morley 5d1b99fa79 Bug 1416257 - Docs: Clarify which node/yarn version should be used
Since for people installing node/yarn on their own (outside the
Vagrant environment) it can be confusing to work out which version is
appropriate, given node always has both an LTS and current release.
2017-11-20 18:59:26 +00:00
Ed Morley b472a63176 Bug 1416257 - Docs: Remove unnecessary `yarn install` steps
The vagrant provision runs `yarn install`, so it isn't necessary to
do so again before running `yarn start`.
2017-11-20 18:59:26 +00:00
Dave Hunt 1319f57c55
Rename py.test to pytest #dropthedot 2017-11-09 12:55:25 +00:00
Dave Hunt 9fd3c72241
Bug 1340305 - Allow Selenium tests to be run locally 2017-11-09 12:55:25 +00:00
Jonathan French f0940ec37d Bug 1410230 - Tweak the pinboard testcase wording (#2857) 2017-10-19 22:55:29 +02:00
Kiki 070a94d16b Bug 1407367 - Update doc that ui unit tests are not to be run within a VM 2017-10-13 09:43:40 -07:00
Cameron Dawson a250d1dcb6 Bug 1400069 - Replace term coalesced with superseded in most places
Except where it has to touch the database field, since that will be
vestigial in a later commit and removed in a alter PR.
2017-09-29 17:18:42 -07:00
Cameron Dawson 863f772a8b Bug 1387640 - Remove Exclusion Profiles models/tables
Removes all the models and tables for the ExclusionProfile and
JobExclusion models and related.
2017-09-18 09:28:22 -07:00
Cameron Dawson bde8e20f1f Bug 1387640 - Stop using exclusion profiles
Note: This leaves the models and tables intact so that we can
revert without data loss in case we discover an issue.  A follow-up
commit will remove those tables and models.
2017-09-13 09:05:25 -07:00
Cameron Dawson 83c94d9cae Bug 1398386 - Remove exclusion editor admin panel 2017-09-12 12:25:29 -07:00
Armen Zambrano b72b8c5096 Improve SETA maintenance documentation (#2757)
The maintenance section was not addressing that data can take a while before the different scheduled processes bring the data into the right tables.

This addresses documenting how to:

* Update the runnable jobs table
* Update the job priority table
2017-09-06 19:18:32 +01:00
Armen Zambrano G 5ddd7bfad7 Bug 1395162 - Document how to change jobs priorities and remove expiration date 2017-08-30 13:57:23 -04:00
Armen Zambrano G 63a6692e71 Bug 1388862 - Management command to initialize SETA locally
This populates the job priority table with data locally.

It puts all jobs into the table without considerations of analyzing failures.
That can follow up in the future.

Update docs accordingly.
2017-08-11 09:40:07 -04:00
Max Chehab c6e0c26bc8 Bug 1336272 - Refactor changing wording from resultset to push (#2644)
Change of new environment variable `PULSE_PUSH_SOURCES`.

Keep old `publish-resultset-runnable-job-action` task name by creating a 
method that points to `publish_push_runnable_job_action`.
2017-08-04 09:38:57 -07:00
William Lachance 5cb5046e41 `yarn run foo` -> `yarn foo` (#2597)
The run is redundant.
2017-06-29 11:32:54 -07:00
Ed Morley 4735e9d434 Bug 1362443 - Vagrant: Replace varnish with iptables rule
By default webservers like Django's runserver, gunicorn or the
Webpack devserver only bind to the loopback adapter (127.0.0.1) and
so are not accessible from outside the Vagrant / virtualbox VM,
since port forwarding only forwards traffic to the non-loopback
adapters.

Previously varnish (which listened on `0.0.0.0`) was reverse
proxying traffic to runserver/gunicorn, however we need to now do so
for webpack-dev-server on another port too. Doing both with varnish
adds complexity, and we don't actually need any of varnish's other
features, so ideally want to stop using it.

Rather than having to override each webserver to bind to all
adapters (using the IP `0.0.0.0`), it's possible to forward traffic
to the loopback adapter using iptables NAT PREROUTING rules. This
is still secure so long as the Vagrantfile port forwarding uses a
`host_ip` of `127.0.0.1`. To prevent this "Martian packet" traffic
from being blocked, `route_localnet` must also be set to `1`. See:
https://unix.stackexchange.com/questions/111433/iptables-redirect-outside-requests-to-127-0-0-1

By default neither sysctl or iptables settings are persisted across
reboots, and fixing that requires more complexity (eg installing the
iptables-persistent package and handling config changes during
provision). As such, it's just easier to re-run the commands on each
login since they take <30ms.
2017-05-06 17:32:41 +01:00
Ed Morley f422a02730 Bug 1168117 - Remove support for defining the API URL via local.conf.js
Previously a forgotten-about `local.conf.js` (which is git-ignored)
would override the URL passed by the `SERVICE_URL` environment variable.

With webpack and environment variables, there is no need to use a local
config file to control the API URL, so we can now remove this footgun.
2017-04-28 00:44:24 +01:00
Ed Morley 55650d582d Bug 1306844 - Remove support for submitting pushes via the REST API
This endpoint is deprecated in favour of Pulse submissions, and is no
longer being used.
2017-04-24 10:50:31 +01:00
Ed Morley 589817d6b0 Bug 1357970 - Remove the artifact REST endpoint
Artifacts no longer exist (they've been replaced by more specific types
like "jobdetails"), and so fetching from this endpoint has been disabled
for some time already.

For data submission, we still call them artifacts (and sort their type
after submission), however all artifacts are currently submitted at the
same time as the job, so this endpoint is unused.
2017-04-20 22:52:58 +01:00
Ed Morley a3eb8b5313 Bug 1353807 - Remove celerybeat-schedule during provision
Since it saves having to document the troubleshooting step.
2017-04-19 00:49:15 +01:00
Dave Hunt ac4111128b Moved the methods of submitting data beneath the top level heading (#2327)
* Moved the methods of submitting data beneath the top level heading

* Replace 'github' and 'Github' with 'GitHub' in documentation
2017-04-07 09:18:26 -07:00
camd dd0f01687c Bug 1352184 - Document adding a Github repo to Treeherder (#2304) 2017-04-04 15:23:03 -07:00
Casey Williams 5a1c8c6af3 Bug 1336556 - Add a standalone eslint task
Installs eslint explicitly to avoid warning messages on initial
node_modules install.  Adds a standalone eslint task via `yarn run
lint`.
2017-03-29 22:07:24 +01:00
Casey Williams afa7d63d1d Bug 1336556 - Replace grunt build system with neutrino/webpack 2017-03-29 22:07:24 +01:00
Ed Morley f4b37c026b Bug 1348375 - Stop using a wildcard import in treeherder.client
This import only affects internal treeherder usage, people using the
PyPI package import from the `thclient` subdirectory instead.

Fixes:

treeherder/client/__init__.py:1:1: F401 '.thclient.*' imported but unused
2017-03-20 13:18:20 +00:00
Ed Morley 51c386ee21 Bug 1343928 - Switch from npm to yarn
Since it's faster, deterministic and doesn't given obscure errors when
using `--no-bin-links` (which is required for both npm and yarn on
Windows hosts), and as such unblocks the work in bug 1343624.

Many of the commands are the same as with npm. See:
https://yarnpkg.com/en/docs/usage
2017-03-13 15:27:46 +00:00
Ed Morley 7b533c6b68 Bug 1343624 - Use `npm test` alias instead of old Karma wrapper scripts
The `test` script entry in `package.json` (used by `npm test`) already
calls karma with the appropriate parameters, so the helper scripts are
unnecessary.
2017-03-13 15:27:46 +00:00
Ed Morley 245696ef53 Bug 1343624 - Add `npm run lint` as an alias of `grunt checkjs`
For the same reason as the previous commit.

Ideally we'd remove the grunt abstraction entirely and call eslint from
the `lint` command, but we might as well save that to the Neutrino PR.
2017-03-13 15:27:46 +00:00
Ed Morley 21abe6ed75 Bug 1343624 - Add `npm run build` as an alias of `grunt build`
Routing commands via npm/yarn is preferred, since it avoids
having to do global installs of grunt-cli, which simplifies contributor
setup, and means less effort when we switch to Yarn (since it requires
manual PATH setup for globally installed packages).
2017-03-13 15:27:46 +00:00
Ed Morley 5faadd8622 Bug 1345220 - Docs: Update read-only replica GRANTs for new tables
These were added by bug 1312575 and bug 1323110.

The table exclusion list has also been updated to remove the corsheader
entry, since as of v2.0.0 it no longer creates any tables.
2017-03-07 19:58:55 +00:00
Jonathan French 7e4662520a Bug 1339157 - Remove the RTD copyright year 2017-02-15 10:14:04 +00:00
Ed Morley 8fae27955a Revert "Bug 1333079 - Switch to new style Celery setting names"
This reverts commit 1db3e2baf4.
2017-02-01 16:28:55 +00:00
Ed Morley 1db3e2baf4 Bug 1333079 - Switch to new style Celery setting names
Converted using:

celery upgrade settings treeherder/config/settings.py --django
celery upgrade settings tests/settings.py --django

As suggested by:
http://celery.readthedocs.io/en/latest/whatsnew-4.0.html#lowercase-setting-names

(I manually reverted the env variable name back to simplify deployment,
we can always clean these up later.)

The Django integration in celery.py has been cleaned up by following:
https://celery.readthedocs.io/en/latest/django/first-steps-with-django.html
2017-02-01 14:11:45 +00:00
Ed Morley b05967e226 Bug 1335151 - Docs: Update read-only replica GRANTs for new SETA table
Also removes `task_set_meta` from the exclusion list, since that table
no longer exists.
2017-02-01 14:11:29 +00:00
William Lachance 012df34580 Bug 1329002 - Remove last pieces of and references to datasource 2017-01-06 15:01:19 -05:00
Dave Hunt 6acee29138 Docs: Fix link to Pulse Guardian (#2067) 2017-01-06 17:56:23 +00:00
Armen Zambrano G ed8e39221d Bug 1306709 - Add SETA to Treeherder 2017-01-05 14:33:55 -05:00
Ed Morley 5dfb9782a2 Bug 1318021 - Vagrant: Remove support for settings_local.py
Since it is footgun-prone, discourages upstreaming of useful development
tricks & is unnecessary in an environment variable centric world.

The one remaining `BZ_API_URL` setting isn't actively used, and if this
changes in the future, it should be set via an environment variable
instead.
2016-11-29 19:18:16 +00:00
William Lachance 88120c6da7 Bug 1311468 - fix typo 2016-11-25 12:53:01 -05:00
William Lachance f34e6fc638 Bug 1311468 - Add docs for creating readonly Treeherder users (#1993) 2016-11-24 12:52:09 -05:00
Ed Morley 4df19bddd2 Bug 1318021 - Vagrant: Stop using log files for gunicorn/celery output
Outputting to the console rather than a log file:
* is more user-friendly during development
* is more consistent with Heroku
* means the Vagrant-specific Django LOGGING config is now closer to the
one in settings.py, and so more easily combined with it

Both gunicorn and celery default to outputting to stdout/stderr, so the
`logfile` options can be omitted entirely.
2016-11-23 11:47:04 +00:00
Brian Stack 3a0b0fafad Bug 1318794 - Fix docs User-Agent example (#1987) 2016-11-21 15:42:28 +00:00
camd ba8165c239 Bug 1273034 - Transition to Taskcluster Auth from Persona (#1922)
In this commit, Sheriff access is still maintained in the
Treeherder DB, rather than using the scopes derived from
LDAP.

For local usage with Vagrant, this requires accessing
Treeherder with localhost instead of
local.treeherder.mozilla.org

Loggin in to the Django Admin is not enabled in this
branch.  Do use the admin, you must first login through
the normal Treeherder front-end.  Then the admin will
be accessible if the user has the privileges to do so.

Persona login will still be technically possible through the
login.taskcluster.net site.  But that choice will go away
shortly.
2016-11-18 10:54:48 -08:00
camd b37dee233a Bug 1315818 - Vagrant: Use localhost instead of local.treeherder.m.o (#1974) 2016-11-08 12:48:05 -08:00
Gregory Szorc fb7a630f3d Bug 1312839 - Properly document pulse data ingestion config
The previous docs incorrectly said to use a settings_local.py file.
The correct way to define the Pulse URL is via an environment
variable.
2016-11-04 12:12:07 -07:00
Gregory Szorc b83ab0eb46 Bug 1312809 - Support ingesting last N pushes from pushlog
As a new contributor to Treeherder, I was confused how to get
Treeherder to ingest several pushes. The celery worker appeared to
only ingest the last 10 pushes.

This commit enhances the "ingest_push" command to allow ingesting
the last N pushes. I've used this to ingest the last 100 pushes
to seed the database with sufficient pushlog data.
2016-11-04 11:32:32 -07:00
camd 0d4279fdc8 Bug 1308328 - Add Treeherder test cases to docs (#1902)
* Bug 1308328 - Add Treeherder test cases to docs
2016-10-07 09:03:25 -07:00
Jonathan French 86885b0601 Bug 1306369 - Update common tasks log parser doc example (#1881) 2016-09-29 12:49:37 -04:00
William Lachance 28cae8c360 Bug 1302844 - Remove redundant information from text log artifacts (#1854)
Now that they are only an intermediary format, we can remove data
that isn't required to interpret them.
2016-09-21 10:54:53 -04:00
Jonathan French 3397407dba Bug 1302754 - Update the docs copyright (#1852)
* Update the docs copyright to 2016
* Add "other contributors"
2016-09-14 11:30:37 -04:00