Closed Bug 1851405 Opened 2 years ago Closed 2 years ago

Cannot complete `./mach bootstrap` on Windows due to "cannot import name 'IndexSearch' from 'gecko_taskgraph.optimize.strategies'"

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

x86_64
Windows 10
defect

Tracking

(firefox-esr102 unaffected, firefox-esr115 unaffected, firefox117 unaffected, firefox118 unaffected, firefox119 fixed)

RESOLVED FIXED
119 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox117 --- unaffected
firefox118 --- unaffected
firefox119 --- fixed

People

(Reporter: masayuki, Assigned: jcristau)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

I ran ./mach bootstrap to update my build environment on Windows. However, I got this error:

Error running mach:

    mach artifact toolchain --bootstrap --from-build rustc-dist-toolchain --no-unpack
ImportError: cannot import name 'IndexSearch' from 'gecko_taskgraph.optimize.strategies' (m:\src\taskcluster\gecko_taskgraph\optimize\strategies.py)

  File "M:\src\python\mozbuild\mozbuild\artifact_commands.py", line 389, in artifact_toolchain
    from gecko_taskgraph.optimize.strategies import IndexSearch

The mozilla-central revision is 39747a728e31.

FYI: I need to run it for solving this error:

 0:19.63 checking for nasm... not found
 0:19.63 ERROR: Nasm is required to build with AV1, FFVPX, JPEG and VPX, but it was not found.
*** Fix above errors and then restart with "./mach build"

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::Bootstrap Configuration' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Bootstrap Configuration

I'm also affected by this. It seems bug 1850749 has removed IndexSearch from gecko_taskgraph.optimize.strategies in favor of taskgraph.optimize.strategies, but mozbuild still references the old one. [:jcristau], do we need to update mozbuild maybe? Thank you.

Flags: needinfo?(jcristau)
Keywords: regression
Regressed by: 1850749
Flags: needinfo?(jcristau)

Fixes mach bootstrap, among others.

Assignee: nobody → jcristau
Status: NEW → ASSIGNED

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

patch works on my mac, just for your info :)

Pushed by jcristau@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d2cf4b2420dc update references to IndexSearch. r=glandium
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: