Skip to content

Commit 53248e4

Browse files
Merge pull request #90 from akkadotnet/dev
v1.4.1-RC1 release
2 parents 800758c + 59a9527 commit 53248e4

File tree

12 files changed

+309
-135
lines changed

12 files changed

+309
-135
lines changed

RELEASE_NOTES.md

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,2 @@
1-
#### 1.3.11 February 05 2020 ####
2-
3-
* Breaking change [Fixed: SourceContext should be set consistent with Serilog expectations](https://github.com/akkadotnet/Akka.Logger.Serilog/issues/78)
4-
5-
#### 1.3.10 October 05 2019 ####
6-
* Upgraded to Serilog v2.9.0
7-
* Upgraded to Akka 1.3.15
8-
9-
#### 1.3.9 August 23 2018 ####
10-
* [Fixed: Regression: ForContext API doesn't apply changes](https://github.com/akkadotnet/Akka.Logger.Serilog/issues/51)
11-
* Upgraded to Akka.NET v1.3.9.
12-
* Upgraded to Serilog v2.7.1.
13-
14-
#### 1.3.6 April 28 2018 ####
15-
* Restored `SerilogLogMessageFormatter` in order to fix [Bug: `LogEvent.ToString()` blows up when using Serilog semantic formatting](https://github.com/akkadotnet/Akka.Logger.Serilog/issues/43).
16-
* Upgraded to [Akka.NET v1.3.6](https://github.com/akkadotnet/akka.net/releases/tag/v1.3.6).
17-
18-
If you intend on using any of the Serilog semantic logging formats in your logging strings, __you need to use the SerilogLoggingAdapter__ inside your instrumented code or there could be elsewhere inside parts of your `ActorSystem`:
19-
20-
```csharp
21-
var log = Context.GetLogger<SerilogLoggingAdapter>(); // correct
22-
log.Info("My boss makes me use {semantic} logging", "semantic"); // serilog semantic logging format
23-
```
24-
25-
This will allow all logging events to be consumed anywhere inside the `ActorSystem`, including places like the Akka.NET TestKit, without throwing `FormatException`s when they encounter semantic logging syntax outside of the `SerilogLogger`.
26-
27-
#### 1.3.3 January 27 2018 ####
28-
29-
Removed SerilogLogMessageFormatter since its no longer needed
30-
Support for Akka 1.3.3
31-
Update to Serilog 2.6.0
32-
33-
#### 1.2.0 April 18 2017 ####
34-
35-
Support for Akka 1.2.0
36-
37-
#### 1.1.3 Januari 26 2017 ####
38-
39-
Support for Akka 1.1.3
40-
41-
Update to Serilog 2.4.0
42-
43-
#### 1.1.2 September 26 2016 ####
44-
45-
Support for Akka 1.1.2
46-
Update to Serilog 2.2.1
47-
48-
#### 1.1.1 Juli 16 2016 ####
49-
50-
Support for Akka 1.1.1
51-
Updated to Serilog 2.0.0
52-
53-
#### 1.0.8 March 27 2016 ####
54-
55-
Support for Akka 1.0.8
56-
57-
#### 1.0.7 Februari 29 2016 ####
58-
59-
Support for Akka 1.0.7
1+
#### 1.4.1-RC1 March 02 2020 ####
2+
* Updated Serilog to [Akka.NET v1.4.1-RC1](https://getakka.net/community/whats-new/akkadotnet-v1.4.html)

build.fsx

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,30 @@ let configuration = "Release"
1616
// Metadata used when signing packages and DLLs
1717
let signingName = "Akka.Logger.Serilog"
1818
let signingDescription = "Akka.Logger plugin for Serilog"
19-
let signingUrl = ""
19+
let signingUrl = "https://github.com/akkadotnet/Akka.Logger.Serilog"
2020

2121

2222
// Read release notes and version
2323
let solutionFile = FindFirstMatchingFile "*.sln" __SOURCE_DIRECTORY__ // dynamically look up the solution
2424
let buildNumber = environVarOrDefault "BUILD_NUMBER" "0"
2525
let hasTeamCity = (not (buildNumber = "0")) // check if we have the TeamCity environment variable for build # set
2626
let preReleaseVersionSuffix = "beta" + (if (not (buildNumber = "0")) then (buildNumber) else DateTime.UtcNow.Ticks.ToString())
27-
let versionSuffix =
28-
match (getBuildParam "nugetprerelease") with
29-
| "dev" -> preReleaseVersionSuffix
30-
| _ -> ""
3127

3228
let releaseNotes =
33-
File.ReadLines "./RELEASE_NOTES.md"
29+
File.ReadLines (__SOURCE_DIRECTORY__ @@ "RELEASE_NOTES.md")
3430
|> ReleaseNotesHelper.parseReleaseNotes
3531

32+
let versionFromReleaseNotes =
33+
match releaseNotes.SemVer.PreRelease with
34+
| Some r -> r.Origin
35+
| None -> ""
36+
37+
let versionSuffix =
38+
match (getBuildParam "nugetprerelease") with
39+
| "dev" -> preReleaseVersionSuffix
40+
| "" -> versionFromReleaseNotes
41+
| str -> str
42+
3643
// Directories
3744
let toolsDir = __SOURCE_DIRECTORY__ @@ "tools"
3845
let output = __SOURCE_DIRECTORY__ @@ "bin"
@@ -108,42 +115,33 @@ Target "RunTests" (fun _ ->
108115
projects |> Seq.iter (runSingleProject)
109116
)
110117

111-
Target "NBench" <| fun _ ->
112-
let nbenchTestPath = findToolInSubPath "NBench.Runner.exe" (toolsDir @@ "NBench.Runner*")
113-
printfn "Using NBench.Runner: %s" nbenchTestPath
114-
115-
let nbenchTestAssemblies = !! "./src/**/bin/**/*Tests.Performance.dll" // doesn't support .NET Core at the moment
116-
117-
let runNBench assembly =
118-
let includes = getBuildParam "include"
119-
let excludes = getBuildParam "exclude"
120-
let teamcityStr = (getBuildParam "teamcity")
121-
let enableTeamCity =
122-
match teamcityStr with
123-
| null -> false
124-
| "" -> false
125-
| _ -> bool.Parse teamcityStr
126-
127-
let args = StringBuilder()
128-
|> append assembly
129-
|> append (sprintf "output-directory=\"%s\"" outputPerfTests)
130-
|> append (sprintf "concurrent=\"%b\"" true)
131-
|> append (sprintf "trace=\"%b\"" true)
132-
|> append (sprintf "teamcity=\"%b\"" enableTeamCity)
133-
|> appendIfNotNullOrEmpty includes "include="
134-
|> appendIfNotNullOrEmpty excludes "include="
118+
Target "NBench" (fun _ ->
119+
ensureDirectory outputPerfTests
120+
let nbenchTestAssemblies = !! "./src/**/*Tests.Performance.csproj"
121+
122+
nbenchTestAssemblies |> Seq.iter(fun project ->
123+
let args = new StringBuilder()
124+
|> append "run"
125+
|> append "--no-build"
126+
|> append "-c"
127+
|> append configuration
128+
|> append " -- "
129+
|> append "--output"
130+
|> append outputPerfTests
131+
|> append "--concurrent"
132+
|> append "true"
133+
|> append "--trace"
134+
|> append "true"
135+
|> append "--diagnostic"
135136
|> toText
136137

137138
let result = ExecProcess(fun info ->
138-
info.FileName <- nbenchTestPath
139-
info.WorkingDirectory <- (Path.GetDirectoryName (FullName nbenchTestPath))
140-
info.Arguments <- args) (System.TimeSpan.FromMinutes 45.0) (* Reasonably long-running task. *)
141-
142-
printfn "result was %i" result
143-
144-
if result <> 0 then failwithf "NBench.Runner failed. %s %s" nbenchTestPath args
145-
146-
nbenchTestAssemblies |> Seq.iter runNBench
139+
info.FileName <- "dotnet"
140+
info.WorkingDirectory <- (Directory.GetParent project).FullName
141+
info.Arguments <- args) (System.TimeSpan.FromMinutes 15.0) (* Reasonably long-running task. *)
142+
if result <> 0 then failwithf "NBench.Runner failed. %s %s" "dotnet" args
143+
)
144+
)
147145

148146

149147
//--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)