Closed Bug 1053228 Opened 10 years ago Closed 7 years ago

Job details: Add a link to the buildbot master page for that job

Categories

(Tree Management :: Treeherder, defect, P4)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: emorley, Unassigned)

References

Details

(Keywords: regression)

For TBPL, we currently have the bookmarklet created in bug 809908 - which allows selecting a job in TBPL, and then using the bookmarklet to generate the (non-obvious) URL required to view that job on its buildbot master.

With treeherder we should see about building this into the UI - but perhaps in a way that's not surfaced too obviously, since only people with the appropriate VPN access can use it, so it will just confuse (/annoy) everyone else.

The URL is generated as follows:

    // claimed_by_name is of the form:
    // "buildbot-master22.build.mtv1.mozilla.com:/builds/buildbot/tests1-tegra/master"
    // Port number depends on whether the job is a test, try-build or non-try-build. See:
    // https://hg.mozilla.org/build/tools/file/tip/buildfarm/maintenance/production-masters.json
    var bm = job.claimed_by_name.split(':');
    var port = /build[0-9]/.test(bm[1]) ? "8001" :
               /try[0-9]/.test(bm[1]) ? "8101" :
               /tests[0-9]/.test(bm[1]) ? "8201" :
               'unknown';
    window.open('http://' + bm[0] + ':' + port + '/builders/' + job.buildername + '/builds/' + job.buildnumber);

eg:
http://buildbot-master70.srv.releng.use1.mozilla.com:8001/builders/Linux%20x86-64%20mozilla-central%20valgrind/builds/58

claimed_by_name comes from the buildapi when using the bookmarklet, though we may be storing some of this in treeherder already (or it might make sense to, even if we don't).
Summary: Add a link to the buildbot master page for each job → Job details: Add a link to the buildbot master page for each job
Summary: Job details: Add a link to the buildbot master page for each job → Job details: Add a link to the buildbot master page for that job
Whilst TBPL didn't offer this feature, switching to treeherder means we cannot use the existing bookmarklet, so this is still a regression unless we rewrite the bookmarklet... which seems pointless when we should just build this in.
Priority: P3 → P2
Priority: P2 → P3
No longer blocks: treeherder-dev-transition
Keywords: regression
Priority: P3 → P4
Buildbot is going away.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.