-
Notifications
You must be signed in to change notification settings - Fork 15
[NO-TICKET] Fix failing "Ruby gem scaffolding" CI #1153
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
Conversation
Some of our tests use
```ruby
let(:temporary_directory) { "does/not/exist" }
```
and in ruby/fileutils#132 the behavior of
`FileUtils.remove_dir` was tweaked to change the exception that gets
raised when doing `FileUtils.remove_dir` with a directory that doesn't
exist.
I've updated the test clean-up hook with the new exception as well.
May come in handy sometimes (and does not affect what we ship to customers).
BenchmarksComparisonBenchmark execution time: 2025-07-25 08:24:52 Comparing candidate commit 91f5f4d in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 53 metrics, 2 unstable metrics. CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
Group 12
Group 13
Group 14
BaselineOmitted due to size. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1153 +/- ##
==========================================
- Coverage 71.05% 71.04% -0.02%
==========================================
Files 348 348
Lines 53839 53839
==========================================
- Hits 38254 38248 -6
- Misses 15585 15591 +6
🚀 New features to boost your workflow:
|
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|

What does this PR do?
This PR fixes the "Ruby gem scaffolding" CI tests that recently started failing, e.g. https://github.com/DataDog/libdatadog/actions/runs/16419817858/job/46553849708:
TL;DR the failure was on ruby-head (aka master, trunk, etc) and there was an explicit behavior change in the Ruby core libraries in ruby/fileutils#132 that caused this.
This PR also includes two other minor tweaks to improve the development/debugging experience in the repo. I recommend reviewing this PR commit-by-commit.
Motivation
Bring CI back to green!
Additional Notes
Some of our tests use
and in ruby/fileutils#132 the behavior of
FileUtils.remove_dirwas tweaked to change the exception that gets raised when doingFileUtils.remove_dirwith a directory that doesn't exist.I've updated the test clean-up hook with the new exception as well.
How to test the change?
Green CI is good!