Closed Bug 1720113 Opened 4 years ago Closed 4 years ago

`./mach clobber` doesn't clobber the objdir hard enough

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(firefox-esr78 unaffected, firefox90 wontfix, firefox91 wontfix, firefox92 fixed)

RESOLVED FIXED
92 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox90 --- wontfix
firefox91 --- wontfix
firefox92 --- fixed

People

(Reporter: jfkthame, Assigned: mhentges)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

In particular, ./mach clobber doesn't blow away _virtualenvs, and this can result in a mysteriously broken build.

In my case, I was getting Glean-related build failures even after clobbering, because there was an outdated glean_parser cached in the objdir's _virtualenvs. It took entirely too long to figure out that clobber wasn't enough and I needed to manually rm -rf' the entire objdir to get a successful build again.

(Bug 1645889 sounds like it should have taken care of this, but I've just been experiencing the pain on current trunk.)

See Also: → 1645889
See Also: → 1712382

I see this changed in c1bda584266e (bug 1712382) -- prior to that, ./mach clobber did delete the _virtualenvs directory in the objdir.

I think it would be better if ./mach clobber continues to include the functionality of ./mach clobber python (as per bug 1645889); the default behavior here should be the simple thing that works all the time. More sophisticated users may want to be able to "clobber" individual categories of things, but ./mach clobber should be the command that "just works" without requiring a detailed understanding of what the local breakage happens to be.

See Also: → 1719902

This was caused by this patch, where I assumed that virtualenv stability was stronger than it is. Fortunately, they will be made more resilient (recover incomplete venvs, automatically update venvs when requirements change) in the next few months.

However, since that stability is still a ways away, I'll temporarily adjust clobber to purge virtualenvs still.
Thanks for the report!

Assignee: nobody → mhentges
Status: NEW → ASSIGNED
Regressed by: 1712382
Has Regression Range: --- → yes

Until virtualenvs are more dependably consistent, we should purge them
by default when "./mach clobber" is run.

Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7d3866600b1c Temporarily add "python" to default clobber set r=firefox-build-system-reviewers,nalexander
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch

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

The patch landed in nightly and beta is affected.
:mhentges, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(mhentges)
Flags: needinfo?(mhentges)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: