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

Issue 2537623002: Fix flaky test ContentVerifierPolicyTest.PolicyCorruptedOnStartup (Closed)

Created:
4 years ago by asargent_no_longer_on_chrome
Modified:
4 years ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix flaky test ContentVerifierPolicyTest.PolicyCorruptedOnStartup The way this test works is that the PRE_ test disables a policy force installed extension due to corruption, and then the regular test checks that it gets properly reinstalled after startup. It turns out that the reinstall gets scheduled pretty early on during startup - in ExtensionService::CheckForExternalUpdates which happens after SetUpInProcessBrowserTestFixture, and on the build waterfall that sometimes completes before SetUpOnMainThread of the tesst runs, let alone when the regular test body runs. On a local development machine I wasn't able to reproduce this unless I induced a lot of extra load using stress-ng. So the fix is to switch the test from assuming the install will happen during the regular test body to first checking whether it already happened before the start of the test, and only waiting for it if it hadn't already happened. BUG=668067 Committed: https://crrev.com/ba52f3250a997eaee8663d6731819431bca18a71 Cr-Commit-Position: refs/heads/master@{#435344}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -15 lines) Patch
M chrome/browser/extensions/content_verifier_browsertest.cc View 1 2 chunks +15 lines, -15 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
asargent_no_longer_on_chrome
4 years ago (2016-11-29 18:41:18 UTC) #6
Devlin
https://codereview.chromium.org/2537623002/diff/1/chrome/browser/extensions/content_verifier_browsertest.cc File chrome/browser/extensions/content_verifier_browsertest.cc (right): https://codereview.chromium.org/2537623002/diff/1/chrome/browser/extensions/content_verifier_browsertest.cc#newcode747 chrome/browser/extensions/content_verifier_browsertest.cc:747: reasons = prefs->GetDisableReasons(id_); Could we end the test with ...
4 years ago (2016-11-29 22:46:38 UTC) #7
asargent_no_longer_on_chrome
https://codereview.chromium.org/2537623002/diff/1/chrome/browser/extensions/content_verifier_browsertest.cc File chrome/browser/extensions/content_verifier_browsertest.cc (right): https://codereview.chromium.org/2537623002/diff/1/chrome/browser/extensions/content_verifier_browsertest.cc#newcode747 chrome/browser/extensions/content_verifier_browsertest.cc:747: reasons = prefs->GetDisableReasons(id_); On 2016/11/29 22:46:38, Devlin wrote: > ...
4 years ago (2016-11-30 01:02:05 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/2537623002/20001
4 years ago (2016-11-30 01:04:25 UTC) #10
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years ago (2016-11-30 01:04:26 UTC) #12
Devlin
lgtm
4 years ago (2016-11-30 01:41:04 UTC) #13
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/2537623002/20001
4 years ago (2016-11-30 17:30:48 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-30 18:26:36 UTC) #17
commit-bot: I haz the power
4 years ago (2016-11-30 18:31:12 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ba52f3250a997eaee8663d6731819431bca18a71
Cr-Commit-Position: refs/heads/master@{#435344}

Powered by Google App Engine
This is Rietveld 408576698