Closed Bug 1739582 Opened 3 years ago Closed 3 years ago

`mach bootstrap` fails to run

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1739520

People

(Reporter: mossop, Unassigned)

Details

trunk$ mach bootstrap
Note on Artifact Mode:

Artifact builds download prebuilt C++ components rather than building
them locally. Artifact builds are faster!

Artifact builds are recommended for people working on Firefox or
Firefox for Android frontends, or the GeckoView Java API. They are unsuitable
for those working on C++ code. For more information see:
https://firefox-source-docs.mozilla.org/contributing/build/artifact_builds.html.

Please choose the version of Firefox you want to build:
  1. Firefox for Desktop Artifact Mode [default]
  2. Firefox for Desktop
  3. GeckoView/Firefox for Android Artifact Mode
  4. GeckoView/Firefox for Android
  5. SpiderMonkey JavaScript engine
Your choice:2
virtualenv at /Users/dave/.mozbuild/_virtualenvs/mach is already up to date.
Mach environment created.
Your version of Mercurial (5.9.3) is sufficiently modern.
Your version of Rust (1.56.0) is new enough.
Rust supports x86_64-apple-darwin targets.

Mozilla recommends a number of changes to Mercurial to enhance your
experience with it.

Would you like to run a configuration wizard to ensure Mercurial is
optimally configured? (Yn): n
Error running mach:

    ['artifact', 'toolchain', '--bootstrap', '--from-build', 'macosx64-node']

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 artifact| 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:

FileNotFoundError: [Errno 2] No such file or directory: 'taskcluster/ci/test/variants.yml'

  File "/Users/dave/mozilla/source/trunk/python/mozbuild/mozbuild/artifact_commands.py", line 373, in artifact_toolchain
    tasks = toolchain_task_definitions()
  File "/Users/dave/mozilla/source/trunk/python/mozbuild/mozbuild/toolchains.py", line 19, in toolchain_task_definitions
    toolchains = load_tasks_for_kind(params, "toolchain", root_dir=root_dir)
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/generator.py", line 489, in load_tasks_for_kind
    for task in tgg.full_task_set
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/generator.py", line 162, in full_task_set
    return self._run_until("full_task_set")
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/generator.py", line 434, in _run_until
    k, v = next(self._run)
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/generator.py", line 310, in _run
    new_tasks = kind.load_tasks(
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/generator.py", line 77, in load_tasks
    tasks = [
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/generator.py", line 77, in <listcomp>
    tasks = [
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 2093, in check_run_task_caches
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 2003, in check_task_dependencies
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 1989, in check_task_identifiers
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 1970, in chain_of_trust
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 1761, in build_task
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 1752, in try_task_config_routes
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 1742, in try_task_config_chemspill_prio
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 1732, in try_task_config_env
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 1694, in add_index_routes
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 1489, in validate
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 1466, in task_name_from_label
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 1421, in set_defaults
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/task.py", line 1400, in set_implementation
    for task in tasks:
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/job/__init__.py", line 384, in make_task_description
    import_sibling_modules(exceptions=("common.py",))
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/util/python_path.py", line 53, in import_sibling_modules
    __import__(modpath + "." + f[:-3])
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/job/mozharness_test.py", line 19, in <module>
    from gecko_taskgraph.transforms.tests import test_description_schema, normpath
  File "/Users/dave/mozilla/source/trunk/taskcluster/gecko_taskgraph/transforms/tests.py", line 216, in <module>
    TEST_VARIANTS = load_yaml("taskcluster", "ci", "test", "variants.yml")
  File "/Users/dave/mozilla/source/trunk/third_party/python/taskcluster_taskgraph/taskgraph/util/yaml.py", line 35, in load_yaml
    with open(filename, "rb") as f:
Error running mach:

    ['bootstrap']

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 bootstrap| 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/dave/.mozbuild/_virtualenvs/mach/bin/python', '/Users/dave/mozilla/source/trunk/mach', 'artifact', 'toolchain', '--bootstrap', '--from-build', 'macosx64-node']' returned non-zero exit status 1.

  File "/Users/dave/mozilla/source/trunk/python/mozboot/mozboot/mach_commands.py", line 42, in bootstrap
    bootstrapper.bootstrap(command_context.settings)
  File "/Users/dave/mozilla/source/trunk/python/mozboot/mozboot/bootstrap.py", line 376, in bootstrap
    self.maybe_install_private_packages_or_exit(
  File "/Users/dave/mozilla/source/trunk/python/mozboot/mozboot/bootstrap.py", line 224, in maybe_install_private_packages_or_exit
    self.instance.ensure_node_packages(state_dir, checkout_root)
  File "/Users/dave/mozilla/source/trunk/python/mozboot/mozboot/osx.py", line 338, in ensure_node_packages
    self.install_toolchain_artifact(state_dir, checkout_root, node.OSX)
  File "/Users/dave/mozilla/source/trunk/python/mozboot/mozboot/base.py", line 428, in install_toolchain_artifact
    subprocess.check_call(cmd, cwd=state_dir)
  File "/Users/dave/dotfiles/external/pyenv/versions/3.9.4/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)

It's a strange error because taskcluster/ci/test/variants.yml does exist.

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.