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

36 Коммитов

Автор SHA1 Сообщение Дата
Ed Morley bd870cf8ce
Bug 1441493 - Use rel="noopener" for all target != null links (#3275)
This helps prevent:
https://www.owasp.org/index.php/Reverse_Tabnabbing

We're not also using `noreferrer`, since most browsers now support
`noopener` (https://caniuse.com/#search=noopener) and the link targets
are all Mozilla properties where the referrer may be useful.

The auth.js `window.open()` has not been changed, since the login
callback makes use of `window.opener`.
2018-02-27 19:17:42 +00:00
Ed Morley c02da51d84 Bug 1420891 - Docs: Fix broken or redirecting links
As found by running `make -C docs linkcheck`.
2017-11-28 16:56:45 +00:00
Ed Morley f7f38ef4d0
Bug 1257602 - Remove support for revision_hash (#2983)
Now that no submissions are using revision_hash, it can be removed.
This removes everything but the model field, which will be handled
later.

I've removed revision_hash from the Pulse jobs schema without bumping
the version, which wouldn't normally be ok, but no one is still using
it, and I'd rather have explicit failures later than if we left the
schema unchanged.
2017-11-28 00:09:17 +00: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
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
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
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
Dave Hunt 6acee29138 Docs: Fix link to Pulse Guardian (#2067) 2017-01-06 17:56:23 +00: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
camd 93efadb189 Bug 1286939 - Instructions for registering a Pulse Job Exchange (#1690) 2016-07-21 13:21:04 -07:00
Ed Morley 6001db3761 Bug 1279213 - Python client: Combine host and protocol into server_url
This makes it harder to inadvertently use HTTPS with local Vagrant
hostnames, as well as reduces the number of config variables users of
the client have to keep track of.

The docs have been tweaked to encourage people using production
Treeherder to just omit the `server_url` argument entirely, which
reduces the boilerplate, and also means they'll be less affected by
changes in the future.
2016-06-23 09:47:46 +01:00
Ed Morley f66cd6db93 Bug 1267683 - Docs: Move authentication section under 'REST API'
Since in the future we'll be adding rate limiting for all API requests
and as such authentication is not specific to just data submissions.
2016-05-30 12:11:30 +01:00
Ed Morley c49e695390 Bug 1267683 - Docs: Move Python client section under 'REST API' 2016-05-30 12:11:30 +01:00
Shing Lyu 8f14d9f206 Fixed typos in submitting data doc 2016-04-13 14:36:16 -04:00
Cameron Dawson 2a9dbefa49 Bug 1199364 - Use revsion instead of revision_hash for resultsets
New resultsets will still store a value in their ``revision_hash`` field, but it will
just be the same value as their ``long_revision`` field.

This will log an exception in New Relic when a new resultset or job is posted
to the API with only a ``revision_hash``and not a ``revision`` value.

This also switches to using the longer 40 char revisions along side the
12 char revisions.  But we leverage the longer ones for most actions.  The
short revisions are stored and used so that people and the UI can support
locating a resultset (or setting ranges) with short revisions.
2016-03-17 15:48:49 -07: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 2c89b988f6 Bug 1217496 - Docs: Mention Hawk auth requires correct system clock
Since if submitters' clocks are out of sync, Hawk auth will fail.
2015-10-23 13:39:08 +01:00
William Lachance a164383961 Bug 1212931 - Update the client documentation to describe hawk auth
Since the old auth "TreeherderAuth" system is now deprecated.
2015-10-19 12:50:52 -04:00
Ed Morley 5bd8132ee2 Bug 1213847 - Deprecate passing the auth object to the client's methods
Since with the new per-user Hawk credentials, the same auth object can
be used for the whole session, so should just be passed when
instantiating TreeherderClient.
2015-10-12 16:11:19 +01:00
Ed Morley 364f635917 Bug 1198536 - Remove job.build_url since it's unused 2015-10-05 20:41:34 +01:00
Cameron Dawson 4a4efd6e76 Bug 1205906 - Adds JSON schema for text_log_summary artifacts 2015-10-02 09:36:15 -07: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
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
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
Ed Morley e9efcf8584 Bug 1178224 - Remove the unused result_set_artifact table 2015-06-30 01:39:45 +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
Cameron Dawson 358e90f685 Bug 1080760 - Auto-generate bug suggestions asynchronously
This introduces two new ways to generate ``Bug suggestions`` artifacts from
a ``text_log_summary`` artifact
1. POST a ``text_log_summary`` on the ``/artifact`` endpoint
2. POST a ``text_log_summary`` with a job on the ``/jobs`` endpoint.

Both of these cases will schedule an asynchronous task to generate the
``Bug suggestions`` artifact with ``celery``.

Artifact generation scenarios:

JobCollections
^^^^^^^^^^^^^^
Via the ``/jobs`` endpoint:

1. Submit a Log URL with no ``parse_status`` or ``parse_status`` set to "pending"
    * This will generate ``text_log_summary`` and ``Bug suggestions`` artifacts
    * Current *Buildbot* workflow

2. Submit a Log URL with ``parse_status`` set to "parsed" and a ``text_log_summary`` artifact
    * Will generate a ``Bug suggestions`` artifact only
    * Desired future state of *Task Cluster*

3. Submit a Log URL with ``parse_status`` of "parsed", with ``text_log_summary`` and ``Bug suggestions`` artifacts
    * Will generate nothing

ArtifactCollections
^^^^^^^^^^^^^^^^^^^
Via the ``/artifact`` endpoint:

1. Submit a ``text_log_summary`` artifact
    * Will generate a ``Bug suggestions`` artifact if it does not already exist for that job.

2. Submit ``text_log_summary`` and ``Bug suggestions`` artifacts
    * Will generate nothing
    * This is *Treeherder's* current internal log parser workflow
2015-05-20 16:28:32 -07: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
William Lachance dc084310f6 Bug 1163674 - Update treeherder client to be more generic
* Create a generic TreeherderClient class
* Add a single method called `post_collection` which takes care of all
  details of validation, submitting stuff and raising errors
* Also add a new update_parse_status method, for updating status (replaces
  manual calls to post information on raw TreeherderRequest)
2015-05-19 17:32:22 -04:00
Jonathan French 19b71bc4b4 Bug 1164881 - Add MPL2.0 headers to recent treeherder repo files 2015-05-14 11:45:26 -04:00
William Lachance 0e6e61fbbe Bug 1159831 - Make treeherder use in-tree copy of treeherder-client 2015-05-01 13:34:29 -04:00