Cannot properly repo upload a suite change to an autotest test
Reported by
bfreed@chromium.org,
Mar 9 2016
|
||
Issue description
While trying to add my autotest test to the wifi_perf test suite, I found I was unable to upload the change to gerrit.
Other test changes uploaded just fine.
But with this suite change, I get:
$ repo upload .
WARNING: Scripts have changed since pre-upload was allowed.
Repo must run the script:
/usr/local/google/home/bfreed/chromiumos/src/repohooks/pre-upload.py
Do you want to allow this script to run (yes/yes-never-ask-again/NO)? yes
Errors in PROJECT *chromiumos/third_party/autotest*!
COMMIT 44e0ce15:
Description:
>Add a wifi / bt coexistence test to the wifi_perf test suite.
>
>BUG=None
>TEST=None, but I need to verify keyvals land on the dashboard page.
>
>Change-Id: I02845a6c97ff9b16745d203bcefe587f762670ce
>
>
Errors:
* Hook script "./site_utils/presubmit_hooks/check_suite_scheduler.py" failed with code 1:
Traceback (most recent call last):
File "./site_utils/presubmit_hooks/check_suite_scheduler.py", line 46, in <module>
main()
File "./site_utils/presubmit_hooks/check_suite_scheduler.py", line 39, in main
output = utils.system_output(suite_scheduler + ' --sanity')
File "/usr/local/google/home/bfreed/chromiumos/src/third_party/autotest/files/client/common_lib/base_utils.py", line 1196, in system_output
args=args).stdout
File "/usr/local/google/home/bfreed/chromiumos/src/third_party/autotest/files/client/common_lib/base_utils.py", line 893, in run
"Command returned non-zero exit status")
autotest_lib.client.common_lib.error.CmdError: Command </usr/local/google/home/bfreed/chromiumos/src/third_party/autotest/files/site_utils/suite_scheduler/suite_scheduler.py --sanity> failed, rc=1, Command returned non-zero exit status
* Command:
/usr/local/google/home/bfreed/chromiumos/src/third_party/autotest/files/s
ite_utils/suite_scheduler/suite_scheduler.py --sanity
Exit status: 1
Duration: 0.140443086624
stderr:
WARNING:root:Unable to import chromite.
WARNING:root:Unable to import chromite.
Traceback (most recent call last):
File "/usr/local/google/home/bfreed/chromiumos/src/third_party/autotest/files/site_utils/suite_scheduler/suite_scheduler.py", line 40, in <module>
import board_enumerator, deduping_scheduler, driver, forgiving_config_parser
File "/usr/local/google/home/bfreed/chromiumos/src/third_party/autotest/files/site_utils/suite_scheduler/deduping_scheduler.py", line 13, in <module>
from autotest_lib.server.cros.dynamic_suite import frontend_wrappers, reporting
File "/usr/local/google/home/bfreed/chromiumos/src/third_party/autotest/files/server/cros/dynamic_suite/reporting.py", line 25, in <module>
from autotest_lib.site_utils import gmail_lib
File "/usr/local/google/home/bfreed/chromiumos/src/third_party/autotest/files/site_utils/gmail_lib.py", line 31, in <module>
from chromite.lib import retry_util
ImportError: No module named chromite.lib
Preupload failed due to errors in project(s). HINTS:
- To disable some source style checks, and for other hints, see <checkout_dir>/src/repohooks/README
- To upload only current project, run 'repo upload .'
I was told to run utils/build_externals.py in autotest/files outside the chroot, but that fails with:
13:37:35 INFO | unzip -q -o -d '/usr/local/google/home/bfreed/chromiumos/src/third_party/autotest/files/site-packages' 'dist/numpy-1.7.0-py2.7-linux-x86_64.egg'
13:37:35 ERROR| Can't find /usr/include/freetype2/ft2build.h or /usr/include/ft2build.h, Matplotlib probably needs it.
13:37:35 ERROR| Perhaps you need to install something similar to the libfreetype6-dev package for OS first.
Traceback (most recent call last):
File "utils/build_externals.py", line 154, in <module>
sys.exit(main())
File "utils/build_externals.py", line 71, in main
install_errors = build_and_install_packages(fetched_packages, install_dir)
File "utils/build_externals.py", line 138, in build_and_install_packages
result = package.build_and_install(install_dir)
File "/usr/local/google/home/bfreed/chromiumos/src/third_party/autotest/files/utils/external_packages.py", line 190, in build_and_install
self._check_os_requirements()
File "/usr/local/google/home/bfreed/chromiumos/src/third_party/autotest/files/utils/external_packages.py", line 207, in _check_os_requirements
self.name)
autotest_lib.utils.external_packages.Error: Missing OS requirements for Matplotlib. (see above)
13:37:35 DEBUG| Clean was not called for /tmp/_autotmp__7BFctbtsocket
I have to fall back to 'repo upload --no-verify .'.
,
Aug 1
|
||
►
Sign in to add a comment |
||
Comment 1 by dshi@chromium.org
, Oct 6 2017