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

Issue 794493004: Refactor downloading archives in archive_info.py (Closed)

Created:
6 years ago by aiolos (Not reviewing)
Modified:
5 years, 10 months ago
Reviewers:
nednguyen, dtu
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move the download out of initialization so we can correctly throw errors while still supporting UserStories using local data. Just log warnings when trying to download archives without a specified bucket or where the user doesn't have permission to access the archive's bucket but has a local copy of the archive. Raises cloud storage errors when there is no local copy of the archive and the user doesn't have permission to access the archive's bucket. Also removes the ignore_archive parameter since it is only used in the smoke test and doesn't provide any information that can't be gleaned from the UserStory not having a bucket. BUG= Committed: https://crrev.com/0934df74b30f1b6eb5036dbc2a01b4bf4b668c28 Cr-Commit-Position: refs/heads/master@{#310542}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove the serving_dir changes. #

Total comments: 7

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -40 lines) Patch
M tools/telemetry/telemetry/unittest_util/page_set_smoke_test.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/user_story/user_story_runner.py View 1 3 chunks +4 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/user_story/user_story_runner_unittest.py View 4 chunks +6 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/wpr/archive_info.py View 1 2 2 chunks +44 lines, -31 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
aiolos (Not reviewing)
6 years ago (2014-12-19 22:33:22 UTC) #2
aiolos (Not reviewing)
6 years ago (2014-12-23 18:45:51 UTC) #4
nednguyen
On 2014/12/23 18:45:51, aiolos (OOO Dec 22-28th) wrote: Seems like there are many different refactorings ...
6 years ago (2014-12-23 18:51:04 UTC) #5
nednguyen
https://codereview.chromium.org/794493004/diff/1/tools/telemetry/telemetry/user_story/user_story_set.py File tools/telemetry/telemetry/user_story/user_story_set.py (right): https://codereview.chromium.org/794493004/diff/1/tools/telemetry/telemetry/user_story/user_story_set.py#newcode135 tools/telemetry/telemetry/user_story/user_story_set.py:135: cloud_storage.GetIfChanged(path, self.bucket) I am not convinced about moving this ...
6 years ago (2014-12-23 18:56:23 UTC) #6
aiolos (Not reviewing)
On 2014/12/23 18:56:23, nednguyen wrote: > https://codereview.chromium.org/794493004/diff/1/tools/telemetry/telemetry/user_story/user_story_set.py > File tools/telemetry/telemetry/user_story/user_story_set.py (right): > > https://codereview.chromium.org/794493004/diff/1/tools/telemetry/telemetry/user_story/user_story_set.py#newcode135 > ...
6 years ago (2014-12-23 19:05:19 UTC) #7
aiolos (Not reviewing)
On 2014/12/23 18:51:04, nednguyen wrote: > On 2014/12/23 18:45:51, aiolos (OOO Dec 22-28th) wrote: > ...
6 years ago (2014-12-23 19:07:04 UTC) #8
nednguyen
On 2014/12/23 19:07:04, aiolos (OOO Dec 22-28th) wrote: > On 2014/12/23 18:51:04, nednguyen wrote: > ...
6 years ago (2014-12-23 20:14:48 UTC) #9
aiolos (Not reviewing)
On 2014/12/23 20:14:48, nednguyen wrote: > On 2014/12/23 19:07:04, aiolos (OOO Dec 22-28th) wrote: > ...
5 years, 11 months ago (2015-01-06 18:51:04 UTC) #10
nednguyen
Please update the Description to explain how you change the behavior of wpr_archive updating mechanism. ...
5 years, 11 months ago (2015-01-06 19:03:22 UTC) #11
aiolos (Not reviewing)
On 2015/01/06 19:03:22, nednguyen wrote: > Please update the Description to explain how you change ...
5 years, 11 months ago (2015-01-07 01:09:38 UTC) #12
dtu
lgtm https://codereview.chromium.org/794493004/diff/20001/tools/telemetry/telemetry/user_story/user_story_runner.py File tools/telemetry/telemetry/user_story/user_story_runner.py (right): https://codereview.chromium.org/794493004/diff/20001/tools/telemetry/telemetry/user_story/user_story_runner.py#newcode307 tools/telemetry/telemetry/user_story/user_story_runner.py:307: def _UpdateAndCheckArchives(archive_data_file, wpr_archive_info, _CheckAndUpdateArchives? https://codereview.chromium.org/794493004/diff/20001/tools/telemetry/telemetry/wpr/archive_info.py File tools/telemetry/telemetry/wpr/archive_info.py (right): ...
5 years, 11 months ago (2015-01-08 02:07:38 UTC) #13
nednguyen
https://codereview.chromium.org/794493004/diff/20001/tools/telemetry/telemetry/wpr/archive_info.py File tools/telemetry/telemetry/wpr/archive_info.py (right): https://codereview.chromium.org/794493004/diff/20001/tools/telemetry/telemetry/wpr/archive_info.py#newcode61 tools/telemetry/telemetry/wpr/archive_info.py:61: def DownloadArchivesIfNeeded(self): On 2015/01/07 01:09:38, aiolos wrote: > On ...
5 years, 11 months ago (2015-01-08 02:13:16 UTC) #14
aiolos (Not reviewing)
https://codereview.chromium.org/794493004/diff/20001/tools/telemetry/telemetry/wpr/archive_info.py File tools/telemetry/telemetry/wpr/archive_info.py (right): https://codereview.chromium.org/794493004/diff/20001/tools/telemetry/telemetry/wpr/archive_info.py#newcode24 tools/telemetry/telemetry/wpr/archive_info.py:24: class ArchiveError(Exception): On 2015/01/08 02:07:38, dtu wrote: > nit: ...
5 years, 11 months ago (2015-01-08 02:31:53 UTC) #15
nednguyen
lgtm
5 years, 11 months ago (2015-01-08 05:37:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/794493004/40001
5 years, 11 months ago (2015-01-08 05:38:48 UTC) #18
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
5 years, 11 months ago (2015-01-08 07:40:18 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/794493004/40001
5 years, 11 months ago (2015-01-08 17:35:57 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-08 18:42:44 UTC) #23
commit-bot: I haz the power
5 years, 11 months ago (2015-01-08 18:43:29 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0934df74b30f1b6eb5036dbc2a01b4bf4b668c28
Cr-Commit-Position: refs/heads/master@{#310542}

Powered by Google App Engine
This is Rietveld 408576698