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

[Profile] Skip on aarch64-linux tests that intermittently fail #55426

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
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
14 changes: 9 additions & 5 deletions stdlib/Profile/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
using Test, Profile, Serialization, Logging
using Base.StackTraces: StackFrame

# Some tests intermittently fail on aarch64 Linux only in CI, we skip them for
# the time being: https://github.com/JuliaLang/julia/issues/54839
const is_aarch64_linux = Sys.islinux() && Base.BinaryPlatforms.arch(Base.BinaryPlatforms.HostPlatform()) == "aarch64" && get(ENV, "CI", "false") == "true"

@test_throws "The profiling data buffer is not initialized. A profile has not been requested this session." Profile.print()

Profile.clear()
Expand Down Expand Up @@ -49,7 +53,7 @@ for options in ((format=:tree, C=true),
iobuf = IOBuffer()
Profile.print(iobuf; options...)
str = String(take!(iobuf))
@test !isempty(str)
@test !isempty(str) skip=is_aarch64_linux
end

@testset "Profile.print() groupby options" begin
Expand All @@ -59,7 +63,7 @@ end
@testset for threads in Any[1:typemax(Int), 1, 1:1, 1:2, [1,2]]
@testset for groupby in Any[:none, :thread, :task, [:thread, :task], [:task, :thread]]
Profile.print(iobuf; groupby, threads, format)
@test !isempty(String(take!(iobuf)))
@test !isempty(String(take!(iobuf))) skip=is_aarch64_linux
end
end
end
Expand Down Expand Up @@ -178,10 +182,10 @@ let cmd = Base.julia_cmd()
end
s = read(p, String)
close(t)
@test success(p)
@test success(p) skip=is_aarch64_linux
@test !isempty(s)
@test occursin("done", s)
@test parse(Int, split(s, '\n')[end]) > 100
@test occursin("done", s) skip=is_aarch64_linux
@test parse(Int, split(s, '\n')[end]) > 100 skip=is_aarch64_linux
end

if Sys.isbsd() || Sys.islinux()
Expand Down