Closed
Bug 1755093
Opened 3 years ago
Closed 3 years ago
./mach bootstrap fails with "IndexError: list index out of range" in ['artifact', 'toolchain', '--bootstrap', '--from-build', 'win64-clang-tidy'] (./mach configure also broken)
Categories
(Firefox Build System :: Task Configuration, defect)
Firefox Build System
Task Configuration
Tracking
(firefox99 fixed)
RESOLVED
FIXED
99 Branch
Tracking | Status | |
---|---|---|
firefox99 | --- | fixed |
People
(Reporter: jgilbert, Assigned: jgilbert)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Would you like to run a few configuration steps to ensure Git is
optimally configured? (Yn): n
checking for vcs source checkout... git
checking for a shell... C:/dev/mozilla/mozilla-build-3_4/msys/bin/sh.exe
checking for host system type... x86_64-pc-mingw32
WARNING: list index out of range
git: 'cinnabar' is not a git command. See 'git --help'.
Error running mach:
['artifact', 'toolchain', '--bootstrap', '--from-build', 'win64-clang-tidy']
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:
IndexError: list index out of range
File "c:\dev\mozilla\gecko9\python\mozbuild\mozbuild\artifact_commands.py", line 380, in artifact_toolchain
tasks = toolchain_task_definitions()
File "c:\dev\mozilla\gecko9\python\mozbuild\mozbuild\toolchains.py", line 19, in toolchain_task_definitions
toolchains = load_tasks_for_kind(params, "toolchain", root_dir=root_dir)
File "c:\dev\mozilla\gecko9\taskcluster\gecko_taskgraph\generator.py", line 490, in load_tasks_for_kind
for task in tgg.full_task_set
File "c:\dev\mozilla\gecko9\taskcluster\gecko_taskgraph\generator.py", line 163, in full_task_set
return self._run_until("full_task_set")
File "c:\dev\mozilla\gecko9\taskcluster\gecko_taskgraph\generator.py", line 435, in _run_until
k, v = next(self._run)
File "c:\dev\mozilla\gecko9\taskcluster\gecko_taskgraph\generator.py", line 264, in _run
parameters = self._parameters(graph_config)
File "c:\dev\mozilla\gecko9\third_party\python\taskcluster_taskgraph\taskgraph\parameters.py", line 330, in get_parameters
trust_domain=graph_config["trust-domain"],
File "c:\dev\mozilla\gecko9\third_party\python\taskcluster_taskgraph\taskgraph\parameters.py", line 281, in load_parameters_file
return Parameters(strict=strict, repo_root=repo_root, **overrides)
File "c:\dev\mozilla\gecko9\third_party\python\taskcluster_taskgraph\taskgraph\parameters.py", line 128, in __init__
kwargs = Parameters._fill_defaults(repo_root=repo_root, **kwargs)
File "c:\dev\mozilla\gecko9\third_party\python\taskcluster_taskgraph\taskgraph\parameters.py", line 168, in _fill_defaults
defaults.update(fn(repo_root))
File "c:\dev\mozilla\gecko9\third_party\python\taskcluster_taskgraph\taskgraph\parameters.py", line 66, in _get_defaults
project = repo_url.rsplit("/", 1)[1]
git: 'cinnabar' is not a git command. See 'git --help'.
Error running mach:
['boostrap']
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 '['c:\\Users\\jgilbert\\.mozbuild\\srcdirs\\gecko9-049f74f53434\\_virtualenvs\\mach\\Scripts\\python.exe', 'C:\\dev\\mozilla\\gecko9\\mach', 'artifact', 'toolchain', '--bootstrap', '--from-build', 'win64-clang-tidy']' returned non-zero exit status 1.
File "c:\dev\mozilla\gecko9\python\mozboot\mozboot\mach_commands.py", line 43, in bootstrap
bootstrapper.bootstrap(command_context.settings)
File "c:\dev\mozilla\gecko9\python\mozboot\mozboot\bootstrap.py", line 367, in bootstrap
self.maybe_install_private_packages_or_exit(application)
File "c:\dev\mozilla\gecko9\python\mozboot\mozboot\bootstrap.py", line 241, in maybe_install_private_packages_or_exit
self.instance.ensure_clang_static_analysis_package()
File "c:\dev\mozilla\gecko9\python\mozboot\mozboot\mozillabuild.py", line 210, in ensure_clang_static_analysis_package
self.install_toolchain_static_analysis(static_analysis.WINDOWS_CLANG_TIDY)
File "c:\dev\mozilla\gecko9\python\mozboot\mozboot\base.py", line 387, in install_toolchain_static_analysis
self.install_toolchain_artifact_impl(clang_tools_path, toolchain_job)
File "c:\dev\mozilla\gecko9\python\mozboot\mozboot\base.py", line 445, in install_toolchain_artifact_impl
subprocess.check_call(cmd, cwd=str(install_dir))
File "c:\dev\mozilla\mozilla-build-3_4\python3\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
This basically looks like bug 1753047, but failing in splitting the repo url at '/'.
Which would make sense, because not all valid git urls have slashes. :)
$ git remote -v
github git@github.com:jdashg/gecko-cinn.git (fetch)
github git@github.com:jdashg/gecko-cinn.git (push)
origin git@maahes.kilo.cc:gecko1 (fetch)
origin git@maahes.kilo.cc:gecko1 (push)
Assignee | ||
Updated•3 years ago
|
Blocks: mach-busted
Assignee | ||
Updated•3 years ago
|
Assignee: nobody → jgilbert
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
•
|
||
This also looks like it was what was preventing my `./mach configure` somehow?
Assignee | ||
Comment 3•3 years ago
•
|
||
(dupe)
Assignee | ||
Updated•3 years ago
|
Summary: Bootstrap fails with "IndexError: list index out of range" in ['artifact', 'toolchain', '--bootstrap', '--from-build', 'win64-clang-tidy'] → ./mach bootstrap/configure fails with "IndexError: list index out of range" in ['artifact', 'toolchain', '--bootstrap', '--from-build', 'win64-clang-tidy']
Assignee | ||
Updated•3 years ago
|
Summary: ./mach bootstrap/configure fails with "IndexError: list index out of range" in ['artifact', 'toolchain', '--bootstrap', '--from-build', 'win64-clang-tidy'] → ./mach bootstrap fails with "IndexError: list index out of range" in ['artifact', 'toolchain', '--bootstrap', '--from-build', 'win64-clang-tidy'] (./mach configure also broken)
Pushed by jgilbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/954c4d8bbd3b
Support repo_url with no slash. r=ahal
Comment 5•3 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 3 years ago
status-firefox99:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
Updated•3 years ago
|
Component: Toolchains → Task Configuration
You need to log in
before you can comment on or make changes to this bug.
Description
•