Skip to content

Commit 001a8c4

Browse files
authored
Merge pull request #4381 from DataDog/tonycthsu/flaky-psysh
Remove loading `psych` gem early to fix cucumber spec
2 parents 4c87324 + 5f59150 commit 001a8c4

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

spec/datadog/core/environment/execution_spec.rb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -170,26 +170,12 @@ def test_it_does_something_useful
170170

171171
let(:script) do
172172
<<-'RUBY'
173-
# Under Ruby 3.0 through 3.2 there is a weird error that occurs
174-
# in CI where two copies of psych get loaded in the same process,
175-
# and even more strangely the first version is a newer one from
176-
# gem and the second one is the older one from Ruby standard
177-
# library. Try to work around this situation by forcing psych
178-
# to be loaded from (some) gem.
179-
# We still don't know exactly what is causing the original issue.
180-
gem 'psych'
181-
182173
require 'bundler/inline'
183174
184175
gemfile(true) do
185176
source 'https://rubygems.org'
186-
if RUBY_VERSION >= '3.4'
187-
# Cucumber is broken on Ruby 3.4, requires the fix in
188-
# https://github.com/cucumber/cucumber-ruby/pull/1757
189-
gem 'cucumber', '>= 3', git: 'https://github.com/cucumber/cucumber-ruby'
190-
else
191-
gem 'cucumber', '>= 3'
192-
end
177+
178+
gem 'cucumber', '>= 3', '<= 9.2.1'
193179
end
194180
195181
load Gem.bin_path('cucumber', 'cucumber')

0 commit comments

Comments
 (0)