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

compiledb target recompiles the world

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Build
    • ALL

      If I rebuild my compiledb after a while (because I don't rebuild it often), it actually does a full compile of 14k files:

      buildscripts/scons.py --build-profile=compiledb compiledb
      ...
      Bazel build command:
      /home/ubuntu/.local/bin/bazelisk build --compiler_type=clang --opt=off --dbg=True --debug_symbols=True --thin_lto=False --separate_debug=False --libunwind=auto --use_gdbserver=False --spider_monkey_dbg=False --allocator=tcmalloc-google --use_lldbserver=False --use_wait_for_debugger=False --use_ocsp_stapling=True --use_disable_ref_track=False --use_wiredtiger=True --use_glibcxx_debug=False --use_tracing_profiler=False --build_grpc=False --use_libcxx=False --detect_odr_violations=False --linkstatic=False --shared_archive=False --linker=auto --streams_release_build=False --release=False --build_enterprise=True --visibility_support=auto --disable_warnings_as_errors=True --gcov=False --pgo_profile=False --server_js=True --ssl=True --js_engine=mozjs --use_sasl_client=False --define MONGO_VERSION=8.1.0-alpha --define MONGO_DISTMOD= --compilation_mode=dbg --dynamic_mode=off --platforms=//bazel/platforms:ubuntu22_arm64 --host_platform=//bazel/platforms:ubuntu22_arm64 --//bazel/config:enterprise_feature_all=True --dwarf_version=4 --http_client=True --output_filter=DONT_MATCH_ANYTHING //src/...
      Starting bazel build thread...
      SCons done, switching to bazel build thread...
      INFO: Invocation ID: b6c9e5c4-dd42-4df4-a951-062c3f3f7fcb
      INFO: Streaming build results to: https://sodalite.cluster.engflow.com/invocation/b6c9e5c4-dd42-4df4-a951-062c3f3f7fcb
      INFO: Analyzed 7348 targets (0 packages loaded, 0 targets configured).
      [9,889 / 14,324] 200 actions, 15 running
          Compiling src/mongo/db/auth/sasl_commands.cpp; 52s remote, remote-cache
          .../mongo/db/auth:auth_impl_internal_with_debug; 49s remote, remote-cache
          .../mongo/client:clientdriver_network_with_debug; 45s remote, remote-cache
          .../mongo/client:clientdriver_network_with_debug; 43s remote, remote-cache
          //src/mongo/db:sbe_values_with_debug; 42s remote, remote-cache
          //src/mongo/db:sbe_values_with_debug; 42s remote, remote-cache
          Compiling src/mongo/client/connpool.cpp; 41s remote, remote-cache
          //src/mongo/s:common_s_with_debug; 39s remote, remote-cache ...
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: