[SERVER-85902] Bazel compile_dist_test fails on MacOS due to sdk version mismatch Created: 29/Jan/24  Updated: 06/Feb/24

Status: In Code Review
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc2

Type: Bug Priority: Major - P3
Reporter: Zack Winter Assignee: Udita Bose
Resolution: Unresolved Votes: 0
Labels: req-bazel-all-variant-launch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Build
Operating System: ALL
Sprint: Build and Correctness OnDeck
Participants:

 Description   

When bazel is enabled as required on MacOS it fails due to a mismatched sdk version:

https://parsley.mongodb.com/evergreen/mongodb_mongo_master_nightly_macos_compile_dist_test_patch_d014de1f058d989f03a01c1bfe822a2cdb54a41c_65b4567bd1fe07f5c6c144d3_24_01_27_01_04_11/0/task?bookmarks=0,14257,14497&selectedLineRange=L14257

This should be fixed by setting the bazel macos_minimum_os command line flag:

https://bazel.build/reference/command-line-reference#flag--macos_minimum_os

From the scons definitions:

https://github.com/10gen/mongo/blob/master/etc/scons/xcode_macosx_arm.vars#L14
https://github.com/10gen/mongo/blob/master/etc/scons/xcode_macosx.vars#L14

(probably makes sense to just hardcode this into integrate_bazel.py)


Generated at Thu Feb 08 06:58:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.