treeherder
treeherder copied to clipboard
Bug 1863187 - Add "how to run locally" information into Artifacts and Debugging Tools tab.
for https://bugzilla.mozilla.org/show_bug.cgi?id=1863187
(this replaces https://github.com/mozilla/treeherder/pull/7868 for the "how to run locally" part.
https://github.com/mozilla/treeherder/pull/7868 could still be used with some rework, to show the single-line description field in the TreeHerder UI.)
Added one feature and one minor tweak:
- Add "How to run locally" section to "Artifacts and Debugging Tools" tab
- This shows the content of
extra.local-runfield of the job YAML file - The field can contain the commands, explanation, and links to document
- This shows the content of
- Add "Artifacts" header above artifacts list
This modifies the database in the following way:
- Add
local_runcolumn tojob_typetable- this column defaults to empty string
the job's extra.local-run field is retrieved from the task cluster's task query's result.
Here's screenshot with this patch
the data is ingested from https://treeherder.mozilla.org/jobs?repo=try&revision=efa598d1c2de420094d36619ed03af1cbbff7939
possible followup:
- maybe we could format the content with markdown, instead of using
<pre>(if introducing markdown parser there isn't too much troublesome)
Codecov Report
Attention: 3 lines in your changes are missing coverage. Please review.
Comparison is base (
cf69e68) 76.83% compared to head (37b06a6) 76.85%. Report is 4 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #7869 +/- ##
==========================================
+ Coverage 76.83% 76.85% +0.01%
==========================================
Files 538 539 +1
Lines 26621 26641 +20
Branches 3360 3365 +5
==========================================
+ Hits 20455 20475 +20
Misses 6001 6001
Partials 165 165
| Files | Coverage Δ | |
|---|---|---|
| tests/webapp/api/test_jobs_api.py | 100.00% <ø> (ø) |
|
| treeherder/etl/job_loader.py | 87.02% <ø> (ø) |
|
| treeherder/etl/jobs.py | 95.06% <100.00%> (+0.29%) |
:arrow_up: |
| treeherder/etl/taskcluster_pulse/handler.py | 57.61% <100.00%> (+0.20%) |
:arrow_up: |
| ...eherder/model/migrations/0031_jobtype_local_run.py | 100.00% <100.00%> (ø) |
|
| treeherder/model/models.py | 82.30% <100.00%> (+0.02%) |
:arrow_up: |
| treeherder/webapp/api/jobs.py | 82.22% <ø> (ø) |
|
| treeherder/webapp/api/serializers.py | 88.15% <ø> (ø) |
|
| ui/shared/JobArtifacts.jsx | 92.30% <82.35%> (+1.13%) |
:arrow_up: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.