Open Bug 1903574 Opened 1 year ago Updated 1 year ago

Do not build mfbt tests in the default build

Categories

(Firefox Build System :: General, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: Sylvestre, Unassigned)

References

Details

Currently, if we do a "./mach bootstrap && ./mach build", the tests in mfbt/tests will be built by default.

Some of theses:
mfbt/tests/TestAlgorithm.cpp
mfbt/tests/TestBufferList.cpp
mfbt/tests/TestCasting.cpp
mfbt/tests/TestCheckedInt.cpp
etc

They were probably relevant when C++ wasn't well supported but now, they are probably useless.
Maybe they should be moved to the gtest test suite and executed more rarely

They were probably relevant when C++ wasn't well supported but now, they are probably useless.

They ensure code in mfbt is not broken when changed. That's not useless.

Maybe they should be moved to the gtest test suite and executed more rarely

This and that are unrelated. Moving them to gtests would create more friction. What's the problem you actually want to solve? From the sound of it, you want to avoid building tests until they're run.

From the sound of it, you want to avoid building tests until they're run.

More or less
I would like "mach build" not to build them by default. I think they don't provide enough value to be built everytime with Firefox.

Depends on: 1903769

We have --disable-tests for that scenario. unfortunately it's currently broken, but https://bugzilla.mozilla.org/show_bug.cgi?id=1903769 should make it work again. Then the question becomes: should this be the default?

Yeah and enabled in some of the builds in the ci.

And then you run mach cppunitest and it doesn't work. The way forward would be something like what we do for gtest, and I would even go as far as removing the --disable-test option.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.