Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Issue 2491643003: Update waterfall templates to include Milo link. (Closed)

Created:
4 years, 1 month ago by dnj
Modified:
4 years, 1 month ago
Reviewers:
estaab, iannucci
CC:
chromium-reviews, infra-reviews+build_chromium.org
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Update waterfall templates to include Milo link. Milo is currently ingesting all of the build data for all of the waterfalls. Add a link to each waterfall with a parallel Milo view that clicks through to Milo. In order to do this, we add core "milo.js" and "milo.css" files to "chromium"'s "public_html" folders. We also augment "layout.html" to execute the "milo.js" injection function. Every waterfall with its own "layout.html" template has been updated to include the "milo.js" import and injection code. Every waterfall with its own "public_html" directory has had the Milo JavaScript, CSS, and image files symlinked to "chromium/" so they can access the resources referenced by their "layout.html". The injection function examines the current URL and decides if it maps to a view Milo supports, namely a builder or build view. If it does, a [LogDog] tab is injected into the header that links to the Milo equivalent view. The BuildBot base template is augmented to pass the master name to "milo.js". This is the actual name used by Milo, as opposed to the chromegw URL name which can occasionally vary. The modified template parameter is protected with the "|default" filter function so masters whose templates update but aren't restarted won't fail to render. BUG=None TEST=local - Started masters with affected "layout.html" pages locally, seem to be working! R=estaab@chromium.org, iannucci@chromium.org Committed: https://chromium.googlesource.com/chromium/tools/build/+/48c11b45c0c209234d68833b33c5b81dd282e633

Patch Set 1 #

Total comments: 5

Patch Set 2 : Common resources bucket, only for "chromium" templates. #

Total comments: 2

Patch Set 3 : Remove superfluous comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -0 lines) Patch
A masters/master.chromium.gatekeeper/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.chromium.infra.codesearch/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.chromium.infra/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.chromium/public_html/common-resources/chrome-infra-logo-32x32.png View 1 Binary file 0 comments Download
A masters/master.chromium/public_html/common-resources/milo.css View 1 1 chunk +72 lines, -0 lines 0 comments Download
A masters/master.chromium/public_html/common-resources/milo.js View 1 1 chunk +71 lines, -0 lines 0 comments Download
M masters/master.chromium/templates/layout.html View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
A masters/master.chromiumos.tryserver/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.chromiumos/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.client.dart/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.client.drmemory/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.client.dynamorio/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.client.nacl/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.client.skia/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.client.syzygy/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.client.wasm.llvm/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.tryserver.blink/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.tryserver.chromium.linux/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
A masters/master.tryserver.chromium.perf/public_html/common-resources View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/buildbot_8_4p1/buildbot/status/web/base.py View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
dnj
4 years, 1 month ago (2016-11-09 23:00:30 UTC) #1
dnj
PTAL. Screenshots: - Static: https://screenshot.googleplex.com/Agqf5hJ26fr.png - On Hover: https://screenshot.googleplex.com/bSVU80Tm8Po.png
4 years, 1 month ago (2016-11-09 23:03:01 UTC) #2
estaab
Looks great, just a couple of comments. Could we split this into 2 CLs with ...
4 years, 1 month ago (2016-11-09 23:24:56 UTC) #3
dnj
The problem with targeting masters has to do with the way templates are used. Basically, ...
4 years, 1 month ago (2016-11-10 00:22:55 UTC) #4
estaab
Just ones using the chromium template in the first pass sounds good. Just be safe ...
4 years, 1 month ago (2016-11-10 00:29:27 UTC) #5
estaab
lgtm
4 years, 1 month ago (2016-11-10 00:29:34 UTC) #6
dnj
Constrained to just Chromium waterfalls. Moved the common resources into a "common-resources" folder so we ...
4 years, 1 month ago (2016-11-10 05:34:53 UTC) #7
iannucci
lgtm https://codereview.chromium.org/2491643003/diff/20001/masters/master.chromium/templates/layout.html File masters/master.chromium/templates/layout.html (right): https://codereview.chromium.org/2491643003/diff/20001/masters/master.chromium/templates/layout.html#newcode74 masters/master.chromium/templates/layout.html:74: <!-- Identify opportunities to redirect to Milo and ...
4 years, 1 month ago (2016-11-10 20:56:41 UTC) #8
dnj
https://codereview.chromium.org/2491643003/diff/20001/masters/master.chromium/templates/layout.html File masters/master.chromium/templates/layout.html (right): https://codereview.chromium.org/2491643003/diff/20001/masters/master.chromium/templates/layout.html#newcode74 masters/master.chromium/templates/layout.html:74: <!-- Identify opportunities to redirect to Milo and populate. ...
4 years, 1 month ago (2016-11-10 22:42:03 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2491643003/40001
4 years, 1 month ago (2016-11-10 22:42:19 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 22:52:20 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/tools/build/+/48c11b45c0c209234d68...

Powered by Google App Engine
This is Rietveld 408576698