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

Issue 809473004: Make Telemetry tests check the configuration of the OSX Keychain. (Closed)

Created:
6 years ago by erikchen
Modified:
5 years, 10 months ago
Reviewers:
Robert Sesek, dtu
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Telemetry tests check the configuration of the OSX Keychain. Historically, the OSX Keychain has been misconfigured on some perf bots, which has caused Telemtry tests to stall. This CL adds checks to emit warnings if the Keychain is misconfigured. I added checks for three common misconfigurations: - Is the default Keychain locked. - Is the default Keychain configured to automatically lock after a period of time. - Are the ACLs of a commonly accessed key in the default keychain misconfigured for the perf bots. The first and third checks are performed by short C programs since the information is easily available through the Security framework, but not from the security CLI. BUG=443340 Committed: https://crrev.com/0e07c2d7073bcb7b644fe1fe02031c55f5c1ccbe Cr-Commit-Position: refs/heads/master@{#314921}

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Comment from rsesek. #

Patch Set 3 : Comments from dtu. #

Total comments: 2

Patch Set 4 : Comments from dtu. #

Patch Set 5 : Make C files gypable. #

Patch Set 6 : Remove gyp targets. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, --1 lines) Patch
M tools/perf/metrics/keychain_metric.py View 1 2 3 chunks +34 lines, -0 lines 0 comments Download
A tools/telemetry/bin/mac/x86_64/determine_if_keychain_entry_is_decryptable.sha1 View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A tools/telemetry/bin/mac/x86_64/determine_if_keychain_is_locked.sha1 View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/__init__.py View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/util/mac/README View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + tools/telemetry/telemetry/util/mac/__init__.py View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A tools/telemetry/telemetry/util/mac/determine_if_keychain_entry_is_decryptable.c View 1 2 1 chunk +94 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/util/mac/determine_if_keychain_is_locked.c View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/util/mac/keychain_helper.py View 1 2 3 1 chunk +64 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (16 generated)
erikchen
rsesek: Looking for a review of the c files determine_if_keychain_entry_is_decryptable.c and determine_if_keychain_is_locked.c. The telemetry code ...
6 years ago (2014-12-18 02:34:20 UTC) #4
Robert Sesek
Why aren't these part of the build/have gyp files? I think determine_if_keychain_entry_is_decryptable could benefit from ...
6 years ago (2014-12-18 18:32:30 UTC) #5
erikchen
rsesek: tools/telemetry/ currently contains only 1 gyp file, and that gyp file does not introduce ...
6 years ago (2014-12-18 18:54:17 UTC) #7
dtu
On 2014/12/18 18:54:17, erikchen wrote: > rsesek: tools/telemetry/ currently contains only 1 gyp file, and ...
6 years ago (2014-12-19 21:43:56 UTC) #8
erikchen
rsesek: PTAL https://codereview.chromium.org/809473004/diff/40001/tools/telemetry/telemetry/core/backends/chrome/mac/determine_if_keychain_entry_is_decryptable.c File tools/telemetry/telemetry/core/backends/chrome/mac/determine_if_keychain_entry_is_decryptable.c (right): https://codereview.chromium.org/809473004/diff/40001/tools/telemetry/telemetry/core/backends/chrome/mac/determine_if_keychain_entry_is_decryptable.c#newcode1 tools/telemetry/telemetry/core/backends/chrome/mac/determine_if_keychain_entry_is_decryptable.c:1: // Copyright 2014 The Chromium Authors. All ...
6 years ago (2014-12-19 21:54:31 UTC) #9
dtu
https://codereview.chromium.org/809473004/diff/40001/tools/telemetry/telemetry/core/backends/chrome/desktop_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/desktop_browser_backend.py (right): https://codereview.chromium.org/809473004/diff/40001/tools/telemetry/telemetry/core/backends/chrome/desktop_browser_backend.py#newcode108 tools/telemetry/telemetry/core/backends/chrome/desktop_browser_backend.py:108: if platform.system() != "Darwin": Might be unsafe to assume ...
6 years ago (2014-12-19 22:19:04 UTC) #10
Robert Sesek
Code LGTM. Should this be gyp'd at least?
6 years ago (2014-12-19 22:23:53 UTC) #11
erikchen
dtu: PTAL Also, let me know if you want me to make gyp files for ...
5 years, 10 months ago (2015-01-30 02:09:53 UTC) #14
dtu
https://codereview.chromium.org/809473004/diff/120001/tools/telemetry/telemetry/util/mac/keychain_helper.py File tools/telemetry/telemetry/util/mac/keychain_helper.py (right): https://codereview.chromium.org/809473004/diff/120001/tools/telemetry/telemetry/util/mac/keychain_helper.py#newcode47 tools/telemetry/telemetry/util/mac/keychain_helper.py:47: version = platform.GetHostPlatform().GetOSVersionNumber() The OSVersionNames are comparable, so instead ...
5 years, 10 months ago (2015-02-02 20:22:11 UTC) #15
erikchen
dtu: PTAL https://codereview.chromium.org/809473004/diff/120001/tools/telemetry/telemetry/util/mac/keychain_helper.py File tools/telemetry/telemetry/util/mac/keychain_helper.py (right): https://codereview.chromium.org/809473004/diff/120001/tools/telemetry/telemetry/util/mac/keychain_helper.py#newcode47 tools/telemetry/telemetry/util/mac/keychain_helper.py:47: version = platform.GetHostPlatform().GetOSVersionNumber() On 2015/02/02 20:22:11, dtu ...
5 years, 10 months ago (2015-02-04 00:07:38 UTC) #16
dtu
lgtm
5 years, 10 months ago (2015-02-04 00:41:37 UTC) #18
dtu
On 2015/02/04 00:41:37, dtu wrote: > lgtm Oh yeah, also the gyp file. There's already ...
5 years, 10 months ago (2015-02-04 00:42:16 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/809473004/140001
5 years, 10 months ago (2015-02-04 00:42:18 UTC) #20
erikchen
On 2015/02/04 00:42:18, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
5 years, 10 months ago (2015-02-04 02:00:40 UTC) #24
dtu
On 2015/02/04 02:00:40, erikchen wrote: > On 2015/02/04 00:42:18, I haz the power (commit-bot) wrote: ...
5 years, 10 months ago (2015-02-04 22:19:10 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/809473004/180001
5 years, 10 months ago (2015-02-04 22:27:20 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/30726)
5 years, 10 months ago (2015-02-04 23:10:33 UTC) #29
erikchen
On 2015/02/04 23:10:33, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 10 months ago (2015-02-05 00:21:37 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/809473004/200001
5 years, 10 months ago (2015-02-05 00:22:46 UTC) #33
erikchen
On 2015/02/05 00:22:46, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
5 years, 10 months ago (2015-02-05 00:29:18 UTC) #35
dtu
lgtm
5 years, 10 months ago (2015-02-05 22:52:43 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/809473004/200001
5 years, 10 months ago (2015-02-05 23:32:12 UTC) #38
commit-bot: I haz the power
Committed patchset #6 (id:200001)
5 years, 10 months ago (2015-02-06 00:11:47 UTC) #39
commit-bot: I haz the power
5 years, 10 months ago (2015-02-06 00:12:35 UTC) #40
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0e07c2d7073bcb7b644fe1fe02031c55f5c1ccbe
Cr-Commit-Position: refs/heads/master@{#314921}

Powered by Google App Engine
This is Rietveld 408576698