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

Tag all Bazel Decorated SCons targets with AlwaysBuild & NoCache

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible

    Description

      Currently SCons isn't aware of bazel files. The SCons cache isn't invalidated and won't trigger a rebuild whenever a bazel build definition or rule is changed.

      To address this, tag all of the Bazel decorated SCons build definitions with AlwaysBuild and NoCache. This will make SCons always ask Bazel to build any converted targets regardless of the state of the cache.

      This won't meaningfully increase the duration of the build since bazel maintains its own remote (or local) cache. Effectively, scons will ask bazel to build the target and bazel will do nothing but copy over the cached artifact.

      Attachments

        Activity

          People

            zack.winter@mongodb.com Zack Winter
            zack.winter@mongodb.com Zack Winter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: