Closed Bug 1673725 Opened 5 years ago Closed 5 years ago

moz-phab fails to submit with "mozphab.exceptions.CommandError: command 'b'files'' failed to complete successfully"

Categories

(Conduit :: moz-phab, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1673394

People

(Reporter: whimboo, Unassigned)

Details

Currently I'm not able to submit local changes to my Phabricator revision:

Bug 1650891 - [geckodriver] Make profile customizable to support root-less Android devices.

Summary:

Differential Revision: https://phabricator.services.mozilla.com/D87464



Test Plan:

Reviewers:

Subscribers:

Bug #: 1650891
---
DEBUG    2020-10-27 21:25:19,888 $ log -T '{node}' -r 'parents(2188ad0a69b6cfe98c1ca1ff5d1c8951a3e62e21)'
DEBUG    2020-10-27 21:25:19,921 61c35792ca7021377e42150db54b3935b0fd3c40
DEBUG    2020-10-27 21:25:19,921 $ status --change 2188ad0a69b6cfe98c1ca1ff5d1c8951a3e62e21 --copies
DEBUG    2020-10-27 21:25:20,025 ['M Cargo.lock', 'M testing/geckodriver/moz.build', 'M testing/geckodriver/src/android.rs', 'M testing/geckodriver/src/capabilities.rs', 'M testing/geckodriver/src/main.rs', 'M testing/geckodriver/src/marionette.rs', 'M testing/mozbase/rust/mozdevice/Cargo.toml', 'M testing/mozbase/rust/mozdevice/src/lib.rs', 'M testing/mozbase/rust/mozdevice/src/shell.rs', 'M testing/mozbase/rust/mozdevice/src/test.rs']
DEBUG    2020-10-27 21:25:20,025 $ files --rev 61c35792ca7021377e42150db54b3935b0fd3c40 -T '{flags}:{path}
' -ICargo.lock -Itesting/geckodriver/moz.build -Itesting/geckodriver/src/android.rs -Itesting/geckodriver/src/capabilities.rs -Itesting/geckodriver/src/main.rs -Itesting/geckodriver/src/marionette.rs -Itesting/mozbase/rust/mozdevice/Cargo.toml -Itesting/mozbase/rust/mozdevice/src/lib.rs -Itesting/mozbase/rust/mozdevice/src/shell.rs -Itesting/mozbase/rust/mozdevice/src/test.rs -I.arcconfig
DEBUG    2020-10-27 21:25:20,211 $ files --rev 2188ad0a69b6cfe98c1ca1ff5d1c8951a3e62e21 -T '{flags}:{path}
' -ICargo.lock -Itesting/geckodriver/moz.build -Itesting/geckodriver/src/android.rs -Itesting/geckodriver/src/capabilities.rs -Itesting/geckodriver/src/main.rs -Itesting/geckodriver/src/marionette.rs -Itesting/mozbase/rust/mozdevice/Cargo.toml -Itesting/mozbase/rust/mozdevice/src/lib.rs -Itesting/mozbase/rust/mozdevice/src/shell.rs -Itesting/mozbase/rust/mozdevice/src/test.rs -I.arcconfig
DEBUG    2020-10-27 21:25:20,429 $ bookmark -T '{bookmark}
'
DEBUG    2020-10-27 21:25:20,438 ['create_startup_profile', 'firefox_startup_logging', 'geckodriver_aarch64', 'geckodriver_scoped_storage', 'geckodriver_websocket_url', 'geckodriver_window_name', 'marionette_element_click_event', 'marionette_fission_enable_actors', 'marionette_go_back_frame_closing', 'marionette_hang_bet365', 'marionette_navigation_tests', 'moz-phab_2188ad0a69b6', 'phab-D90292', 'phab-geckodriver-signal', 'remote_frames', 'remote_observer_class', 'remote_pup_startup', 'remote_runtime_enable', 'tmp', 'try_actor_enabled', 'wdspec_skip']
DEBUG    2020-10-27 21:25:20,438 $ bookmark --delete moz-phab_2188ad0a69b6
ERROR    2020-10-27 21:25:20,523 Traceback (most recent call last):
  File "/Users/henrik/.pyenv/versions/3.8.5/lib/python3.8/site-packages/mozphab/mozphab.py", line 83, in main
    args.func(repo, args)
  File "/Users/henrik/.pyenv/versions/3.8.5/lib/python3.8/site-packages/mozphab/commands/submit.py", line 565, in submit
    diff = repo.get_diff(commit)
  File "/Users/henrik/.pyenv/versions/3.8.5/lib/python3.8/site-packages/mozphab/mercurial.py", line 784, in get_diff
    file_modes = self._get_file_modes(commit)
  File "/Users/henrik/.pyenv/versions/3.8.5/lib/python3.8/site-packages/mozphab/mercurial.py", line 760, in _get_file_modes
    self.hg_out(
  File "/Users/henrik/.pyenv/versions/3.8.5/lib/python3.8/site-packages/mozphab/mercurial.py", line 177, in hg_out
    out = self.repository.rawcommand(command, eh=error_handler)
  File "/Users/henrik/.pyenv/versions/3.8.5/lib/python3.8/site-packages/hglib/client.py", line 265, in rawcommand
    return eh(ret, out, err)
  File "/Users/henrik/.pyenv/versions/3.8.5/lib/python3.8/site-packages/mozphab/mercurial.py", line 169, in error_handler
    raise CommandError(
mozphab.exceptions.CommandError: command 'b'files'' failed to complete successfully

As it looks like the problem here is happening with Python2 is not available. We should raise a more descriptive message.

(In reply to Henrik Skupin (:whimboo) [⌚️UTC+2] from comment #1)

As it looks like the problem here is happening with Python2 is not available. We should raise a more descriptive message.

No part of moz-phab uses Python 2.

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