sync_integration_tests using python server fail due to protobuf resolution |
||
Issue description
This apparently works fine on the try bots, but some development desktops have a system level instillation of protobuf at
/usr/lib/python2.7/dist-packages/google/protobuf
This causes all of the integration tests that use the python server to fail. Steps to repro
1. ninja -C out/Default -j 1000 chrome
2. ninja -C out/Default -j 1000 sync_integration_tests
3. out/Default/sync_integration_tests --gtest_filter=MigrationSingleClientTest.PrefsOnlyTriggerNotification
Traceback (most recent call last):
File "/usr/local/google/home/skym/chromiumSource/linux/src/components/sync/tools/testserver/sync_testserver.py", line 24, in <module>
import chromiumsync
File "/usr/local/google/home/skym/chromiumSource/linux/src/components/sync/tools/testserver/chromiumsync.py", line 26, in <module>
import app_list_specifics_pb2
File "/usr/local/google/home/skym/chromiumSource/linux/src/out/Default/pyproto/components/sync/protocol/app_list_specifics_pb2.py", line 9, in <module>
from google.protobuf import symbol_database as _symbol_database
File "/usr/local/google/home/skym/chromiumSource/linux/src/out/Default/pyproto/google/protobuf/symbol_database.py", line 180, in <module>
_DEFAULT = SymbolDatabase(pool=descriptor_pool.Default())
AttributeError: 'module' object has no attribute 'Default'
[42020:42020:0923/144155:275935356285:ERROR:local_test_server_posix.cc(163)] Could not read server_data_len
../../chrome/browser/sync/test/integration/sync_test.cc:882: Failure
This was previously encountered here https://groups.google.com/a/chromium.org/forum/#!msg/chromium-dev/GndDLYTrPaE/RmlA4DocBgAJ , where it was suggested that we use virtualenv to solve this conflict.
It looks like there's already an existing example in chromium that uses virtualenv https://cs.chromium.org/chromium/src/tools/android/loading/cloud/backend/startup-script.sh
,
Sep 29 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/47e8a31625b0dee35912756abfcdbc1c9a751e8c commit 47e8a31625b0dee35912756abfcdbc1c9a751e8c Author: pnoland <pnoland@chromium.org> Date: Thu Sep 29 19:36:29 2016 [sync]sync_integration_tests using python server fail R=maxbogue@chromium.org,skym@chromium.org BUG= 649829 Review-Url: https://codereview.chromium.org/2378143002 Cr-Commit-Position: refs/heads/master@{#421902} [modify] https://crrev.com/47e8a31625b0dee35912756abfcdbc1c9a751e8c/components/sync/test/local_sync_test_server.cc
,
Sep 30 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by pnoland@chromium.org
, Sep 28 2016Status: Started (was: Unconfirmed)