microsoft / service-fabric-yarp

YARP integration with Service Fabric
MIT License
31 stars 9 forks source link

bump net5 -> Net6, upgrade. webhost -> webapplication #21

Open jagilber opened 9 months ago

jagilber commented 9 months ago

bumped .net from net5.0 -> net6.0 update all dependencies migrated from webhost to webapplication (currently using IHost from net8.0 however) updated to Microsoft.ServiceFabric 10.1 / 7.1 updated application insights for current configuration 'connectionstring' updated to visual studio 2022 17.0 fixed stylecop issues

packages.props

readme.md

yarpsf.sln

eng/ComponentGovernanceFixes.targets

global.json

src/EchoService/EchoService.csproj

src/FabricDiscovery.Core/FabricDiscovery.Core.csproj

src/FabricDiscovery.Core/Service/SFYarpConfig/SFYarpTopologyMapperWorker.cs

src/FabricDiscovery.Core/Service/TopologyDiscovery/AppTypeDiscoveryManager.cs

src/FabricDiscovery.Core/Service/TopologyDiscovery/ServiceDiscoveryHelper.cs

src/FabricDiscovery.Core/Service/TopologyDiscovery/ServiceDiscoveryManager.cs

src/FabricDiscovery.Core/Service/Util/IsExternalInit.cs

src/FabricDiscovery.Service/FabricDiscovery.Service.csproj

src/FabricDiscovery.Service/PackageRoot/ServiceManifest.xml

src/FabricDiscovery.Service/StatefulShim/StatelessServiceAdapter.cs

src/FabricUtil/FabricUtil.csproj

src/FabricUtil/FabricWrapper/FabricExponentialRetryPolicy.cs

src/FabricUtil/FabricWrapper/PropertyManagementClientWrapper.cs

src/FabricUtil/FabricWrapper/QueryClientWrapper.cs

src/FabricUtil/Util/IsExternalInit.cs

src/RemoteConfig.Client/RemoteConfig.Client.csproj

src/RemoteConfig.Contract/RemoteConfig.Contract.csproj

src/SFYarp.Common/SFYarp.Common.csproj

src/SFYarp.CoreServicesBorrowed/SFYarp.CoreServicesBorrowed.csproj

src/SFYarp.InternalTelemetry/SFYarp.InternalTelemetry.csproj

src/YarpProxy.Service/PackageRoot/ServiceManifest.xml

src/YarpProxy.Service/SFYarpService.cs

src/YarpProxy.Service/SFYarpStandalone.cs

src/YarpProxy.Service/Service/Security/ServerCertificateBinding/SniServerCertificateSelector.cs

src/YarpProxy.Service/Startup.cs

src/YarpProxy.Service/YarpProxy.Service.csproj

src/YarpProxy.Service/appsettings.json

src/YarpProxyApp/ApplicationPackageRoot/ApplicationManifest.xml

src/YarpProxyApp/YarpProxyApp.sfproj

src/YarpProxyApp/packages.config

stylecop.ruleset

test/FabricDiscovery.Core.Tests/FabricDiscovery.Core.Tests.csproj

test/FabricDiscovery.Core.Tests/IsExternalInit.cs

test/FabricDiscovery.Core.Tests/Service/SFYarpConfig/SFYarpTopologyMapperWorkerTests.cs

test/FabricDiscovery.Core.Tests/Service/TopologyDiscovery/DirtyServicesTrackerTests.cs

test/FabricDiscovery.Core.Tests/Service/TopologyDiscovery/ServiceDiscoveryManagerExtensionsTests.cs

test/FabricDiscovery.Core.Tests/Service/Util/LabelsParserTests.cs

test/FabricDiscovery.Service.Tests/FabricDiscovery.Service.Tests.csproj

test/FabricDiscovery.Service.Tests/IsExternalInit.cs

test/RemoteConfig.Client.Tests/RemoteConfig.Client.Tests.csproj

test/SFYarp.Common.Tests/SFYarp.Common.Tests.csproj

test/SFYarp.CoreServicesBorrowed.Tests/SFYarp.CoreServicesBorrowed.Tests.csproj

test/Tests.Common/Tests.Common.csproj

test/stylecop.ruleset

jagilber commented 7 months ago

verified all tests passing.

image

verified dotnet build .\dirs.proj on clean machine

PS C:\github\service-fabric-yarp> dotnet build .\dirs.proj

Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.418

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
MSBuild version 17.3.2+561848881 for .NET
  Determining projects to restore...
  Restored C:\github\service-fabric-yarp\src\YarpProxyApp\YarpProxyApp.sfproj (in 1.34 sec).
  Restored C:\github\service-fabric-yarp\dirs.proj (in 7.86 sec).
  Restored C:\github\service-fabric-yarp\src\SFYarp.Common\SFYarp.Common.csproj (in 8.26 sec).
  Restored C:\github\service-fabric-yarp\src\SFYarp.CoreServicesBorrowed\SFYarp.CoreServicesBorrowed.csproj (in 8.26 sec 
  ).
  Restored C:\github\service-fabric-yarp\src\FabricDiscovery.Core\FabricDiscovery.Core.csproj (in 8.31 sec).
  Restored C:\github\service-fabric-yarp\src\FabricUtil\FabricUtil.csproj (in 8.31 sec).
  Restored C:\github\service-fabric-yarp\src\RemoteConfig.Contract\RemoteConfig.Contract.csproj (in 8.31 sec).
  Restored C:\github\service-fabric-yarp\src\RemoteConfig.Client\RemoteConfig.Client.csproj (in 8.31 sec).
  Restored C:\github\service-fabric-yarp\src\SFYarp.InternalTelemetry\SFYarp.InternalTelemetry.csproj (in 8.39 sec).
  Restored C:\github\service-fabric-yarp\src\EchoService\EchoService.csproj (in 8.85 sec).
  Restored C:\github\service-fabric-yarp\src\FabricDiscovery.Service\FabricDiscovery.Service.csproj (in 9.11 sec).
  Restored C:\github\service-fabric-yarp\src\YarpProxy.Service\YarpProxy.Service.csproj (in 9.27 sec).
  Restored C:\github\service-fabric-yarp\test\Tests.Common\Tests.Common.csproj (in 11.58 sec).
  Restored C:\github\service-fabric-yarp\test\SFYarp.Common.Tests\SFYarp.Common.Tests.csproj (in 11.58 sec).
  Restored C:\github\service-fabric-yarp\test\SFYarp.CoreServicesBorrowed.Tests\SFYarp.CoreServicesBorrowed.Tests.csproj (in 11.58 sec).
  Restored C:\github\service-fabric-yarp\test\FabricDiscovery.Core.Tests\FabricDiscovery.Core.Tests.csproj (in 11.58 sec).
  Restored C:\github\service-fabric-yarp\test\RemoteConfig.Client.Tests\RemoteConfig.Client.Tests.csproj (in 11.58 sec). 
  Restored C:\github\service-fabric-yarp\test\FabricDiscovery.Service.Tests\FabricDiscovery.Service.Tests.csproj (in 11.58 sec).
  SFYarp.Common -> C:\github\service-fabric-yarp\out\bin\Debug-x64\SFYarp.Common\SFYarp.Common.dll
  SFYarp.InternalTelemetry -> C:\github\service-fabric-yarp\out\bin\Debug-x64\SFYarp.InternalTelemetry\SFYarp.InternalTelemetry.dll
  EchoService -> C:\github\service-fabric-yarp\out\bin\Debug-x64\EchoService\win-x64\EchoService.dll
  SFYarp.CoreServicesBorrowed -> C:\github\service-fabric-yarp\out\bin\Debug-x64\SFYarp.CoreServicesBorrowed\SFYarp.CoreServicesBorrowed.dll
  FabricUtil -> C:\github\service-fabric-yarp\out\bin\Debug-x64\FabricUtil\FabricUtil.dll
  Tests.Common -> C:\github\service-fabric-yarp\out\testbin\Debug-x64\Tests.Common\Tests.Common.dll
  RemoteConfig.Contract -> C:\github\service-fabric-yarp\out\bin\Debug-x64\RemoteConfig.Contract\RemoteConfig.Contract.dll
  RemoteConfig.Client -> C:\github\service-fabric-yarp\out\bin\Debug-x64\RemoteConfig.Client\RemoteConfig.Client.dll
  SFYarp.CoreServicesBorrowed.Tests -> C:\github\service-fabric-yarp\out\testbin\Debug-x64\SFYarp.CoreServicesBorrowed.Tests\SFYarp.CoreServicesBorrowed.Tests.dll
  FabricDiscovery.Core -> C:\github\service-fabric-yarp\out\bin\Debug-x64\FabricDiscovery.Core\FabricDiscovery.Core.dll  
  SFYarp.Common.Tests -> C:\github\service-fabric-yarp\out\testbin\Debug-x64\SFYarp.Common.Tests\SFYarp.Common.Tests.dll
  RemoteConfig.Client.Tests -> C:\github\service-fabric-yarp\out\testbin\Debug-x64\RemoteConfig.Client.Tests\RemoteConfig.Client.Tests.dll
  FabricDiscovery.Core.Tests -> C:\github\service-fabric-yarp\out\testbin\Debug-x64\FabricDiscovery.Core.Tests\FabricDiscovery.Core.Tests.dll
  FabricDiscovery.Service -> C:\github\service-fabric-yarp\out\bin\Debug-x64\FabricDiscovery.Service\win-x64\FabricDiscovery.Service.dll
  YarpProxy.Service -> C:\github\service-fabric-yarp\out\bin\Debug-x64\YarpProxy.Service\win-x64\YarpProxy.Service.dll
  FabricDiscovery.Service.Tests -> C:\github\service-fabric-yarp\out\testbin\Debug-x64\FabricDiscovery.Service.Tests\FabricDiscovery.Service.Tests.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:18.18
PS C:\github\service-fabric-yarp>

verified http and https connectivity using sample sf weatherforecast app

>irm http://localhost:8080/sf-sample-weatherforecast/votingwebcore/weatherforecast

date                 temperatureC temperatureF summary
----                 ------------ ------------ -------
1/16/2024 5:57:30 PM           37           98 Mild
1/17/2024 5:57:30 PM           13           55 Bracing
1/18/2024 5:57:30 PM           -7           20 Hot
1/19/2024 5:57:30 PM            4           39 Bracing
1/20/2024 5:57:30 PM           31           87 Cool

pwsh 17:57:30 'C:\Users\jagilber'
>irm http://localhost:8081/weatherforecast

date                 temperatureC temperatureF summary
----                 ------------ ------------ -------
1/16/2024 6:01:07 PM           26           78 Freezing
1/17/2024 6:01:07 PM           -7           20 Cool
1/18/2024 6:01:07 PM           22           71 Balmy
1/19/2024 6:01:07 PM           19           66 Bracing
1/20/2024 6:01:07 PM            4           39 Balmy

pwsh 18:01:07 'C:\Users\jagilber'
>

>irm http://localhost:30016/api/v1/yarpconfig

clusters
--------
{@{clusterId=fabric:/sf-sample-weatherforecast/VotingWebCore; loadBalancingPolicy=; sessionAffinity=; healthCheck=; httpClient=; httpRequest=; destinations=; metadata…

pwsh 18:03:19 'C:\Users\jagilber'
>

>irm https://sfjagilber.jagilber.com:443/sf-sample-weatherforecast/votingwebcore/weatherforecast

date                 temperatureC temperatureF summary
----                 ------------ ------------ -------
1/17/2024 2:30:00 PM           -9           16 Hot
1/18/2024 2:30:00 PM          -14            7 Cool
1/19/2024 2:30:00 PM           51          123 Balmy
1/20/2024 2:30:00 PM           18           64 Bracing
1/21/2024 2:30:00 PM          -13            9 Mild

pwsh 14:29:56 'C:\Users\jagilber'
>