|
|
Chromium Code Reviews|
Created:
4 years, 3 months ago by romax Modified:
4 years, 3 months ago CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description[Offline Pages] Fix flaky test due to actual loading of database.
The flaky was due to the issue when trying to load OfflinePageModel, it
would crash with SQLite Error 1802. Fixed by mock the OfflinePageModel
if we're in a testing environment.
BUG=644570
Committed: https://crrev.com/dd2258ce9e678e3bdbcfe814649851882dfe8118
Cr-Commit-Position: refs/heads/master@{#417465}
Patch Set 1 #Patch Set 2 : [Offline Pages] Fix flaky test due to actual loading of database. #Patch Set 3 : fixing build. #
Total comments: 1
Patch Set 4 : Comments. #Patch Set 5 : Move to testing_profile #Patch Set 6 : fixing build. #Patch Set 7 : Make include guarded by build flag check. #
Total comments: 1
Patch Set 8 : Removing unused includes. #Patch Set 9 : Add offline_pages:test_support as dependency. #
Messages
Total messages: 36 (24 generated)
The CQ bit was checked by romax@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by romax@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
romax@chromium.org changed reviewers: + dimich@chromium.org, thestig@chromium.org
thestig@chromium.org: Please review changes in chrome dimich@chromium.org: Please review changes in components/ Please let me know if it's not appropriate to put stub* as part of the offline_pages target. Thanks!
It's better to avoid adding the test code to the non-test target. Perhaps you want to add offline_pages' test target to the dependencies of the test target that builds the test you are fixing?
fgorski@chromium.org changed reviewers: + fgorski@chromium.org
drive by based on discussion https://codereview.chromium.org/2322793003/diff/40001/chrome/browser/android/... File chrome/browser/android/offline_pages/offline_page_model_factory.cc (right): https://codereview.chromium.org/2322793003/diff/40001/chrome/browser/android/... chrome/browser/android/offline_pages/offline_page_model_factory.cc:23: std::unique_ptr<KeyedService> BuildMockOfflinePageModelFactory( how about moving this to testing_profile and appropriately sorting out the deps, per our discussion.
updated per comments. PTAL, thanks!
test/BUILD.gn may need to be updated.
The CQ bit was checked by romax@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clan...) android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...) cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...) cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by romax@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Please consider asking chrome/browser/android/offline_pages/OWNERS + chrome/test/base/OWNERS next time. https://codereview.chromium.org/2322793003/diff/120001/chrome/test/base/testi... File chrome/test/base/testing_profile.cc (right): https://codereview.chromium.org/2322793003/diff/120001/chrome/test/base/testi... chrome/test/base/testing_profile.cc:52: #include "chrome/common/features.h" Is this needed?
The CQ bit was checked by romax@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by romax@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm
It'd be better to "Publish+Mail Comments" after you upload updated patch so
there is a positive confirmation that the CL is ready for another look. People
usually either reply to comments with "Done" or put a short note ("PTAL") into
such reply. Just uploading a patch does not send any signal to reviewers...
rs lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Thanks for the comments and the tip. I wasn't sending out emails since I wanted to do a dry-run first, since another building platform may report something to fix :) Thanks!
The CQ bit was checked by romax@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #9 (id:160001)
Message was sent while issue was closed.
Description was changed from ========== [Offline Pages] Fix flaky test due to actual loading of database. The flaky was due to the issue when trying to load OfflinePageModel, it would crash with SQLite Error 1802. Fixed by mock the OfflinePageModel if we're in a testing environment. BUG=644570 ========== to ========== [Offline Pages] Fix flaky test due to actual loading of database. The flaky was due to the issue when trying to load OfflinePageModel, it would crash with SQLite Error 1802. Fixed by mock the OfflinePageModel if we're in a testing environment. BUG=644570 Committed: https://crrev.com/dd2258ce9e678e3bdbcfe814649851882dfe8118 Cr-Commit-Position: refs/heads/master@{#417465} ==========
Message was sent while issue was closed.
Patchset 9 (id:??) landed as https://crrev.com/dd2258ce9e678e3bdbcfe814649851882dfe8118 Cr-Commit-Position: refs/heads/master@{#417465} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
