Skip to content

Commit

Permalink
Merge pull request #98 from casperisfine/hard-fail-nightly
Browse files Browse the repository at this point in the history
Hard fail ruby nigthly jobs
  • Loading branch information
byroot authored Apr 17, 2024
2 parents 724de9d + ce921b2 commit 2995bb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/buildkite/config/ruby_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ class RubyConfig

class << self
def master_ruby
new(version: MASTER_RUBY_IMAGE, soft_fail: true)
new(version: MASTER_RUBY_IMAGE)
end

def master_debug_ruby
new(version: MASTER_DEBUG_RUBY_IMAGE, soft_fail: true)
new(version: MASTER_DEBUG_RUBY_IMAGE)
end

def yjit_ruby
# Adds yjit: onto the master ruby image string so we
# know when to turn on YJIT via the environment variable.
new(version: "yjit:#{MASTER_RUBY_IMAGE}", soft_fail: true, yjit: true)
new(version: "yjit:#{MASTER_RUBY_IMAGE}", yjit: true)
end
end

Expand Down
3 changes: 1 addition & 2 deletions test/buildkite_config/test_rake_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ def test_env_yjit
assert_includes pipeline.to_h["steps"][0]["env"], "RUBY_YJIT_ENABLE"
assert_equal "1", pipeline.to_h["steps"][0]["env"]["RUBY_YJIT_ENABLE"]

assert_includes pipeline.to_h["steps"][0], "soft_fail"
assert_equal true, pipeline.to_h["steps"][0]["soft_fail"]
assert_not_includes pipeline.to_h["steps"][0], "soft_fail"
end

def test_env_pre_steps
Expand Down

0 comments on commit 2995bb3

Please sign in to comment.