diff --git a/Rakefile b/Rakefile index 76087068b3..60354e706e 100644 --- a/Rakefile +++ b/Rakefile @@ -394,6 +394,8 @@ end task docker_test_perf: :docker_build_clang_release do sh "docker run #{docker_run_flags} " \ "-e STATS_API_SECRET=#{(ENV['STATS_API_SECRET'] || '').inspect} " \ + "-e GITHUB_SHA=#{(ENV['GITHUB_SHA'] || '').inspect} " \ + "-e GITHUB_HEAD_REF=#{(ENV['GITHUB_HEAD_REF'] || '').inspect} " \ '--rm ' \ '--entrypoint rake ' \ "natalie_clang_#{ruby_version_string}_release test_perf" diff --git a/spec/support/test_perf.rb b/spec/support/test_perf.rb index 31c3086a03..4bc4d0de52 100644 --- a/spec/support/test_perf.rb +++ b/spec/support/test_perf.rb @@ -25,8 +25,8 @@ pp totals stats = { - commit: `git rev-parse HEAD`.strip, - branch: `git rev-parse --abbrev-ref HEAD`.strip, + commit: ENV.fetch('GITHUB_SHA'), + branch: ENV.fetch('GITHUB_HEAD_REF'), ir: totals }