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

Issue 1582513003: Add a testing restriction for whether Google Play Services is up-to-date. (Closed)

Created:
4 years, 11 months ago by Yaron
Modified:
4 years, 11 months ago
Reviewers:
jbudorick
CC:
chromium-reviews, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a testing restriction for whether Google Play Services is up-to-date. Rather than having these tests being forced into the flaky bucket, condition their execution on a new restriction. It has the nice side-effect that one bad bot or configuration doesn't cause the test to get disabled and hopefully these will be running *somewhere*. Tested locally that the tests passed, then removed all updates to google play services and they were ignored. BUG=514449 Committed: https://crrev.com/fffffd3dbb28c8eb8e25faa14726c657717c636a Cr-Commit-Position: refs/heads/master@{#371799}

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : introduce chromerestriction #

Patch Set 4 : rebase #

Patch Set 5 : missing file #

Patch Set 6 : fixed chromerestrictionchecking #

Patch Set 7 : rebase #

Patch Set 8 : diagnostic #

Patch Set 9 : #

Patch Set 10 : y #

Patch Set 11 : proguard #

Patch Set 12 : rebase #

Total comments: 3

Patch Set 13 : cleaner #

Patch Set 14 : #

Total comments: 3

Patch Set 15 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -132 lines) Patch
M base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/android/java/proguard.flags View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/ChromeTabbedActivityLollipopAndAboveTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/ContentViewFocusTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/NavigateTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +3 lines, -4 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/TabCountLabelTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 21 chunks +20 lines, -20 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/compositor/overlays/strip/TabStripTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 18 chunks +17 lines, -18 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManagerTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 21 chunks +20 lines, -20 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/externalnav/UrlOverridingTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/media/ui/NotificationTitleUpdatedTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/omaha/UpdateMenuItemHelperTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/toolbar/BrandColorTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +7 lines, -6 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/toolbar/ToolbarTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/translate/TranslateInfoBarTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +11 lines, -10 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/widget/OverviewListLayoutTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 chunks +12 lines, -14 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/widget/ToolbarProgressBarTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/android/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeInstrumentationTestRunner.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +13 lines, -3 lines 0 comments Download
A chrome/test/android/javatests/src/org/chromium/chrome/test/util/ChromeRestriction.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +18 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (5 generated)
Yaron
I originally thought to add this to DisableIf but settled on a Restriction. There's no ...
4 years, 11 months ago (2016-01-12 22:35:48 UTC) #2
jbudorick
https://codereview.chromium.org/1582513003/diff/20001/base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java File base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java (right): https://codereview.chromium.org/1582513003/diff/20001/base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java#newcode21 base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java:21: /** Specifies the test is only valid on phone ...
4 years, 11 months ago (2016-01-13 14:43:50 UTC) #3
Yaron
https://codereview.chromium.org/1582513003/diff/20001/base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java File base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java (right): https://codereview.chromium.org/1582513003/diff/20001/base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java#newcode21 base/test/android/javatests/src/org/chromium/base/test/util/Restriction.java:21: /** Specifies the test is only valid on phone ...
4 years, 11 months ago (2016-01-13 15:54:30 UTC) #4
jbudorick
Any thoughts on the try job failure? The patch skipped those three tests correctly for ...
4 years, 11 months ago (2016-01-13 16:54:50 UTC) #5
Yaron
On 2016/01/13 16:54:50, jbudorick wrote: > Any thoughts on the try job failure? The patch ...
4 years, 11 months ago (2016-01-13 19:11:22 UTC) #6
Yaron
On 2016/01/13 19:11:22, Yaron wrote: > On 2016/01/13 16:54:50, jbudorick wrote: > > Any thoughts ...
4 years, 11 months ago (2016-01-18 20:29:04 UTC) #8
Yaron
friendly bump - I'll likely need to rebase but lmk if you're ok with this ...
4 years, 11 months ago (2016-01-25 15:04:32 UTC) #9
jbudorick
Sorry about the delay here. https://codereview.chromium.org/1582513003/diff/240001/chrome/android/javatests/src/org/chromium/chrome/browser/ContentViewFocusTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/ContentViewFocusTest.java (right): https://codereview.chromium.org/1582513003/diff/240001/chrome/android/javatests/src/org/chromium/chrome/browser/ContentViewFocusTest.java#newcode79 chrome/android/javatests/src/org/chromium/chrome/browser/ContentViewFocusTest.java:79: * @ChromeRestriction(RESTRICTION_TYPE_PHONE) nit: ChromeRestriction.RESTRICTION_TYPE_PHONE ...
4 years, 11 months ago (2016-01-25 15:21:37 UTC) #10
Yaron
https://codereview.chromium.org/1582513003/diff/240001/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ChromeRestriction.java File chrome/test/android/javatests/src/org/chromium/chrome/test/util/ChromeRestriction.java (right): https://codereview.chromium.org/1582513003/diff/240001/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ChromeRestriction.java#newcode20 chrome/test/android/javatests/src/org/chromium/chrome/test/util/ChromeRestriction.java:20: public @interface ChromeRestriction { On 2016/01/25 15:21:37, jbudorick wrote: ...
4 years, 11 months ago (2016-01-25 21:39:55 UTC) #11
jbudorick
lgtm w/ question not sure what's up with the analyze failures in your try jobs... ...
4 years, 11 months ago (2016-01-25 21:57:50 UTC) #12
Yaron
thanks for the review! I'll fix that file when I land tomorrow https://codereview.chromium.org/1582513003/diff/280001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi ...
4 years, 11 months ago (2016-01-25 22:04:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1582513003/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1582513003/300001
4 years, 11 months ago (2016-01-27 15:08:52 UTC) #16
commit-bot: I haz the power
Committed patchset #15 (id:300001)
4 years, 11 months ago (2016-01-27 16:25:32 UTC) #17
commit-bot: I haz the power
4 years, 11 months ago (2016-01-27 16:26:46 UTC) #19
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/fffffd3dbb28c8eb8e25faa14726c657717c636a
Cr-Commit-Position: refs/heads/master@{#371799}

Powered by Google App Engine
This is Rietveld 408576698