Skip to content

Commit 265cc6a

Browse files
authored
CSHARP-5686: Fix .NET build issues and disable most SK.NET tests (#91)
1 parent 16ec3d5 commit 265cc6a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

semantic-kernel-csharp/run.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ mkdir -p "$DOTNET_SDK_PATH"
1010

1111
echo "Downloading .NET SDK installer into $DOTNET_SDK_PATH folder..."
1212
curl -Lfo "$DOTNET_SDK_PATH"/dotnet-install.sh https://dot.net/v1/dotnet-install.sh
13-
echo "Installing .NET LTS SDK..."
14-
bash "$DOTNET_SDK_PATH"/dotnet-install.sh --channel 8.0 --install-dir "$DOTNET_SDK_PATH" --no-path
13+
echo "Installing .NET 9.0 SDK..."
14+
bash "$DOTNET_SDK_PATH"/dotnet-install.sh --channel 9.0 --install-dir "$DOTNET_SDK_PATH" --no-path
15+
echo "Installing .NET 8.0 runtime..."
16+
bash "$DOTNET_SDK_PATH"/dotnet-install.sh --channel 8.0 --install-dir "$DOTNET_SDK_PATH" --no-path --runtime dotnet
1517

1618
# The tests use the TestContainers.Net library which requires docker.
1719
# RHEL 8 and 9 don't support docker so we have the setup below to emulate docker with podman
@@ -29,5 +31,5 @@ sed -i -e 's/"The MongoDB container is intermittently timing out at startup time
2931
# Remove the attribute blocking tests so we can run them
3032
sed -i -e 's/\[DisableVectorStoreTests(Skip = "The MongoDB container is intermittently timing out at startup time blocking prs, so these test should be run manually.")\]//g' dotnet/src/IntegrationTests/Connectors/Memory/MongoDB/MongoDBVectorStoreTests.cs
3133

32-
echo "Running MongoDBVectorStoreTests and MongoDBVectorStoreRecordCollectionTests"
33-
sudo $DOTNET_SDK_PATH/dotnet test dotnet/src/IntegrationTests/IntegrationTests.csproj --filter "SemanticKernel.IntegrationTests.Connectors.MongoDB.MongoDBVectorStoreTests | SemanticKernel.IntegrationTests.Connectors.MongoDB.MongoDBVectorStoreRecordCollectionTests"
34+
echo "Running MongoDBVectorStoreTests"
35+
sudo $DOTNET_SDK_PATH/dotnet test dotnet/src/IntegrationTests/IntegrationTests.csproj --filter "SemanticKernel.IntegrationTests.Connectors.MongoDB.MongoDBVectorStoreTests"

0 commit comments

Comments
 (0)