It is handy sometimes to be able to run patch builds that don't use the shared SCons cache, for instance to A/B test the performance impact of a compiler option or a toolchain change.
The easiest way to do this is to build with evergreen patch -param patch_compile_flags=-cache-disable .... Unfortunately, this appears to be broken right now, probably due to our cachedir customizations.
The stack trace looks like:
[2021/11/03 01:25:33.555] scons: *** [build\cached\mongo\config.h] TypeError : stat: path should be string, bytes, os.PathLike or integer, not NoneType [2021/11/03 01:25:33.563] Traceback (most recent call last): [2021/11/03 01:25:33.563] File "C:\data\mci\1faeba6a1bb6900b70a75ba67427a04e\src\src\third_party\scons-3.1.2\scons-local-3.1.2\SCons\Taskmaster.py", line 241, in execute [2021/11/03 01:25:33.563] if not t.retrieve_from_cache(): [2021/11/03 01:25:33.563] File "C:\data\mci\1faeba6a1bb6900b70a75ba67427a04e\src\src\third_party\scons-3.1.2\scons-local-3.1.2\SCons\Node\FS.py", line 2982, in retrieve_from_cache [2021/11/03 01:25:33.563] return self.get_build_env().get_CacheDir().retrieve(self) [2021/11/03 01:25:33.563] File "C:\data\mci\1faeba6a1bb6900b70a75ba67427a04e\src\site_scons\site_tools\validate_cache_dir.py", line 156, in retrieve [2021/11/03 01:25:33.563] self.log_json_cachedebug(node) [2021/11/03 01:25:33.563] File "C:\data\mci\1faeba6a1bb6900b70a75ba67427a04e\src\site_scons\site_tools\validate_cache_dir.py", line 147, in log_json_cachedebug [2021/11/03 01:25:33.563] cachefile = self.get_file_contents_path(self.cachepath(node)[1]) [2021/11/03 01:25:33.563] File "C:\data\mci\1faeba6a1bb6900b70a75ba67427a04e\src\site_scons\site_tools\validate_cache_dir.py", line 251, in cachepath [2021/11/03 01:25:33.563] if node.fs.exists(path): [2021/11/03 01:25:33.563] File "C:\data\mci\1faeba6a1bb6900b70a75ba67427a04e\src\src\third_party\scons-3.1.2\scons-local-3.1.2\SCons\Node\FS.py", line 1101, in exists [2021/11/03 01:25:33.563] return os.path.exists(path) [2021/11/03 01:25:33.563] File "C:\python\python37\lib\genericpath.py", line 19, in exists [2021/11/03 01:25:33.563] os.stat(path) [2021/11/03 01:25:33.563] TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType [2021/11/03 01:25:33.564] scons: *** [build\cached\mongo\base\error_codes.h] TypeError : stat: path should be string, bytes, os.PathLike or integer, not NoneType