Closed Bug 1843132 Opened 2 years ago Closed 2 years ago

error in `mach --log-no-times artifact toolchain --from-task ZWciktpZTC-70WvS_5Odiw:public/build/clang.tar.zst`

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alwu, Unassigned)

References

(Blocks 1 open bug)

Details

STR.

  1. run $./mach build

Expect.
2. building code correctly

Actual
2. show error

 0:02.01 W Clobber not needed.
 Config object not found by mach.
 0:02.82 Using Python 3.9.10 from C:\Users\Alastor\.mozbuild\srcdirs\mozilla-unified-f689344771d4\_virtualenvs\build\Scripts\python.exe
 0:02.83 Adding configure options from C:\mozilla-source\mozilla-unified\.mozconfig
 0:02.83   --enable-debug
 0:02.83   --with-ccache=sccache
 0:02.83 checking for vcs source checkout... hg
 0:02.87 checking for a shell... C:/mozilla-build/msys2/usr/bin/sh.exe
 0:02.87 checking for host system type... x86_64-pc-windows-msvc
 0:02.87 checking for target system type... x86_64-pc-windows-msvc
 0:03.10 checking whether cross compiling... no
 0:03.17 checking for Python 3... C:/Users/Alastor/.mozbuild/srcdirs/mozilla-unified-f689344771d4/_virtualenvs/build/Scripts/python.exe (3.9.10)
 0:03.17 checking for hg... C:/mozilla-build/Python3/Scripts/hg.exe
 0:03.52 checking for Mercurial version... 6.1.1+hg7.43a05fbd679c
 0:03.97 checking for sparse checkout... no
 0:09.53 checking for wget... C:/mozilla-build/msys2/usr/bin/wget.exe
 0:09.67 Updating bootstrapped toolchain in C:/Users/Alastor/.mozbuild/clang
 0:13.26 Error running mach:
 0:13.26     mach --log-no-times artifact toolchain --from-task ZWciktpZTC-70WvS_5Odiw:public/build/clang.tar.zst
 0:13.26 The error occurred in code that was called by the mach command. This is either
 0:13.26 a bug in the called code itself or in the way that mach is calling it.
 0:13.26 You can invoke ``./mach busted`` to check if this issue is already on file. If it
 0:13.26 isn't, please use ``./mach busted file artifact`` to report it. If ``./mach busted`` is
 0:13.27 misbehaving, you can also inspect the dependencies of bug 1543241.
 0:13.27 If filing a bug, please include the full output of mach, including this error
 0:13.27 message.
 0:13.27 The details of the failure are as follows:
 0:13.27 requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://firefoxci.taskcluster-artifacts.net/ZWciktpZTC-70WvS_5Odiw/0/public/chain-of-trust.json
 0:13.27   File "C:\mozilla-source\mozilla-unified\python\mozbuild\mozbuild\artifact_commands.py", line 485, in artifact_toolchain
 0:13.28     record = ArtifactRecord(task_id, name)
 0:13.28   File "C:\mozilla-source\mozilla-unified\python\mozbuild\mozbuild\artifact_commands.py", line 328, in __init__
 0:13.28     cot.raise_for_status()
 0:13.28   File "c:\mozilla-source\mozilla-unified\third_party\python\requests\requests\models.py", line 943, in raise_for_status
 0:13.28     raise HTTPError(http_error_msg, response=self)
 0:13.28 Sentry event ID: 67f10aecd2284ae6a221d9f1bb46445b
 0:13.44 ERROR: Command '['C:\\Users\\Alastor\\.mozbuild\\srcdirs\\mozilla-unified-f689344771d4\\_virtualenvs\\build\\Scripts\\python.exe', 'C:/mozilla-source/mozilla-unified/mach', '--log-no-times', 'artifact', 'toolchain', '--from-task', 'ZWciktpZTC-70WvS_5Odiw:public/build/clang.tar.zst']' returned non-zero exit status 1.
 0:13.44 ERROR: If you can't fix the above, retry with --disable-bootstrap.
*** Fix above errors and then restart with "./mach build"

Glandium and I discussed this and we're assuming you happened to be on the newest autoland while it was still building the artifacts for that revision. Was this a recent fresh clone you did manually, or did you explicitly hg up autoland? If yes, then you just hit an unlucky timing.

We did discuss the possibility of a workaround for this, where if this situation is hit and the artifacts aren't available yet, we could default to the most recently build artifacts from mozilla-central which should work...

Flags: needinfo?(alwu)

I always update my branch to central, not autoland. But this issue no longer happens on the latest central, I will close this bug.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(alwu)
Resolution: --- → FIXED

There are only very rare occasions where central would have a failure like this one, and this is not one of them AFAICT. Going backwards from your error message: ZWciktpZTC-70WvS_5Odiw was built off https://hg.mozilla.org/integration/autoland/rev/2156bbbd6a6d095bdf5575f46dd1a48536c26190, and finished building at 2023-07-11T03:18:30.368Z. That revision was merged to mozilla-central 13 hours later.

You need to log in before you can comment on or make changes to this bug.