Closed Bug 1659615 Opened 4 years ago Closed 4 years ago

`mach bootstrap` fails on Windows if Windows Defender has exclusions over multiple drives

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect

Tracking

(firefox-esr68 unaffected, firefox-esr78 unaffected, firefox79 unaffected, firefox80 unaffected, firefox81 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox79 --- unaffected
firefox80 --- unaffected
firefox81 --- fixed

People

(Reporter: markh, Assigned: markh)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

The details of the failure are as follows:

ValueError: Paths don't have the same drive

  File "c:\src\moz\gecko\python/mozboot/mozboot/mach_commands.py", line 45, in bootstrap
    bootstrapper.bootstrap()
  File "c:\src\moz\gecko\python/mozboot\mozboot\bootstrap.py", line 513, in bootstrap
    self.instance.validate_environment(checkout_root)
  File "c:\src\moz\gecko\python/mozboot\mozboot\mozillabuild.py", line 155, in validate_environment
    if is_windefender_affecting_srcdir(srcdir):
  File "c:\src\moz\gecko\python/mozboot\mozboot\mozillabuild.py", line 129, in is_windefender_affecting_srcdir
    if os.path.commonpath([exclusion_path, srcdir]) == exclusion_path:
  File "c:\mozilla-build\python3\lib\ntpath.py", line 621, in commonpath
    raise ValueError("Paths don't have the same drive")

Set release status flags based on info from the regressing bug 1655361

Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e5ba3c028d87
handle the fact Windows Defender might have exclusions on different disks. r=mhentges,froydnj
Blocks: mach-busted
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: