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

Hygienic archive targets rebuild when nothing has changed

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Build
    • None
    • Server Development Platform
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: