|
|
Created:
4 years, 1 month ago by Ken Rockot(use gerrit already) Modified:
4 years, 1 month ago Reviewers:
yzshen1 CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionMojo EDK: Clean shutdown for ScopedIPCSupport in tests
This properly supports clean shutdown in test processes which
initialize the EDK, blocking ScopedIPCSupport destruction to wait
on EDK shutdown. Fixes some rare races in child process exit which
can cause premature message pipe breakage.
BUG=666356
R=yzshen@chromium.org
TBR=vabr@chromium.org (ICWYU)
TBR=ben@chromium.org (toplevel ICWYU)
Committed: https://crrev.com/cf1d7d0b6ef21635ebaaa217389f108a3d6db6e8
Cr-Commit-Position: refs/heads/master@{#433795}
Patch Set 1 #
Total comments: 1
Patch Set 2 : . #Patch Set 3 : . #Patch Set 4 : . #Patch Set 5 : . #Patch Set 6 : . #Patch Set 7 : . #Patch Set 8 : . #Patch Set 9 : . #Patch Set 10 : . #Patch Set 11 : MORE ICWYU #Patch Set 12 : table flip emoji #
Messages
Total messages: 76 (59 generated)
The CQ bit was checked by rockot@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.
Please take a look. Thanks!
https://codereview.chromium.org/2514093002/diff/1/mojo/edk/test/scoped_ipc_su... File mojo/edk/test/scoped_ipc_support.cc (right): https://codereview.chromium.org/2514093002/diff/1/mojo/edk/test/scoped_ipc_su... mojo/edk/test/scoped_ipc_support.cc:39: quit_closure.Run(); (My understanding of the embedder API is purely from the comments. :)) I think this method is called from the IO thread, which is usually different from the thread where the destructor of ScopedIPCSupport is called. If that is the case, calling quit_closure.Run directly is not safe, right?
The CQ bit was checked by rockot@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...
On 2016/11/20 at 06:07:35, yzshen wrote: > https://codereview.chromium.org/2514093002/diff/1/mojo/edk/test/scoped_ipc_su... > File mojo/edk/test/scoped_ipc_support.cc (right): > > https://codereview.chromium.org/2514093002/diff/1/mojo/edk/test/scoped_ipc_su... > mojo/edk/test/scoped_ipc_support.cc:39: quit_closure.Run(); > (My understanding of the embedder API is purely from the comments. :)) > > I think this method is called from the IO thread, which is usually different from the thread where the destructor of ScopedIPCSupport is called. If that is the case, calling quit_closure.Run directly is not safe, right? You are correct. I've changed it to always PostTask to whatever ThreadTaskRunnerHandle is active within the destructor.
The CQ bit was checked by rockot@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_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
lgtm
The CQ bit was checked by rockot@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...
Description was changed from ========== Mojo EDK: Clean shutdown for test processes This properly supports clean shutdown in EDK test processes, allowing IO thread shutdown to be blocked on internal EDK cleanup. Fixes some rare races in child process exit which can cause message pipe breakage. This does not fix all mojo_system_unittests flake, but it addresses one of the two outstanding issues. BUG=666356 R=yzshen@chromium.org ========== to ========== Mojo EDK: Clean shutdown for ScopedIPCSupport in tests This properly supports clean shutdown in test processes which initialize the EDK, blocking ScopedIPCSupport destruction to wait on EDK shutdown. Fixes some rare races in child process exit which can cause premature message pipe breakage. BUG=666356 R=yzshen@chromium.org ==========
The CQ bit was unchecked by rockot@chromium.org
The CQ bit was checked by rockot@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from yzshen@chromium.org Link to the patchset: https://codereview.chromium.org/2514093002/#ps60001 (title: ".")
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
Try jobs failed on following builders: 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 rockot@chromium.org
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 rockot@chromium.org
The CQ bit was checked by rockot@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: 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_...) ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by rockot@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_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by rockot@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: 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 rockot@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_chromium_clobber_rel_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...)
The CQ bit was checked by rockot@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 rockot@chromium.org
The CQ bit was checked by rockot@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from yzshen@chromium.org Link to the patchset: https://codereview.chromium.org/2514093002/#ps160001 (title: ".")
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
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...)
The CQ bit was checked by rockot@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_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by rockot@chromium.org to run a CQ dry run
The CQ bit was checked by rockot@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from yzshen@chromium.org Link to the patchset: https://codereview.chromium.org/2514093002/#ps200001 (title: "MORE ICWYU")
Description was changed from ========== Mojo EDK: Clean shutdown for ScopedIPCSupport in tests This properly supports clean shutdown in test processes which initialize the EDK, blocking ScopedIPCSupport destruction to wait on EDK shutdown. Fixes some rare races in child process exit which can cause premature message pipe breakage. BUG=666356 R=yzshen@chromium.org ========== to ========== Mojo EDK: Clean shutdown for ScopedIPCSupport in tests This properly supports clean shutdown in test processes which initialize the EDK, blocking ScopedIPCSupport destruction to wait on EDK shutdown. Fixes some rare races in child process exit which can cause premature message pipe breakage. BUG=666356 R=yzshen@chromium.org TBR=vabr@chromium.org (ICWYU) TBR=ben@chromium.org (toplevel ICWYU) ==========
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
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by rockot@chromium.org
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
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...)
The CQ bit was checked by rockot@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 rockot@chromium.org
The CQ bit was checked by rockot@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from yzshen@chromium.org Link to the patchset: https://codereview.chromium.org/2514093002/#ps220001 (title: "table flip emoji")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 220001, "attempt_start_ts": 1479790584603900, "parent_rev": "45d3d67713d9a74ba07b4b435e0feac48b2157d3", "commit_rev": "017621d6ec2a9c391aaca99944a4f5b0ebeaef38"}
Message was sent while issue was closed.
Committed patchset #12 (id:220001)
Message was sent while issue was closed.
Description was changed from ========== Mojo EDK: Clean shutdown for ScopedIPCSupport in tests This properly supports clean shutdown in test processes which initialize the EDK, blocking ScopedIPCSupport destruction to wait on EDK shutdown. Fixes some rare races in child process exit which can cause premature message pipe breakage. BUG=666356 R=yzshen@chromium.org TBR=vabr@chromium.org (ICWYU) TBR=ben@chromium.org (toplevel ICWYU) ========== to ========== Mojo EDK: Clean shutdown for ScopedIPCSupport in tests This properly supports clean shutdown in test processes which initialize the EDK, blocking ScopedIPCSupport destruction to wait on EDK shutdown. Fixes some rare races in child process exit which can cause premature message pipe breakage. BUG=666356 R=yzshen@chromium.org TBR=vabr@chromium.org (ICWYU) TBR=ben@chromium.org (toplevel ICWYU) Committed: https://crrev.com/cf1d7d0b6ef21635ebaaa217389f108a3d6db6e8 Cr-Commit-Position: refs/heads/master@{#433795} ==========
Message was sent while issue was closed.
Patchset 12 (id:??) landed as https://crrev.com/cf1d7d0b6ef21635ebaaa217389f108a3d6db6e8 Cr-Commit-Position: refs/heads/master@{#433795} |