Skip to content
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

Enable YJIT for even-numbered update jobs #9663

Merged
merged 2 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions updater/bin/fetch_files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class UpdaterKilledError < StandardError; end
end

begin
if Dependabot::Environment.job_id.to_i.even?
landongrindheim marked this conversation as resolved.
Show resolved Hide resolved
RubyVM::YJIT.enable
end

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

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

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