[SERVER-85362] Tag all Bazel Decorated SCons targets with AlwaysBuild & NoCache Created: 17/Jan/24  Updated: 30/Jan/24  Resolved: 18/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Zack Winter Assignee: Zack Winter
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Currently SCons isn't aware of bazel files. The SCons cache isn't invalidated and won't trigger a rebuild whenever a bazel build definition or rule is changed.

To address this, tag all of the Bazel decorated SCons build definitions with AlwaysBuild and NoCache. This will make SCons always ask Bazel to build any converted targets regardless of the state of the cache.

This won't meaningfully increase the duration of the build since bazel maintains its own remote (or local) cache. Effectively, scons will ask bazel to build the target and bazel will do nothing but copy over the cached artifact.



 Comments   
Comment by Githook User [ 18/Jan/24 ]

Author:

{'name': 'Zack Winter', 'email': '3457246+zackwintermdb@users.noreply.github.com', 'username': 'zackwintermdb'}

Message: SERVER-85362 Tag all Bazel Decorated SCons targets with AlwaysBuild & NoCache (#18124)

GitOrigin-RevId: fdfd328ad105938e179c4748dab2ae172c09f30c
Branch: master
https://github.com/mongodb/mongo/commit/9c6b761030aff1a76a2714d8c47a0b3f9fa32457

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