-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Build
-
ALL
On a clean repository, builds with Bazel and ENABLE_GRPC_BUILD=1 rebuild about 2000 files without any changes to the sources. Here are the repro steps:
(python3-venv) ubuntu@kal-virtual-workstation:~/workspace/mongo$ buildscripts/scons.py --ssl --build-tools=next --variables-files=etc/scons/developer_versions.vars --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars -j128 --jlink=4 ICECC=icecc CCACHE=ccache VARIANT_DIR=ninja DESTDIR=build/install_ninja --link-model=dynamic --dbg=on --opt=off ENABLE_GRPC_BUILD=1 --ninja generate-ninja ... (python3-venv) ubuntu@kal-virtual-workstation:~/workspace/mongo$ ninja -j128 install-all ... 1 warning generated. [9900/9900] Compiled test list: build/unittests.txt (python3-venv) ubuntu@kal-virtual-workstation:~/workspace/mongo$ ninja -j128 install-all [0/6905] Running bazel build INFO: Invocation ID: 51c662c6-1f2f-40ab-97da-1bf1c9495d6d INFO: Streaming build results to: https://sodalite.cluster.engflow.com/invocation/51c662c6-1f2f-40ab-97da-1bf1c9495d6d INFO: Analyzed 132 targets (0 packages loaded, 0 targets configured). INFO: Found 132 targets... INFO: Writing explanation of rebuilds to 'bazel_explain.log' INFO: Elapsed time: 1.532s, Critical Path: 0.02s INFO: 1 process: 1 internal. INFO: Streaming build results to: https://sodalite.cluster.engflow.com/invocation/51c662c6-1f2f-40ab-97da-1bf1c9495d6d INFO: Build completed successfully, 1 total action [1777/2006] Installed build/install_ninja/bin/executor_test
I am also attaching the bazel_explain.log mentioned in the output, but it doesn't contain too much information.
If ENABLE_GRPC_BUILD=1 is removed, the problem doesn't reproduce.