Open Bug 1544861 Opened 7 years ago Updated 3 years ago

`mach build` gives unexpected error for artifact build on shallow clone

Categories

(Firefox Build System :: General, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: snorp, Unassigned)

Details

I understand it won't work with a shallow clone, but the error below didn't do much to help me figure that out.

$./mach build
0:00.22 Clobber not needed.
0:00.23 Adding make options from /home/snorp/gecko/mozconfig
MOZ_OBJDIR=/home/snorp/gecko/objdir-frontend
OBJDIR=/home/snorp/gecko/objdir-frontend
FOUND_MOZCONFIG=/home/snorp/gecko/mozconfig
export FOUND_MOZCONFIG
0:00.23 /usr/bin/make -f client.mk -s
0:00.72 Error running mach:
0:00.72 ['--log-no-times', 'artifact', 'install']
0:00.72 The error occurred in code that was called by the mach command. This is either
0:00.72 a bug in the called code itself or in the way that mach is calling it.
0:00.72 You can invoke |./mach busted| to check if this issue is already on file. If it
0:00.72 isn't, please use |./mach busted file| to report it. If |./mach busted| is
0:00.72 misbehaving, you can also inspect the dependencies of bug 1543241.
0:00.72 If filing a bug, please include the full output of mach, including this error
0:00.72 message.
0:00.72 The details of the failure are as follows:
0:00.72 IndexError: list index out of range
0:00.72 File "/home/snorp/gecko/python/mozbuild/mozbuild/mach_commands.py", line 1301, in artifact_install
0:00.72 return artifacts.install_from(source, distdir or self.distdir)
0:00.72 File "/home/snorp/gecko/python/mozbuild/mozbuild/artifacts.py", line 1333, in install_from
0:00.73 return self.install_from_recent(distdir)
0:00.73 File "/home/snorp/gecko/python/mozbuild/mozbuild/artifacts.py", line 1254, in install_from_recent
0:00.73 return self._install_from_hg_pushheads(hg_pushheads, distdir)
0:00.73 File "/home/snorp/gecko/python/mozbuild/mozbuild/artifacts.py", line 1233, in _install_from_hg_pushheads
0:00.73 for trees, hg_hash in hg_pushheads:
0:00.73 File "/home/snorp/gecko/python/mozbuild/mozbuild/artifacts.py", line 1126, in _find_pushheads
0:00.73 candidate_pushheads = self._pushheads_from_rev(last_revs[0].rstrip(),
0:00.75 Makefile:167: recipe for target 'recurse_artifact' failed
0:00.75 make[3]: *** [recurse_artifact] Error 1
0:00.75 /home/snorp/gecko/config/recurse.mk:32: recipe for target 'artifact' failed
0:00.75 make[2]: *** [artifact] Error 2
0:00.75 /home/snorp/gecko/config/rules.mk:400: recipe for target 'default' failed
0:00.75 make[1]: *** [default] Error 2
0:00.75 client.mk:125: recipe for target 'build' failed
0:00.75 make: *** [build] Error 2
0:00.75 0 compiler warnings present.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.