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

Hygienic archive targets rebuild when nothing has changed

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Server Development Platform
    • Fully Compatible

      If you run the following command twice:

      $ python3 ./buildscripts/scons.py --variables-files=etc/scons/mongodbtoolchain_v3_gcc.vars --separate-debug --install-mode=hygienic --implicit-cache --build-fast-and-loose=on archive-dist -j300 --debug=explain
      

      Then the second build will recreate the dist archive, even though it should be viewed as up to date. The explain output looks like:

      scons: done reading SConscript files.
      scons: Building targets ...
      scons: rebuilding `mongodb-dist.tgz' because:
                 `build/aib_make_archive.py' changed
                 `install-dist' changed
                 `/bin/tar' changed
      Building package mongodb-dist.tgz from install-dist
      scons: done building targets.
      

      Now, the SCons --debug=explain output is notoriously unreliable. I suspect that what is actually happening is that the ordering of the file arguments to the tar command is unstable. But we should fix whatever is causing these to rebuild.

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: