Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-87291

Add bazel build up front option to scons

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Build
    • Fully Compatible

      We discussed with engflow the problem with the number of invocations we are generating. Currently in a scons build, we will batch targets up and perform multiple invocations of bazel during a single scons build. This was done to support a developer use case were you may be building specific targets and we wanted bazel to only build what was actually needed.

      However, the vast majority of developer use cases are with ninja, which by default does up front bazel builds. The majority of uses of pure scons builds is in the CI, where we generally are not building specific targets, and usually build meta targets like install-devcore or install-all. With these larger targets, bazel will generally be asked to build every anyways, so in that case it makes sense to do up front bazel builds.

      We should add a scons command line option "BAZEL_BUILD_UPFRONT" that will primarily be used in CI, that will perform an upfront build everything bazel build ("bazel build //...") in a thread before scons starts building targets (SCons would still walk and look for targets to build).

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: