-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Restart ash chrome when it crashed in tests"
This reverts commit f3f8964. Reason for revert: This change introduced too many ash/lacros details to //content/. As discussed with jam@ and erikchen@, we decided to not support auto restart ash. It doesn't happen often enough that we have to address the issue. Original change's description: > Restart ash chrome when it crashed in tests > > Occasionally, a bad test can crash ash chrome, which then cause > all following tests fail. With this change, all the following tests > will not fail due to crashed ash chrome. > > Currently, ash chrome is started by build/lacros/test_runner.py > before invoke test binary. It is impossible to reuse any logic there. > So we modify browser test framework. When the framework starts Lacros > and fails to connect to ash chrome, we expect ash chrome was crashed > and then try to start a new ash chrome. > > After all test runner processes are finished, the test launcher needs > to terminate all ash chrome processes started by test binary. Because > all ash processes need to outlive their parent processes(test runner), > or else ash chrome will be killed and restarted for every test. > > This change is also needed to support 2 requests: > crbug.com/1401750: Run interactive_ui_tests in parallel. > crbug.com/1368284: Support ash feature flags for Lacros browser tests. > > PRE_CrashAshChrome crash ash chrome intentionally. Without this change, > all other tests report as crashed. With this change, only > PRE_CrashAshChrome report as crashed and all following tests report as > passed. Unfortunately I can't submit that test because PRE_CrashAshChrome is intentionally crash. But all the logic here will > be used to support crbug.com/1368284 so we will have test coverage. > > Bug: 1401520 > Test: crrev.com/c/4112333 shows a demo browser test. The > Change-Id: I6b44a8d2fd4ccfc4c972b0323fb77ae356efb936 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4113004 > Reviewed-by: Erik Chen <erikchen@chromium.org> > Reviewed-by: Colin Blundell <blundell@chromium.org> > Commit-Queue: Colin Blundell <blundell@chromium.org> > Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1086245} Bug: 1401520 Change-Id: I0a632273b0abfd81c601194b894d6801ed471e64 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4261454 Reviewed-by: Colin Blundell <blundell@chromium.org> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Sven Zheng <svenzheng@chromium.org> Reviewed-by: John Abd-El-Malek <jam@chromium.org> Cr-Commit-Position: refs/heads/main@{#1106914}
- Loading branch information
Sven Zheng
authored and
Chromium LUCI CQ
committed
Feb 17, 2023
1 parent
8185a81
commit b74937b
Showing
9 changed files
with
9 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters