Skip to content

Commit f827277

Browse files
Merge pull request #17 from microsoft/bxl-update
Update BuildXL packages
2 parents 162c8e1 + 544ebed commit f827277

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Directory.Packages.props

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
<Project>
33
<PropertyGroup>
44
<ArtifactsPackageVersion>19.230.34229-buildid23092045</ArtifactsPackageVersion>
5-
6-
<!-- see https://www.nuget.org/packages/Microsoft.VisualStudio.Services.PipelineCache.WebApi/19.230.34229-buildid23092045 -->
7-
<BuildXLPackageVersion>0.1.0-20230922.1</BuildXLPackageVersion>
8-
5+
<BuildXLPackageVersion>0.1.0-20231128.3</BuildXLPackageVersion>
96
<MSBuildPackageVersion>17.8.3</MSBuildPackageVersion>
107
</PropertyGroup>
118
<ItemGroup>

src/AzureBlobStorage/MSBuildCacheAzureBlobStoragePlugin.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using BuildXL.Cache.ContentStore.Interfaces.Stores;
1717
using BuildXL.Cache.ContentStore.Interfaces.Tracing;
1818
using BuildXL.Cache.ContentStore.Logging;
19+
using BuildXL.Cache.ContentStore.Tracing.Internal;
1920
using BuildXL.Cache.MemoizationStore.Distributed.Stores;
2021
using BuildXL.Cache.MemoizationStore.Interfaces.Caches;
2122
using BuildXL.Cache.MemoizationStore.Interfaces.Sessions;
@@ -72,7 +73,7 @@ protected override async Task<ICacheClient> CreateCacheClientAsync(PluginLoggerB
7273
logger.LogMessage($"Using cache namespace '{cacheContainer}' as '{cacheContainerHash}'.");
7374

7475
#pragma warning disable CA2000 // Dispose objects before losing scope. Expected to be disposed by TwoLevelCache
75-
ICache remoteCache = CreateRemoteCache(cacheContainerHash);
76+
ICache remoteCache = CreateRemoteCache(new OperationContext(context, cancellationToken), cacheContainerHash);
7677
#pragma warning restore CA2000 // Dispose objects before losing scope
7778

7879
ICacheSession remoteCacheSession = await StartCacheSessionAsync(context, remoteCache, "remote");
@@ -98,7 +99,7 @@ protected override async Task<ICacheClient> CreateCacheClientAsync(PluginLoggerB
9899
Settings.AsyncCacheMaterialization);
99100
}
100101

101-
private static ICache CreateRemoteCache(string cacheUniverse)
102+
private static ICache CreateRemoteCache(OperationContext context, string cacheUniverse)
102103
{
103104
string? connectionString = Environment.GetEnvironmentVariable(AzureBlobConnectionStringEnvVar);
104105
if (string.IsNullOrEmpty(connectionString))
@@ -113,7 +114,7 @@ private static ICache CreateRemoteCache(string cacheUniverse)
113114
Universe: cacheUniverse,
114115
Namespace: "0",
115116
RetentionPolicyInDays: null);
116-
return AzureBlobStorageCacheFactory.Create(cacheConfig, new StaticBlobCacheSecretsProvider(credentials));
117+
return AzureBlobStorageCacheFactory.Create(context, cacheConfig, new StaticBlobCacheSecretsProvider(credentials));
117118
}
118119

119120
private static async Task<ICacheSession> StartCacheSessionAsync(Context context, ICache cache, string name)

0 commit comments

Comments
 (0)