Building Firefox seems to not actually complete properly but returns a success status
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox71 fixed)
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: ahal)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files)
This is a recent-ish regression on Mac; I haven't built on Mac in about a month or two until yesterday, so I think sometime in there.
The symptoms are that I run "mach build" and the build kinda finishes: it gets to linking XUL and processing jars, then throws an exception about terminal-notifier, which I don't recall seeing before, even though that code is fairly old. It does look like the code around that exception changed in bug 1563797 back in July, so maybe that's when this started?
I'll attach a log of what that looks like, but the upshot is that the build claims to complete, albeit with a bunch of exception stack spew, and returns a success status for shell purposes (so doing "mach build && echo OK" echoes "OK").
But now if I run the build again, without changing anything at all, instead of being a no-op it rebuilds various Rust stuff. If I do this a few times, eventually the build completes without building any Rust stuff anymore, and then I also don't get the terminal-notifier exception.
Reporter | ||
Comment 1•5 years ago
|
||
Reporter | ||
Comment 2•5 years ago
|
||
Though maybe it does and this time we manage to JSON serialiaze it?
Though again, once we get to this stage no more Rust stuff gets built and I don't get those stack traces logged, until I change some code and rebuild... and then the whole thing starts happening again for a bit.
Comment 3•5 years ago
|
||
Rust rebuilding unnecessarily may not be related and may be due to an older version of sccache interacting badly with a newer rustc. I'm landing a version check for this so people don't hit it anymore, but upgrading or disabling sccache for now may fix that.
Andrew, does that exception seem like it could be related to recent python 3 upgrade work?
Reporter | ||
Comment 4•5 years ago
|
||
I'm not using sccache, fwiw. I do have a newer rustc (1.37).
Assignee | ||
Comment 5•5 years ago
|
||
The build still runs with Python 2, so I wouldn't expect many differences there. I'd definitely be more suspicious of bug 1563797. Since this is a bug in an error case, there's also a good chance it was regressed long ago (or was broken to begin with) and no one noticed until now.
Boris, can you confirm whether terminal-notifier
is on your $PATH? If not, I bet installing it will fix the issue. Either way we should fix the error handling here.
Reporter | ||
Comment 6•5 years ago
|
||
Boris, can you confirm whether terminal-notifier is on your $PATH?
It's not. I added MOZ_NOSPAM to my environment to fix things for the moment.
Assignee | ||
Comment 7•5 years ago
|
||
Oh, this is a regression from:
https://hg.mozilla.org/mozilla-central/rev/983a86c020c9
So it was the Python 3 work after all.
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D43820
Assignee | ||
Comment 9•5 years ago
|
||
Kind of odd that the site of the log call in mozbuild.base
didn't show up in the stack :/
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•