Skip to content

Commit 3de7f85

Browse files
committed
Merged PR 723530: Use blob L3 cache for linux selfhost builds
Use a blob backed L3 cache for linux selfhost builds. The retention period is now configured to be 1 day as a way to stress test the eviction mechanism. Something like 3 or 4 days will probably be more reasonable after we are done testing this feature. Related work items: #2074180
1 parent eb239e6 commit 3de7f85

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

.azdo/linux/job-selfhost.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,12 @@ jobs:
7575
"Assembly": "BuildXL.Cache.VerticalAggregator",
7676
"Type": "BuildXL.Cache.VerticalAggregator.VerticalCacheAggregatorFactory",
7777
"RemoteCache": {
78-
"CacheServiceFingerprintEndpoint": "https://mseng.artifacts.visualstudio.com/DefaultCollection",
79-
"RequiredContentKeepUntilHours": 1,
80-
"Assembly": "BuildXL.Cache.BuildCacheAdapter",
81-
"CacheServiceContentEndpoint": "https://mseng.vsblob.visualstudio.com/DefaultCollection",
82-
"Type": "BuildXL.Cache.BuildCacheAdapter.BuildCacheFactory",
83-
"CacheLogPath": "[BuildXLSelectedLogPath].Remote.log",
84-
"CacheId": "L3Cache",
85-
"CacheNamespace": "BuildXLSelfhost.Linux",
86-
"UseBlobContentHashLists": true
78+
"Assembly": "BuildXL.Cache.MemoizationStoreAdapter",
79+
"CacheLogPath": "[BuildXLSelectedLogPath].Remote.log",
80+
"Type": "BuildXL.Cache.MemoizationStoreAdapter.BlobCacheFactory",
81+
"CacheId": "L3Cache",
82+
"Universe": "blob3bxlselfhost",
83+
"RetentionPolicyInDays": 1
8784
},
8885
"LocalCache": {
8986
"MaxCacheSizeInMB": 20240,
@@ -113,6 +110,7 @@ jobs:
113110
PAT1esSharedAssets: $(PAT-TseBuild-AzureDevOps-1esSharedAssets-Package-Read)
114111
PATCloudBuild: $(PAT-TseBuild-AzureDevOps-CloudBuild-Packaging-Read)
115112
VSTSPERSONALACCESSTOKEN: $(PAT-TseBuild-AzureDevOps-mseng-buildcache)
113+
BlobCacheFactoryConnectionString: $(BuildXL-Selfhost-L3-ConnectionString)
116114
117115
- bash: |
118116
echo "== Deleting Out/frontend/Nuget/tmp, Out/bin, Out/Bootstrap folders to reduce the size of the NuGet cache dir"
@@ -137,15 +135,12 @@ jobs:
137135
"Assembly": "BuildXL.Cache.VerticalAggregator",
138136
"Type": "BuildXL.Cache.VerticalAggregator.VerticalCacheAggregatorFactory",
139137
"RemoteCache": {
140-
"CacheServiceFingerprintEndpoint": "https://mseng.artifacts.visualstudio.com/DefaultCollection",
141-
"RequiredContentKeepUntilHours": 1,
142-
"Assembly": "BuildXL.Cache.BuildCacheAdapter",
143-
"CacheServiceContentEndpoint": "https://mseng.vsblob.visualstudio.com/DefaultCollection",
144-
"Type": "BuildXL.Cache.BuildCacheAdapter.BuildCacheFactory",
145-
"CacheLogPath": "[BuildXLSelectedLogPath].Remote.log",
146-
"CacheId": "L3Cache",
147-
"CacheNamespace": "BuildXLSelfhost.Linux",
148-
"UseBlobContentHashLists": true
138+
"Assembly": "BuildXL.Cache.MemoizationStoreAdapter",
139+
"CacheLogPath": "[BuildXLSelectedLogPath].Remote.log",
140+
"Type": "BuildXL.Cache.MemoizationStoreAdapter.BlobCacheFactory",
141+
"CacheId": "L3Cache",
142+
"Universe": "blob3bxlselfhost",
143+
"RetentionPolicyInDays": 1
149144
},
150145
"LocalCache": {
151146
"MaxCacheSizeInMB": 20240,
@@ -175,6 +170,7 @@ jobs:
175170
VSTSPERSONALACCESSTOKEN: $(PAT-TseBuild-AzureDevOps-mseng-buildcache)
176171
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
177172
AdoBuildRunnerWaitForOrchestratorExit: true
173+
BlobCacheFactoryConnectionString: $(BuildXL-Selfhost-L3-ConnectionString)
178174
179175
- task: PublishTestResults@2
180176
displayName: Publish Test Results

0 commit comments

Comments
 (0)