Closed Bug 1569362 Opened 3 months ago Closed 2 months ago

./mach wpt --product=chrome doesn't work

Categories

(Testing :: web-platform-tests, defect)

Version 3
defect
Not set

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ehsan, Unassigned)

References

(Blocks 1 open bug)

Details

$ ./mach wpt /html/dom/documents/dom-tree-accessors --product=chrome --binary=/usr/bin/chromium-browser
 0:00.01 INFO Skipping manifest download because existing file is recent
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already satisfied: html5lib==1.0.1 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from -r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 1)) (1.0.1)
Requirement already satisfied: mozinfo==1.1.0 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from -r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 2)) (1.1.0)
Requirement already satisfied: mozlog==4.2.0 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from -r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 3)) (4.2.0)
Requirement already satisfied: mozdebug==0.1.1 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from -r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 4)) (0.1.1)
Requirement already satisfied: pillow==6.0.0 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from -r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 5)) (6.0.0)
Requirement already satisfied: urllib3[secure]==1.25.3 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from -r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 6)) (1.25.3)
Requirement already satisfied: requests==2.22.0 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from -r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 7)) (2.22.0)
Requirement already satisfied: six==1.12.0 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from -r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 8)) (1.12.0)
Requirement already satisfied: webencodings in ./testing/web-platform/tests/tools/third_party/webencodings (from html5lib==1.0.1->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 1)) (0.5.1)
Requirement already satisfied: mozfile>=0.12 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from mozinfo==1.1.0->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 2)) (2.0.0)
Requirement already satisfied: mozterm in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from mozlog==4.2.0->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 3)) (1.0.0)
Requirement already satisfied: blessings>=1.3 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from mozlog==4.2.0->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 3)) (1.7)
Requirement already satisfied: pyOpenSSL>=0.14; extra == "secure" in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from urllib3[secure]==1.25.3->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 6)) (19.0.0)
Requirement already satisfied: idna>=2.0.0; extra == "secure" in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from urllib3[secure]==1.25.3->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 6)) (2.8)
Requirement already satisfied: cryptography>=1.3.4; extra == "secure" in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from urllib3[secure]==1.25.3->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 6)) (2.7)
Requirement already satisfied: certifi; extra == "secure" in ./testing/web-platform/tests/tools/third_party/certifi (from urllib3[secure]==1.25.3->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 6)) (2018.4.16)
Requirement already satisfied: ipaddress; python_version == "2.7" and extra == "secure" in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from urllib3[secure]==1.25.3->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 6)) (1.0.22)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from requests==2.22.0->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 7)) (3.0.4)
Requirement already satisfied: enum34; python_version < "3" in ./testing/web-platform/tests/tools/third_party/enum (from cryptography>=1.3.4; extra == "secure"->urllib3[secure]==1.25.3->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 6)) (1.1.6)
Requirement already satisfied: asn1crypto>=0.21.0 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from cryptography>=1.3.4; extra == "secure"->urllib3[secure]==1.25.3->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 6)) (0.24.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from cryptography>=1.3.4; extra == "secure"->urllib3[secure]==1.25.3->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 6)) (1.12.3)
Requirement already satisfied: pycparser in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from cffi!=1.11.3,>=1.8->cryptography>=1.3.4; extra == "secure"->urllib3[secure]==1.25.3->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements.txt (line 6)) (2.19)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already satisfied: mozprocess==1.0.0 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from -r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements_chrome.txt (line 1)) (1.0.0)
Requirement already satisfied: mozinfo in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from mozprocess==1.0.0->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements_chrome.txt (line 1)) (1.1.0)
Requirement already satisfied: mozfile>=0.12 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from mozinfo->mozprocess==1.0.0->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements_chrome.txt (line 1)) (2.0.0)
Requirement already satisfied: six>=1.10.0 in ./obj-ff-opt/_virtualenvs/init/lib/python2.7/site-packages (from mozfile>=0.12->mozinfo->mozprocess==1.0.0->-r /home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/requirements_chrome.txt (line 1)) (1.12.0)
Download and install chromedriver [Y/n]?
 0:09.62 INFO Downloading chromedriver
 0:10.11 INFO Downloading ChromeDriver from https://chromedriver.storage.googleapis.com/75.0.3770.140/chromedriver_linux64.zip
 0:10.67 INFO Closing logging queue
 0:10.67 INFO queue closed
Error running mach:

    ['wpt', '/html/dom/documents/dom-tree-accessors', '--product=chrome', '--binary=/usr/bin/chromium-browser']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

KeyError: 'headless'

  File "/home/ehsan/moz/1527287/testing/web-platform/mach_commands.py", line 308, in run_wpt
    return self.run_web_platform_tests(**params)
  File "/home/ehsan/moz/1527287/testing/web-platform/mach_commands.py", line 300, in run_web_platform_tests
    return wpt_runner.run(logger, **params)
  File "/home/ehsan/moz/1527287/testing/web-platform/mach_commands_base.py", line 40, in run
    result = wptrunner.start(**kwargs)
  File "/home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py", line 344, in start
    return not run_tests(**kwargs)
  File "/home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py", line 155, in run_tests
    **kwargs)
  File "/home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py", line 56, in get_loader
    enable_webrender=kwargs.get("enable_webrender"))
  File "/home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/wptrunner/wpttest.py", line 75, in get_run_info
    return RunInfo(metadata_root, product, **kwargs)
  File "/home/ehsan/moz/1527287/testing/web-platform/tests/tools/wptrunner/wptrunner/wpttest.py", line 115, in __init__
    self["headless"] = extras["headless"]

I had to update pip in the virtualenv in my objdir using the instructions in bug 1555212 comment 1. The --binary argument was needed in order to allow installing chrome-driver.

The priority flag is not set for this bug.
:jgraham, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(james)

I think a wpt update fixed the headness issue; this now wfm with the command ./mach wpt /html/dom/documents/dom-tree-accessors --product=chrome

Status: NEW → RESOLVED
Closed: 2 months ago
Flags: needinfo?(james)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.