Closed Bug 1848015 Opened 2 years ago Closed 2 years ago

`mach try auto` fails to run

Categories

(Developer Infrastructure :: Try, defect)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: mtigley, Unassigned)

References

(Blocks 1 open bug)

Details

I get the following error when running mach try auto

(base) mtigley@mtigley-39931 mozilla-unified % ./mach try auto                                      
Artifact builds enabled, pass --no-artifact to disable
Creating temporary commit for remote...
A try_task_config.json
pushing to ssh://hg.mozilla.org/try
remote: mtigley@mozilla.com@hg.mozilla.org: Permission denied (publickey).
temporary commit removed, repository restored
abort: no suitable response from remote hg
Error running mach:

    mach try auto

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 try`` 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:

subprocess.CalledProcessError: Command '('/Users/mtigley/Library/Python/3.9/bin/hg', 'push-to-try', '-m', 'Tasks automatically selected.\n\nPushed via `mach try auto`')' returned non-zero exit status 255.

  File "/Users/mtigley/firefox/mozilla-unified/tools/tryselect/mach_commands.py", line 375, in try_auto
    return run(command_context, **kwargs)
  File "/Users/mtigley/firefox/mozilla-unified/tools/tryselect/mach_commands.py", line 196, in run
    return mod.run(**kwargs)
  File "/Users/mtigley/firefox/mozilla-unified/tools/tryselect/selectors/auto.py", line 108, in run
    return push_to_try(
  File "/Users/mtigley/firefox/mozilla-unified/tools/tryselect/push.py", line 228, in push_to_try
    vcs.push_to_try(commit_message, allow_log_capture=allow_log_capture)
  File "/Users/mtigley/firefox/mozilla-unified/python/mozversioncontrol/mozversioncontrol/__init__.py", line 567, in push_to_try
    subprocess.check_call(
  File "/Users/mtigley/.pyenv/versions/3.9.16/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)

The severity field is not set for this bug.
:marco, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(mcastelluccio)

Mercurial rejected your commit, it looks like a permission error.
Do you only see this with "mach try auto" or with other try selectors as well?

Flags: needinfo?(mcastelluccio) → needinfo?(mtigley)

Yes! I'll look into the permission issue. Thank you.

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