Closed Bug 1731945 Opened 4 years ago Closed 4 years ago

Permanent [tier 2] ImportError: cannot import name 'Build' from 'mozbuild.build_commands' (/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/build_commands.py)

Categories

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

defect

Tracking

(firefox-esr78 unaffected, firefox-esr91 unaffected, firefox92 unaffected, firefox93 unaffected, firefox94 fixed)

RESOLVED FIXED
94 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- unaffected
firefox92 --- unaffected
firefox93 --- unaffected
firefox94 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: mhentges)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 obsolete file)

Filed by: ctuns [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=352330908&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/bYkjJe5EQymfAit_QizNNg/runs/0/artifacts/public/logs/live_backing.log


[fetches 2021-09-22T04:56:00.880Z] Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/WR8U4oHRQ72F2kPYqrYTjQ/artifacts/public/build/cbindgen.tar.zstattempt 1/5Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Dt5EaY74Q_ufy0Jpn5X-zw/artifacts/public/build/clang.tar.zst
[fetches 2021-09-22T04:56:00.881Z] 
[fetches 2021-09-22T04:56:00.881Z] Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/SzK6ItbeRWG85Auenz8ZWg/artifacts/public/build/clang-tidy.tar.zst
[fetches 2021-09-22T04:56:00.882Z] 
[fetches 2021-09-22T04:56:00.882Z] Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/fmV5iQb4R5uQbwnL5MCrHg/artifacts/public/build/nasm.tar.zst to /builds/worker/fetches/nasm.tar.zst
[fetches 2021-09-22T04:56:00.882Z] Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/fmV5iQb4R5uQbwnL5MCrHg/artifacts/public/build/nasm.tar.zst
[fetches 2021-09-22T04:56:01.017Z] https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/fmV5iQb4R5uQbwnL5MCrHg/artifacts/public/build/nasm.tar.zst resolved to 802839 bytes with sha256 dacfab40ac154da3f64de7bef2ec49f766e65c17d16021d8364f54ab5c50a568 in 0.134s
[fetches 2021-09-22T04:56:01.018Z] Extracting /builds/worker/fetches/nasm.tar.zst to /builds/worker/fetches
[fetches 2021-09-22T04:56:01.043Z] https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/WR8U4oHRQ72F2kPYqrYTjQ/artifacts/public/build/cbindgen.tar.zst resolved to 2801875 bytes with sha256 6a0f8d7ce22bb7161054bb019706071bed6c2474e0dcb30e6315745b40e36caa in 0.162s/builds/worker/fetches/nasm.tar.zst extracted in 0.024s
[fetches 2021-09-22T04:56:01.043Z] Extracting /builds/worker/fetches/cbindgen.tar.zst to /builds/worker/fetches
[fetches 2021-09-22T04:56:01.043Z] 
[fetches 2021-09-22T04:56:01.043Z] Removing /builds/worker/fetches/nasm.tar.zst
[fetches 2021-09-22T04:56:01.045Z] attempt 1/5
[fetches 2021-09-22T04:56:01.047Z] Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/DTKTfdlSQw2QdxR11OL5Sw/artifacts/public/build/node.tar.zst to /builds/worker/fetches/node.tar.zst
[fetches 2021-09-22T04:56:01.050Z] Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/DTKTfdlSQw2QdxR11OL5Sw/artifacts/public/build/node.tar.zst
[fetches 2021-09-22T04:56:01.094Z] /builds/worker/fetches/cbindgen.tar.zst extracted in 0.052s
[fetches 2021-09-22T04:56:01.094Z] Removing /builds/worker/fetches/cbindgen.tar.zst
[fetches 2021-09-22T04:56:01.095Z] attempt 1/5
[fetches 2021-09-22T04:56:01.095Z] Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/esJMb4KoSeOewXsRutxIbA/artifacts/public/build/rustc.tar.zst to /builds/worker/fetches/rustc.tar.zst
[fetches 2021-09-22T04:56:01.096Z] Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/esJMb4KoSeOewXsRutxIbA/artifacts/public/build/rustc.tar.zst
[fetches 2021-09-22T04:56:01.503Z] https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/DTKTfdlSQw2QdxR11OL5Sw/artifacts/public/build/node.tar.zst resolved to 21437089 bytes with sha256 851cabb95edc90be23562f245ffd966082c84e9671f1711f5852d69bd3bb113c in 0.451s
[fetches 2021-09-22T04:56:01.505Z] Extracting /builds/worker/fetches/node.tar.zst to /builds/worker/fetches
[fetches 2021-09-22T04:56:01.812Z] https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/SzK6ItbeRWG85Auenz8ZWg/artifacts/public/build/clang-tidy.tar.zst resolved to 53747174 bytes with sha256 9a610c4fc93e09949d7141e38923f5717d75e1f339b2e4397076f91a488b3bc1 in 0.930s
[fetches 2021-09-22T04:56:01.812Z] Extracting /builds/worker/fetches/clang-tidy.tar.zst to /builds/worker/fetches
[fetches 2021-09-22T04:56:02.258Z] /builds/worker/fetches/node.tar.zst extracted in 0.749s
[fetches 2021-09-22T04:56:02.258Z] Removing /builds/worker/fetches/node.tar.zst
[fetches 2021-09-22T04:56:02.261Z] attempt 1/5
[fetches 2021-09-22T04:56:02.261Z] Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/RruvVGWmR_qYd0phR5leQA/artifacts/public/build/sysroot-wasm32-wasi.tar.zst to /builds/worker/fetches/sysroot-wasm32-wasi.tar.zst
[fetches 2021-09-22T04:56:02.262Z] Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/RruvVGWmR_qYd0phR5leQA/artifacts/public/build/sysroot-wasm32-wasi.tar.zst
[fetches 2021-09-22T04:56:02.363Z] https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Dt5EaY74Q_ufy0Jpn5X-zw/artifacts/public/build/clang.tar.zst resolved to 163387408 bytes with sha256 01edb55327f8122621ef427c74fda2f97981c645cf429b1cb8c205951b186216 in 1.482s
[fetches 2021-09-22T04:56:02.364Z] Extracting /builds/worker/fetches/clang.tar.zst to /builds/worker/fetches
[fetches 2021-09-22T04:56:02.398Z] https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/RruvVGWmR_qYd0phR5leQA/artifacts/public/build/sysroot-wasm32-wasi.tar.zst resolved to 1771310 bytes with sha256 fe5c9e925a0973a870cbe4013dee8a4a4fa82b2b78e0f38389248448dfd32805 in 0.137s
[fetches 2021-09-22T04:56:02.399Z] Extracting /builds/worker/fetches/sysroot-wasm32-wasi.tar.zst to /builds/worker/fetches
[fetches 2021-09-22T04:56:02.499Z] /builds/worker/fetches/sysroot-wasm32-wasi.tar.zst extracted in 0.100s
[fetches 2021-09-22T04:56:02.499Z] Removing /builds/worker/fetches/sysroot-wasm32-wasi.tar.zst
[fetches 2021-09-22T04:56:02.501Z] attempt 1/5
[fetches 2021-09-22T04:56:02.501Z] Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/OYSX8foETfuTBMGtnJuqew/artifacts/public/build/sysroot-x86_64-linux-gnu.tar.zst to /builds/worker/fetches/sysroot-x86_64-linux-gnu.tar.zst
[fetches 2021-09-22T04:56:02.501Z] Downloading https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/OYSX8foETfuTBMGtnJuqew/artifacts/public/build/sysroot-x86_64-linux-gnu.tar.zst
[fetches 2021-09-22T04:56:02.982Z] https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/OYSX8foETfuTBMGtnJuqew/artifacts/public/build/sysroot-x86_64-linux-gnu.tar.zst resolved to 52803050 bytes with sha256 dfe7296ca54aa459687cbeae54dbd2b229774edfcb73da959dff68176d5abf1e in 0.481s
[fetches 2021-09-22T04:56:02.984Z] Extracting /builds/worker/fetches/sysroot-x86_64-linux-gnu.tar.zst to /builds/worker/fetches
[fetches 2021-09-22T04:56:03.147Z] https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/esJMb4KoSeOewXsRutxIbA/artifacts/public/build/rustc.tar.zst resolved to 244981650 bytes with sha256 7caaa50abd0860cfd724148e6d5355e70adb71300b398fc526c4976001652911 in 2.051s
[fetches 2021-09-22T04:56:03.150Z] Extracting /builds/worker/fetches/rustc.tar.zst to /builds/worker/fetches
[fetches 2021-09-22T04:56:03.211Z] /builds/worker/fetches/clang-tidy.tar.zst extracted in 1.399s
[fetches 2021-09-22T04:56:03.212Z] Removing /builds/worker/fetches/clang-tidy.tar.zst
[fetches 2021-09-22T04:56:03.830Z] /builds/worker/fetches/sysroot-x86_64-linux-gnu.tar.zst extracted in 0.846s
[fetches 2021-09-22T04:56:03.830Z] Removing /builds/worker/fetches/sysroot-x86_64-linux-gnu.tar.zst
[fetches 2021-09-22T04:56:05.356Z] /builds/worker/fetches/clang.tar.zst extracted in 2.993s
[fetches 2021-09-22T04:56:05.357Z] Removing /builds/worker/fetches/clang.tar.zst
[fetches 2021-09-22T04:56:06.545Z] /builds/worker/fetches/rustc.tar.zst extracted in 3.394s
[fetches 2021-09-22T04:56:06.545Z] Removing /builds/worker/fetches/rustc.tar.zst
[fetches 2021-09-22T04:56:06.581Z] PERFHERDER_DATA: {"framework": {"name": "build_metrics"}, "suites": [{"name": "fetch_content", "value": 5.705274627000108, "lowerIsBetter": true, "shouldAlert": false, "subtests": []}]}
[fetches 2021-09-22T04:56:06.600Z] finished fetching artifacts
[task 2021-09-22T04:56:06.600Z] executing ['bash', '-cx', 'source taskcluster/scripts/misc/source-test-common.sh && ./mach test-info report --show-tests --show-summary --verbose --output-file /builds/worker/artifacts/test-info-all-tests.json && ./mach test-info report --show-annotations --output-file /builds/worker/artifacts/test-info-manifest-conditions.json']in /builds/worker/checkouts/gecko
[task 2021-09-22T04:56:06.602Z] + source taskcluster/scripts/misc/source-test-common.sh
[task 2021-09-22T04:56:06.604Z] ++ set -x -e
[task 2021-09-22T04:56:06.604Z] ++ export MOZBUILD_STATE_PATH=/builds/worker/workspace
[task 2021-09-22T04:56:06.604Z] ++ MOZBUILD_STATE_PATH=/builds/worker/workspace
[task 2021-09-22T04:56:06.604Z] ++ export PATH=/builds/worker/fetches/clang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[task 2021-09-22T04:56:06.604Z] ++ PATH=/builds/worker/fetches/clang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[task 2021-09-22T04:56:06.605Z] ++ export PATH=/builds/worker/fetches/rustc/bin:/builds/worker/fetches/clang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[task 2021-09-22T04:56:06.605Z] ++ PATH=/builds/worker/fetches/rustc/bin:/builds/worker/fetches/clang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[task 2021-09-22T04:56:06.605Z] ++ export PATH=/builds/worker/fetches/cbindgen:/builds/worker/fetches/rustc/bin:/builds/worker/fetches/clang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[task 2021-09-22T04:56:06.605Z] ++ PATH=/builds/worker/fetches/cbindgen:/builds/worker/fetches/rustc/bin:/builds/worker/fetches/clang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[task 2021-09-22T04:56:06.605Z] ++ export PATH=/builds/worker/fetches/nasm:/builds/worker/fetches/cbindgen:/builds/worker/fetches/rustc/bin:/builds/worker/fetches/clang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[task 2021-09-22T04:56:06.605Z] ++ PATH=/builds/worker/fetches/nasm:/builds/worker/fetches/cbindgen:/builds/worker/fetches/rustc/bin:/builds/worker/fetches/clang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[task 2021-09-22T04:56:06.605Z] ++ export PATH=/builds/worker/fetches/node/bin:/builds/worker/fetches/nasm:/builds/worker/fetches/cbindgen:/builds/worker/fetches/rustc/bin:/builds/worker/fetches/clang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[task 2021-09-22T04:56:06.605Z] ++ PATH=/builds/worker/fetches/node/bin:/builds/worker/fetches/nasm:/builds/worker/fetches/cbindgen:/builds/worker/fetches/rustc/bin:/builds/worker/fetches/clang/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[task 2021-09-22T04:56:06.605Z] ++ export CC=/builds/worker/fetches/clang/bin/clang
[task 2021-09-22T04:56:06.605Z] ++ CC=/builds/worker/fetches/clang/bin/clang
[task 2021-09-22T04:56:06.605Z] ++ export CXX=/builds/worker/fetches/clang/bin/clang++
[task 2021-09-22T04:56:06.605Z] ++ CXX=/builds/worker/fetches/clang/bin/clang++
[task 2021-09-22T04:56:06.605Z] + ./mach test-info report --show-tests --show-summary --verbose --output-file /builds/worker/artifacts/test-info-all-tests.json
[task 2021-09-22T04:56:08.193Z] Error running mach:
[task 2021-09-22T04:56:08.193Z] 
[task 2021-09-22T04:56:08.193Z]     ['test-info', 'report', '--show-tests', '--show-summary', '--verbose', '--output-file', '/builds/worker/artifacts/test-info-all-tests.json']
[task 2021-09-22T04:56:08.193Z] 
[task 2021-09-22T04:56:08.193Z] The error occurred in the implementation of the invoked mach command.
[task 2021-09-22T04:56:08.194Z] 
[task 2021-09-22T04:56:08.194Z] This should never occur and is likely a bug in the implementation of that
[task 2021-09-22T04:56:08.194Z] command.
[task 2021-09-22T04:56:08.194Z] You can invoke |./mach busted| to check if this issue is already on file. If it
[task 2021-09-22T04:56:08.194Z] isn't, please use |./mach busted file test-info| to report it. If |./mach busted| is
[task 2021-09-22T04:56:08.194Z] misbehaving, you can also inspect the dependencies of bug 1543241.
[task 2021-09-22T04:56:08.194Z] 
[task 2021-09-22T04:56:08.194Z] If filing a bug, please include the full output of mach, including this error
[task 2021-09-22T04:56:08.195Z] message.
[task 2021-09-22T04:56:08.195Z] 
[task 2021-09-22T04:56:08.195Z] The details of the failure are as follows:
[task 2021-09-22T04:56:08.195Z] 
[task 2021-09-22T04:56:08.195Z] ImportError: cannot import name 'Build' from 'mozbuild.build_commands' (/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/build_commands.py)
[task 2021-09-22T04:56:08.195Z] 
[task 2021-09-22T04:56:08.195Z]   File "/builds/worker/checkouts/gecko/testing/mach_commands.py", line 895, in test_report
[task 2021-09-22T04:56:08.195Z]     from mozbuild.build_commands import Build
[taskcluster 2021-09-22 04:56:11.154Z] === Task Finished ===
[taskcluster 2021-09-22 04:56:11.242Z] Artifact "public" not found at "/builds/worker/artifacts"
[taskcluster 2021-09-22 04:56:11.337Z] Unsuccessful task run with exit code: 1 completed in 18.664 seconds
Flags: needinfo?(alex.lopez.zorzano)
Keywords: regression
Regressed by: 1696251
Summary: Intermittent [tier 2] ImportError: cannot import name 'Build' from 'mozbuild.build_commands' (/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/build_commands.py) → Permanent [tier 2] ImportError: cannot import name 'Build' from 'mozbuild.build_commands' (/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/build_commands.py)
Has Regression Range: --- → yes

This was a case where a Mach command class was built and used,
and massaging it into the classless format was accidentally
overlooked.

Assignee: nobody → mhentges
Status: NEW → ASSIGNED
Flags: needinfo?(alex.lopez.zorzano)
Attachment #9242505 - Attachment is obsolete: true

Closing as the fix got landed in bug 1696251

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: