|
|
Created:
3 years, 10 months ago by ehmaldonado_webrtc Modified:
3 years, 10 months ago CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com Target Ref:
refs/heads/master Project:
webrtc Visibility:
Public. |
DescriptionCheck for use_x11 before runnig desktop_capture_modules_tests on linux.
The tests need "x11/shared_x_display.h" which is not included when use_x11 is false and we're on linux.
The problem is:
screen_capturer_integration_test.cc
- requires ->
screen_drawer.h
- requires ->
screen_drawer_linux.cc
- requires ->
x11/shared_x_display.h
which is not included when use_x11 is false.
BUG=None
NOTRY=True
Review-Url: https://codereview.webrtc.org/2684683003
Cr-Commit-Position: refs/heads/master@{#16529}
Committed: https://chromium.googlesource.com/external/webrtc/+/0d729b3039fe96b74e3efc80449c6a9cf28a04ba
Patch Set 1 #
Total comments: 1
Patch Set 2 : Check for use_x11 only on linux. #
Total comments: 2
Patch Set 3 : Addressed comments. #
Messages
Total messages: 24 (14 generated)
Description was changed from ========== Check for use_x11 before runnig desktop_capture_modules_tests. BUG=None ========== to ========== Check for use_x11 before runnig desktop_capture_modules_tests. The tests need "x11/shared_x_display.h" which is not included when use_x11 is false. BUG=None ==========
ehmaldonado@webrtc.org changed reviewers: + kjellander@webrtc.org
Please take a look :) After this, all the tests compile downstream.
https://codereview.webrtc.org/2684683003/diff/20001/webrtc/modules/desktop_ca... File webrtc/modules/desktop_capture/BUILD.gn (right): https://codereview.webrtc.org/2684683003/diff/20001/webrtc/modules/desktop_ca... webrtc/modules/desktop_capture/BUILD.gn:40: if (use_x11 && rtc_desktop_capture_supported) { use_x11 is only ever true on Linux (https://cs.chromium.org/chromium/src/build/config/ui.gni?rcl=9539388cc0c6c98a...) so this would make the test no longer be built for Windows and Mac, which is not what we want, right?
Patchset #1 (id:1) has been deleted
On 2017/02/09 07:11:35, kjellander_webrtc wrote: > https://codereview.webrtc.org/2684683003/diff/20001/webrtc/modules/desktop_ca... > File webrtc/modules/desktop_capture/BUILD.gn (right): > > https://codereview.webrtc.org/2684683003/diff/20001/webrtc/modules/desktop_ca... > webrtc/modules/desktop_capture/BUILD.gn:40: if (use_x11 && > rtc_desktop_capture_supported) { > use_x11 is only ever true on Linux > (https://cs.chromium.org/chromium/src/build/config/ui.gni?rcl=9539388cc0c6c98a...) > so this would make the test no longer be built for Windows and Mac, which is not > what we want, right? Right. PTAL.
kjellander@webrtc.org changed reviewers: + sergeyu@chromium.org
Sergey, we're trying to get these tests to play nice when X11 is disabled, but I'm not sure which is the best way. What do you suggest? https://codereview.webrtc.org/2684683003/diff/40001/webrtc/modules/desktop_ca... File webrtc/modules/desktop_capture/BUILD.gn (right): https://codereview.webrtc.org/2684683003/diff/40001/webrtc/modules/desktop_ca... webrtc/modules/desktop_capture/BUILD.gn:40: if ((!is_linux || use_x11) && rtc_desktop_capture_supported) { This is somewhat hard to read. What about to change https://cs.chromium.org/chromium/src/third_party/webrtc/webrtc.gni?rcl=a48313... like: rtc_desktop_capture_supported = is_win || is_mac || (is_linux && use_x11) if the problem is that these tests are failing when X11 is not enabled?
> https://codereview.webrtc.org/2684683003/diff/40001/webrtc/modules/desktop_ca... > webrtc/modules/desktop_capture/BUILD.gn:40: if ((!is_linux || use_x11) && > rtc_desktop_capture_supported) { > This is somewhat hard to read. > What about to change > https://cs.chromium.org/chromium/src/third_party/webrtc/webrtc.gni?rcl=a48313... > like: > rtc_desktop_capture_supported = is_win || is_mac || (is_linux && use_x11) > if the problem is that these tests are failing when X11 is not enabled? Yeah, the problem is that it'd also disable the tests in desktop_capture_unittests, and I haven't had any problems with those so far.
Description was changed from ========== Check for use_x11 before runnig desktop_capture_modules_tests. The tests need "x11/shared_x_display.h" which is not included when use_x11 is false. BUG=None ========== to ========== Check for use_x11 before runnig desktop_capture_modules_tests on linux. The tests need "x11/shared_x_display.h" which is not included when use_x11 is false and we're on linux. The problem is: screen_capturer_integration_test.cc - requires -> screen_drawer.h - requires -> screen_drawer_linux.cc - requires -> x11/shared_x_display.h which is not included when use_x11 is false. BUG=None ==========
https://codereview.webrtc.org/2684683003/diff/40001/webrtc/modules/desktop_ca... File webrtc/modules/desktop_capture/BUILD.gn (right): https://codereview.webrtc.org/2684683003/diff/40001/webrtc/modules/desktop_ca... webrtc/modules/desktop_capture/BUILD.gn:40: if ((!is_linux || use_x11) && rtc_desktop_capture_supported) { On 2017/02/09 13:59:50, kjellander_webrtc wrote: > This is somewhat hard to read. > What about to change > https://cs.chromium.org/chromium/src/third_party/webrtc/webrtc.gni?rcl=a48313... > like: > rtc_desktop_capture_supported = is_win || is_mac || (is_linux && use_x11) > if the problem is that these tests are failing when X11 is not enabled? There is an issue with Chrome OS and Android. There are no screen capturers for ChromeOS or Android in WebRTC repo, but screen capturing is still supported in chrome, it's just implemented in chromium instead of in webrtc. These screen capturers may still depend on on some classes currently in desktop_capturer module (e.g. DesktopRegion), so we don't want to disable all unittests completely. Currently rtc_desktop_capture_supported disables all tests, see desktop_capture_unittests. I think we should use rtc_desktop_capture_supported to indicate that screen capturer is implemented in WebRTC. Then it makes sense setting it to "is_win || is_mac || (is_linux && use_x11)", but desktop_capture_unittests should be updated to handle it properly. Right now it's already hacked for android - see is_android condition there. I suggest updating desktop_capture_unittests target to always include all deps and all tests except screen_capturer*unittest.cc. The screen_capturer* tests should be enabled only when rtc_desktop_capture_supported=true.
Patchset #3 (id:60001) has been deleted
The CQ bit was checked by ehmaldonado@webrtc.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.webrtc.org/...
On 2017/02/09 18:52:22, Sergey Ulanov wrote: > https://codereview.webrtc.org/2684683003/diff/40001/webrtc/modules/desktop_ca... > File webrtc/modules/desktop_capture/BUILD.gn (right): > > https://codereview.webrtc.org/2684683003/diff/40001/webrtc/modules/desktop_ca... > webrtc/modules/desktop_capture/BUILD.gn:40: if ((!is_linux || use_x11) && > rtc_desktop_capture_supported) { > On 2017/02/09 13:59:50, kjellander_webrtc wrote: > > This is somewhat hard to read. > > What about to change > > > https://cs.chromium.org/chromium/src/third_party/webrtc/webrtc.gni?rcl=a48313... > > like: > > rtc_desktop_capture_supported = is_win || is_mac || (is_linux && use_x11) > > if the problem is that these tests are failing when X11 is not enabled? > > There is an issue with Chrome OS and Android. There are no screen capturers for > ChromeOS or Android in WebRTC repo, but screen capturing is still supported in > chrome, it's just implemented in chromium instead of in webrtc. These screen > capturers may still depend on on some classes currently in desktop_capturer > module (e.g. DesktopRegion), so we don't want to disable all unittests > completely. Currently rtc_desktop_capture_supported disables all tests, see > desktop_capture_unittests. > > I think we should use rtc_desktop_capture_supported to indicate that screen > capturer is implemented in WebRTC. Then it makes sense setting it to "is_win || > is_mac || (is_linux && use_x11)", but desktop_capture_unittests should be > updated to handle it properly. Right now it's already hacked for android - see > is_android condition there. > I suggest updating desktop_capture_unittests target to always include all deps > and all tests except screen_capturer*unittest.cc. The screen_capturer* tests > should be enabled only when rtc_desktop_capture_supported=true. PTAL
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_msan on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_msan/builds/17536)
lgtm
Description was changed from ========== Check for use_x11 before runnig desktop_capture_modules_tests on linux. The tests need "x11/shared_x_display.h" which is not included when use_x11 is false and we're on linux. The problem is: screen_capturer_integration_test.cc - requires -> screen_drawer.h - requires -> screen_drawer_linux.cc - requires -> x11/shared_x_display.h which is not included when use_x11 is false. BUG=None ========== to ========== Check for use_x11 before runnig desktop_capture_modules_tests on linux. The tests need "x11/shared_x_display.h" which is not included when use_x11 is false and we're on linux. The problem is: screen_capturer_integration_test.cc - requires -> screen_drawer.h - requires -> screen_drawer_linux.cc - requires -> x11/shared_x_display.h which is not included when use_x11 is false. BUG=None NOTRY=True ==========
The CQ bit was checked by ehmaldonado@webrtc.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/...
CQ is committing da patch. Bot data: {"patchset_id": 80001, "attempt_start_ts": 1486719370085510, "parent_rev": "38e9324e4e1da12ad1e8dd8451958c3b8b3f6fc4", "commit_rev": "0d729b3039fe96b74e3efc80449c6a9cf28a04ba"}
Message was sent while issue was closed.
Description was changed from ========== Check for use_x11 before runnig desktop_capture_modules_tests on linux. The tests need "x11/shared_x_display.h" which is not included when use_x11 is false and we're on linux. The problem is: screen_capturer_integration_test.cc - requires -> screen_drawer.h - requires -> screen_drawer_linux.cc - requires -> x11/shared_x_display.h which is not included when use_x11 is false. BUG=None NOTRY=True ========== to ========== Check for use_x11 before runnig desktop_capture_modules_tests on linux. The tests need "x11/shared_x_display.h" which is not included when use_x11 is false and we're on linux. The problem is: screen_capturer_integration_test.cc - requires -> screen_drawer.h - requires -> screen_drawer_linux.cc - requires -> x11/shared_x_display.h which is not included when use_x11 is false. BUG=None NOTRY=True Review-Url: https://codereview.webrtc.org/2684683003 Cr-Commit-Position: refs/heads/master@{#16529} Committed: https://chromium.googlesource.com/external/webrtc/+/0d729b3039fe96b74e3efc804... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as https://chromium.googlesource.com/external/webrtc/+/0d729b3039fe96b74e3efc804... |