[tests] clean up test project references#3198
Merged
lucaspimentel merged 6 commits intoSep 15, 2022
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
lucaspimentel
force-pushed
the
lpimentel/clean-up-test-project-references
branch
from
September 12, 2022 15:13
a75d97c to
a6594cb
Compare
This comment has been minimized.
This comment has been minimized.
lucaspimentel
force-pushed
the
lpimentel/clean-up-test-project-references
branch
from
September 12, 2022 22:07
a6594cb to
b383c04
Compare
This comment has been minimized.
This comment has been minimized.
lucaspimentel
force-pushed
the
lpimentel/clean-up-test-project-references
branch
from
September 13, 2022 16:12
b383c04 to
77c6bd4
Compare
This comment has been minimized.
This comment has been minimized.
lucaspimentel
marked this pull request as ready for review
September 13, 2022 20:23
dudikeleti
approved these changes
Sep 14, 2022
dudikeleti
left a comment
Contributor
There was a problem hiding this comment.
Apologies, I completely forgot to clean this up. Thanks a lot, this is great!
zacharycmontoya
approved these changes
Sep 14, 2022
lucaspimentel
force-pushed
the
lpimentel/clean-up-test-project-references
branch
from
September 14, 2022 17:01
77c6bd4 to
7852433
Compare
Member
Code Coverage Report 📊✔️ Merging #3198 into master will not change line coverage
View the full report for further details: Datadog.Trace Breakdown ✔️
The following classes have significant coverage changes.
The following classes were added in #3198:
View the full reports for further details: |
Member
Benchmarks Report 🐌Benchmarks for #3198 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 - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SpanBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.TraceAnnotationsBenchmark - Same speed ✔️ Same allocations ✔️Raw results
|
lucaspimentel
deleted the
lpimentel/clean-up-test-project-references
branch
September 15, 2022 15:13
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
Move a few files and project references from
Datadog.Trace.TestHelperstoDatadog.Trace.TestHelpers.AutoInstrumentationto reduce their blast radius.Reason for change
When running unit tests locally, everyone likes the dev loop (edit, build, run, repeat) to be as tight as possible.
Datadog.Trace.TestHelperscontains helpers and utilities shared by most test projects. There was code and dependencies in that project used exclusively for automatic instrumentation test that start a child process and use IL rewriting. I moved this code fromDatadog.Trace.TestHelpersto a new project so it doesn't pollute the dependencies of all the other test projects.In particular, this removes projects
Datadog.InstrumentedAssemblyGeneratorandDatadog.InstrumentedAssemblyVerificationas dependencies to most test projects.Implementation details
Added new project
Datadog.Trace.TestHelpers.AutoInstrumentationMoved the following files from
Datadog.Trace.TestHelpersto the new project:Datadog.Trace.TestHelpersto the new project:Test coverage
If the test project builds and runs, and the test still pass, we're good.
Other details
Bonus: Fix path to solution item
tracer/GlobalSuppressions.cs. This does not affect the build, only the ability to open the file from IDEs like VS or Rider.