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

Tag all Bazel Decorated SCons targets with AlwaysBuild & NoCache

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: