Closed Bug 1764473 Opened 3 years ago Closed 3 years ago

Cannot run `./mach wpt <path to test> --product chrome` on Windows

Categories

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

Firefox 101
x86_64
Windows 11
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1764475

People

(Reporter: masayuki, Unassigned)

References

(Blocks 1 open bug)

Details

  1. Run ./mach wpt testing/web-platform/tests/editing/run/inserttext.html --product chrome on Windows 11.

I got:

FileNotFoundError: [WinError 2] 指定されたファイルが見つかりません。 (meaning the specified file is not found)

  File "M:\src\testing\web-platform\mach_commands.py", line 531, in run_wpt
    return run_web_platform_tests(command_context, **params)
  File "M:\src\testing\web-platform\mach_commands.py", line 520, in run_web_platform_tests
    return wpt_runner.run(logger, **params)
  File "m:\src\testing\web-platform\mach_commands_base.py", line 57, in run
    kwargs = self.setup.kwargs_wptrun(kwargs)
  File "M:\src\testing\web-platform\mach_commands.py", line 188, in kwargs_wptrun
    self.virtualenv_manager.install_pip_requirements(
  File "M:\src\python\mach\mach\site.py", line 638, in install_pip_requirements
    install_result = self._virtualenv.pip_install(
  File "M:\src\python\mach\mach\site.py", line 862, in pip_install
    return subprocess.run(
  File "C:\mozilla-build\python3\lib\subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "m:\src\third_party\python\sentry_sdk\sentry_sdk\integrations\stdlib.py", line 190, in sentry_patched_popen_init
    rv = old_popen_init(self, *a, **kw)  # type: ignore
  File "C:\mozilla-build\python3\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\mozilla-build\python3\lib\subprocess.py", line 1421, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,

Sentry event ID: 6091bdc915f44f8eab9787a10467cb9f

I print args at subprocess.py, line 1421, in _execute_child:

C:\WINDOWS\system32\cmd.exe /c "ver"
C:\mozilla-build\python3\python3.exe -S -c "import sys; print(sys.path)"
C:\mozilla-build\python3\Scripts\hg.EXE log -r "draft() and ancestors(.)" --template "{file_adds % '{file}\n'}{file_dels % '{file}\n'}{file_mods % '{file}\n'}"
C:\mozilla-build\/msys2/usr/bin/sh.exe m:/src/python/mozbuild/mozbuild/mozconfig_loader M:/src C:/Users/toybox/fx64.debug.mozconfig C:\Users\toybox\.mozbuild\srcdirs\src-86544033a4b0\_virtualenvs\mach\Scripts\python.exe m:/src/python/mozbuild/mozbuild/action/dump_env.py
sh M:/src/build/moz.configure/../autoconf/config.sub x86_64-pc-mingw32
C:\mozilla-build\python3\Scripts\hg.EXE status --no-status -adrm
 0:00.03 INFO Skipping manifest download because existing file is recent
git rev-parse --show-toplevel
git rev-parse --show-toplevel
M:/fx64-dbg\_virtualenvs\common\Scripts\python.exe -m pip install --requirement M:/src\testing\web-platform\tests\tools\wptrunner\requirements.txt
C:\mozilla-build\python3\Scripts\hg.EXE log -r "last(ancestors(.) and public())" -T {node}
Error running mach:

    ['wpt', 'testing/web-platform/tests/editing/run/inserttext.html', '--product', 'chrome']

So, it seems that the error is not occured at there? hg.EXE was available before.
No problem if I don't specify --product.

This blocks writing tricky crashtest.

Summary: Cannot run `./mach wpt <path to test> --product chrome` → Cannot run `./mach wpt <path to test> --product chrome` on Windows
OS: Windows 10 → Windows 11

Fixed by bug 1764475!

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.