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

Issue 2251403002: [MD History] Use modified time to check staleness of vulcanize and crisper. (Closed)

Created:
4 years, 4 months ago by calamity
Modified:
4 years, 4 months ago
Reviewers:
tsergeant, Dan Beam
CC:
chromium-reviews, Patrick Dubroy, michaelpg+watch-md-ui_chromium.org, dbeam+watch-history_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD History] Use modified time to check staleness of vulcanize and crisper. This CL changes the MD History presubmit script to check the modified time to check if vulcanize needs to be run. This will throw up some false positives but should be safer overall. BUG=629406 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/ecf295d7196a5865ce7edeb753dff19acf83db69 Cr-Commit-Position: refs/heads/master@{#413063}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -3 lines) Patch
M chrome/browser/resources/md_history/PRESUBMIT.py View 1 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
calamity
4 years, 4 months ago (2016-08-18 06:39:03 UTC) #3
Dan Beam
hey, cool! I like slowly reimplementing build systems as well!
4 years, 4 months ago (2016-08-18 19:22:50 UTC) #4
tsergeant
lgtm https://codereview.chromium.org/2251403002/diff/1/chrome/browser/resources/md_history/PRESUBMIT.py File chrome/browser/resources/md_history/PRESUBMIT.py (right): https://codereview.chromium.org/2251403002/diff/1/chrome/browser/resources/md_history/PRESUBMIT.py#newcode5 chrome/browser/resources/md_history/PRESUBMIT.py:5: import os.path, time Nit: imports on separate lines
4 years, 4 months ago (2016-08-19 00:24:38 UTC) #5
calamity
https://codereview.chromium.org/2251403002/diff/1/chrome/browser/resources/md_history/PRESUBMIT.py File chrome/browser/resources/md_history/PRESUBMIT.py (right): https://codereview.chromium.org/2251403002/diff/1/chrome/browser/resources/md_history/PRESUBMIT.py#newcode5 chrome/browser/resources/md_history/PRESUBMIT.py:5: import os.path, time On 2016/08/19 00:24:37, tsergeant wrote: > ...
4 years, 4 months ago (2016-08-19 02:01:11 UTC) #8
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/2251403002/20001
4 years, 4 months ago (2016-08-19 06:04:06 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-19 06:07:41 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/ecf295d7196a5865ce7edeb753dff19acf83db69 Cr-Commit-Position: refs/heads/master@{#413063}
4 years, 4 months ago (2016-08-19 06:11:44 UTC) #16
Dan Beam
doing this for history is cool but you know what's cooler? doing it for both ...
4 years, 4 months ago (2016-08-19 06:30:10 UTC) #18
calamity
On 2016/08/19 06:30:10, Dan Beam wrote: > doing this for history is cool > > ...
4 years, 4 months ago (2016-08-19 12:59:27 UTC) #19
Dan Beam
4 years, 4 months ago (2016-08-19 17:42:23 UTC) #20
Message was sent while issue was closed.
On 2016/08/19 12:59:27, calamity wrote:
> On 2016/08/19 06:30:10, Dan Beam wrote:
> > doing this for history is cool
> > 
> > but you know what's cooler?
> > 
> > doing it for both history AND downloads, cuz they're both like, vulcanized
you
> > know.
> 
> I'll get around to making a more proper presubmit script that just runs
> vulcanize and checks if anything would have changed. This is a more temporary
> solution.

yeah, that's not a bad idea as well.

and if you really want to improve vulcanize, maybe consider not writing the
vulcanized files unless they differ so rebuilding is a no-op?

Powered by Google App Engine
This is Rietveld 408576698