From 19c6ac0ca27fd6273777f652024ad04ff1fe89b6 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Kolli Date: Fri, 18 Oct 2024 09:23:25 -0700 Subject: [PATCH 1/5] Upgrading azure core depdependency to 1.44.1 --- .../src/Microsoft.Azure.Cosmos.Encryption.csproj | 2 +- Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj | 2 +- .../Contracts/DirectContractTests.cs | 4 ++-- .../Microsoft.Azure.Cosmos.Tests.csproj | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj b/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj index 3421b335aa..b2eca59590 100644 --- a/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj +++ b/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj @@ -42,7 +42,7 @@ - + diff --git a/Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj b/Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj index 55b2fba26a..d2dd6c7a4f 100644 --- a/Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj +++ b/Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj @@ -112,7 +112,7 @@ - + diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DirectContractTests.cs b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DirectContractTests.cs index e5e8901788..fa7cc5b0d0 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DirectContractTests.cs +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DirectContractTests.cs @@ -127,7 +127,7 @@ public void ProjectPackageDependenciesTest() { "System.Threading.Tasks.Extensions", new Version(4, 5, 4) }, { "System.ValueTuple", new Version(4, 5, 0) }, { "Microsoft.Bcl.HashCode", new Version(1, 1, 0) }, - { "Azure.Core", new Version(1, 19, 0) }, + { "Azure.Core", new Version(1, 44, 1) }, { "System.Diagnostics.DiagnosticSource", new Version(8, 0, 1) }, { "System.Net.Http", new Version(4, 3, 4) }, { "System.Text.RegularExpressions", new Version(4, 3, 1) }, @@ -142,7 +142,7 @@ public void ProjectPackageDependenciesTest() } /// - /// Ignoring HybridRow dependency check as it is using System.Runtime.CompilerServices.Unsafe 4.5.3 and Azure.Core 1.19.0 needs >=4.6.0 version of the same + /// Ignoring HybridRow dependency check as it is using System.Runtime.CompilerServices.Unsafe 4.5.3 and Azure.Core 1.44.1 needs >=4.6.0 version of the same /// [TestMethod] public void PackageDependenciesTest() diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Microsoft.Azure.Cosmos.Tests.csproj b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Microsoft.Azure.Cosmos.Tests.csproj index fd41eef471..134490190a 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Microsoft.Azure.Cosmos.Tests.csproj +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Microsoft.Azure.Cosmos.Tests.csproj @@ -49,7 +49,7 @@ - + From ec45ca391c364f3ca7d4b316e0765154f9d58223 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Kolli Date: Fri, 18 Oct 2024 10:29:17 -0700 Subject: [PATCH 2/5] Fixing build failures --- .../src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj | 3 ++- ...oft.Azure.Cosmos.Encryption.Custom.Performance.Tests.csproj | 1 + .../src/Microsoft.Azure.Cosmos.Encryption.csproj | 1 + Microsoft.Azure.Cosmos/src/CosmosClient.cs | 1 + Microsoft.Azure.Cosmos/src/DocumentClient.cs | 1 + Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj | 2 +- .../Microsoft.Azure.Cosmos.EmulatorTests.csproj | 1 - .../Microsoft.Azure.Cosmos.Performance.Tests.csproj | 3 ++- .../Microsoft.Azure.Cosmos.Tests/CosmosAuthorizationTests.cs | 1 + .../Microsoft.Azure.Cosmos.Tests.csproj | 1 - 10 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj b/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj index cca4d719bf..1c33a334af 100644 --- a/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj +++ b/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj @@ -49,7 +49,8 @@ - + + diff --git a/Microsoft.Azure.Cosmos.Encryption.Custom/tests/Microsoft.Azure.Cosmos.Encryption.Custom.Performance.Tests/Microsoft.Azure.Cosmos.Encryption.Custom.Performance.Tests.csproj b/Microsoft.Azure.Cosmos.Encryption.Custom/tests/Microsoft.Azure.Cosmos.Encryption.Custom.Performance.Tests/Microsoft.Azure.Cosmos.Encryption.Custom.Performance.Tests.csproj index edcdac998b..c9cdfd365e 100644 --- a/Microsoft.Azure.Cosmos.Encryption.Custom/tests/Microsoft.Azure.Cosmos.Encryption.Custom.Performance.Tests/Microsoft.Azure.Cosmos.Encryption.Custom.Performance.Tests.csproj +++ b/Microsoft.Azure.Cosmos.Encryption.Custom/tests/Microsoft.Azure.Cosmos.Encryption.Custom.Performance.Tests/Microsoft.Azure.Cosmos.Encryption.Custom.Performance.Tests.csproj @@ -18,6 +18,7 @@ + diff --git a/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj b/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj index b2eca59590..ea790d3b4f 100644 --- a/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj +++ b/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj @@ -45,6 +45,7 @@ + diff --git a/Microsoft.Azure.Cosmos/src/CosmosClient.cs b/Microsoft.Azure.Cosmos/src/CosmosClient.cs index 0c0cef4001..f054de3838 100644 --- a/Microsoft.Azure.Cosmos/src/CosmosClient.cs +++ b/Microsoft.Azure.Cosmos/src/CosmosClient.cs @@ -23,6 +23,7 @@ namespace Microsoft.Azure.Cosmos using Microsoft.Azure.Cosmos.Tracing; using Microsoft.Azure.Cosmos.Tracing.TraceData; using Microsoft.Azure.Documents; + using ResourceType = Documents.ResourceType; /// /// Provides a client-side logical representation of the Azure Cosmos DB account. diff --git a/Microsoft.Azure.Cosmos/src/DocumentClient.cs b/Microsoft.Azure.Cosmos/src/DocumentClient.cs index 946fa4cb08..1a064d0024 100644 --- a/Microsoft.Azure.Cosmos/src/DocumentClient.cs +++ b/Microsoft.Azure.Cosmos/src/DocumentClient.cs @@ -32,6 +32,7 @@ namespace Microsoft.Azure.Cosmos using Microsoft.Azure.Documents.FaultInjection; using Microsoft.Azure.Documents.Routing; using Newtonsoft.Json; + using ResourceType = Documents.ResourceType; /// /// Provides a client-side logical representation for the Azure Cosmos DB service. diff --git a/Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj b/Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj index d2dd6c7a4f..5224f9632f 100644 --- a/Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj +++ b/Microsoft.Azure.Cosmos/src/Microsoft.Azure.Cosmos.csproj @@ -116,7 +116,7 @@ - + diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/Microsoft.Azure.Cosmos.EmulatorTests.csproj b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/Microsoft.Azure.Cosmos.EmulatorTests.csproj index 4f70def22d..37dab8a9ec 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/Microsoft.Azure.Cosmos.EmulatorTests.csproj +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/Microsoft.Azure.Cosmos.EmulatorTests.csproj @@ -65,7 +65,6 @@ - diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Performance.Tests/Microsoft.Azure.Cosmos.Performance.Tests.csproj b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Performance.Tests/Microsoft.Azure.Cosmos.Performance.Tests.csproj index b1f0419dee..736b507310 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Performance.Tests/Microsoft.Azure.Cosmos.Performance.Tests.csproj +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Performance.Tests/Microsoft.Azure.Cosmos.Performance.Tests.csproj @@ -1,4 +1,4 @@ - + Exe @@ -21,6 +21,7 @@ + diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/CosmosAuthorizationTests.cs b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/CosmosAuthorizationTests.cs index 339e61914c..ba71293c41 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/CosmosAuthorizationTests.cs +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/CosmosAuthorizationTests.cs @@ -21,6 +21,7 @@ namespace Microsoft.Azure.Cosmos.Tests using Microsoft.Azure.Documents.Collections; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; + using ResourceType = Documents.ResourceType; [TestClass] public class CosmosAuthorizationTests diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Microsoft.Azure.Cosmos.Tests.csproj b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Microsoft.Azure.Cosmos.Tests.csproj index 134490190a..40aff3569c 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Microsoft.Azure.Cosmos.Tests.csproj +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Microsoft.Azure.Cosmos.Tests.csproj @@ -49,7 +49,6 @@ - From 74649e9e2601bfb6848518fb7e12d6f27c99754b Mon Sep 17 00:00:00 2001 From: Kiran Kumar Kolli Date: Fri, 18 Oct 2024 10:35:46 -0700 Subject: [PATCH 3/5] UT fix --- .../Contracts/DirectContractTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DirectContractTests.cs b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DirectContractTests.cs index fa7cc5b0d0..111856813d 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DirectContractTests.cs +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Contracts/DirectContractTests.cs @@ -119,7 +119,7 @@ public void ProjectPackageDependenciesTest() { "System.Collections.Immutable", new Version(1, 7, 0) }, { "System.Numerics.Vectors", new Version(4, 5, 0) }, { "Newtonsoft.Json", new Version(10, 0, 2) }, - { "Microsoft.Bcl.AsyncInterfaces", new Version(1, 0, 0) }, + { "Microsoft.Bcl.AsyncInterfaces", new Version(6, 0, 0) }, { "System.Configuration.ConfigurationManager", new Version(6, 0, 0) }, { "System.Memory", new Version(4, 5, 5) }, { "System.Buffers", new Version(4, 5, 1) }, From eb0d11c39fb273412b3bce0e9fb11844fbf5e12b Mon Sep 17 00:00:00 2001 From: Kiran Kumar Kolli Date: Fri, 18 Oct 2024 10:44:29 -0700 Subject: [PATCH 4/5] Fixing encryption project build errors --- .../src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj | 1 - .../src/Microsoft.Azure.Cosmos.Encryption.csproj | 1 - 2 files changed, 2 deletions(-) diff --git a/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj b/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj index 1c33a334af..f59915a946 100644 --- a/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj +++ b/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj @@ -46,7 +46,6 @@ - diff --git a/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj b/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj index ea790d3b4f..3d54097e64 100644 --- a/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj +++ b/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj @@ -42,7 +42,6 @@ - From cd8996098aca045532a4b6d2f062fee07e531682 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Kolli Date: Fri, 18 Oct 2024 11:04:06 -0700 Subject: [PATCH 5/5] cleaning System.Net.Http --- .../src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj | 1 - .../src/Microsoft.Azure.Cosmos.Encryption.csproj | 1 - 2 files changed, 2 deletions(-) diff --git a/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj b/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj index f59915a946..3b94db54c2 100644 --- a/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj +++ b/Microsoft.Azure.Cosmos.Encryption.Custom/src/Microsoft.Azure.Cosmos.Encryption.Custom.csproj @@ -49,7 +49,6 @@ - diff --git a/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj b/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj index 3d54097e64..d21b605ea9 100644 --- a/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj +++ b/Microsoft.Azure.Cosmos.Encryption/src/Microsoft.Azure.Cosmos.Encryption.csproj @@ -44,7 +44,6 @@ -