Remove an exception when using telemetry without cloud storage rights.
Remove an exception when using telemetry without cloud storage rights.

When running telemetry on my personal laptop (without any specific rights), using a open-source flow, I get the error below. 

The code assumes the access to cloud storage to read the credentials file. Page cycler seems to work without credentials and skip page that could not be accessed.

This CL removes the dependency to the could by ignoring the credentials file.

% python run_measurement page_cycler page_sets\top_10.js

Traceback (most recent call last):
  <module> at tools\perf\run_measurement:128
    sys.exit(Main())
  Main at tools\perf\run_measurement:124
    return runner.Run(new_perf_path, page_set_filenames)
  Run at tools\telemetry\telemetry\page\page_test_runner.py:39
    page_set_filenames)
  ParseCommandLine at tools\telemetry\telemetry\page\page_test_runner.py:163
    ps = self.GetPageSet(test, page_set_filenames)
  GetPageSet at tools\telemetry\telemetry\page\page_test_runner.py:102
    return page_set.PageSet.FromFile(page_set_arg)
  FromFile at tools\telemetry\telemetry\page\page_set.py:86
    return cls.FromDict(data, file_path)
  FromDict at tools\telemetry\telemetry\page\page_set.py:90
    return cls(file_path, data)
  __init__ at tools\telemetry\telemetry\page\page_set.py:60
    os.path.join(self._base_dir, self.credentials_path))
  GetIfChanged at tools\telemetry\telemetry\page\cloud_storage.py:183
    _RunCommand(['cp', url, file_path])
  _RunCommand at tools\telemetry\telemetry\page\cloud_storage.py:110
    raise CredentialsError(gsutil_path)


The error is replaced by:

% python run_measurement page_cycler page_sets\top_10.json
WARNING:root:Cannot retrieve credential file: data/credentials.json


R=tonyg@chromium.org, nduca@chromium.org

BUG=333609

Review URL: https://codereview.chromium.org/148363002

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@249869 0039d316-1c4b-4281-b951-d872f2087c98

fujunwei/chromium-crosswalk,littlstar/chromium.src,anirudhSK/chromium,dushu1203/chromium.src,dushu1203/chromium.src,jaruba/chromium.src,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,ltilve/chromium,axinging/chromium-crosswalk,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,littlstar/chromium.src,ondra-novak/chromium.src,markYoungH/chromium.src,fujunwei/chromium-crosswalk,anirudhSK/chromium,bright-sparks/chromium-spacewalk,Pluto-tv/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,dednal/chromium.src,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,patrickm/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk,axinging/chromium-crosswalk,markYoungH/chromium.src,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,bright-sparks/chromium-spacewalk,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,littlstar/chromium.src,crosswalk-project/chromium-crosswalk-efl,patrickm/chromium.src,jaruba/chromium.src,markYoungH/chromium.src,littlstar/chromium.src,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,anirudhSK/chromium,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,M4sse/chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,anirudhSK/chromium,M4sse/chromium.src,anirudhSK/chromium,Just-D/chromium-1,Jonekee/chromium.src,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,ChromiumWebApps/chromium,ltilve/chromium,ChromiumWebApps/chromium,M4sse/chromium.src,fujunwei/chromium-crosswalk,ltilve/chromium,Jonekee/chromium.src,markYoungH/chromium.src,Chilledheart/chromium,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk,dednal/chromium.src,dednal/chromium.src,dushu1203/chromium.src,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,patrickm/chromium.src,axinging/chromium-crosswalk,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,Chilledheart/chromium,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,dednal/chromium.src,ChromiumWebApps/chromium,Just-D/chromium-1,Fireblend/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,M4sse/chromium.src,Pluto-tv/chromium-crosswalk,ltilve/chromium,markYoungH/chromium.src,littlstar/chromium.src,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,ltilve/chromium,krieger-od/nwjs_chromium.src,Chilledheart/chromium,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,Chilledheart/chromium,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,littlstar/chromium.src,markYoungH/chromium.src,jaruba/chromium.src,Just-D/chromium-1,dednal/chromium.src,ondra-novak/chromium.src,markYoungH/chromium.src,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,Chilledheart/chromium,Chilledheart/chromium,fujunwei/chromium-crosswalk,Jonekee/chromium.src,hgl888/chromium-crosswalk,dednal/chromium.src,Chilledheart/chromium,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,ChromiumWebApps/chromium,Just-D/chromium-1,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,jaruba/chromium.src,chuan9/chromium-crosswalk,patrickm/chromium.src,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,M4sse/chromium.src,anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,dednal/chromium.src,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,Jonekee/chromium.src,Jonekee/chromium.src,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,krieger-od/nwjs_chromium.src,Chilledheart/chromium,krieger-od/nwjs_chromium.src,dednal/chromium.src,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,ltilve/chromium,bright-sparks/chromium-spacewalk,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ltilve/chromium,ChromiumWebApps/chromium,ChromiumWebApps/chromium,jaruba/chromium.src,axinging/chromium-crosswalk,anirudhSK/chromium,ltilve/chromium,ltilve/chromium,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk,Jonekee/chromium.src,Fireblend/chromium-crosswalk,fujunwei/chromium-crosswalk,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,jaruba/chromium.src,markYoungH/chromium.src,Pluto-tv/chromium-crosswalk,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,patrickm/chromium.src,hgl888/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,Just-D/chromium-1,littlstar/chromium.src,patrickm/chromium.src,hgl888/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,Fireblend/chromium-crosswalk,jaruba/chromium.src,patrickm/chromium.src,anirudhSK/chromium,anirudhSK/chromium,M4sse/chromium.src,markYoungH/chromium.src,dednal/chromium.src,M4sse/chromium.src,dushu1203/chromium.src