JuliaCI / Coverage.jl

Take Julia code coverage and memory allocation results, do useful things with them
MIT License
174 stars 68 forks source link

Manual upload to Codecov fails with ENETUNREACH #323

Closed andreasnoack closed 2 years ago

andreasnoack commented 3 years ago

This used to work fine but now I'm consistently getting

[ Info: Submitting data to Codecov...
ERROR: IOError(Base.IOError("connect: network is unreachable (ENETUNREACH)", -101) during request(https://storage.g
oogleapis.com/codecov/v4/raw/2021-09-21/9472A2BD638E4D8275D695CF9E94797A/01a215e833c3fe848a6a6cd9a05ac305585ab59c/4
915d1c2-f4db-4d5c-b8af-929cbc4d0da4.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR
55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20210921%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210921T141408Z&X-Amz-Expires=
10&X-Amz-SignedHeaders=host&X-Amz-Signature=d2c0ec95c2ddf4a4d23218d80f2567ccf9a36b0d8cb8eb7c4de1c99ba52701f3))

Stacktrace:
  [1] wait_connected(x::Sockets.TCPSocket)
    @ Sockets /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Sockets/src/Sockets.jl:532
  [2] connect
    @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Sockets/src/Sockets.jl:567 [inlined]
  [3] connect(addr::Sockets.IPv6, port::UInt64)
    @ Sockets /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Sockets/src/Sockets.jl:553
  [4] getconnection(::Type{Sockets.TCPSocket}, host::SubString{String}, port::String; keepalive::Bool, connect_time
out::Int64, kw::Base.Iterators.Pairs{Symbol, Any, NTuple{4, Symbol}, NamedTuple{(:require_ssl_verification, :iofunc
tion, :reached_redirect_limit, :header), Tuple{Bool, Nothing, Bool, Dict{String, String}}}})
    @ HTTP.ConnectionPool ~/.julia/packages/HTTP/IAI92/src/ConnectionPool.jl:630
  [5] #getconnection#29
    @ ~/.julia/packages/HTTP/IAI92/src/ConnectionPool.jl:682 [inlined]
  [6] newconnection(pod::HTTP.ConnectionPool.Pod, T::Type, host::SubString{String}, port::SubString{String}, pipeli
ne_limit::Int64, require_ssl_verification::Bool, idle_timeout::Int64; kw::Base.Iterators.Pairs{Symbol, Any, Tuple{S
ymbol, Symbol, Symbol}, NamedTuple{(:iofunction, :reached_redirect_limit, :header), Tuple{Nothing, Bool, Dict{Strin
g, String}}}})
    @ HTTP.ConnectionPool ~/.julia/packages/HTTP/IAI92/src/ConnectionPool.jl:597
  [7] getconnection(::Type{HTTP.ConnectionPool.Transaction{MbedTLS.SSLContext}}, host::SubString{String}, port::Sub
String{String}; connection_limit::Int64, pipeline_limit::Int64, idle_timeout::Int64, reuse_limit::Int64, require_ss
l_verification::Bool, kw::Base.Iterators.Pairs{Symbol, Any, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:iofunction,
 :reached_redirect_limit, :header), Tuple{Nothing, Bool, Dict{String, String}}}})
    @ HTTP.ConnectionPool ~/.julia/packages/HTTP/IAI92/src/ConnectionPool.jl:541
  [8] request(::Type{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}, url::HTT
P.URIs.URI, req::HTTP.Messages.Request, body::String; proxy::Nothing, socket_type::Type, reuse_limit::Int64, kw::Ba
se.Iterators.Pairs{Symbol, Any, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:iofunction, :reached_redirect_limit, :h
eader), Tuple{Nothing, Bool, Dict{String, String}}}})
    @ HTTP.ConnectionRequest ~/.julia/packages/HTTP/IAI92/src/ConnectionRequest.jl:73
  [9] request(::Type{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamReq
uest.StreamLayer{Union{}}}}}, ::HTTP.URIs.URI, ::Vararg{Any, N} where N; kw::Base.Iterators.Pairs{Symbol, Any, Tupl
e{Symbol, Symbol, Symbol}, NamedTuple{(:iofunction, :reached_redirect_limit, :header), Tuple{Nothing, Bool, Dict{St
ring, String}}}})
    @ HTTP.ExceptionRequest ~/.julia/packages/HTTP/IAI92/src/ExceptionRequest.jl:19
 [10] (::Base.var"#70#72"{Base.var"#70#71#73"{ExponentialBackOff, HTTP.RetryRequest.var"#2#3"{Bool, HTTP.Messages.R
equest}, typeof(HTTP.request)}})(::Type, ::Vararg{Any, N} where N; kwargs::Base.Iterators.Pairs{Symbol, Any, Tuple{
Symbol, Symbol, Symbol}, NamedTuple{(:iofunction, :reached_redirect_limit, :header), Tuple{Nothing, Bool, Dict{Stri
ng, String}}}})
    @ Base ./error.jl:301
 [11] #request#1
    @ ~/.julia/packages/HTTP/IAI92/src/RetryRequest.jl:44 [inlined]
 [12] request(::Type{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionL
ayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}, method::String, url::
HTTP.URIs.URI, headers::Vector{Pair{SubString{String}, SubString{String}}}, body::String; http_version::VersionNumb
er, target::String, parent::Nothing, iofunction::Nothing, kw::Base.Iterators.Pairs{Symbol, Any, Tuple{Symbol, Symbo
l}, NamedTuple{(:reached_redirect_limit, :header), Tuple{Bool, Dict{String, String}}}})
    @ HTTP.MessageRequest ~/.julia/packages/HTTP/IAI92/src/MessageRequest.jl:51
 [13] request(::Type{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryL
ayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer
{Union{}}}}}}}}, method::String, url::HTTP.URIs.URI, headers::Vector{Pair{SubString{String}, SubString{String}}}, b
ody::String; kw::Base.Iterators.Pairs{Symbol, Any, Tuple{Symbol, Symbol}, NamedTuple{(:reached_redirect_limit, :hea
der), Tuple{Bool, Dict{String, String}}}})
    @ HTTP.BasicAuthRequest ~/.julia/packages/HTTP/IAI92/src/BasicAuthRequest.jl:28
 [14] request(::Type{HTTP.RedirectRequest.RedirectLayer{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.Me
ssageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolL
ayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}}, method::String, url::HTTP.URIs.URI, headers::Vector{Pair{SubSt
ring{String}, SubString{String}}}, body::String; redirect_limit::Int64, forwardheaders::Bool, kw::Base.Iterators.Pa
irs{Symbol, Dict{String, String}, Tuple{Symbol}, NamedTuple{(:header,), Tuple{Dict{String, String}}}})
    @ HTTP.RedirectRequest ~/.julia/packages/HTTP/IAI92/src/RedirectRequest.jl:24
 [15] request(method::String, url::SubString{String}, h::Vector{Any}, b::String; headers::Vector{Any}, body::String
, query::Nothing, kw::Base.Iterators.Pairs{Symbol, Dict{String, String}, Tuple{Symbol}, NamedTuple{(:header,), Tupl
e{Dict{String, String}}}})
    @ HTTP ~/.julia/packages/HTTP/IAI92/src/HTTP.jl:314
 [16] #put#13
    @ ~/.julia/packages/HTTP/IAI92/src/HTTP.jl:398 [inlined]
 [17] upload_to_s3(; s3url::SubString{String}, fcs::Vector{CoverageTools.FileCoverage})
    @ Coverage.Codecov ~/.julia/packages/Coverage/ySMx4/src/codecovio.jl:243
 [18] submit_generic(fcs::Vector{CoverageTools.FileCoverage}, kwargs::Dict{Symbol, Any})
    @ Coverage.Codecov ~/.julia/packages/Coverage/ySMx4/src/codecovio.jl:236
 [19] submit_local(fcs::Vector{CoverageTools.FileCoverage}, dir::String; kwargs::Base.Iterators.Pairs{Union{}, Unio
n{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Coverage.Codecov ~/.julia/packages/Coverage/ySMx4/src/codecovio.jl:182
 [20] submit_local (repeats 2 times)
    @ ~/.julia/packages/Coverage/ySMx4/src/codecovio.jl:182 [inlined]
 [21] top-level scope
    @ none:1

Using Codecovs new uploader works just fine.

cc: @DilumAluthge @vtjnash

andreasnoack commented 2 years ago

I no longer get this error.