Skip to content

Commit 693e487

Browse files
authored
Use --relocate-xdg-cache-home-under-build-subdir for some Linux presets
This should reduce the frequency of module errors due to shared module caches between runs on the same Linux bot. The list of presets affected should be ``` buildbot_incremental_linux buildbot_incremental_linux,asan buildbot_incremental_linux,llvm-only buildbot_incremental_linux,long_test buildbot_incremental_linux,tsan-libdispatch-test buildbot_incremental_linux_1404 buildbot_incremental_linux_1404,long_test buildbot_incremental_linux_base buildbot_linux buildbot_linux,foundation=debug buildbot_linux,foundation=release buildbot_linux,no_test buildbot_linux,smoketest buildbot_linux_1404_no_lldb buildbot_linux_1510 buildbot_linux_1510,notest buildbot_linux_1604 buildbot_linux_1604,notest buildbot_linux_1610 buildbot_linux_1610,notest buildbot_linux_1804 buildbot_linux_1804,notest mixin_linux_installation ``` Addresses rdar://73932610, rdar://73933230
2 parents b5e17fb + e12d927 commit 693e487

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

utils/build-presets.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,13 @@ install-destdir=%(install_destdir)s
806806
# Path to the .tar.gz package we would create.
807807
installable-package=%(installable_package)s
808808

809+
# This ensures the default module cache
810+
# location is local to this run, allowing
811+
# to schedule multiple builds safely
812+
# in Linux CI bots
813+
relocate-xdg-cache-home-under-build-subdir
814+
815+
809816
[preset: buildbot_linux]
810817
mixin-preset=mixin_linux_installation
811818
build-subdir=buildbot_linux
@@ -1038,6 +1045,13 @@ lit-args=-v
10381045
build-ninja
10391046
reconfigure
10401047

1048+
# This ensures the default module cache
1049+
# location is local to this run, allowing
1050+
# to schedule multiple builds safely
1051+
# in Linux CI bots
1052+
relocate-xdg-cache-home-under-build-subdir
1053+
1054+
10411055
[preset: buildbot_incremental_linux]
10421056
mixin-preset=
10431057
buildbot_incremental_linux_base

0 commit comments

Comments
 (0)