-
Notifications
You must be signed in to change notification settings - Fork 9
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] Validate that all public symbols are prefixed in Ruby releases #573
Conversation
…eases **What does this PR do?** This PR adds a check during packaging of Ruby releases that all symbols exported in the libdatadog shared library are correctly prefixed. **Motivation:** This allows us to catch any new unprefixed symbols, and thus we're able to rely on libdatadog not exporting symbols that would clash with other libraries that may be loaded in the same Ruby VM. **Additional Notes:** N/A **How to test the change?** You can observe the new check running with `docker-compose run push_to_rubygems`. This is safe to call as it'll stop asking for credentials before actually publishing anything to rubygems.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #573 +/- ##
==========================================
- Coverage 70.28% 70.24% -0.05%
==========================================
Files 214 214
Lines 28785 28802 +17
==========================================
Hits 20231 20231
- Misses 8554 8571 +17
|
BenchmarksComparisonBenchmark execution time: 2024-08-05 08:40:36 Comparing candidate commit 9533108 in PR branch Found 1 performance improvements and 1 performance regressions! Performance is the same for 40 metrics, 2 unstable metrics. scenario:normalization/normalize_trace/test_trace
scenario:tags/replace_trace_tags
CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
BaselineOmitted due to size. |
What does this PR do?
This PR adds a check during packaging of Ruby releases that all symbols exported in the libdatadog shared library are correctly prefixed.
Motivation
This allows us to catch any new unprefixed symbols, and thus we're able to rely on libdatadog not exporting symbols that would clash with other libraries that may be loaded in the same Ruby VM.
Additional Notes
N/A
How to test the change?
You can observe the new check running with
docker-compose run push_to_rubygems
.This is safe to call as it'll stop asking for credentials before actually publishing anything to rubygems.