Skip to content
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

[NO-TICKET] Extract spec for binary setting #4224

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Dec 13, 2024

What does this PR do?

This PR introduces a single shared example to replace approximately ONE BILLION copy pasted test cases to test a binary setting that can be read from an env variable.

Motivation:

I've gotten tired of copy-pasting this again and again and decided to finally clean this up.

Change log entry

None.

Additional Notes:

My only regret is not having cleaned this up earlier.

How to test the change?

Validate tests still pass.

**What does this PR do?**

This PR introduces a single shared example to replace approximately ONE
BILLION copy pasted test cases to test a binary setting that can be read
from an env variable.

**Motivation:**

I've gotten tired of copy-pasting this again and again and decided
to finally clean this up.

**Additional Notes:**

My only regret is not having cleaned this up earlier.

**How to test the change?**

Validate tests still pass.
@ivoanjo ivoanjo requested a review from a team as a code owner December 13, 2024 17:41
@ivoanjo ivoanjo added dev/testing Involves testing processes (e.g. RSpec) dev/internal Other internal work that does not need to be included in the changelog labels Dec 13, 2024
@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Dec 13, 2024

Datadog Report

Branch report: ivoanjo/extract-spec-for-binary-setting
Commit report: ec144ce
Test service: dd-trace-rb

✅ 0 Failed, 22089 Passed, 1458 Skipped, 5m 24.53s Total Time

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.75%. Comparing base (65fb81d) to head (ec144ce).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4224      +/-   ##
==========================================
- Coverage   97.75%   97.75%   -0.01%     
==========================================
  Files        1355     1355              
  Lines       82165    82010     -155     
  Branches     4207     4207              
==========================================
- Hits        80321    80167     -154     
+ Misses       1844     1843       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pr-commenter
Copy link

pr-commenter bot commented Dec 13, 2024

Benchmarks

Benchmark execution time: 2024-12-13 18:04:51

Comparing candidate commit ec144ce in PR branch ivoanjo/extract-spec-for-binary-setting with baseline commit 65fb81d in branch master.

Found 2 performance improvements and 1 performance regressions! Performance is the same for 28 metrics, 2 unstable metrics.

scenario:line instrumentation - targeted

  • 🟩 throughput [+10967.212op/s; +11551.553op/s] or [+7.064%; +7.440%]

scenario:method instrumentation

  • 🟩 throughput [+8839.987op/s; +9363.739op/s] or [+5.193%; +5.501%]

scenario:profiler - sample timeline=false

  • 🟥 throughput [-0.488op/s; -0.470op/s] or [-7.544%; -7.269%]

@marcotc marcotc merged commit 74d49f8 into master Dec 13, 2024
344 checks passed
@marcotc marcotc deleted the ivoanjo/extract-spec-for-binary-setting branch December 13, 2024 19:03
@github-actions github-actions bot added this to the 2.9.0 milestone Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/internal Other internal work that does not need to be included in the changelog dev/testing Involves testing processes (e.g. RSpec)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants