JuliaCI / Coverage.jl

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

Error uploading coverage stats #276

Closed logankilpatrick closed 3 years ago

logankilpatrick commented 4 years ago

Hey all, I am getting the following error uploading my coverage stats on Travis and was wondering if anyone has any suggestions:

ERROR: HTTP.ExceptionRequest.StatusError(400, "POST", "/upload/v2?&service=travis-org&branch=ck-todoList&commit=767c28ccaf8f72f82802a77ab703fd1&pull_request=false&job=363467107&slug=xxxxxxxxx.jl&build=1249.1", HTTP.Messages.Response:
2195"""
2196HTTP/1.1 400 Bad Request
2197Server: nginx/1.13.12
2198Date: Tue, 21 Jul 2020 19:39:11 GMT
2199Content-Type: text/html; charset=UTF-8
2200Content-Length: 33572
2201Connection: keep-alive
2202X-Xss-Protection: 1; mode=block
2203X-Content-Type-Options: nosniff
2204Strict-Transport-Security: max-age=15724800; includeSubDomains
2205Vary: X-PJAX, Accept-Encoding
2206X-Ua-Compatible: IE=Edge,chrome=1
2207Cache-Control: no-cache
2208X-Frame-Options: deny
2209
2210
2211<!DOCTYPE html>
2212<html lang="en">
2213<head>
2214<meta charset="utf-8">
2215<meta http-equiv="X-UA-Compatible" content="IE=edge">
2216<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
2217<meta name="description" content="Code coverage done right. Highly integrated with GitHub, Bitbucket and GitLab.">
2218<meta name="author" content="@codecov">
2219<meta name="keywords" content="code, coverage, analysis, testing, development, qa, analyzer">
2220
2221<link rel="shortcut icon" href="https://codecov-cdn.storage.googleapis.com/4.5.3-0e8c545/media/images/favicon.png">
2222
2223<meta property="og:url" content="https://codecov.io">
2224<meta property="og:site_name" content="Codecov">
2225<meta property="og:title" content="Code coverage done right.">
2226<meta property="og:description" content="Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.">
2227<meta property="og:image" content="https://codecov-cdn.storage.googleapis.com/static/codecov-l
2191⋮
219233572-byte body
2193""")
2194Stacktrace:
2228 [1] #request#1(::Base.Iterators.Pairs{Symbol,Union{Nothing, Bool},Tuple{Symbol,Symbol},NamedTuple{(:iofunction, :reached_redirect_limit),Tuple{Nothing,Bool}}}, ::typeof(HTTP.request), ::Type{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}, ::HTTP.URIs.URI, ::Vararg{Any,N} where N) at /home/travis/.julia/packages/HTTP/ZggHU/src/ExceptionRequest.jl:22
2229 [2] (::HTTP.var"#kw##request")(::NamedTuple{(:iofunction, :reached_redirect_limit),Tuple{Nothing,Bool}}, ::typeof(HTTP.request), ::Type{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}, ::HTTP.URIs.URI, ::HTTP.Messages.Request, ::String) at ./none:0
2230 [3] (::Base.var"#50#51#53"{ExponentialBackOff,HTTP.RetryRequest.var"#2#3"{Bool,HTTP.Messages.Request},typeof(HTTP.request)})(::Base.Iterators.Pairs{Symbol,Union{Nothing, Bool},Tuple{Symbol,Symbol},NamedTuple{(:iofunction, :reached_redirect_limit),Tuple{Nothing,Bool}}}, ::Base.var"#50#52"{Base.var"#50#51#53"{ExponentialBackOff,HTTP.RetryRequest.var"#2#3"{Bool,HTTP.Messages.Request},typeof(HTTP.request)}}, ::Type, ::Vararg{Any,N} where N) at ./error.jl:253
2231 [4] #50#52 at ./none:0 [inlined]
2232 [5] #request#1 at /home/travis/.julia/packages/HTTP/ZggHU/src/RetryRequest.jl:44 [inlined]
2233 [6] #request at ./none:0 [inlined]
2234 [7] #request#1(::VersionNumber, ::String, ::Nothing, ::Nothing, ::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:reached_redirect_limit,),Tuple{Bool}}}, ::typeof(HTTP.request), ::Type{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at /home/travis/.julia/packages/HTTP/ZggHU/src/MessageRequest.jl:51
2235 [8] #request at ./none:0 [inlined]
2236 [9] #request#1(::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:reached_redirect_limit,),Tuple{Bool}}}, ::typeof(HTTP.request), ::Type{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at /home/travis/.julia/packages/HTTP/ZggHU/src/BasicAuthRequest.jl:28
2237 [10] (::HTTP.var"#kw##request")(::NamedTuple{(:reached_redirect_limit,),Tuple{Bool}}, ::typeof(HTTP.request), ::Type{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at ./none:0
2238 [11] #request#1(::Int64, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(HTTP.request), ::Type{HTTP.RedirectRequest.RedirectLayer{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at /home/travis/.julia/packages/HTTP/ZggHU/src/RedirectRequest.jl:24
2239 [12] request(::Type{HTTP.RedirectRequest.RedirectLayer{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at /home/travis/.julia/packages/HTTP/ZggHU/src/RedirectRequest.jl:21
2246 [13] #request#4(::Dict{String,String}, ::String, ::Nothing, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(HTTP.request), ::String, ::String, ::Array{Any,1}, ::String) at /home/travis/.julia/packages/HTTP/ZggHU/src/HTTP.jl:314
2247 [14] #request at ./none:0 [inlined]
2248 [15] #post#14 at /home/travis/.julia/packages/HTTP/ZggHU/src/HTTP.jl:405 [inlined]
2249 [16] #post at ./none:0 [inlined] (repeats 2 times)
2250 [17] #submit_generic#10(::Base.Iterators.Pairs{Symbol,String,NTuple{7,Symbol},NamedTuple{(:service, :branch, :commit, :pull_request, :job, :slug, :build),NTuple{7,String}}}, ::typeof(Coverage.Codecov.submit_generic), ::Array{CoverageTools.FileCoverage,1}) at /home/travis/.julia/packages/Coverage/HscVF/src/codecovio.jl:220
2251 [18] (::Coverage.Codecov.var"#kw##submit_generic")(::NamedTuple{(:service, :branch, :commit, :pull_request, :job, :slug, :build),NTuple{7,String}}, ::typeof(Coverage.Codecov.submit_generic), ::Array{CoverageTools.FileCoverage,1}) at ./none:0
2252 [19] #submit#2(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Coverage.Codecov.submit), ::Array{CoverageTools.FileCoverage,1}) at /home/travis/.julia/packages/Coverage/HscVF/src/codecovio.jl:69
2240 [20] submit(::Array{CoverageTools.FileCoverage,1}) at /home/travis/.julia/packages/Coverage/HscVF/src/codecovio.jl:69
2241 [21] top-level scope at none:1
2242The command "julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'" exited with 1.
2243
2244
2245
logankilpatrick commented 4 years ago

Note that this seems to work fine on master but not other branches.

vtjnash commented 3 years ago

if you rerun curl https://codecov.io/upload/v2?&service=travis-org&branch=ck-todoList&commit=767c28ccaf8f72f82802a77ab703fd1&pull_request=false&job=363467107&slug=xxxxxxxxx.jl&build=1249.1 -d '' -H "Accept: application/json" -H "Content-Type: application/json" manually with your actual slug, what error message does it print?