Closed Bug 1653560 Opened 5 years ago Closed 5 years ago

static-analysis autotest fails with "module distutils has no attribute spawn"

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

defect

Tracking

(firefox81 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: freddy, Assigned: ptomato)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It starts running lots of tests but eventually fails:

 0:03.61 RUNNING: clang-tidy checker readability-redundant-string-cstr.
 0:03.61 RUNNING: clang-tidy checker readability-redundant-string-init.
 0:03.61 RUNNING: clang-tidy checker readability-static-accessed-through-instance.
 0:03.61 RUNNING: clang-tidy checker readability-simplify-boolean-expr.
 0:03.62 RUNNING: clang-tidy checker readability-uniqueptr-delete-release.
 0:03.77 RUNNING: clang-tidy checker batch analysis.
 0:44.35 SUCCESS: clang-tidy all tests passed.
Error running mach:

    ['static-analysis', 'autotest']

The error occurred in the implementation of the invoked mach command.

This should never occur and is likely a bug in the implementation of that
command.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file static-analysis| 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:

AttributeError: module 'distutils' has no attribute 'spawn'

  File "/home/freddy/gecko-sanitizer/python/mozbuild/mozbuild/code-analysis/mach_commands.py", line 1255, in autotest
    return self._autotest_infer(intree_tool, force_download, verbose)
  File "/home/freddy/gecko-sanitizer/python/mozbuild/mozbuild/code-analysis/mach_commands.py", line 1344, in _autotest_infer
    rc = self._check_for_java()
  File "/home/freddy/gecko-sanitizer/python/mozbuild/mozbuild/code-analysis/mach_commands.py", line 1031, in _check_for_java
    java = java or distutils.spawn.find_executable('javac')
Sentry is attempting to send 0 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit
Assignee: nobody → philip.chimento
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: