Make running integration tests on OSx great again#2708
Merged
Conversation
pierotibou
force-pushed
the
pierre/native-loader-osx
branch
from
April 20, 2022 19:42
4c3da90 to
a320455
Compare
andrewlock
approved these changes
Apr 20, 2022
andrewlock
left a comment
Member
There was a problem hiding this comment.
Nice work, I can feel your pain 😂
Member
Code Coverage Report 📊✔️ Merging #2708 into master will not change line coverage
View the full report for further details: Datadog.Trace Breakdown ✔️
The following classes have significant coverage changes.
View the full reports for further details: |
zacharycmontoya
approved these changes
Apr 20, 2022
zacharycmontoya
left a comment
Contributor
There was a problem hiding this comment.
Thank you for doing this!
Member
Benchmarks Report 🐌Benchmarks for #2708 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ElasticsearchBenchmark - Faster 🎉 Same allocations ✔️
|
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch‑net472 | 1.196 | 3,079.24 | 2,573.65 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | CallElasticsearch |
net472 | 3.11μs | 16.5ns | 82.6ns | 0.127 | 0 | 0 | 803 B |
| master | CallElasticsearch |
netcoreapp3.1 | 1.85μs | 9.87ns | 68.3ns | 0.0109 | 0 | 0 | 792 B |
| master | CallElasticsearchAsync |
net472 | 3.17μs | 16.6ns | 77.9ns | 0.149 | 0.00149 | 0 | 939 B |
| master | CallElasticsearchAsync |
netcoreapp3.1 | 1.92μs | 10.6ns | 62.9ns | 0.0123 | 0 | 0 | 912 B |
| #2708 | CallElasticsearch |
net472 | 2.58μs | 10.2ns | 39.3ns | 0.127 | 0 | 0 | 802 B |
| #2708 | CallElasticsearch |
netcoreapp3.1 | 1.64μs | 6.46ns | 23.3ns | 0.0106 | 0 | 0 | 792 B |
| #2708 | CallElasticsearchAsync |
net472 | 3.05μs | 17.4ns | 123ns | 0.146 | 0 | 0 | 939 B |
| #2708 | CallElasticsearchAsync |
netcoreapp3.1 | 1.9μs | 10.9ns | 78.2ns | 0.0128 | 0 | 0 | 912 B |
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | ExecuteAsync |
net472 | 3.1μs | 15.8ns | 72.5ns | 0.168 | 0.00151 | 0 | 1.06 KB |
| master | ExecuteAsync |
netcoreapp3.1 | 2.1μs | 11.4ns | 60.3ns | 0.0138 | 0 | 0 | 1.03 KB |
| #2708 | ExecuteAsync |
net472 | 3.37μs | 9.57ns | 33.1ns | 0.167 | 0.00166 | 0 | 1.06 KB |
| #2708 | ExecuteAsync |
netcoreapp3.1 | 2.33μs | 8.45ns | 30.5ns | 0.0138 | 0 | 0 | 1.03 KB |
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | SendAsync |
net472 | 6.69μs | 29.2ns | 113ns | 0.361 | 0 | 0 | 2.28 KB |
| master | SendAsync |
netcoreapp3.1 | 5.06μs | 23.5ns | 99.5ns | 0.031 | 0 | 0 | 2.21 KB |
| #2708 | SendAsync |
net472 | 6.95μs | 35ns | 160ns | 0.361 | 0 | 0 | 2.28 KB |
| #2708 | SendAsync |
netcoreapp3.1 | 4.86μs | 17.4ns | 67.3ns | 0.03 | 0 | 0 | 2.21 KB |
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net472 | 3.51μs | 14.7ns | 65.7ns | 0.226 | 0 | 0 | 1.45 KB |
| master | EnrichedLog |
netcoreapp3.1 | 3.12μs | 10.4ns | 40.2ns | 0.0216 | 0 | 0 | 1.53 KB |
| #2708 | EnrichedLog |
net472 | 3.51μs | 18.1ns | 86.9ns | 0.228 | 0 | 0 | 1.45 KB |
| #2708 | EnrichedLog |
netcoreapp3.1 | 3.12μs | 9.63ns | 36ns | 0.0211 | 0 | 0 | 1.53 KB |
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net472 | 285μs | 1.35μs | 5.56μs | 0.434 | 0.145 | 0 | 4.33 KB |
| master | EnrichedLog |
netcoreapp3.1 | 231μs | 1.23μs | 6.6μs | 0 | 0 | 0 | 4.21 KB |
| #2708 | EnrichedLog |
net472 | 284μs | 1.33μs | 5.34μs | 0.411 | 0.137 | 0 | 4.33 KB |
| #2708 | EnrichedLog |
netcoreapp3.1 | 226μs | 735ns | 2.65μs | 0 | 0 | 0 | 4.21 KB |
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net472 | 9.02μs | 50.1ns | 321ns | 0.502 | 0 | 0 | 3.23 KB |
| master | EnrichedLog |
netcoreapp3.1 | 6.6μs | 36.3ns | 224ns | 0.0503 | 0 | 0 | 3.6 KB |
| #2708 | EnrichedLog |
net472 | 9.01μs | 51.8ns | 398ns | 0.503 | 0 | 0 | 3.23 KB |
| #2708 | EnrichedLog |
netcoreapp3.1 | 6.59μs | 36.8ns | 232ns | 0.0492 | 0 | 0 | 3.6 KB |
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | SendReceive |
net472 | 2.37μs | 8.2ns | 30.7ns | 0.16 | 0 | 0 | 1.01 KB |
| master | SendReceive |
netcoreapp3.1 | 2.17μs | 10.4ns | 44ns | 0.0138 | 0 | 0 | 1.01 KB |
| #2708 | SendReceive |
net472 | 2.3μs | 11.2ns | 46ns | 0.16 | 0 | 0 | 1.01 KB |
| #2708 | SendReceive |
netcoreapp3.1 | 2.01μs | 3.13ns | 10.8ns | 0.0138 | 0 | 0 | 1.01 KB |
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net472 | 6.09μs | 33.9ns | 211ns | 0.292 | 0 | 0 | 1.87 KB |
| master | EnrichedLog |
netcoreapp3.1 | 5.33μs | 26.4ns | 156ns | 0.0192 | 0 | 0 | 1.49 KB |
| #2708 | EnrichedLog |
net472 | 6.08μs | 29.3ns | 114ns | 0.292 | 0 | 0 | 1.87 KB |
| #2708 | EnrichedLog |
netcoreapp3.1 | 5.32μs | 16.7ns | 62.5ns | 0.0196 | 0 | 0 | 1.49 KB |
Benchmarks.Trace.SpanBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #2708
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑netcoreapp3.1
1.214
1,042.23
1,264.90
bimodal
| Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.SpanBenchmark.StartFinishScope‑netcoreapp3.1 | 1.214 | 1,042.23 | 1,264.90 | bimodal |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartFinishSpan |
net472 | 914ns | 4.9ns | 26.4ns | 0.0716 | 0 | 0 | 457 B |
| master | StartFinishSpan |
netcoreapp3.1 | 882ns | 4.38ns | 22.7ns | 0.00627 | 0 | 0 | 456 B |
| master | StartFinishScope |
net472 | 1.08μs | 4.92ns | 18.4ns | 0.0846 | 0 | 0 | 538 B |
| master | StartFinishScope |
netcoreapp3.1 | 1.05μs | 5.34ns | 26.2ns | 0.00786 | 0 | 0 | 576 B |
| #2708 | StartFinishSpan |
net472 | 991ns | 2.53ns | 9.14ns | 0.0715 | 0 | 0 | 457 B |
| #2708 | StartFinishSpan |
netcoreapp3.1 | 887ns | 4.19ns | 16.8ns | 0.00601 | 0 | 0 | 456 B |
| #2708 | StartFinishScope |
net472 | 1.1μs | 3.52ns | 13.6ns | 0.0841 | 0 | 0 | 538 B |
| #2708 | StartFinishScope |
netcoreapp3.1 | 1.25μs | 13.8ns | 137ns | 0.00795 | 0 | 0 | 576 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | RunOnMethodBegin |
net472 | 1.28μs | 6.7ns | 36.7ns | 0.0843 | 0 | 0 | 538 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 1.17μs | 5.73ns | 23.6ns | 0.0078 | 0 | 0 | 576 B |
| #2708 | RunOnMethodBegin |
net472 | 1.27μs | 5.76ns | 40.3ns | 0.0836 | 0 | 0 | 538 B |
| #2708 | RunOnMethodBegin |
netcoreapp3.1 | 1.19μs | 5.31ns | 20.5ns | 0.00785 | 0 | 0 | 576 B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
Allow running linux ITests locally on Mac, ie build nativeloader on this OS.
Reason for change
I have a Mac
Implementation details
Made a few changes for the native loader to build in MacOs (some variables renaming and declaring runtimeid_store definition). Thank you @gleocadie for the help ;)
Made a few modifications in the build process and EnvironmentHelper.
Test coverage
Tested locally