Closed Bug 1603561 Opened 2 years ago Closed 2 years ago

IOError: Missing files when running `mach try`


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



(firefox-esr68 unaffected, firefox71 unaffected, firefox72 unaffected, firefox73 fixed)

Tracking Status
firefox-esr68 --- unaffected
firefox71 --- unaffected
firefox72 --- unaffected
firefox73 --- fixed


(Reporter: ahal, Assigned: ahal)




(Keywords: regression)


(1 file)

Smaug was having issues generating the taskgraph for ./mach try chooser (note this will also affect ./mach try fuzzy):

The traceback shows the issue is happening during test resolving, so this is fallout from the most recent landing in bug 1583353. I don't seem to be able to reproduce, but I'll take a deeper look.

I know what's happening:

  1. As of bug 1583353, taskgraph generation invokes reader.all_mozbuild_paths:
  2. This function in turn uses a FileFinder that tries to exclude object directories that might appear in you srcdir:
  3. However, your object directory doesn't start with obj*, so the FileFinder is erroneously searching it for files.
  4. The objdir contains a <objdir>/dist/bin/browser/features/ file which registers the browser.ini file that the traceback is complaining about.

While I figure out a way to solve this, you have two short term workarounds:
A) Add a line to the list in 2) that matches your objdirs.
B) Rename/move your objdirs so they start with obj* (e.g, move them to <srcdir>/objdirs/<objdir>)

Component: Try → General

Currently BuildReader._relevant_mozbuild_finder attempted to exclude objdirs by
ignoring the pattern 'obj*'. However this can cause problems for developers who
don't prefix their objdirs with the string 'obj'. This attempts to ignore all
objdirs by looking for 'config.status' files in the topsrcdir.

This wasn't a huge issue before because BuildReader._relevant_mozbuild_finder
was only used in a handful of obscure edge cases. But now it's being invoked by
the taskgraph and consequently |mach try|. So we'll see this issue pop up for
people more frequently.

FWIW, I just used the patch so that I could push something to tryserver. Seemed to work.
Thanks :)

Pushed by
[mozbuild] Ignore all potential objdirs in BuildReader._relevant_mozbuild_finder, r=firefox-build-system-reviewers,chmanchester
Blocks: 1583353
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
Regressions: 1606008
You need to log in before you can comment on or make changes to this bug.