Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
464c55c
None of this is used, but it had weird dependencies on System.Net.Http
DavidBoike Oct 24, 2023
b3d13e6
Prevent repeatedly including binary dependencies of Transport/Persist…
DavidBoike Oct 24, 2023
06e07b1
Move transport artifacts
DavidBoike Oct 24, 2023
b7679e6
Unnecessary ClearOutput target
DavidBoike Oct 24, 2023
9856bee
Remove some unneeded dependencies
DavidBoike Oct 24, 2023
3613d49
Only include 1 version of RavenDBServer in deploy folder
DavidBoike Oct 24, 2023
f0698cf
Create zips from Transports and RavenDBServer and embed as resources
DavidBoike Oct 24, 2023
1d52efc
Assembly transport & RavenServer binaries where needed
DavidBoike Oct 24, 2023
54eb164
Assembly platform sample package from correct artifacts
DavidBoike Oct 24, 2023
9f7f539
Amend UnzipToSubdirectory to allow for null/empty folder filter
DavidBoike Oct 24, 2023
20c8e50
Include NServiceBus.Transports in transport tests to bring in depende…
DavidBoike Oct 25, 2023
8df481e
Adjust packaging unit tests to match new asset layout
DavidBoike Oct 25, 2023
852d9ba
Include NServiceBus.Audit.Persistence in audit persistence tests to b…
DavidBoike Oct 25, 2023
80b35b7
Fix Installer Engine project being used in places it shouldn't be
DavidBoike Oct 25, 2023
bd002a5
Amend expected zip count
DavidBoike Oct 25, 2023
13cc6cc
Apply suggestions from code review
DavidBoike Oct 25, 2023
18b7211
Add missing RavenDBServer assets to platform sample
DavidBoike Oct 25, 2023
c208e2b
Remove Directory.Build.targets from solution file
bording Oct 25, 2023
c4d651c
Remove unneeded package reference
bording Oct 25, 2023
c71a513
Rename InstanceName and move it to last place it's still used
bording Oct 25, 2023
a8ac82c
Formatting
bording Oct 25, 2023
5af704c
Full assembly-qualified string value in case changing it would cause …
DavidBoike Oct 25, 2023
eb36af2
the audit database name can't change
DavidBoike Oct 25, 2023
4041367
Fix null ref in dependency checks
DavidBoike Oct 25, 2023
b2df1df
Clearer comment
DavidBoike Oct 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:

$expectedAssetsCount = 2 # SCMU & PowerShell module
$expectedNugetsCount = 1 # PlatformSample
$expectedZipCount = 3 # ServiceControl, Audit, & Monitoring
$expectedZipCount = 5 # ServiceControl, Audit, & Monitoring + Transports & RavenDBServer

if ($assetsCount -ne $expectedAssetsCount)
{
Expand Down
6 changes: 0 additions & 6 deletions src/Custom.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@
<WriteMinVerProperties>false</WriteMinVerProperties>
</PropertyGroup>

<ItemGroup>
<InstanceName Include="Particular.ServiceControl" />
<InstanceName Include="Particular.ServiceControl.Audit" />
<InstanceName Include="Particular.ServiceControl.Monitoring" />
</ItemGroup>

<!-- workaround for https://github.com/microsoft/MSBuildSdks/issues/477 -->
<PropertyGroup>
<UseArtifactsOutput>false</UseArtifactsOutput>
Expand Down
10 changes: 0 additions & 10 deletions src/Directory.Build.targets

This file was deleted.

1 change: 0 additions & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<PackageVersion Include="FluentValidation" Version="11.8.0" />
<PackageVersion Include="GitHubActionsTestLogger" Version="2.3.3" />
<PackageVersion Include="HdrHistogram" Version="2.5.0" />
<PackageVersion Include="Lucene.Net" Version="3.0.3" />
<PackageVersion Include="Metrics.NET" Version="0.5.5" />
<PackageVersion Include="Microsoft.AspNet.SignalR" Version="2.4.3" />
<PackageVersion Include="Microsoft.AspNet.SignalR.Client" Version="2.4.3" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@
<Target Name="AddFilesToPackage">
<ItemGroup>
<TfmSpecificPackageFile Include="$(ArtifactsPath)Particular.ServiceControl\ServiceControl\**\*" PackagePath="platform\servicecontrol\servicecontrol-instance" />
<TfmSpecificPackageFile Include="$(ArtifactsPath)Particular.ServiceControl\Transports\LearningTransport\**\*" PackagePath="platform\servicecontrol\servicecontrol-instance" />
<TfmSpecificPackageFile Include="$(ArtifactsPath)Particular.ServiceControl\Persisters\RavenDB5\**\*" PackagePath="platform\servicecontrol\servicecontrol-instance" />
<TfmSpecificPackageFile Include="$(ArtifactsPath)Transports\LearningTransport\**\*" PackagePath="platform\servicecontrol\servicecontrol-instance" />
<TfmSpecificPackageFile Include="$(ArtifactsPath)RavenDBServer\**\*" PackagePath="platform\servicecontrol\servicecontrol-instance\RavenDBServer" />

<TfmSpecificPackageFile Include="$(ArtifactsPath)Particular.ServiceControl.Audit\ServiceControl.Audit\**\*" PackagePath="platform\servicecontrol\servicecontrol-audit-instance" />
<TfmSpecificPackageFile Include="$(ArtifactsPath)Particular.ServiceControl.Audit\Persisters\InMemory\**\*" PackagePath="platform\servicecontrol\servicecontrol-audit-instance" />
<TfmSpecificPackageFile Include="$(ArtifactsPath)Particular.ServiceControl.Audit\Transports\LearningTransport\**\*" PackagePath="platform\servicecontrol\servicecontrol-audit-instance" />
<TfmSpecificPackageFile Include="$(ArtifactsPath)Transports\LearningTransport\**\*" PackagePath="platform\servicecontrol\servicecontrol-audit-instance" />

<TfmSpecificPackageFile Include="$(ArtifactsPath)Particular.ServiceControl.Monitoring\ServiceControl.Monitoring\**\*" PackagePath="platform\servicecontrol\monitoring-instance" />
<TfmSpecificPackageFile Include="$(ArtifactsPath)Particular.ServiceControl.Monitoring\Transports\LearningTransport\**\*" PackagePath="platform\servicecontrol\monitoring-instance" />
<TfmSpecificPackageFile Include="$(ArtifactsPath)Transports\LearningTransport\**\*" PackagePath="platform\servicecontrol\monitoring-instance" />
</ItemGroup>
</Target>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

<ItemGroup>
<ProjectReference Include="..\ServiceControl.Transports.Learning\ServiceControl.Transports.Learning.csproj" />
<ProjectReference Include="..\ServiceControlInstaller.Engine\ServiceControlInstaller.Engine.csproj" />
<ProjectReference Include="..\TestHelper\TestHelper.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<ProjectReference Include="..\ServiceControl.Persistence.RavenDb5\ServiceControl.Persistence.RavenDb5.csproj" />
<ProjectReference Include="..\ServiceControl.Transports.Learning\ServiceControl.Transports.Learning.csproj" />
<ProjectReference Include="..\ServiceControl\ServiceControl.csproj" />
<ProjectReference Include="..\ServiceControlInstaller.Engine\ServiceControlInstaller.Engine.csproj" />
<ProjectReference Include="..\TestHelper\TestHelper.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
using NServiceBus.Transport;
using NUnit.Framework;
using ServiceControl.MessageFailures.Api;
using ServiceControlInstaller.Engine.Instances;
using TestSupport.EndpointTemplates;
using Conventions = NServiceBus.AcceptanceTesting.Customization.Conventions;

Expand All @@ -36,16 +35,13 @@ public async Task Should_not_corrupt_headers()
.Run();

// ASQ adds this value to it's message wrapper and writes the incoming message header
if (TransportIntegration.Name != TransportNames.AzureStorageQueue)
if (TransportIntegration.Name != "Azure Storage Queue")
{
Assert.False(context.Headers.ContainsKey(Headers.MessageIntent), "Should not add the intent header");
}

//Rabbit defaults the header when deserializing the message based on the IBasicProperties.DeliveryMode
if (TransportIntegration.Name == TransportNames.RabbitMQClassicConventionalRoutingTopology ||
TransportIntegration.Name == TransportNames.RabbitMQQuorumConventionalRoutingTopology ||
TransportIntegration.Name == TransportNames.RabbitMQClassicDirectRoutingTopology ||
TransportIntegration.Name == TransportNames.RabbitMQQuorumDirectRoutingTopology)
if (TransportIntegration.Name.Contains("RabbitMQ"))
{
Assert.AreEqual("False", context.Headers[Headers.NonDurableMessage], "Should not corrupt the non-durable header");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<ProjectReference Include="..\ServiceControl.Audit\ServiceControl.Audit.csproj" />
<ProjectReference Include="..\ServiceControl.Audit.Persistence.InMemory\ServiceControl.Audit.Persistence.InMemory.csproj" />
<ProjectReference Include="..\ServiceControl.Transports.Learning\ServiceControl.Transports.Learning.csproj" />
<ProjectReference Include="..\ServiceControlInstaller.Engine\ServiceControlInstaller.Engine.csproj" />
<ProjectReference Include="..\TestHelper\TestHelper.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\ServiceControl.Audit.Persistence\ServiceControl.Audit.Persistence.csproj" />
<!-- Private=false & ExcludeAssets=runtime prevent repeatedly including binary dependencies of ServiceControl.Persistence in each persister directory -->
<ProjectReference Include="..\ServiceControl.Audit.Persistence\ServiceControl.Audit.Persistence.csproj" Private="false" ExcludeAssets="runtime" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ namespace ServiceControl.Audit.Persistence.RavenDb.Indexes
{
using System;
using System.Linq;
using Lucene.Net.Analysis.Standard;
using Raven.Client.Documents.Indexes;
using ServiceControl.Audit.Auditing;
using ServiceControl.Audit.Monitoring;
Expand Down Expand Up @@ -34,7 +33,8 @@ from message in messages

Index(x => x.Query, FieldIndexing.Search);

Analyze(x => x.Query, typeof(StandardAnalyzer).AssemblyQualifiedName);
// Not using typeof() to prevent dependency on Lucene
Analyze(x => x.Query, "Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net, Version=3.0.3.0, Culture=neutral, PublicKeyToken=85089178b9ac3181");
}

public class SortAndFilterOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ namespace ServiceControl.Audit.Persistence.RavenDb.Indexes
{
using System;
using System.Linq;
using Lucene.Net.Analysis.Standard;
using Raven.Client.Documents.Indexes;
using ServiceControl.Audit.Auditing;
using ServiceControl.Audit.Monitoring;
Expand Down Expand Up @@ -35,7 +34,8 @@ from message in messages

Index(x => x.Query, FieldIndexing.Search);

Analyze(x => x.Query, typeof(StandardAnalyzer).AssemblyQualifiedName);
// Not using typeof() to prevent dependency on Lucene
Analyze(x => x.Query, "Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net, Version=3.0.3.0, Culture=neutral, PublicKeyToken=85089178b9ac3181");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ internal static DatabaseConfiguration GetDatabaseConfiguration(PersistenceSettin
{
if (!settings.PersisterSpecificSettings.TryGetValue(DatabaseNameKey, out var databaseName))
{
databaseName = "primary";
databaseName = "audit";
}

ServerConfiguration serverConfiguration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\ServiceControl.Audit.Persistence\ServiceControl.Audit.Persistence.csproj" />
<!-- Private=false & ExcludeAssets=runtime prevent repeatedly including binary dependencies of ServiceControl.Persistence in each persister directory -->
<ProjectReference Include="..\ServiceControl.Audit.Persistence\ServiceControl.Audit.Persistence.csproj" Private="false" ExcludeAssets="runtime" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="ByteSize" />
<PackageReference Include="Lucene.Net" />
<PackageReference Include="NServiceBus.CustomChecks" />
<PackageReference Include="RavenDB.Embedded" />
</ItemGroup>
Expand All @@ -21,7 +21,8 @@
</ItemGroup>

<ItemGroup>
<Artifact Include="$(OutputPath)" DestinationFolder="$(ArtifactsPath)Particular.ServiceControl.Audit\Persisters\RavenDB5" />
<!-- Artifact does not include RavenDBServer directory. Primary instance is responsible for copying that to deploy directory. -->
<Artifact Include="$(OutputPath)" DirExclude="RavenDBServer" DestinationFolder="$(ArtifactsPath)Particular.ServiceControl.Audit\Persisters\RavenDB5" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

<ItemGroup>
<ProjectReference Include="..\ServiceControl.Audit.Persistence.RavenDb5\ServiceControl.Audit.Persistence.RavenDb5.csproj" />
<ProjectReference Include="..\ServiceControlInstaller.Engine\ServiceControlInstaller.Engine.csproj" />
<!-- Needed to bring the dependencies that the persistence plugin excludes -->
<ProjectReference Include="..\ServiceControl.Audit.Persistence\ServiceControl.Audit.Persistence.csproj" />
<ProjectReference Include="..\TestHelper\TestHelper.csproj" />
</ItemGroup>

Expand Down
50 changes: 0 additions & 50 deletions src/ServiceControl.Audit.Persistence.Tests/InstallationTests.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

<ItemGroup>
<ProjectReference Include="..\ServiceControl.Audit.Persistence.InMemory\ServiceControl.Audit.Persistence.InMemory.csproj" />
<ProjectReference Include="..\ServiceControlInstaller.Engine\ServiceControlInstaller.Engine.csproj" />
<!-- Needed to bring the dependencies that the persistence plugin excludes -->
<ProjectReference Include="..\ServiceControl.Audit.Persistence\ServiceControl.Audit.Persistence.csproj" />
<ProjectReference Include="..\TestHelper\TestHelper.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<LangVersion>8</LangVersion>
<LangVersion>8.0</LangVersion>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\ServiceControl.AcceptanceTesting\ServiceControl.AcceptanceTesting.csproj" />
<ProjectReference Include="..\ServiceControl.Monitoring\ServiceControl.Monitoring.csproj" />
<ProjectReference Include="..\ServiceControl.Transports.Learning\ServiceControl.Transports.Learning.csproj" />
<ProjectReference Include="..\ServiceControlInstaller.Engine\ServiceControlInstaller.Engine.csproj" />
<ProjectReference Include="..\TestHelper\TestHelper.csproj" />
</ItemGroup>

Expand All @@ -19,13 +18,13 @@

<ItemGroup>
<PackageReference Include="GitHubActionsTestLogger" />
<PackageReference Include="HdrHistogram" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="NServiceBus.AcceptanceTesting" />
<PackageReference Include="NServiceBus.Metrics" />
<PackageReference Include="NServiceBus.Metrics.ServiceControl" />
<PackageReference Include="NUnit" />
<PackageReference Include="NUnit3TestAdapter" />
<PackageReference Include="HdrHistogram" />
<PackageReference Include="OwinHttpMessageHandler" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<ProjectReference Include="..\ServiceControl.Audit\ServiceControl.Audit.csproj" />
<ProjectReference Include="..\ServiceControl.Persistence.RavenDb5\ServiceControl.Persistence.RavenDb5.csproj" />
<ProjectReference Include="..\ServiceControl.Transports.Learning\ServiceControl.Transports.Learning.csproj" />
<ProjectReference Include="..\ServiceControlInstaller.Engine\ServiceControlInstaller.Engine.csproj" />
<ProjectReference Include="..\TestHelper\TestHelper.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ namespace ServiceControl.Persistence
{
using System;
using System.Linq;
using Lucene.Net.Analysis.Standard;
using Raven.Client.Documents.Indexes;
using ServiceControl.MessageFailures;
using ServiceControl.Operations;
Expand Down Expand Up @@ -37,9 +36,8 @@ from message in messages
ConversationId = (string)last.MessageMetadata["ConversationId"]
};

// StandardAnalyzer is the default analyzer, so no follow-up Analyze() call is needed here
Index(x => x.Query, FieldIndexing.Search);

Analyze(x => x.Query, typeof(StandardAnalyzer).AssemblyQualifiedName);
}

public class SortAndFilterOptions
Expand Down
Loading