-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add specs that were not executed to test:contrib
task
#3855
Conversation
BenchmarksBenchmark execution time: 2024-08-22 17:01:28 Comparing candidate commit 8c5928e in PR branch Found 0 performance improvements and 3 performance regressions! Performance is the same for 20 metrics, 2 unstable metrics. scenario:profiler - sample timeline=false
scenario:tracing - Propagation - Datadog
scenario:tracing - Propagation - Trace Context
|
Really nice find!
My suggestion on this one would be to add I'm spotting that CI is failing due to missing
I suspect it may be due to some of them needing extra dependencies. |
Some specs in spec/datadog/tracing/contrib folder were not executed with `rake test:contrib` rake task. This commit enables them to see if they fail.
4ff1b98
to
8c5928e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3855 +/- ##
==========================================
- Coverage 97.86% 97.85% -0.02%
==========================================
Files 1271 1277 +6
Lines 75976 76255 +279
Branches 3739 3739
==========================================
+ Hits 74356 74619 +263
- Misses 1620 1636 +16 ☔ View full report in Codecov by Sentry. |
What is the situation with the removed http route test? Is the corresponding code covered by other tests, is there a plan to reinstate the removed test? Is it covered by #3849 ? |
@p-datadog this http route test was actually introduced in the first attempt of http.route implementation that was rolled back (due to incompatibility with rails 7.1). I am not exactly sure why this file still exists in the repo, maybe due to incorrect rebase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose to merge this now, it executes more tests than before anyway.
'*'
in contrib_paths
works better than what we had before: now newly added tests will be executed by default, not ignored by default as before. Let's handle http route testing in its own PR. Thanks for handling this, @y9v
👍 |
What does this PR do?
Some specs in
spec/datadog/tracing/contrib
folder were not executed withtest:contrib
rake task.This commit enables them to see if they fail.
Motivation:
When working on adding http.route to tracing, I noticed a one file -
spec/datadog/tracing/contrib/http_route_spec.rb
that should have been failing in CI.After doing a small investigation with help of @anmarchenko it was clear that this file is not being executed, along with some other spec files.
This is the result we got when running
rake test:contrib
with a breakpoint in RSpec::Core::World:Additional Notes:
Most likely some of added specs will fail, this is expected.
How to test the change?
It will be tested in CI pipeline.