Closed Bug 1605850 Opened 4 years ago Closed 4 years ago

./mach static-analysis autotest -i fails with KeyError: u'MOZ_FETCHES_DIR'

Categories

(Developer Infrastructure :: Source Code Analysis, defect, P3)

defect

Tracking

(firefox74 fixed)

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: Sylvestre, Assigned: andi)

Details

Attachments

(1 file)

% ./mach static-analysis autotest  -i                                  
Error running mach:

    ['static-analysis', 'autotest', '-i']

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

KeyError: u'MOZ_FETCHES_DIR'

  File "/home/sylvestre/dev/mozilla/mozilla-central/python/mozbuild/mozbuild/code-analysis/mach_commands.py", line 1054, in autotest
    clang_tools_path = os.environ['MOZ_FETCHES_DIR']
  File "/usr/lib/python2.7/UserDict.py", line 40, in __getitem__
    raise KeyError(key)

The priority flag is not set for this bug.
:Sylvestre, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(sledru)

Andi, could you please give it a try? thanks

Flags: needinfo?(sledru) → needinfo?(bpostelnicu)
Priority: -- → P3
Assignee: nobody → bpostelnicu
Status: NEW → ASSIGNED
Flags: needinfo?(bpostelnicu)
Pushed by bpostelnicu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/db6834b4020a
for `static-analysis autotest` don't allow running `--intree-tool` outside of automation. r=sylvestre
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: