Missing credentials for linkedin_mobile_2018 |
||||
Issue descriptionFull log: https://chrome-swarming.appspot.com/task?id=407ba8026ba7ea10&refresh=10&show_raw=1 (ERROR) 2018-10-11 12:42:58,380 story_runner.ProcessError:100 Unhandleable error. Benchmark run will be interrupted Traceback (most recent call last): File "/b/swarming/w/ir/third_party/catapult/telemetry/telemetry/internal/story_runner.py", line 126, in _RunStoryAndProcessErrorIfNeeded state.RunStory(results) File "/b/swarming/w/ir/third_party/catapult/common/py_trace_event/py_trace_event/trace_event_impl/decorators.py", line 52, in traced_function return func(*args, **kwargs) File "/b/swarming/w/ir/third_party/catapult/telemetry/telemetry/page/shared_page_state.py", line 300, in RunStory self._current_page.Run(self) File "/b/swarming/w/ir/third_party/catapult/telemetry/telemetry/page/__init__.py", line 95, in Run shared_state.page_test.RunNavigateSteps(self, current_tab) File "/b/swarming/w/ir/third_party/catapult/common/py_trace_event/py_trace_event/trace_event_impl/decorators.py", line 75, in traced_function return func(*args, **kwargs) File "/b/swarming/w/ir/third_party/catapult/telemetry/telemetry/page/legacy_page_test.py", line 152, in RunNavigateSteps page.RunNavigateSteps(action_runner) File "/b/swarming/w/ir/tools/perf/page_sets/rendering/top_real_world_mobile.py", line 166, in RunNavigateSteps linkedin_login.LoginMobileAccount(action_runner, 'linkedin') File "/b/swarming/w/ir/tools/perf/page_sets/login_helpers/linkedin_login.py", line 49, in LoginMobileAccount credential, credentials_path=credentials_path) File "/b/swarming/w/ir/tools/perf/page_sets/login_helpers/login_utils.py", line 37, in GetAccountNameAndPassword return c['username'], c['password'] TypeError: 'NoneType' object has no attribute '__getitem__'
,
Oct 12
nednguyen@ could tools/perf/page_sets/data/credentials.json be checked in instead of downloaded from cloud storage? That way it could be reviewed, and bugs like this can be avoided.
,
Oct 12
Either #2, or we could add presubmit checks for credentials data. I think it's fairly easy for credentials.json to not be merged properly when someone makes a change. The author's local version may not reflect ToT when they modify it.
,
Oct 12
Thanks, vmiura@ for reverting. I didn't expect this happen as I assumed that I would get a merge conflict on credentials.json.sha1 in case if someone else managed to update the file in the meantime. There was no conflict because my local credentials.json.sha1 was up to date (i.e. included linkedin) but credentials.json was stale (didn't include linkedin). The problem is that credentials.json is not kept in sync with credentials.json.sha1 unless one manually removes the local credentials.json and runs a benchmark that require login. nednguyen@, is it possible to have a script that ensures consistency between the files?
,
Oct 12
#4: there is no easy way given how it's constructed. While you're working on your change & modify the credentials.json locally, there is no way to know that the newer version of the file is already uploaded to the trunk. All of the hassle of uploading credentials.json to the public cloud storage is only to make sure that spamming bots & random internet folks won't be able to easily mess with the test password. I think maybe we just need to add a simple reversible hash to "encrypt" the credentials.json file.
,
Nov 16
This was fixed by revert (#!). |
||||
►
Sign in to add a comment |
||||
Comment 1 by vmiura@google.com
, Oct 11Status: Assigned (was: Untriaged)