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

51 Коммитов

Автор SHA1 Сообщение Дата
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
Cameron Dawson 83c94d9cae Bug 1398386 - Remove exclusion editor admin panel 2017-09-12 12:25:29 -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 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
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 afa7d63d1d Bug 1336556 - Replace grunt build system with neutrino/webpack 2017-03-29 22:07:24 +01: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 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
William Lachance 012df34580 Bug 1329002 - Remove last pieces of and references to datasource 2017-01-06 15:01:19 -05: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
Jonathan French 86885b0601 Bug 1306369 - Update common tasks log parser doc example (#1881) 2016-09-29 12:49:37 -04:00
Ed Morley 1b4010f728 Bug 1297666 - Remove supervisord configs/documentation
Since it's a non-default workflow that isn't kept up to date, and is
going to be even less relevant once we switch to tooling that uses the
Procfile.
2016-08-26 15:56:53 +01:00
Ed Morley 3129b6249d Docs: Update Vagrant command examples to use current shell prompt 2016-08-19 16:06:41 +01:00
ka7 bfc5076e5a minor spelling fixes (#1686) rs=emorley 2016-07-13 21:29:58 +01:00
Ed Morley b60b90097e Bug 1286240 - Docs: Install 'wheel' at the same time as 'twine'
Since if the wheel package is not installed, it results in:
`error: invalid command 'bdist_wheel'`
2016-07-12 15:20:17 +01:00
Ed Morley 641ef6a8e2 Bug 1269715 - Docs: Add steps for releasing a new Python client version 2016-05-30 15:19:19 +01:00
Ed Morley f93329bb7b Bug 1267683 - Docs: Move 'managing API credentials' under 'REST API'
To make the content easier to find, and reduce the size of the generic
'common tasks' section.
2016-05-30 12:11:30 +01:00
Ed Morley bc48151720 Bug 1272207 - Docs: Update instructions for syncing npm-shrinkwrap.json
Since npm 3 (which ships with nodejs 5+) fixes many of the previous
issues, making the third-party npm-shrinkwrap tool redundant (the tool
is also not compatible with npm 3).
2016-05-26 15:47:12 +01:00
William Lachance cf39f8b530 Bug 1216113 - Enable django debug toolbar in vagrant 2016-05-05 18:02:24 -04:00
Ed Morley f9e3f57ed5 Bug 1270236 - Update ReadtheDocs links to the new .io domain
To save the hitting the newly added redirect from .org to .io.
2016-05-04 20:30:23 +01:00
William Lachance f44cd1c6ea Bug 1265829 - Clarify documentation around managing API credentials 2016-04-19 14:30:50 -04:00
Ed Morley e13ed57593 Bug 1244142 - Vagrant: Remove support for creating a 'scratch' VM
Vagrant now supports a snapshots feature which makes this obsolete:
https://www.vagrantup.com/docs/cli/snapshot.html

By removing the 'scratch' Vm config, we avoid confusion console messages
when performing Vagrant commands, eg:

[~/src/treeherder]$ vagrant provision
==> default: Running provisioner: puppet...
...
==> default: Notice: Finished catalog run in 14.75 seconds
==> scratch: VM not created. Moving on...
2016-01-29 16:01:16 +00:00
Ed Morley 6b6e78cc72 Bug 1239428 - Docs: Clarify process for API credential approval
* Recommend using the same `client_id` for stage/prod.
* Mention the need to file a bug (and where) for requesting approval.
* Explain prod approval needs submission to be working on stage first.
2016-01-14 17:05:14 +00:00
Ed Morley 5f9a57ef21 Bug 1225597 - Docs: Use anonymous links to avoid build warnings
Fixes:
common_tasks.rst:2: WARNING: Duplicate explicit target name: "stage".
common_tasks.rst:2: WARNING: Duplicate explicit target name: "production".

http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#anonymous-hyperlinks
2015-11-25 13:35:25 +00:00
Ed Morley 6df3aa4ac3 Bug 1225597 - Docs: Make local hawk credentials section easier to find
Also remove the duplication between the two pages, by having the
submitting data section not mention requesting credentials at all, and
leave that to the common tasks page instead.
2015-11-25 13:35:25 +00:00
Ed Morley 27941c32d9 Bug 1206381 - Add npm-shrinkwrap.json to pin grunt build dependencies
Whilst the packages listed in package.json are pinned to exact versions,
they will have their own dependencies, which may be specified via
version ranges. In order to make production/local behaviour more
deterministic, these can be pinned too, using `npm shrinkwrap`.
However the stock shrinkwrap command has a few deficiencies, so we're
using a wrapper around it:
https://github.com/uber/npm-shrinkwrap

Note: Only packages listed under `dependencies` will be shrinkwrapped,
not those under `devDependencies`. This is because using the `--dev`
option (which would include the dev packages in npm-shrinkwrap.json)
means there would then be no way to way to exclude the dev packages when
installing in production.

For more information about shrinkwrap in general, see:
https://docs.npmjs.com/cli/shrinkwrap
http://tilomitra.com/why-you-should-use-npm-shrinkwrap/
https://nodejs.org/en/blog/npm/managing-node-js-dependencies-with-shrinkwrap/
2015-10-28 09:33:17 +00:00
Ed Morley 32863c77a4 Bug 1216247 - Document how to create Hawk credentials locally
And also:
* Explain the process for request/approval on stage/prod
* Remove the unnecessary export_project_credentials step in the
"add a new repository" section, since Treeherder's ETL no longer uses
credentials.json.
2015-10-20 11:18:17 +01:00
Ed Morley 40c90e3365 Bug 1192957 - Docs: Explain the Python import style and how to run isort
In the future, the new "Code Style" page will also be used to explain
other styles/linters used in the project, eg JavaScript / ESlint.
2015-10-02 17:55:28 +01:00
Ed Morley 7241b58c5d Docs: Minor cleanup to the "Building the docs" section 2015-09-30 16:04:34 +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 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 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
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 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
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 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
Maja Frydrychowicz 2e21d140b8 Look up credentials for a project 2015-05-25 16:01:41 -04:00
Ed Morley 8507928699 Bug 1166426 - Update readthedocs links to point at the new RTD location
The docs have been moved from treeherder-service.readthedocs.org to
treeherder.readthedocs.org.
2015-05-20 22:06:33 +01:00
Ed Morley 6deb641608 Bug 1163591 - run_sql: support specifying the SQL statement via the CLI
Previously the run_sql manage.py command only supported reading the SQL
command from a specified file. It can now also be provided via the CLI.
2015-05-11 16:45:47 +01:00
Ed Morley 8478629ef4 Bug 1056877 - Update links & puppet/Vagrant config for new repo name
The 'treeherder-service' repo has been renamed to 'treeherder', ready
for when the treeherder-ui repo is imported into it. This means the
Github URL, Travis URL and directory name when cloned changes. The Read
The Docs URL cannot be changed, so for now we will leave as-is, and in
the future (once service and UI docs combined) we will create a new
project on RTD with name "treeherder".

This updates doc links and puppet/Vagrant configs, but leaves the
stage/prod deploy script alone, since renaming the directories on our
infra is non-trivial. The dev instance will need some TLC since unlike
stage/prod, it does use the puppet scripts in the repo.
2015-04-20 22:00:04 +01:00
Jonathan French d10b7a8f8d Bug 1137164 - Add a shebang to setup.py 2015-03-17 11:51:45 -04:00
Ed Morley 34419d9f35 Bug 1139894 - Docs: Add instructions for how to run flake8 2015-03-16 12:16:18 +00:00
Ed Morley 213eb3a6a3 Bug 1139894 - Docs: Move the "Running the tests" section to common tasks
At some point in the future, we may break the "Running the tests"
section out to its own file, but for now "Common Tasks" seems like a
better home than the installation instructions.
2015-03-16 12:16:17 +00:00
William Lachance 62c9867072 Bug 1142242 - Better help output and docs for run_sql management command 2015-03-12 14:03:24 -04:00
Cameron Dawson 910f3b8e29 use ``cacheResponseAndETAG`` instead of just cache 2014-08-11 11:58:21 -07:00