[SERVER-45252] Improve the UX of the SCons variables files Created: 19/Dec/19  Updated: 29/Oct/23  Resolved: 13/Jan/20

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Dev Platform 2020-01-27
Participants:

 Description   

Our SCons implementation offers a --variables-files flag which can be used to specify one or more files to load.

Most often, it is used to name a file that describes how to use the custom MongoDB toolchain.

Once you have named that file, SCons will assume that it means that you didn't want to load your personal mongo_custom_variables.py from $HOME/.scons/site_scons.

In order to do both things, you need to pass both files as arguments, wrapped in quotes, like --variables-files="$HOME/.scons/site_scons/mongo_custom_variables.py ./etc/scons/icecream_macosx_via_linux_cross.vars". This is fragile and annoying.

We should improve the UX for this, so that it is easier for users to both name a toolchain, and record customizations in their personal variables files, such as providing a developer friendly generator for the MONGO_VERSION variable, or enabling icecream or ccache.



 Comments   
Comment by Githook User [ 13/Jan/20 ]

Author:

{'name': 'Andrew Morrow', 'email': 'andrew.morrow@10gen.com'}

Message: SERVER-45252 Improve the UX of the --variables-files flag
Branch: master
https://github.com/mongodb/mongo/commit/02068498362c414b14ba6dcf10a87b3a7ddc32d3

Generated at Thu Feb 08 05:08:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.