-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
Fully Compatible
-
ALL
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Running the unit test db_query_test in Bazel shows the following error:
"Golden data file doesn't exist: \"./src/mongo/db/query/test_output/query_planner_i_x_select_test/strip_invalid_c_w_i_assignments_basic.txt\"
This occurs because Bazel requires the referenced test data explicitly listed as dependencies. When running the test in bazel run, bazel creates a temporary folder for the environment. Without specifying the test data, Bazel won't copy the test data there, causing the test to fail to find the golden test data there.