Skip to content

Commit

Permalink
Merge pull request #9663 from dependabot/enable-yjit-for-even-numbere…
Browse files Browse the repository at this point in the history
…d-update-jobs

Enable YJIT for even-numbered update jobs
  • Loading branch information
landongrindheim authored May 3, 2024
2 parents aee7bb9 + f58c55b commit a549c93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions updater/bin/fetch_files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class UpdaterKilledError < StandardError; end
end

begin
RubyVM::YJIT.enable if Dependabot::Environment.job_id.to_i.even?

Dependabot::FileFetcherCommand.new.run
rescue Dependabot::RunFailure
exit 1
Expand Down
2 changes: 2 additions & 0 deletions updater/bin/update_files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class UpdaterKilledError < StandardError; end
end

begin
RubyVM::YJIT.enable if Dependabot::Environment.job_id.to_i.even?

if flamegraph
Flamegraph.generate("/tmp/dependabot-flamegraph.html") do
Dependabot::UpdateFilesCommand.new.run
Expand Down

0 comments on commit a549c93

Please sign in to comment.