Skip to content

Commit

Permalink
Work around unavailability of perf counters on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jul 29, 2022
1 parent 48fa239 commit 41d9aa5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/evaluate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ function sandboxed_test(config::Configuration, pkg::Package; kwargs...)
trace_file = joinpath(trace_dir, "$(pkg.name).tar.zst")
mounts["/traces"] = trace_dir
env["PKGEVAL_RR"] = "true"
if haskey(ENV, "CI")
# CI servers typically do not have perf counters exposed
env["JULIA_RR_RECORD_ARGS"] = "--no-syscall-buffer"
end
haskey(ENV, "PKGEVAL_RR_BUCKET") ||
@warn maxlog=1 "PKGEVAL_RR_BUCKET not set; will not be uploading rr traces"
end
Expand Down

0 comments on commit 41d9aa5

Please sign in to comment.