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

129 Коммитов

Автор SHA1 Сообщение Дата
Ed Morley 90ba77e596 Bug 1192801 - Remove per-file MPL boilerplate since it's unnecessary
The MPL 2.0 terms state that as long as a LICENSE file is present, the
per-file header text is not required. See "Exhibit A" at the end of:
https://www.mozilla.org/MPL/2.0/
2015-08-18 23:32:11 +01:00
Ed Morley 26acccf944 Bug 1193775 - Document how to test UI-only changes using GitHub pages 2015-08-15 11:13:06 +01:00
Ed Morley ac8e41e5e9 Bug 1178300 - Docs: Formatting and readability tweaks to setup docs 2015-08-11 16:00:49 +01:00
Ed Morley fb9f0af43c Bug 1178300 - Docs: Move the hosts file step into the Vagrant section
Since it can be performed whilst `vagrant up` is running, and whilst
modifying the hosts file is not necessary for running the tests, most
people will still want to do it.
2015-08-11 15:55:27 +01:00
Ed Morley ed77e4e69c Bug 1178300 - Docs: Add Windows-specific setup help
Fixes #684.
2015-08-11 14:56:12 +01:00
Ed Morley 106c0bcca4 Bug 1178300 - Docs: Add a prerequisites section which links to Bootcamp
Also mention the need for Git to be installed & link to Git website.
2015-08-11 14:56:11 +01:00
Ed Morley 3e248c5bf8 Bug 1178300 - Docs: Move Vagrant troubleshooting steps to their own page
Since most people will not require them, and the list is growing quite
large.
2015-08-11 14:56:10 +01:00
Ed Morley 85a6cfdec3 Bug 1165929 - Docs: Add instructions on how to build the docs locally 2015-08-11 12:41:54 +01:00
Ed Morley e68c2403da Bug 1191602 - Docs: s/Vagrant instance/Vagrant VM/ 2015-08-11 12:14:35 +01:00
Ed Morley a36c7f47da Bug 1191602 - Docs: Clarify which commands should be run inside the VM
The shell prompts for each command example already mention vagrant, but
this can still be missed, so make the distinction extra clear.
2015-08-11 11:14:29 +01:00
Ed Morley 1c00ccfcc7 Bug 1192661 - Clean up Python import order
Created using |isort -p tests -rc .| and a couple of manual tweaks.

The order is:
* futures
* std library
* third party packages
* local imports
* relative local imports
...with each group ordered with "import x" before "from x import y", and
then alphabetically.
2015-08-10 18:33:49 +01:00
Ed Morley a34c805d40 Bug 1191738 - Fix code block markup in submitting_data.rst
It was using Markdown rather than reStructuredText syntax.
2015-08-06 11:47:52 +01:00
Ed Morley 4b8624c5a8 Bug 1190894 - Vagrant: Make it clearer that vagrant v1.5+ is required
We require 1.5+ due to the use of just the box name, without URL.

This is now mentioned in the setup docs, plus fails more obviously
during |vagrant up|, thanks to:
http://docs.vagrantup.com/v2/vagrantfile/vagrant_version.html
2015-08-05 13:23:02 +01:00
William Lachance f072d29380 Clarify ingest_push
* Reinforce push must be < 4 hours old
* s/mozilla-central/mozilla-inbound/ (better example, since mozilla-inbound is more likely to have pushes less than 4 hours old)
2015-08-04 13:00:54 -04:00
Ed Morley a49c98b180 Bug 1186357 - Remove the deprecated objectstore endpoint
Since bug 1140349, the objectstore endpoint has been deprecated, and
performs the same function as the jobs endpoint. Now that there are no
remaining submitters to it, let's remove it.
2015-07-30 13:19:30 +01:00
Cameron Dawson 00cfe6643d Bug 1140349 - Remove the objectstore code
After the previous commit, the Objectstore is effectively "dead code".
So this commit removes all the dead code after anything left over in
the Objectstore has been drained and added to the DB.
2015-07-21 14:13:21 -07:00
Mauro Doglio b9881f937c Bug 1183575 - Create a requests auth backend for 2-legged oauth 2015-07-20 16:12:33 +02:00
Jonathan French b6b0e1ac45 Bug 1184247 - Add celerybeat-schedule removal to Troubleshooting 2015-07-16 09:36:13 -04:00
MikeLing 5035bd6540 Bug 1184135-Fix "Validating Javascript" eslint steps 2015-07-16 08:59:31 +08:00
William Lachance 658927bdf7 Bug 1183367 - Add a grunt target to run eslint on JS frontend 2015-07-14 13:40:18 -04:00
Cameron Dawson 51cc8f6a27 Bug 1182299 - Support custom log name param in logslice
This adds the ability to specify a custom log name and have the log
viewer use the ``logname`` param of the ``text_log_summary`` to get the
right log.

This also improves the error message returned by the /logslice/ API if a
log name is used that is not found.
2015-07-13 09:18:24 -07:00
Ed Morley 7e7975d675 Bug 1179214 - Docs: Remove reference to a revision's 'files' property
Since it's been removed from the client/API.
2015-07-09 15:31:41 +01:00
Vaibhav Agrawal e693397b38 Bug 1180967 - Add a note that node.js should be in treeherder ui docs. 2015-07-06 16:55:54 -07:00
William Lachance 5e6ac65659 Clarify documentation for ingest_push
The revision specified for ingest_push was just an example
2015-06-30 17:17:58 -04:00
Ed Morley 58813b0c51 Bug 1169916 - Stop using Cython to build the log parser
Since it only speeds up parsing by a few percent of total runtime, and
is therefore not worth the added complexity for deployment and local
hack-test-debug cycles when working on the log parser.

The .gitignore and update.py entries will be removed in a later commit,
once the stage/prod src directories have been cleaned up.
2015-06-30 14:51:57 +01:00
Ed Morley e9efcf8584 Bug 1178224 - Remove the unused result_set_artifact table 2015-06-30 01:39:45 +01:00
William Lachance 1c129a5cc6 Bug 1175935 - Add a section on "retrieving data" to docs
Currently documents the swagger interface to the REST API and the python
client API.
2015-06-19 13:44:04 -04:00
Ed Morley bf4c7c05ff Bug 1151803 - Serve the UI using gunicorn/WhiteNoise instead of Apache
In order that we can serve the UI on Heroku, we wrap the Django wsgi app
with WhiteNoise, so both the UI and API requests are served by gunicorn.

In the Vagrant environment, Apache has been removed and Varnish instead
now proxies all requests to gunicorn/Django runserver directly, without
Apache as a go-between.

The UI on production will not be affected by this commit, since the
Apache config there will still intercept requests for the UI assets
rather than proxying them to gunicorn.

It's worth noting too, that we're not able to make use of WhiteNoise's
automatic Django GZip/caching support since that assumes we are using
Django templates and referring to resources using {% static "foo.css" %}

However, we can sub-class WhiteNoise (or more specifically the
DjangoWhiteNoise class) and override the is_immutable_file() method to
add caching support at a later date:
http://whitenoise.evans.io/en/latest/base.html#caching-headers

Documentation for WhiteNoise can be found at:
http://whitenoise.evans.io/
2015-06-19 15:56:23 +01:00
Ed Morley c3efa7c400 Bug 1151803 - Docs: Clarify the UI build/dist explanation & steps
Explains the reasoning behind the dist directory, and separates out the
"updating the dist directory" and "testing the dist directory" steps.
2015-06-19 15:08:44 +01:00
Ed Morley 15911f5d77 Bug 1151803 - Docs: Remove instructions on how to restart varnish
The Varnish config uses |return (pass)| unconditionally, so never
caches anything, so there's no need to suggest restarting it after
making changes to the UI.
2015-06-19 13:20:32 +01:00
Cameron Dawson f92ba96cb2 Bug 1174192 - Allow specifying tier for a job from the client 2015-06-18 08:46:47 -07:00
William Lachance 5475ae7f72 Fixes to submitting data section of documentation
* Shorten "Treeherder Python Client" to just "Python Client"
* Replace imports of TreeherderRequest with TreeherderClient
2015-06-18 10:42:28 -04:00
Ed Morley a4798aa840 Bug 1173409 - Vagrant: Add support for creating a 'scratch' VM
It's sometimes useful to be able to spin up an additional Vagrant
environment without affecting the first. To do this, we create two named
machines, both identical (since they inherit the main Vagrantfile
configuration) - one called default (to match the machine name used up
until now, so we don't force people to recreate their existing VMs when
we land this) and one called scratch.

The former is set to be the primary, so that single-machine commands
(eg `vagrant ssh`) work without having to append the machine name every
time.

The scratch machine has autostart set to false, so that it does not spin
up without explicitly using: `vagrant up scratch`

The name `scratch` is entirely arbitrary, and we can add additional
temporary machine names later, if people wish to have more than two
environments saved simultaneously.

For more information, see:
http://docs.vagrantup.com/v2/multi-machine/
2015-06-11 11:52:42 +01:00
Ed Morley c70bceee14 Bug 1170827 - Docs: Add |--concurrency| to the example celery command
Since the default of just one worker results in slow ingestion.
2015-06-10 00:02:56 +01:00
Ed Morley 80537079c8 Bug 1172036 - Vagrant: Run export_project_credentials during provision
This means there is one less manual step that has to be performed during
initial setup.
2015-06-10 00:02:55 +01:00
Ed Morley 6677fa739c Bug 1168741 - Docs: Emphasise that the hosts entry must be copied as-is
Since there has been confusion in the past that the IP should be updated
to match that of the host.
2015-06-10 00:02:55 +01:00
Ed Morley 1d1d35e5d5 Bug 1172021 - Docs: Remove unnecessary steps from setup instructions
These steps are already performed by puppet on provision, so don't need
to be performed again manually. They are mentioned on the "common tasks"
docs page if people need to run them again later.
2015-06-10 00:02:54 +01:00
Ed Morley 7a6e5d0d49 Bug 1172020 - Docs: Remove port 8000 mention on installation docs
Since gunicorn is only running on port 8000 inside the VM, it's then
proxied via varnish/apache and accessible on port 80 outside the VM, so
mentioning port 8000 is more confusing than helpful.
2015-06-10 00:02:54 +01:00
Jonathan French 49294ec7de Bug 1170172 - RTD Grunt Build updates - supplemental 2015-06-03 09:18:19 -04:00
Jonathan French 1f62d37470 Bug 1170172 - RTD Grunt build updates 2015-06-02 14:29:22 -04:00
Ed Morley 81c5c67a2a Bug 1170167 - Vagrant: cd into the treeherder directory on login
Also switches the activate-venv-on-login .bashrc entry to use an
absolute path, in case it gets added to .bashrc after the 'cd' line.
2015-06-02 13:44:55 +01:00
Ed Morley b3d8a7cbb1 Bug 1170269 - Docs: Remove unnecessary initial-setup Cython compile step
Puppet runs it on provision, so it's not necessary to do so manually.
2015-06-01 22:21:41 +01:00
Ed Morley 81ac118436 Bug 1144804 - Docs: Update the Vagrant examples with the new bash prompt
After updating the Vagrant image, the vagrant bash prompt has changed.
2015-06-01 19:59:31 +01:00
William Lachance 8eee644a00 Bug 1139998 - Make it more clear in docs how to set things up to run UI tests 2015-06-01 11:12:24 -04:00
Ed Morley 43da904de0 Bug 1160561 - Docs: Remove out of date deployment advice
We're no longer using the in-repo puppet config in production, nor would I
recommend anyone do so again in the future. In addition, copying and pasting
default configs into the docs isn't great, since they are a pain to maintain.
Let's just remove this from the docs.
2015-05-28 16:09:44 +01:00
Ed Morley 705140707e Bug 1074151 - Vagrant: Add a Vagrantfile pref for serving ui/ vs dist/
One of the few differences between vagrant.pp and production.pp is from
which directory the UI is served. This change adds the ability to toggle
the directory from the Vagantfile directly, thereby bringing
production.pp (and the duplication it brings) closer to being obsolete.
2015-05-28 14:06:09 +01:00
Ed Morley ae98e9d859 Bug 1168770 - web-server.js: Serve index.html by default, if present
Instead of always displaying the directory file listing, if index.html
is present we serve that instead. This not only fixes the remaining
broken URLs when using web-server.js, but also means people can click
the "Starting web server at <URL>" link in the console and immediately
see Treeherder, without having to then manually navigate to index.html
themselves.
2015-05-28 11:13:30 +01:00
Ed Morley 76c5b0de69 Bug 1085579 - Docs: Use the Read the Docs theme for local builds too
Using the instructions from:
https://docs.readthedocs.org/en/latest/theme.html#how-do-i-use-this-locally-and-on-read-the-docs
2015-05-26 13:56:18 +01:00
Maja Frydrychowicz 2e21d140b8 Look up credentials for a project 2015-05-25 16:01:41 -04:00
William Lachance 7a63110603 Bug 1167364 - Expand documentation on ingesting a single push
Give some extra details related to Talos data, among other things
2015-05-21 18:32:17 -04:00